pkgsrc-Users archive

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

Re: pkgsrc bootstraps on HP WEBOS! - Solved



I over thought thing too much.

Thomas got me thinking about the enviromentals...

I pared them down to:
PKG_DBDIR=/media/internal/pkg/var/db/pkg
MAKECONF=/media/internal/pkg/etc/mk.conf


and in mk.conf only:
FETCH_USING=            fetch
PKG_DBDIR=              /media/internal/pkg/var/db/pkg
LOCALBASE=              /media/internal/pkg


I noticed during build/install the path was being added to the path:
mkdir /mnt/webos/pkgsrc/pkgtools/digest/work/.destdir/media/internal/pkg/media/internal/pkg/man


Thanks for all the clues!  I learn something here.

- jam


On 3/28/2012 12:06 PM, John Maier wrote:
This is what I used to run bootstrap:

export PKG_DBDIR=/media/internal/pkg/var/db/pkg
export MAKECONF=/media/internal/pkg/etc/mk.conf
export MAKESYSPATH=/media/internal/pkg/share/mk
export LOCALBASE=/media/internal/pkg
export MANPATH=/media/internal/pkg/man

./bootstrap --prefix $LOCALBASE --varbase /media/internal/pkg/var --pkgdbdir $PKG_DBDIR

The bootstrap executed flawlessly....

-  jam

On 3/28/2012 11:59 AM, John Maier wrote:
I've configured the environmental variables:

PKG_DBDIR=/media/internal/pkg/var/db/pkg
MAKECONF=/media/internal/pkg/etc/mk.conf
MAKESYSPATH=/media/internal/pkg/share/mk
LOCALBASE=/media/internal/pkg
MANPATH=/media/internal/pkg/man

Then in $LOCALBASE/etc/mk.conf I've defined:
FETCH_USING=            fetch
PKG_DBDIR=              /media/internal/pkg/var/db/pkg
LOCALBASE=              /media/internal/pkg
VARBASE=                /media/internal/pkg/var
PKG_TOOLS_BIN=          /media/internal/pkg/sbin
PKGMANDIR=              /media/internal/pkg/man


Should I define PREFIX=$LOCALBASE ?


As for the $DESTDIR, I've not configured it, and the fetched files are being stored in ./pkgsrc/distfiles as expected.

- jam

On 3/28/2012 8:56 AM, Thomas Klausner wrote:
On Wed, Mar 28, 2012 at 08:23:20AM -0500, John Maier wrote:
/usr/bin/install -c -o root -g root -m 644 digest.1 /mnt/webos/pkgsrc/pkgtools/digest/work/.destdir/media/internal/pkg//media/internal/pkg/man/man1/digest.1
You have "/media/internal/pkg" in this path twice.

What did you set PREFIX to? Did you modify DESTDIR?

Also, I noticed that all pkg builds are creating binary packages.
When did this become default behavior?
A few months ago when pkgsrc switched to DESTDIR-installation by default.
  Thomas








Home | Main Index | Thread Index | Old Index