Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578964 - net-fs/samba-4.2.9: fails to build due to mixing in python LDFLAGS
Summary: net-fs/samba-4.2.9: fails to build due to mixing in python LDFLAGS
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ldflags samba-4
  Show dependency tree
 
Reported: 2016-04-03 23:16 UTC by .
Modified: 2021-05-20 07:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
logs.tar.xz (logs.tar.xz,170.00 KB, application/x-xz)
2016-04-03 23:16 UTC, .
Details

Note You need to log in before you can comment on or make changes to this bug.
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.