LINUX.ORG.RU

История изменений

Исправление grem, (текущая версия) :

# emerge -av dfclean

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-python/humanize-0.5.1::gentoo  PYTHON_TARGETS="python2_7 python3_4 -python3_5" 0 KiB
[ebuild  N    ~] app-portage/dfclean-0.2.2.0::local  PYTHON_TARGETS="python3_4 -python3_5 -python3_6" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) dev-python/humanize-0.5.1::gentoo
 * humanize-0.5.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                  [ ok ]

...

>>> Emerging (2 of 2) app-portage/dfclean-0.2.2.0::local
 * dfclean-0.2.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking dfclean-0.2.2.0.tar.gz to /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
>>> Source unpacked in /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
 * ERROR: app-portage/dfclean-0.2.2.0::local failed (prepare phase):
 *   The source directory '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1007:  Called __dyn_prepare
 *   phase-functions.sh, line  371:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 * 
 * If you need support, post the output of `emerge --info '=app-portage/dfclean-0.2.2.0::local'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/dfclean-0.2.2.0::local'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/homedir'
 * S: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0'

>>> Failed to emerge app-portage/dfclean-0.2.2.0, Log file:

>>>  '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'

 * GNU info directory index is up-to-date.

Но потом я понял, что это потому, что я скачал нужный tar.gz вручную и переименовал, а внутри он всё с тем же страшным именем был, в одноимённую директорию с которым и распаковался.

Но после установки случилось вот что:

$ dfclean 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/dfclean", line 3, in <module>
    from dfcleanlib import clean
  File "/usr/lib64/python3.4/site-packages/dfcleanlib/__init__.py", line 1, in <module>
    from dfcleanlib.dfclean import clean
  File "/usr/lib64/python3.4/site-packages/dfcleanlib/dfclean.py", line 7, in <module>
    from typing import Generator, Tuple
ImportError: No module named 'typing'

Попробую поискать откуда взять этот модуль typing.

Исправление grem, :

# emerge -av dfclean

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-python/humanize-0.5.1::gentoo  PYTHON_TARGETS="python2_7 python3_4 -python3_5" 0 KiB
[ebuild  N    ~] app-portage/dfclean-0.2.2.0::local  PYTHON_TARGETS="python3_4 -python3_5 -python3_6" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) dev-python/humanize-0.5.1::gentoo
 * humanize-0.5.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                  [ ok ]

...

>>> Emerging (2 of 2) app-portage/dfclean-0.2.2.0::local
 * dfclean-0.2.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking dfclean-0.2.2.0.tar.gz to /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
>>> Source unpacked in /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
 * ERROR: app-portage/dfclean-0.2.2.0::local failed (prepare phase):
 *   The source directory '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1007:  Called __dyn_prepare
 *   phase-functions.sh, line  371:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 * 
 * If you need support, post the output of `emerge --info '=app-portage/dfclean-0.2.2.0::local'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/dfclean-0.2.2.0::local'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/homedir'
 * S: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0'

>>> Failed to emerge app-portage/dfclean-0.2.2.0, Log file:

>>>  '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'

 * GNU info directory index is up-to-date.

Но потом я понял, что это потому, что я скачал нужный tar.gz вручную и переименовал, а внутри он всё с тем же страшным именем был, в одноимённую директорию с которым и распаковался.

Но после установки случилось вот что:

$ dfclean 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/dfclean", line 3, in <module>
    from dfcleanlib import clean
  File "/usr/lib64/python3.4/site-packages/dfcleanlib/__init__.py", line 1, in <module>
    from dfcleanlib.dfclean import clean
  File "/usr/lib64/python3.4/site-packages/dfcleanlib/dfclean.py", line 7, in <module>
    from typing import Generator, Tuple
ImportError: No module named 'typing'

Исправление grem, :

# emerge -av dfclean

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-python/humanize-0.5.1::gentoo  PYTHON_TARGETS="python2_7 python3_4 -python3_5" 0 KiB
[ebuild  N    ~] app-portage/dfclean-0.2.2.0::local  PYTHON_TARGETS="python3_4 -python3_5 -python3_6" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) dev-python/humanize-0.5.1::gentoo
 * humanize-0.5.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                  [ ok ]

...

>>> Emerging (2 of 2) app-portage/dfclean-0.2.2.0::local
 * dfclean-0.2.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking dfclean-0.2.2.0.tar.gz to /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
>>> Source unpacked in /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
 * ERROR: app-portage/dfclean-0.2.2.0::local failed (prepare phase):
 *   The source directory '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1007:  Called __dyn_prepare
 *   phase-functions.sh, line  371:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 * 
 * If you need support, post the output of `emerge --info '=app-portage/dfclean-0.2.2.0::local'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/dfclean-0.2.2.0::local'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/homedir'
 * S: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0'

>>> Failed to emerge app-portage/dfclean-0.2.2.0, Log file:

>>>  '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'

 * GNU info directory index is up-to-date.

Но потом я понял, что это потому, что я скачал нужный tar.gz вручную и переименовал, а внутри он всё с тем же страшным именем был, в одноимённую директорию с которым и распаковался.

Исходная версия grem, :

# emerge -av dfclean

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-python/humanize-0.5.1::gentoo  PYTHON_TARGETS="python2_7 python3_4 -python3_5" 0 KiB
[ebuild  N    ~] app-portage/dfclean-0.2.2.0::local  PYTHON_TARGETS="python3_4 -python3_5 -python3_6" 0 KiB

Total: 2 packages (2 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) dev-python/humanize-0.5.1::gentoo
 * humanize-0.5.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                  [ ok ]

...

>>> Emerging (2 of 2) app-portage/dfclean-0.2.2.0::local
 * dfclean-0.2.2.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking dfclean-0.2.2.0.tar.gz to /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
>>> Source unpacked in /var/tmp/portage/app-portage/dfclean-0.2.2.0/work
 * ERROR: app-portage/dfclean-0.2.2.0::local failed (prepare phase):
 *   The source directory '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0' doesn't exist
 * 
 * Call stack:
 *            ebuild.sh, line  767:  Called __ebuild_main 'prepare'
 *   phase-functions.sh, line 1007:  Called __dyn_prepare
 *   phase-functions.sh, line  371:  Called die
 * The specific snippet of code:
 *              die "The source directory '${S}' doesn't exist"
 * 
 * If you need support, post the output of `emerge --info '=app-portage/dfclean-0.2.2.0::local'`,
 * the complete build log and the output of `emerge -pqv '=app-portage/dfclean-0.2.2.0::local'`.
 * The complete build log is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/homedir'
 * S: '/var/tmp/portage/app-portage/dfclean-0.2.2.0/work/dfclean-0.2.2.0'

>>> Failed to emerge app-portage/dfclean-0.2.2.0, Log file:

>>>  '/var/tmp/portage/app-portage/dfclean-0.2.2.0/temp/build.log'

 * GNU info directory index is up-to-date.

Но потом я понял, что это потому, что я скачал нужный tar.gz вручную и переименовал, а внутри он всё с тем е страшным именем был, в одноимённую директорию с которым и распаковался.