Subject: Re: how to build a package without installation from pkgsrc
To: Joel CARNAT <joel@carnat.net>
From: Blair Sadewitz <blair.sadewitz@gmail.com>
List: pkgsrc-users
Date: 03/05/2007 19:49:04
There are two methods I use:
1) Easiest, for packages which have user-destdir support:
in mk.conf:
USE_DESTDIR?= yes
DEPENDS_TARGET?= package-install
OR when invoking make to build the package, do:
make package USE_DESTDIR=yes [ DEPENDS_TARGET=package-install ]
If one of the dependencies does not have user-destdir support, just
make depends [ USE_DESTDIR=no ] (the bracketed bit is only necessary
if you've set USE_DESTDIR in mk.conf).
To build and install a
Then, cd ${PKGSRCDIR}/category/package && make package. NOTE: this
will only work if the package has DESTDIR support; nearly all packages
built with GNU_CONFIGURE=yes have PKG_DESTDIR_SUPPORT=user-destdir.
You can check in the package makefile to see if this is defined.
See 'make help topic=DESTDIR' for more information, or ask on the lists.
2) Use pkgtools/pkg_comp; this way you can build any package in a
chroot()'ed environment. See the pkg_comp documentation for more
information.
Good luck,
--blair
--
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>
"The frivolity and boredom which unsettle the established order, the
vague foreboding of something unknown, these are the heralds of
approaching change. The gradual crumbling that left unaltered the
face of the whole is cut short by a sunburst which, in one flash,
illuminates the features of the new world." --G.W.F. Hegel,
_Phenomenology of Spirit_ 5:11