File "/var/tmp/portage/app-misc/pax-utils-1.2.2-r2/work/pax-utils-1.2.2/lddtree.py", line 52, in <module> from elftools.elf.elffile import ELFFile ImportError: No module named 'elftools' PASS: lddtree.py.smoke ./dotest.cmp Traceback (most recent call last): ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-plasma-systemd_libressl-test_20171129-194156 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.2.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python3.6 (fallback) [3] python3.5 (fallback) [4] python2.7 (fallback) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.6.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv app-misc/pax-utils [ebuild U ] app-misc/pax-utils-1.2.2-r2 [1.1.7] USE="python* seccomp -caps -debug"
Created attachment 507514 [details] emerge-info.txt
Created attachment 507516 [details] app-misc:pax-utils-1.2.2-r2:20171130-222434.log
Created attachment 507518 [details] emerge-history.txt
Created attachment 507520 [details] environment
Created attachment 507522 [details] etc.portage.tbz2
Created attachment 507524 [details] temp.tbz2
Created attachment 507526 [details] tests.tbz2
'genkernel --oldconfig --udev --lvm all' complains about: ... * initramfs: >> Initializing... * >> Appending base_layout cpio data... * >> Appending udev cpio data... Traceback (most recent call last): File "/usr/bin/lddtree", line 52, in <module> from elftools.elf.elffile import ELFFile ModuleNotFoundError: No module named 'elftools' Is there not any patch?
Any news?
I suppose I found the reason for the issue. My active python interpreter is Python 3.6.4 but pyelftools was compiled with -python3_6: root@cheetahnew:/root(27)# python -V Python 3.6.4 root@cheetahnew:/root(28)# emerge -pv1 pyelftools These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-python/pyelftools-0.24::gentoo USE="examples" PYTHON_TARGETS="python2_7 python3_4 python3_5 -python3_6" 0 KiB ... After adding python_targets_python3_6 to =dev-python/pyelftools-0.24 in /etc/portage/package.use the issue disappeared.
So likely we need to use one of the python eclasses to ensure the dependencies stay working.
If someone wants to give https://github.com/gentoo/gentoo/pull/7077 a shot, I believe it will fix this issue.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1651c6c3a70a1ee310ecb2ad1253683d8dc3c4d7 commit 1651c6c3a70a1ee310ecb2ad1253683d8dc3c4d7 Author: Doug Goldstein <cardoe@gentoo.org> AuthorDate: 2018-02-04 19:53:51 +0000 Commit: Doug Goldstein <cardoe@gentoo.org> CommitDate: 2018-03-10 21:44:58 +0000 app-misc/pax-utils: fix python dependencies Bug: https://bugs.gentoo.org/639412 app-misc/pax-utils/pax-utils-1.2.3-r1.ebuild | 64 ++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+)}
Should be fixed in app-misc/pax-utils-1.2.3-r1