Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 411649

Summary: sys-libs/tdb and sys-libs/talloc fails to build into ROOT without python
Product: Gentoo Linux Reporter: Bjarke Istrup Pedersen (RETIRED) <gurligebis>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: CONFIRMED ---    
Severity: normal CC: alexanderyt, bertrand, mvolaski, zubkov318
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-libs/tdb/tdb-1.2.9.ebuild?r1=1.4&r2=1.5
Whiteboard:
Package list:
Runtime testing required: ---

Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2012-04-11 21:33:22 UTC
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.
Comment 1 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2012-04-11 21:41:20 UTC
The exact same goes for sys-libs/talloc, it also fails badly, even though USE="-python" , same fix in pkg_setup fixes it.
Comment 2 Patrick Lauer gentoo-dev 2012-04-13 06:31:35 UTC
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 ;)
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2012-04-13 07:48:47 UTC
Would it be possible to add another USE flag that gets checked instead then, that would only be enabled by people cross compiling?
Comment 4 Alexander Zubkov 2012-09-19 20:04:17 UTC
tdb also depends on python even with USE="-python". And istalled files don't look like depending on python in some way.