pkgsrc-Users archive

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

Re: Two pkcsrc installations in parallel?



On 04/25, Benny Siegert wrote:
> Totally possible, as long as you choose two different prefixes and DB
> directories. You use the bootstrap script to set up the second instance and
> build using Blake from the correct directory instead of make.
> 
> Bootstrap also allows setting --varbase so there is no conflict for the
> stuff in /var either.

You also have to be mindful of two other things, I think:

1. RCD_SCRIPTS_DIR in mk.conf

     https://github.com/NetBSD/pkgsrc/blob/trunk/mk/init/rc.d.mk

   defaults to

     /etc/rc.d

   With parallel instances of pkgsrc, installing the same package from
   each instance would conflict since they would both default to the
   same path.

   As an aside, I would actually wish for this variable to default to

     ${PKG_SYSCONFBASEDIR}/rc.d

   (Or should that variable be PKG_SYSCONFBASE?)  The idea is that I
   would wish for the default to be relative to the pkgsrc prefix.

2. There is also at least one package that does not respect the pkgsrc
   prefix and installs outside of it:

     shells/standalone-tcsh

   With parallel instances of pkgsrc, installing this same package from
   each instance would conflict since they both default to the same
   path.  I don't know if there are other packages that ignore the
   pkgsrc prefix, but if there are, they would conflict also.

   As an aside, I wish there were a STANDALONE_PREFIX variable or
   something that would default to a path relative to the pkgsrc prefix
   (e.g., "$PREFIX/stand" or just "$PREFIX") and that could be set to
   "/" by those who want to install outside of the pkgsrc prefix.

Lewis


Home | Main Index | Thread Index | Old Index