NetBSD Problem Report #26357

Received: (qmail 602 invoked by uid 605); 18 Jul 2004 11:31:59 -0000
Message-Id: <200407181131.i6IBVrI18663@srapc342.sra.co.jp>
Date: Sun, 18 Jul 2004 20:31:53 +0900 (JST)
From: Noriyuki Soda <soda@sra.co.jp>
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: soda@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Cc: soda@sra.co.jp
Subject: XFILESEARCHPATH should have /usr/pkg
X-Send-Pr-Version: 3.95

>Number:         26357
>Category:       xsrc
>Synopsis:       XFILESEARCHPATH should have /usr/pkg
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    xsrc-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 18 11:33:00 +0000 2004
>Closed-Date:    
>Last-Modified:  Mon Apr 30 07:55:03 +0000 2012
>Originator:     Noriyuki Soda
>Release:        NetBSD 1.6.2
>Organization:
	Software Research Associates, Inc.
>Environment:
System: NetBSD boaz 1.6.2 NetBSD 1.6.2 (GENERIC_LAPTOP) #0: Tue Feb 10 22:02:37 UTC 2004 autobuild@tgm.netbsd.org:/autobuild/netbsd-1-6-PATCH002/i386/OBJ/autobuild/netbsd-1-6-PATCH002/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
	Because xpkgwedge is now default in xpkgsrc, X11 applications
	should search /usr/pkg as well as /usr/X11R6 by default.

	Users can workaround this problem by setting 
		XFILESEARCHPATH=/usr/pkg/lib/X11/%L/%T/%N%C%S:/usr/pkg/lib/X11/%l/%T/%N%C%S:/usr/pkg/lib/X11/%T/%N%C%S:/usr/pkg/lib/X11/%L/%T/%N%S:/usr/pkg/lib/X11/%l/%T/%N%S:/usr/pkg/lib/X11/%T/%N%S:/usr/X11R6/lib/X11/%L/%T/%N%C%S:/usr/X11R6/lib/X11/%l/%T/%N%C%S:/usr/X11R6/lib/X11/%T/%N%C%S:/usr/X11R6/lib/X11/%L/%T/%N%S:/usr/X11R6/lib/X11/%l/%T/%N%S:/usr/X11R6/lib/X11/%T/%N%S
	(I guess only setting XAPPLRESDIR may have problem with
	 some applications.)
	But this is ugly and too much complicated, IMHO.

>How-To-Repeat:
	Let novice users install some X11 packages, and see
	they miss the installation message of xpkgwedge.

>Fix:
	apply the following patch.

	The reason why I put /usr/pkg before /usr/X11R6
	is because DefaultUserPath has /usr/pkg/bin before $(BINDIR).

Index: xc/config/cf/NetBSD.cf
===================================================================
RCS file: /cvsroot/xsrc/xc/config/cf/NetBSD.cf,v
retrieving revision 1.109
diff -c -r1.109 NetBSD.cf
*** xc/config/cf/NetBSD.cf	23 Dec 2003 16:30:20 -0000	1.109
--- xc/config/cf/NetBSD.cf	18 Jul 2004 11:13:09 -0000
***************
*** 949,951 ****
--- 949,957 ----
  #ifndef UseRgbTxt
  #define UseRgbTxt	NO
  #endif
+ 
+ /*
+  * for xpkgwedge
+  */
+ #define PackageBaseDir		/usr/pkg
+ #define XFileSearchPathDefault	Concat4(PackageBaseDir/%L/%T/%N%C,%S:PackageBaseDir/%l/%T/%N%C,%S:PackageBaseDir/%T/%N%C,%S:PackageBaseDir/%L/%T/%N%S:PackageBaseDir/%l/%T/%N%S:PackageBaseDir/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
Index: xfree/xc/config/cf/NetBSD.cf
===================================================================
RCS file: /cvsroot/xsrc/xfree/xc/config/cf/NetBSD.cf,v
retrieving revision 1.59
diff -c -r1.59 NetBSD.cf
*** xfree/xc/config/cf/NetBSD.cf	27 Dec 2003 08:46:58 -0000	1.59
--- xfree/xc/config/cf/NetBSD.cf	18 Jul 2004 11:13:10 -0000
***************
*** 747,749 ****
--- 747,755 ----
  #define HasDevRandom		YES
  #define RandomDeviceFile	/dev/urandom
  #endif
