Subject: Re: pkg/28510
To: None <,,>
From: Julio M. Merino Vidal <>
List: pkgsrc-bugs
Date: 03/28/2005 08:24:01
The following reply was made to PR pkg/28510; it has been noted by GNATS.

From: "Julio M. Merino Vidal" <>
Cc: Robert Elz <kre@munnari.OZ.AU>,,,
Subject: Re: pkg/28510
Date: Mon, 28 Mar 2005 10:23:39 +0200

 On Mon, 2005-03-28 at 03:34 +0000, Robert Elz wrote:
 >  Adding more baroque env vars into X is just what it doesn't need (and in
 >  any case, any of that requires every user to go set the thing).   Doing
 >  it as suggested in the original PR, and simply having the X build know
 >  where LOCALBASE simply always lives, is way against the normal pkgsrc & NetBSD
 >  philosophy.
 That won't always work.
 Suppose a user installs (as many, many people does) NetBSD+X11 from
 binary sets.  This means that, with your "fix", X11 will look inside
 /usr/pkg/whatever for files.
 Now, that user installs pkgsrc and sets his LOCALBASE to /opt/pkg.
 And there you go.  The "fix" doesn't work any more and he is forced
 to modify the environment.
 Not to mention that, if he has two LOCALBASEs, one in /usr/pkg and one
 somewhere else, X11 will always find, if not told otherwise, the stuff
 in /usr/pkg, thus probably causing confusion to the user.
 Another possible solution is to add a default value for the correct
 environment variables in /etc/profile or something like that, so that
 the user can change them at will, if needed.  After all, /etc/man.conf
 already comes with a default path pointing to /usr/pkg...
 Julio M. Merino Vidal <>
 The NetBSD Project -