On Thu, 19 Feb 2009, Greg Troxel wrote:
I am trying to get guile-gnome-platform 0.16.1 to build on NetBSD via
pkgsrc. g-wrap 1.9.11 has g-wrap-2.0-guile.pc.in which contains:
Libs: -L${libdir} -lgwrap-guile-runtime -lgwrap-core-runtime @GUILE_LDFLAGS@
@LIBFFI_LIBS_INSTALLED@
Cflags: @STD_CFLAGS@ -I${includedir} @GUILE_CFLAGS@ @LIBFFI_CFLAGS_INSTALLED@
This seems buggy for two reasons:
1) the _INSTALLED variant of LIBFFI_CFLAGS is not substituted by configure:
gdt 276 /usr/pkgsrc/devel/g-wrap/work/g-wrap-1.9.11/guile > egrep LIBFFI_CFL
../config.status
s,@LIBFFI_CFLAGS@,|#_!!_#|-I/usr/pkg/include ,g
2) libffi is a dependency, so the .pc file should just use the normal
dependency mechanism.
Is anyone else seeing this problem?
gdt 279 /usr/pkgsrc/devel/g-wrap/work/g-wrap-1.9.11/guile > pkg-config
g-wrap-2.0-guile --cflags
-std=gnu99 -pthread @LIBFFI_CFLAGS_INSTALLED@ -I/usr/pkg/include
gdt 280 /usr/pkgsrc/devel/g-wrap/work/g-wrap-1.9.11/guile > pkg-config
g-wrap-2.0-guile --libs
-I/usr/pkg/include -pthread -Wl,-R/usr/pkg/lib @LIBFFI_LIBS_INSTALLED@
-L/usr/pkg/lib -lgwrap-guile-runtime -lgwrap-core-runtime -lguile -lgmp -lcrypt
-lm -lltdl
Yes... I recently released an application that uses guile-gnome-platform,
and had several reports of users bumping into exactly this when building
the dependencies.
The current Fedora RPMs patch g-wrap-2.0-guile.pc.in, dropping the
_INSTALLED suffix from those substitutions. An OpenSuse user discovered
the same fix, and a similar patch was posted to guile-gtk-general last
April.
So while perhaps your suggestion (2) above ought to be considered,
if you were to patch like this, pkgsrc would at least be in good
company...
--- g-wrap-1.9.11/guile/g-wrap-2.0-guile.pc.in.libffi 2007-08-14
09:21:29.000000000 -0400
+++ g-wrap-1.9.11/guile/g-wrap-2.0-guile.pc.in 2008-12-27 19:02:49.000000000
-0500
@@ -11,5 +11,5 @@
Name: G-Wrap
Description: A Guile wrapper generator
Version: @VERSION@
-Libs: -L${libdir} -lgwrap-guile-runtime -lgwrap-core-runtime @GUILE_LDFLAGS@
@LIBFFI_LIBS_INSTALLED@
-Cflags: @STD_CFLAGS@ -I${includedir} @GUILE_CFLAGS@ @LIBFFI_CFLAGS_INSTALLED@
+Libs: -L${libdir} -lgwrap-guile-runtime -lgwrap-core-runtime @GUILE_LDFLAGS@
@LIBFFI_LIBS@
+Cflags: @STD_CFLAGS@ -I${includedir} @GUILE_CFLAGS@ @LIBFFI_CFLAGS@
_______________________________________________
g-wrap-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/g-wrap-dev