+ 
+ /*
+  * for xpkgwedge
+  */
+ #define PackageBaseDir		/usr/pkg
+ #define XFileSearchPathDefault	Concat4(PackageBaseDir/%L/%T/%N%C,%S:PackageBaseDir/%l/%T/%N%C,%S:PackageBaseDir/%T/%N%C,%S:PackageBaseDir/%L/%T/%N%S:PackageBaseDir/%l/%T/%N%S:PackageBaseDir/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
>Release-Note:
>Audit-Trail:

From: Matthias Scheler <tron@NetBSD.org>
To: Noriyuki Soda <soda@sra.co.jp>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 13:37:08 +0200

 On Sun, Jul 18, 2004 at 08:31:53PM +0900, Noriyuki Soda wrote:
 > >Synopsis:       XFILESEARCHPATH should have /usr/pkg

 1.) Why is that necessary? I use "xpkgwedge" for years and have
     never encountered that problem.

 2.) Nothing in the base distribution relies on the fact that packages
     go to "/usr/pkg". And not all users for "pkgsrc" keep them there.
     I would really prefer to keep it like that.

 3.) These patches aren't sufficient because they won't affect the
     reach over build via "src/x11" which is e.g. used by release
     engineering to create the official builds.

 	Kind regards

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/

From: Noriyuki Soda <soda@sra.co.jp>
To: Matthias Scheler <tron@NetBSD.org>
Cc: Noriyuki Soda <soda@sra.co.jp>, gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 20:48:53 +0900 (JST)

 >>>>> On Sun, 18 Jul 2004 13:37:08 +0200,
 	Matthias Scheler <tron@NetBSD.org> said:

 > 1.) Why is that necessary? I use "xpkgwedge" for years and have
 >     never encountered that problem.

 Because XAPPLRESDIR doesn't affect the search-path for XtResolvePathname(3).
 So, applications which use XtResolvePathname() must fail.

 > 2.) Nothing in the base distribution relies on the fact that packages
 >     go to "/usr/pkg". And not all users for "pkgsrc" keep them there.
 >     I would really prefer to keep it like that.

 Well, it's not really nothing.
 For example, our /bin/sh knows /usr/pkg/bin as one of default PATH,
 because /usr/include/path.h has /usr/pkg/bin in _PATH_DEFPATH and
 _PATH_STDPATH.

 Please also note that adding /usr/pkg as default XFILESEARCHPATH
 doesn't cause any problem on existing installations which don't
 have xpkgwedge.

 > 3.) These patches aren't sufficient because they won't affect the
 >     reach over build via "src/x11" which is e.g. used by release
 >     engineering to create the official builds.

 Hmmm. Is there any idea to fix this?
 --
 soda

From: Matthias Scheler <tron@NetBSD.org>
To: Noriyuki Soda <soda@sra.co.jp>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 13:52:29 +0200

 On Sun, Jul 18, 2004 at 08:48:53PM +0900, Noriyuki Soda wrote:
 > > 1.) Why is that necessary? I use "xpkgwedge" for years and have
 > >     never encountered that problem.
 > Because XAPPLRESDIR doesn't affect the search-path for XtResolvePathname(3).
 > So, applications which use XtResolvePathname() must fail.

 Which applications are affected?

 > > 2.) Nothing in the base distribution relies on the fact that packages
 > >     go to "/usr/pkg". And not all users for "pkgsrc" keep them there.
 > >     I would really prefer to keep it like that.
 > Well, it's not really nothing.
 > For example, our /bin/sh knows /usr/pkg/bin as one of default PATH,
 > because /usr/include/path.h has /usr/pkg/bin in _PATH_DEFPATH and
 > _PATH_STDPATH.

 Yes, you are right. I forgot about that.

 > Please also note that adding /usr/pkg as default XFILESEARCHPATH
 > doesn't cause any problem on existing installations which don't
 > have xpkgwedge.

 True.

 > > 3.) These patches aren't sufficient because they won't affect the
 > >     reach over build via "src/x11" which is e.g. used by release
 > >     engineering to create the official builds.
 > Hmmm. Is there any idea to fix this?

 I thought I'd ask you to submit an extended patch. :-)

 	Kind regards

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/

