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 08:30:08 AM -0700, George Georgalis wrote:
>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 
>>>><george%galis.org@localhost> wrote:
>>>>> 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...
>

Do packages change the environment outside of the make command?
It would seem this persistant export fixes the problem...

ev () {
export LOCALBASE=/usr/pkg-2011Q1
export PKG_DBDIR=/usr/pkg-2011Q1/db
}

# Base packages
ev && cd /usr/pkgsrc/misc/colorls && make clean-depends install
ev && cd /usr/pkgsrc/editors/vim && make clean-depends install
ev && cd /usr/pkgsrc/misc/screen && make clean-depends install
ev && cd /usr/pkgsrc/net/rsync && make clean-depends install
ev && cd /usr/pkgsrc/net/fping && make clean-depends install
....


Home | Main Index | Thread Index | Old Index