My system is macOS Sierra (10.12.3) built from the latest bootstrap-prefix.sh. The build for pygobject fails with the following: ld: -stack_size option can only be used when linking a main executable clang-3.9: error: linker command failed with exit code 1 (use -v to see invocation) That appears to be caused by configure using python-config --ldflags instead of python-config --libs, which on macOS gives the following: -lpython3.5 -lintl -ldl -framework CoreFoundation -Wl,-stack_size,1000000 -framework CoreFoundation pygobject is pulled in by media-libs/vips. Reproducible: Always
Created attachment 466748 [details] environment
Created attachment 466750 [details] build.log
Created attachment 466752 [details] pygobject-3.22.0.ebuild
Created attachment 466754 [details, diff] pygobject-3.22.0-libs.patch
@maintainers: is this patch OK with you?
Was this reported upstream? The patch seems quite upstreamable to me.
Sorry it looks like it was here: https://bugzilla.gnome.org/show_bug.cgi?id=773803
I'd like to see some upstream ACK on it, or dig into it a bit later. I've CCed gnome team on the upstream bug to get notified when something moves there.
Judging from this commit we have to wait for a next release: https://git.gnome.org/browse/pygobject/commit/?id=b0476e2db4577e12b52caa3163ccb69575221d6c
Created attachment 494294 [details, diff] 0001-testhelper-only-link-against-libpython-on-Windows.patch Could you test this patch, it is a backport of the one that landed in 3.25.1.