The changes made here: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/tdb/tdb-1.2.9.ebuild?r1=1.4&r2=1.5 makes it impossible to install tdb without having python installed into the target ROOT folder (needed for an embedded system where samba is needed, but python is not). Adding the "if use python; then" / "fi" back fixes it. So could you please add it back, so those two lines in pkg_setup is only called when python use flag is enabled? Reproducible: Always Steps to Reproduce: 1: mkdir /root/tempdir 2: ROOT="/root/tempdir" USE="-python" emerge tdb Actual Results: sys-libs/tdb fails to compile without python installed at target ROOT. Expected Results: It should have compiled just fine.
The exact same goes for sys-libs/talloc, it also fails badly, even though USE="-python" , same fix in pkg_setup fixes it.
Ah, that's naughty. Adding it back *will* break building for everyone with py3 as default interpreter. I see no way out of this trap that works for everyone, apart from nuking py3 ;)
Would it be possible to add another USE flag that gets checked instead then, that would only be enabled by people cross compiling?
tdb also depends on python even with USE="-python". And istalled files don't look like depending on python in some way.