View previous topic :: View next topic |
Author |
Message |
ascendant n00b


Joined: 13 Nov 2008 Posts: 58 Location: / (USA)
|
Posted: Sat Nov 28, 2020 4:48 am Post subject: [solved] portage will not emerge dev-util/itstool |
|
|
Following an upgrade to python 3.8, I tried to remove 3.7 and it would not: hermes ~ # emerge -ac dev-lang/python:3.7: | Calculating dependencies... done!
dev-lang/python-3.7.9 pulled in by:
dev-libs/libxml2-2.9.10-r3 requires dev-lang/python:3.7[xml]
dev-util/itstool-2.0.6-r1 requires dev-lang/python:3.7[xml]
>>> No packages selected for removal by depclean
Packages installed: 367
Packages in world: 40
Packages in system: 43
Required packages: 367
Number removed: 0 | Trying to do a full update incorporating the PYTHON_TARGETS change to 3.8 results in an error indicating that dev-util/itstool seems to want dev-libs/libxml2 to be built targeting the same python version as it (3.7): hermes ~ # emerge -uND world: | These are the packages that would be merged, in order:
Calculating dependencies... done!
Total: 0 packages, Size of downloads: 0 KiB
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
dev-libs/libxml2:2
(dev-libs/libxml2-2.9.10-r3:2/2::gentoo, ebuild scheduled for merge) USE="-debug -examples -icu -ipv6 -lzma python readline -static-libs -test" ABI_X86="-32 (64) (-x32)" PYTHON_TARGETS="-python3_6 -python3_7 python3_8 -python3_9" conflicts with
dev-libs/libxml2[python,python_targets_python3_7(-)] required by (dev-util/itstool-2.0.6-r1:0/0::gentoo, installed) USE="" ABI_X86="(64)" PYTHON_SINGLE_TARGET="-python3_6 python3_7 -python3_8"
Nothing to merge; quitting. | However, trying to rebuild itstool manally to effect the USE change does not result in any action: hermes ~ # emerge -1N dev-util/itstool: | These are the packages that would be merged, in order:
Calculating dependencies... done!
Total: 0 packages, Size of downloads: 0 KiB
Nothing to merge; quitting. | The same without USE change does "work" (with no USE change): hermes ~ # emerge -1p dev-util/itstool: | These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-util/itstool-2.0.6-r1::gentoo PYTHON_SINGLE_TARGET="-python3_6 python3_7 -python3_8" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB |
The same behavior is seen when emerging dev-libs/libxml2 (-N makes emerge do nothing).
Portage bug?
emerge --info dev-util/itstool _________________ This post brought to you by a cheap router.
Last edited by ascendant on Sat Nov 28, 2020 5:00 pm; edited 1 time in total |
|
Back to top |
|
 |
fedeliallalinea Moderator


Joined: 08 Mar 2003 Posts: 25386 Location: here
|
Posted: Sat Nov 28, 2020 7:07 am Post subject: |
|
|
You have changed PYTHON_TARGETS to python3_8 but you haven't changed PYTHON_SINGLE_TARGET which remained at python3_7. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
ascendant n00b


Joined: 13 Nov 2008 Posts: 58 Location: / (USA)
|
Posted: Sat Nov 28, 2020 5:00 pm Post subject: |
|
|
Woo, thanks! I added it to make.conf _________________ This post brought to you by a cheap router. |
|
Back to top |
|
 |
fedeliallalinea Moderator


Joined: 08 Mar 2003 Posts: 25386 Location: here
|
Posted: Sat Nov 28, 2020 5:28 pm Post subject: |
|
|
Better way is use /etc/portage/package.use
Code: | */* PYTHON_TARGETS: -python3_7 python3_8
*/* PYTHON_SINGLE_TARGET: -python2_7 -python3_7 python3_8 |
because when profile change, for example, in python3_9 you will not see this change. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
 |
|