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 packages | Assignee: | 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 |
I had same problem with python compiled by gcc and then samba by clang, both with different LDFLAGS. Recompiling python with clang problem disappeared. |
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[@]} } ```