pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /var/db/pkg vs /usr/pkg/pkgdb, /usr/sbin/pkg* vs /usr/pkg/sbin/pkg* and default PATH



On 28/11/2020 23:52, Connor McLaughlan wrote:
On Sat, Nov 28, 2020 at 1:56 AM Ottavio Caruso
<ottavio2006-usenet2012%yahoo.com@localhost> wrote:

On 27/11/2020 21:24, Connor McLaughlan wrote:
On Fri, Nov 27, 2020 at 1:52 AM Ottavio Caruso
<ottavio2006-usenet2012%yahoo.com@localhost> wrote:

On 26/11/2020 15:23, Benny Siegert wrote:
On Thu, Nov 26, 2020 at 4:19 PM Mayuresh <mayuresh%acm.org@localhost> wrote:
Sorry, I missed the point. I should not do bootstrap? I thought that's
necessary to get pkgsrc set.

Only on non-NetBSD systems. Think of the NetBSD base as having a
default bootstrap included.


What of you do a second bootstrap on NetBSD? Let's say pkgsrc-current on
top of the stable packages?

--
Ottavio Caruso

If you use a second live pkgsrc on the same system it can only reside
in a location apart from /usr/pkgsrc, /usr/pkg ...

You have to keep all intersections apart and cannot use prebuilt
binary packages from a /usr/pkgsrc build on a /usr/pkgsrc-current,
/usr/pkg-current setup.
So you also have to clear your path variable of reference to /usr/pkg
and replace them with your new second pkgsrc and also bootstrap that
pkgsrc because the build tools and everything will need to be adjusted
to the new paths and will result in building a bmake that knows how to
handle them. So you need to compile and run stuff on the new pkgsrc by
setting up your path and using the correct bmake instead of the system
make.

Still, you're sharing $VARBASE, which, unless set otherwise, defaults to
/var.


--
Ottavio Caruso


Of course..i forgot to mention it...you also set varbase on bootstrap
to completely keep two different pkgsrc installations apart...
So:
Unpack a new pkgsrc tree to for example /usr/upkg
Clean your path from standard pkgsrc path, add the new ones
/usr/upkg/bin:/usr/upkg/sbin
Then bootstrap: ./bootstrap --prefix /usr/upkg --varbase /usr/upkg/var


We're going around in circles here: Pkgsrc defaults to having $VARBASE on /var for all bootstraps. If I have multiple bootstraps and different $PREFIX[es], unless I also set $VARBASE to $PREFIX/var, all bootstraps will share /var/db/*.


--
Ottavio Caruso


Home | Main Index | Thread Index | Old Index