Subject: Re: base install path of pkgsrc
To: NetBSD User's Discussion List <netbsd-users@netbsd.org>
From: Alistair Crooks <agc@pkgsrc.org>
List: netbsd-users
Date: 01/08/2002 10:32:20
On Mon, Jan 07, 2002 at 05:26:44PM -0500, Greg A. Woods wrote:
> [ On Monday, January 7, 2002 at 23:23:27 (+0100), Wojciech Puchar wrote: ]
> > Subject: Re: base install path of pkgsrc
> >
> > > > How to change the install path from "/usr/pkg" to "/usr" if I am going to install the
> > > > package from the /usr/pkgsrc.
> > >
> > > Hi,
> > >
> > > I would advise against doing this. You will probably break something in
> > > the NetBSD base install if you do.
> > 
> > how to make packages that installs at /usr/X11R6 to install in /usr/pkg?
> 
> Set USE_LOCALBASE_FOR_X11 in /etc/mk.conf

Well, you could do that, but I'm not sure it would make much difference.

[9:17:10] agc@dmz0 /usr/pkgsrc/mk 8 > grep USE_LOCALBASE_FOR_X11 *
[9:17:17] agc@dmz0 /usr/pkgsrc/mk 9 >

Excerpts from the cvs log for bsd.pkg.mk:

----------------------------
revision 1.494
date: 2000/07/03 14:47:11;  author: agc;  state: Exp;  lines: +5 -6
Don't bother defining an internal _USE_LOCALBASE_FOR_X11 variable - it's
not necessary. ".if ${X11PREFIX} == ${LOCALBASE}" works just as well.
----------------------------

----------------------------
revision 1.489
date: 2000/06/28 15:02:31;  author: agc;  state: Exp;  lines: +13 -6
Remove the user setting of the USE_LOCALBASE_FOR_X11 definition.
(Users can still set it if they want, but it won't make much
difference).

In bsd.pkg.mk, check for the presence of the xpkgwedge package to
determine whether to use LOCALBASE for X11 programs.  Set
_USE_LOCALBASE_FOR_X11 (an internal definition) if xpkgwedge is
installed. Remove BUILD_DEPENDS on xpkgwedge (it would always have
been true anyway).

Add a new X11PREFIX definition, which reflects the PREFIX for X11
packages, and set it to LOCALBASE or X11BASE accordingly.

Remove all references to USE_LOCALBASE_FOR_X11 from the xpkgwedge
package.

In all, make the installation of xpkgwedge a tad less clumsy.
----------------------------

The way that I usually do it is by installing the pkgsrc/pkgtools/xpkgwedge
package.

Regards,
Alistair