From: Noriyuki Soda <soda@sra.co.jp>
To: Matthias Scheler <tron@NetBSD.org>
Cc: Noriyuki Soda <soda@sra.co.jp>, gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 21:20:53 +0900 (JST)

 >>>>> On Sun, 18 Jul 2004 13:52:29 +0200,
 	Matthias Scheler <tron@NetBSD.org> said:

 >> > 1.) Why is that necessary? I use "xpkgwedge" for years and have
 >> >     never encountered that problem.

 >> Because XAPPLRESDIR doesn't affect the search-path for XtResolvePathname(3).
 >> So, applications which use XtResolvePathname() must fail.

 > Which applications are affected?

 openmotif, at least.

 >> > 3.) These patches aren't sufficient because they won't affect the
 >> >     reach over build via "src/x11" which is e.g. used by release
 >> >     engineering to create the official builds.
 >> Hmmm. Is there any idea to fix this?

 > I thought I'd ask you to submit an extended patch. :-)

 OK :)
 how about this? (I haven't actually built this yet, though...)

 Index: src/x11/lib/Xt/Makefile
 ===================================================================
 RCS file: /cvsroot/src/x11/lib/Xt/Makefile,v
 retrieving revision 1.10
 diff -c -r1.10 Makefile
 *** src/x11/lib/Xt/Makefile	9 Feb 2004 04:30:05 -0000	1.10
 --- src/x11/lib/Xt/Makefile	18 Jul 2004 12:16:07 -0000
 ***************
 *** 24,30 ****
   CPPFLAGS+=	${X11FLAGS.THREADLIB}
   CPPFLAGS+=	-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.

 ! CPPFLAGS.Intrinsic.c=	-DXFILESEARCHPATHDEFAULT=\"${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\"
   CPPFLAGS.Error.c=	-DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
   			-DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
   CPPFLAGS.TMkey.c=	-DXKB
 --- 24,33 ----
   CPPFLAGS+=	${X11FLAGS.THREADLIB}
   CPPFLAGS+=	-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.

 ! # XXX should be defined in bsd.own.mk
 ! PKGBASEDIR=	/usr/pkg
 ! 
 ! CPPFLAGS.Intrinsic.c=	-DXFILESEARCHPATHDEFAULT=\"${PKGBASEDIR}/%L/%T/%N%C%S:${PKGBASEDIR}/%l/%T/%N%C%S:${PKGBASEDIR}/%T/%N%C%S:${PKGBASEDIR}/%L/%T/%N%S:${PKGBASEDIR}/%l/%T/%N%S:${PKGBASEDIR}/%T/%N%S:${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\"
   CPPFLAGS.Error.c=	-DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
   			-DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
   CPPFLAGS.TMkey.c=	-DXKB
 Index: xsrc/xc/config/cf/NetBSD.cf
 ===================================================================
 RCS file: /cvsroot/xsrc/xc/config/cf/NetBSD.cf,v
 retrieving revision 1.109
 diff -c -r1.109 NetBSD.cf
 *** xsrc/xc/config/cf/NetBSD.cf	23 Dec 2003 16:30:20 -0000	1.109
 --- xsrc/xc/config/cf/NetBSD.cf	18 Jul 2004 12:16:08 -0000
 ***************
 *** 949,951 ****
 --- 949,957 ----
   #ifndef UseRgbTxt
   #define UseRgbTxt	NO
   #endif
 + 
 + /*
 +  * for xpkgwedge
 +  */
 + #define PackageBaseDir		/usr/pkg
 + #define XFileSearchPathDefault	Concat4(PackageBaseDir/%L/%T/%N%C,%S:PackageBaseDir/%l/%T/%N%C,%S:PackageBaseDir/%T/%N%C,%S:PackageBaseDir/%L/%T/%N%S:PackageBaseDir/%l/%T/%N%S:PackageBaseDir/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
 Index: xsrc/xfree/xc/config/cf/NetBSD.cf
 ===================================================================
 RCS file: /cvsroot/xsrc/xfree/xc/config/cf/NetBSD.cf,v
 retrieving revision 1.59
 diff -c -r1.59 NetBSD.cf
 *** xsrc/xfree/xc/config/cf/NetBSD.cf	27 Dec 2003 08:46:58 -0000	1.59
 --- xsrc/xfree/xc/config/cf/NetBSD.cf	18 Jul 2004 12:16:08 -0000
 ***************
 *** 747,749 ****
 --- 747,755 ----
   #define HasDevRandom		YES
   #define RandomDeviceFile	/dev/urandom
   #endif
 + 
 + /*
 +  * for xpkgwedge
 +  */
 + #define PackageBaseDir		/usr/pkg
 + #define XFileSearchPathDefault	Concat4(PackageBaseDir/%L/%T/%N%C,%S:PackageBaseDir/%l/%T/%N%C,%S:PackageBaseDir/%T/%N%C,%S:PackageBaseDir/%L/%T/%N%S:PackageBaseDir/%l/%T/%N%S:PackageBaseDir/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)

 --
 soda

From: Matthias Scheler <tron@zhadum.de>
To: Noriyuki Soda <soda@sra.co.jp>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 14:38:25 +0200

 On Sun, Jul 18, 2004 at 09:20:53PM +0900, Noriyuki Soda wrote:
 > how about this? (I haven't actually built this yet, though...)
 > 
 > Index: src/x11/lib/Xt/Makefile
 > ===================================================================
 > RCS file: /cvsroot/src/x11/lib/Xt/Makefile,v
 > retrieving revision 1.10
 > diff -c -r1.10 Makefile
 > *** src/x11/lib/Xt/Makefile	9 Feb 2004 04:30:05 -0000	1.10
 > --- src/x11/lib/Xt/Makefile	18 Jul 2004 12:16:07 -0000
 > ***************
 > *** 24,30 ****
 >   CPPFLAGS+=	${X11FLAGS.THREADLIB}
 >   CPPFLAGS+=	-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.
 >   
 > ! CPPFLAGS.Intrinsic.c=	-DXFILESEARCHPATHDEFAULT=\"${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\"
 >   CPPFLAGS.Error.c=	-DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
 >   			-DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
 >   CPPFLAGS.TMkey.c=	-DXKB
 > --- 24,33 ----
 >   CPPFLAGS+=	${X11FLAGS.THREADLIB}
 >   CPPFLAGS+=	-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.
 >   
 > ! # XXX should be defined in bsd.own.mk
 > ! PKGBASEDIR=	/usr/pkg

 What about using "LOCALBASE" here? That would make it work for people
 which redefine it in "/etc/mk.conf".

 	Kind regards

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/

From: Noriyuki Soda <soda@sra.co.jp>
To: Matthias Scheler <tron@zhadum.de>
Cc: Noriyuki Soda <soda@sra.co.jp>, gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 21:50:49 +0900 (JST)

 >>>>> On Sun, 18 Jul 2004 14:38:25 +0200,
 	Matthias Scheler <tron@zhadum.de> said:

 >> ! # XXX should be defined in bsd.own.mk
 >> ! PKGBASEDIR=	/usr/pkg

 > What about using "LOCALBASE" here? That would make it work for people
 > which redefine it in "/etc/mk.conf".

 Hmm, that makes sense. I've revised the patch.
 BTW, previous patch had serious mistake, I revised that, too.
 (wwww.. sending patch without testing... ;-))

 Index: src/x11/lib/Xt/Makefile
 ===================================================================
 RCS file: /cvsroot/src/x11/lib/Xt/Makefile,v
 retrieving revision 1.10
 diff -c -r1.10 Makefile
 *** src/x11/lib/Xt/Makefile	9 Feb 2004 04:30:05 -0000	1.10
 --- src/x11/lib/Xt/Makefile	18 Jul 2004 12:49:44 -0000
 ***************
 *** 24,30 ****
   CPPFLAGS+=	${X11FLAGS.THREADLIB}
   CPPFLAGS+=	-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.

 ! CPPFLAGS.Intrinsic.c=	-DXFILESEARCHPATHDEFAULT=\"${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\"
   CPPFLAGS.Error.c=	-DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
   			-DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
   CPPFLAGS.TMkey.c=	-DXKB
 --- 24,34 ----
   CPPFLAGS+=	${X11FLAGS.THREADLIB}
   CPPFLAGS+=	-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I.

 ! # XXX should be defined in bsd.own.mk
 ! LOCALBASE?=	/usr/pkg
 ! LOCALX11LIBDIR=	${LOCALBASE}/lib/X11
 ! 
 ! CPPFLAGS.Intrinsic.c=	-DXFILESEARCHPATHDEFAULT=\"${LOCALX11LIBDIR}/%L/%T/%N%C%S:${LOCALX11LIBDIR}/%l/%T/%N%C%S:${LOCALX11LIBDIR}/%T/%N%C%S:${LOCALX11LIBDIR}/%L/%T/%N%S:${LOCALX11LIBDIR}/%l/%T/%N%S:${LOCALX11LIBDIR}/%T/%N%S:${X11LIBDIR}/%L/%T/%N%C%S:${X11LIBDIR}/%l/%T/%N%C%S:${X11LIBDIR}/%T/%N%C%S:${X11LIBDIR}/%L/%T/%N%S:${X11LIBDIR}/%l/%T/%N%S:${X11LIBDIR}/%T/%N%S\"
   CPPFLAGS.Error.c=	-DERRORDB=\"${X11LIBDIR}/XtErrorDB\" \
   			-DXTERROR_PREFIX=\"\" -DXTWARNING_PREFIX=\"\"
   CPPFLAGS.TMkey.c=	-DXKB
 Index: xsrc/xc/config/cf/NetBSD.cf
 ===================================================================
 RCS file: /cvsroot/xsrc/xc/config/cf/NetBSD.cf,v
 retrieving revision 1.109
 diff -c -r1.109 NetBSD.cf
 *** xsrc/xc/config/cf/NetBSD.cf	23 Dec 2003 16:30:20 -0000	1.109
 --- xsrc/xc/config/cf/NetBSD.cf	18 Jul 2004 12:49:44 -0000
 ***************
 *** 949,951 ****
 --- 949,958 ----
   #ifndef UseRgbTxt
   #define UseRgbTxt	NO
   #endif
 + 
 + /*
 +  * for xpkgwedge
 +  */
 + #define PackageBaseDir		/usr/pkg
 + #define PackageLibX11Dir	PackageBaseDir/lib/X11
 + #define XFileSearchPathDefault	Concat4(PackageLibX11Dir/%L/%T/%N%C,%S:PackageLibX11Dir/%l/%T/%N%C,%S:PackageLibX11Dir/%T/%N%C,%S:PackageLibX11Dir/%L/%T/%N%S:PackageLibX11Dir/%l/%T/%N%S:PackageLibX11Dir/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
 Index: xsrc/xfree/xc/config/cf/NetBSD.cf
 ===================================================================
 RCS file: /cvsroot/xsrc/xfree/xc/config/cf/NetBSD.cf,v
 retrieving revision 1.59
 diff -c -r1.59 NetBSD.cf
 *** xsrc/xfree/xc/config/cf/NetBSD.cf	27 Dec 2003 08:46:58 -0000	1.59
 --- xsrc/xfree/xc/config/cf/NetBSD.cf	18 Jul 2004 12:49:45 -0000
 ***************
 *** 747,749 ****
 --- 747,756 ----
   #define HasDevRandom		YES
   #define RandomDeviceFile	/dev/urandom
   #endif
 + 
 + /*
 +  * for xpkgwedge
 +  */
 + #define PackageBaseDir		/usr/pkg
 + #define PackageLibX11Dir	PackageBaseDir/lib/X11
 + #define XFileSearchPathDefault	Concat4(PackageLibX11Dir/%L/%T/%N%C,%S:PackageLibX11Dir/%l/%T/%N%C,%S:PackageLibX11Dir/%T/%N%C,%S:PackageLibX11Dir/%L/%T/%N%S:PackageLibX11Dir/%l/%T/%N%S:PackageLibX11Dir/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)

 --
 soda

From: Matthias Scheler <tron@NetBSD.org>
To: Noriyuki Soda <soda@sra.co.jp>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: xsrc/26357: XFILESEARCHPATH should have /usr/pkg
Date: Sun, 18 Jul 2004 16:00:11 +0200

 On Sun, Jul 18, 2004 at 09:50:49PM +0900, Noriyuki Soda wrote:
 > Hmm, that makes sense. I've revised the patch.
 > BTW, previous patch had serious mistake, I revised that, too.
 > (wwww.. sending patch without testing... ;-))

 That looks good. Please commit your changes after running builds via "xsrc"
 and "build.sh -x".

 	Thanks for looking into this

 -- 
 Matthias Scheler                                  http://scheler.de/~matthias/
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 24 Apr 2012 03:57:25 +0000
State-Changed-Why:
What became of this?

