GNOME Bugzilla – Bug 496006
pygobject-2.14.0 picks up binary dependency on libffi
Last modified: 2008-03-02 13:34:20 UTC
From http://bugs.gentoo.org/show_bug.cgi?id=198870 ... checking pkg-config is at least version 0.7... yes checking for GLIB - version >= 2.8.0... yes (version 2.14.3) checking for ffi.h... yes ... libffi support: yes This introduces a link dependency on -lffi, and can break the build (c.f. Gentoo bug 194632). libffi dependency should be explicitly enabled by a --enable-ffi configure flag.
Hm - possibly related to bug 482788.
Created attachment 98947 [details] [review] libffi.patch configure patch.
Created attachment 98962 [details] [review] libffi.patch improve patch
*** Bug 482788 has been marked as a duplicate of this bug. ***
Created attachment 101665 [details] [review] libffi.patch Updated patch, moves configure flag to --with-libffi to allow passing in linker flags (e.g. on Gentoo, --with-libffi=-L/usr/lib/libffi). Uses AC_SEARCH_LIBS to ensure libffi can be linked in.
(In reply to comment #0) > From http://bugs.gentoo.org/show_bug.cgi?id=198870 > > libffi dependency should be explicitly enabled by a --enable-ffi configure > flag. > I disagree with this, libffi should be enabled by default. Either the configure has to be fixed to do proper detection or gentoo has to fix it's copy of libffi.
(In reply to comment #6) > I disagree with this, libffi should be enabled by default. Either the configure > has to be fixed to do proper detection or gentoo has to fix it's copy of > libffi. Attached patch does automagic detection if --with-libffi or --without-libffi not given.
2008-01-11 Johan Dahlin <johan@gnome.org> * configure.ac: Don't link against libffi if we cannot find libffi on the system. (#496006, Ed Catmur)
fixing patch status