Subject: Re: hardcoded prefix path in pkgtools/pkg_install
To: Jeremy C. Reed <reed@reedmedia.net>
From: Douwe Kiela <virtus@wanadoo.nl>
List: tech-pkg
Date: 09/28/2003 05:22:14
Hey,
>>
./bootstrap --prefix=/usr/local --pkgdbdir=/var/pkgdb --pkgsrcdir=/usr/pkgsr
>> c
>Maybe add --localbase=/usr/local
That doesn't work, --localbase != an argument to ./bootstrap.
>> When I went to /usr/pkgsrc/pkgtools/pkg_install and did "bmake install
>> distclean", it gave me this error:
>>
>> /usr/pkg/sbin/pkg_admin: not found
>That package is built with:
>PREFIX:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
>Which usually defaults to:
>PKG_TOOLS_BIN?= ${LOCALBASE}/sbin
This could be the problem, but it should work when I provide a prefix to
bootstrap-pkgsrc.
My points is, /usr/pkg shouldn't be hardcoded in anywhere in pksrc, anywhere
in pkgsrc.
Regards, Douwe