The last message in the PR is "please commit your changes"; did tha
er, that, get done? If not, do we still need something like this?


State-Changed-From-To: feedback->open
State-Changed-By: soda@NetBSD.org
State-Changed-When: Wed, 25 Apr 2012 01:43:56 +0000
State-Changed-Why:
> The last message in the PR is "please commit your changes";
> did, that, get done?

no, not yet.

> If not, do we still need something like this?

yes. I believe so.
I thought you opposed to do this.  Have you changed your mind?


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/26357 (XFILESEARCHPATH should have /usr/pkg)
Date: Mon, 30 Apr 2012 07:54:36 +0000

 On Wed, Apr 25, 2012 at 01:43:57AM +0000, soda@NetBSD.org wrote:
  > > The last message in the PR is "please commit your changes";
  > > did that, get done?
  > 
  > no, not yet.
  > 
  > > If not, do we still need something like this?
  > 
  > yes. I believe so.
  > I thought you opposed to do this.  Have you changed your mind?

 I don't think I've changed my mind. Things that get installed from
 pkgsrc should work by default.

 I'm not sure it's still needed, though. And even if it is, Joerg's
 been talking about killing off xpkgwedge, and whatever he ends up
 doing may change things too.

 -- 
 David A. Holland
 dholland@netbsd.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.