./pkgtools/pkg_comp, Build packages inside a chroot jail

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.31, Package name: pkg_comp-1.31, Maintainer: jmmv

pkg_comp is a small utility designed to build packages inside a
clean chroot tree.

Some ideas about what to use it for (taken from manpage):
* Build packages for other system versions. For example, build
packages for NetBSD 1.5 while you are running NetBSD current.
* Build packages using different options than your current system
like changing the threading library, COPTS, placement of
configuration files, etc.
* Debug the build process of a package, checking if buildlinks
work properly.
* Avoid autoconf's side effects by keeping a separate chroot for
each project, like one for GNOME2 and another one for KDE3.
* Schedule builds of package sets for several different machines.


Version history: (Expand)


CVS history: (Expand)


   2009-05-13 12:40:24 by Thomas Klausner | Files touched by this commit (1)
Log message:
More closely match man page.
   2009-05-13 12:39:52 by Thomas Klausner | Files touched by this commit (1) | Package updated
Log message:
Sort options. Update example NetBSD versions. Use Nx.
Fix xref.
   2009-04-09 02:48:18 by Joerg Sonnenberger | Files touched by this commit (109)
Log message:
Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.
   2008-10-10 17:56:31 by Stephen Borrill | Files touched by this commit (2)
Log message:
Version 1.31 - make chroot target return its exit status
   2008-06-16 15:19:57 by Joerg Sonnenberger | Files touched by this commit (1)
Log message:
Fix DESTDIR.
   2008-06-12 04:14:58 by Joerg Sonnenberger | Files touched by this commit (1134)
Log message:
Add DESTDIR support.
   2007-10-27 19:11:24 by Stoned Elipot | Files touched by this commit (3) | Package updated
Log message:
Update to version 1.30.

Approved by MAINTAINER, jmmv@.

Add option -N: with the expection of pkgtools/libkver (see manual
page about NETBSD_RELEASE) avoid installation of default packages as well as
INSTALL_PACKAGES and BUILD_PACKAGES during the creation of the chroot.

Note: This is useful for running pbulk in a sandbox created by
pkg_comp as binary packages , possibly very low in the build
dependencies tree like pkgtools/digest, won't be built by pkg_comp
while creating the sandbox hence pbulk won't have to rebuild nearly
all packages otherwise already up-to-date.

The maintainer notes that this seems like abusing pkg_comp to just
create sandboxes. And well... yes indeed!
   2007-01-07 10:14:16 by Roland Illig | Files touched by this commit (412)
Log message:
Mechanically replaced man/* with ${PKGMANDIR}/* in the definition of
INSTALLATION_DIRS, as well as all occurrences of ${PREFIX}/man with
${PREFIX}/${PKGMANDIR}.

Fixes PR 35265, although I did not use the patch provided therein.