Subject: GTK+ and Xinerama (Re: CVS commit: pkgsrc/x11/gtk2)
To: None <tech-pkg@netbsd.org>
From: Eric Gillespie <epg@pretzelnet.org>
List: tech-pkg
Date: 01/12/2003 16:07:15
Thomas Klausner <wiz@netbsd.org> writes:
> Log Message:
> Disable xinerama (work around linking problem with gtk2-using applications).
> Bump PKGREVISION.
I was disappointed to see this because i had been looking forward
to the Xinerama support. Today i finally had time to investigate
what linking problem you were referring to.
The problem is that a program trying to link with GTK+ doesn't
know it needs to link with Xinerama. On some platforms that sort
of thing is worked out automatically, but i guess NetBSD can't do
that (see pkg/19777 for another example of this). So all we need
to do is get -lXinerama into the pkgconfig file. For pkg/19777,
we had to patch the pkgconfig file. GTK+ provides a
--enable-explicit-deps argument to the configure script to take
care of this for us.
So i think the correct fix is to use that. Using this patch, i
have Xinerama support in GTK+ and GConf2 built and installed
successfully. Now i have to rebuild all the other GTK+ 2.x
packages i use, so i'll report back if i find any failures.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk2/Makefile,v
retrieving revision 1.21
diff -a -u -r1.21 Makefile
--- Makefile 2003/01/04 20:01:18 1.21
+++ Makefile 2003/01/12 21:02:21
@@ -25,8 +25,7 @@
CONFIGURE_ARGS+= --sysconfdir="${PKG_SYSCONFBASE}"
CONFIGURE_ARGS+= --enable-gtk-doc=no
CONFIGURE_ARGS+= --with-html-dir=${PREFIX}/share/doc/html
-CONFIGURE_ENV+= ac_cv_header_X11_extensions_Xinerama_h=no
-CONFIGURE_ENV+= ac_cv_lib_Xinerama_XineramaQueryExtension=no
+CONFIGURE_ARGS+= --enable-explicit-deps
MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
TEST_TARGET= check
--
Eric Gillespie <*> epg@pretzelnet.org
Build a fire for a man, and he'll be warm for a day. Set a man on
fire, and he'll be warm for the rest of his life. -Terry Pratchett