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

Bug 578964

Summary: net-fs/samba-4.2.9: fails to build due to mixing in python LDFLAGS
Product: Gentoo Linux Reporter: . <dev.rindeal+gentoo>
Component: Current packagesAssignee: Gentoo's SAMBA Team <samba>
Status: UNCONFIRMED ---    
Severity: normal CC: esigra, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 331933, 489762    
Attachments: logs.tar.xz

Description . 2016-04-03 23:16:25 UTC
Created attachment 429592 [details]
logs.tar.xz

I tracked the file causing it to "${S}/buildtools/wafadmin/Tools/python.py" and the function to "check_python_headers", which uses `python_LDFLAGS` variable filled from distutils. This variable is overridable via ENV var of the same name.

Thus my quick fix was:
```
--- a/samba-4.2.9.ebuild
+++ b/samba-4.2.9.ebuild
@@ -198,7 +198,7 @@
                )
        fi

-       CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" \
+       CPPFLAGS="-I${SYSROOT}/usr/include/et ${CPPFLAGS}" python_LDFLAGS= \
                waf-utils_src_configure ${myconf[@]}
 }
```
Comment 1 Jiří Moravec 2016-08-31 22:20:53 UTC
I had same problem with python compiled by gcc and then samba by clang, both with different LDFLAGS. Recompiling python with clang problem disappeared.