tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkgsrc vs. native xorg
There are two things required for pkgsrc to work with native
Xorg. The first is that native Xorg must provide pkgconfig files.
This is supposedly being worked on. The second is that X11BASE must be
set correctly. This can be accomplished by adding it to mk.conf, but
it would be nice if pkgsrc handled it automatically like it does for
most systems. I have a patch to accomplish this.
First, a bit of background. When I first posted the patch (to a
private chat), a pkgsrc person objected saying that only NetBSD uses
/usr/X11R7. A native Xorg developer countered saying that lots of
systems will use it (a quick Google search turned up Slackware and
linuxfromscratch). I'm inclined to go with a version that doesn't
check for NetBSD since the test is harmless on systems that don't have
/usr/X11R7.
The patch is below. It would be nice to get this in before the
freeze so that pkgsrc can do its part in supporting native Xorg, but
not absolutely essential.
ultra: {15} cvs diff -u -r HEAD bsd.prefs.mk
Index: bsd.prefs.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.prefs.mk,v
retrieving revision 1.286
diff -u -r1.286 bsd.prefs.mk
--- bsd.prefs.mk 22 Jun 2008 16:25:32 -0000 1.286
+++ bsd.prefs.mk 8 Sep 2008 01:03:33 -0000
@@ -491,6 +491,8 @@
X11BASE?= /usr/openwin
. elif ${OPSYS} == "IRIX" || ${OPSYS} == "OSF1" || ${OPSYS} == "HPUX"
X11BASE?= /usr
+. elif ${OPSYS} == "NetBSD" && exists(/usr/X11R7/lib/libX11.so)
+X11BASE?= /usr/X11R7
. else
X11BASE?= /usr/X11R6
. endif
Home |
Main Index |
Thread Index |
Old Index