pkgsrc-Users archive

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

Re: changing install location

On Wed 13 Apr 2011 at 07:53:52 AM -0700, George Georgalis wrote:
>On Wed 13 Apr 2011 at 07:07:48 AM -0700, George Georgalis wrote:
>>On Wed 13 Apr 2011 at 01:55:37 PM +0200, Benny Siegert wrote:
>>>On Wed, Apr 13, 2011 at 09:01, George Georgalis <> 
>>>> Hi - I'd like to install a set of packages with tag 2011Q1 in
>>>> /usr/pkg-2011Q1 while I continue to use an older tag in /usr/pkg
>>>You should be able to do this easily with bootstrap, I think:
>>>cd /usr/pkgsrc/bootstrap ; ./bootstrap --prefix /usr/pkg-2011Q1
>>>--pkgdbdir /usr/pkg-2011Q1/db
>>>Ideally, make sure that your existing /usr/pkg is not in your PATH
>>>when you run the command and when you install 2011Q1 packages. Maybe
>>>you can define a shell alias that switches the PATH around. The
>>>pkgtools installed in /usr/pkg-2011Q1/bin will use the right database
>>>and prefix.
>>That looks more representative of what I'm trying to do :)
>Well the bootstrap went fine,
>./bootstrap --prefix /usr/pkg-2011Q1 --pkgdbdir /usr/pkg-2011Q1/db
>and my new path is now set via /etc/profile, but my first package
>seems to use the old db?
I guess I gotta set these too...
export LOCALBASE=/usr/pkg-2011Q1
export PKG_DBDIR=/usor/pkg-2011Q1/db

but now I get some new problems...
some packages are installing properly
in the new prefix but others seem to
identify packages installed already
from the standard prefix...

===> Installing for netcat-1.10nb3
=> Creating installation directories
/usr/bin/install -c -s -o root -g wheel -m 555 /usr/pkgsrc/net/netcat/work/nc 
/usr/bin/install -c -s -o root -g wheel -m 555 
/usr/pkgsrc/net/netcat/work/data/data  /usr/pkg-2011Q1/sbin/nc-data
/usr/bin/install -c -s -o root -g wheel -m 555 
/usr/pkgsrc/net/netcat/work/data/rservice  /usr/pkg-2011Q1/sbin/nc-rservice
/usr/bin/install -c -s -o root -g wheel -m 555 
/usr/pkgsrc/net/netcat/work/data/xor  /usr/pkg-2011Q1/sbin/nc-xor
/usr/bin/install -d -o root -g wheel -m 755 /usr/pkg-2011Q1/share/examples/nc
/usr/bin/install -c -o root -g wheel -m 444 /usr/pkgsrc/net/netcat/files/nc.1  
=> Automatic manual page handling
=> Registering installation for netcat-1.10nb3
+ cd /usr/pkgsrc/net/nmap
+ make install
+ cd /usr/pkgsrc/sysutils/pftop
+ make install
=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Skipping vulnerability checks.
WARNING: No /usr/pkg-2011Q1/db/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg-2011Q1/sbin/pkg_admin -K /usr/pkg-2011Q1/db 
=> Checksum SHA1 OK for pftop-0.7.tar.gz
=> Checksum RMD160 OK for pftop-0.7.tar.gz
===> Installing dependencies for pftop-0.7nb1
=> Full dependency osabi-NetBSD-5.0_STABLE: NOT found
=> Verifying reinstall for ../../pkgtools/osabi
ERROR: [] A package matching ``osabi-NetBSD-5.0_STABLE'' should
ERROR:     be installed, but one cannot be found.  Perhaps there is a
ERROR:     stale work directory for ../../pkgtools/osabi?
*** Error code 1

make: stopped in /usr/pkgsrc/sysutils/pftop

If bootstrap, and LOCALBASE PKG_DBDIR is not enough
are the paths hard coded?

And what about that failed dependancy???


Home | Main Index | Thread Index | Old Index