Python и рядом с ним

Добрый день!
Обновляю 32-х битку.
system обновлил почти в ручную.
При выдаче команды
emerge -uDN world
вот такой выхлоп

Calculating dependencies | * ERROR: sys-apps/calculate-toolkit-9999::calculate failed (depend phase):
 *   git-2.eclass could not be found by inherit()
 * 
 \ * Call stack:
 *                       ebuild.sh, line 609:  Called source '/var/db/repos/calculate/sys-apps/calculate-toolkit/calculate-toolkit-9999.ebuild'
 | *   calculate-toolkit-9999.ebuild, line   7:  Called inherit 'git-2'
 *                       ebuild.sh, line 290:  Called die
 * The specific snippet of code:
 \ *   		[[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/calculate-toolkit-9999::calculate'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/calculate-toolkit-9999::calculate'`.
 * Working directory: '/usr/lib/python3.7/site-packages'
 | * S: '/var/calculate/tmp/portage/sys-apps/calculate-toolkit-9999/work/calculate-toolkit-9999'
 / * ERROR: sys-apps/calculate-utils-3.6.9999::calculate failed (depend phase):
 *   git-2.eclass could not be found by inherit()
 * 
 - * Call stack:
 *                         ebuild.sh, line 609:  Called source '/var/db/repos/calculate/sys-apps/calculate-utils/calculate-utils-3.6.9999.ebuild'
 | *   calculate-utils-3.6.9999.ebuild, line   8:  Called inherit 'calculate-utils-r6' 'git-2'
 *                         ebuild.sh, line 290:  Called die
 * The specific snippet of code:
 | *   		[[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()"
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/calculate-utils-3.6.9999::calculate'`,
 | * the complete build log and the output of `emerge -pqv '=sys-apps/calculate-utils-3.6.9999::calculate'`.
 * Working directory: '/usr/lib/python3.7/site-packages'
 * S: '/var/calculate/tmp/portage/sys-apps/calculate-utils-3.6.9999/work'
... done!

emerge: there are no ebuilds built with USE flags to satisfy "sys-apps/file[python,python_targets_python2_7]".
!!! One of the following packages is required to complete your request:
- sys-apps/file-5.37-r1::gentoo (Missing IUSE: python_targets_python2_7)
(dependency required by "sys-apps/calculate-utils-3.6.7.10::calculate" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
calculate /home/serge # emerge sys-apps/file
Calculating dependencies... done!

Куда копать?

32-х битка больше не поддерживается.

А по твоему выхлопу нужно копать в ebuild устанавливаемого сабжа.

Eclass git-2 уже давно выпилили, вместо него нужно использовать git-r3 класс.

Тогда 2 вопроса:

  1. как git-2 сменить на git-3?
  2. а как быть с этим:
    emerge: there are no ebuilds built with USE flags to satisfy “sys-apps/file[python,python_targets_python2_7]”.
    !!! One of the following packages is required to complete your request:
    - sys-apps/file-5.37-r1::gentoo (Missing IUSE: python_targets_python2_7)
    (dependency required by “sys-apps/calculate-utils-3.6.7.10::calculate” [installed])
    (dependency required by “@selected” [set])
    (dependency required by “@world” [argument])
    calculate /home/serge # emerge sys-apps/file
    Calculating dependencies… done!

как git-2 сменить на git-3?

Не git-3, а git-r3
Посмотреть текущий можно:

$ ls -l /usr/portage/eclass/git*

Открыть ebuild сабжа. Судя по ::calculate он находится в одноименном репозитории.
После того как открыл, смотришь в него, исправляешь, сохраняешь, перегенерируешь манифест, скрещиваешь пальцы и устанавливаешь.

  • sys-apps/file-5.37-r1::gentoo (Missing IUSE: python_targets_python2_7)

Вот ответ на 2й вопрос.
У указанного пакета, нет поддержки python 2.7
Выход только один - забрать этот пакет в свой оверлей, добавить поддержку python 2.7.