Commit graph

79 commits

Author SHA1 Message Date
jmmv
d09daef189 Update pkg_comp to 2.1:
Changes in version 2.1
======================

**Released on 2019-01-14.**

* Issue 3: Added a new `PBULK_LOG` setting to point at a location that
  holds all build logs, and made the `build` command print out details
  about such logs on success and failure.

* Issue 4: Fixed the installable bootstrap kit generated during a build
  to not leak pkg_comp-internal paths.

* Issue 10: Fixed generation of pkg_summary so that it includes all
  packages and not only those that were explicitly given to the `auto`
  or `build` commands after a clean rebuild of the sandbox.

* PR 20: Fixed the default Git repository from jsonn's to NetBSD's as
  it has moved upstream.

* Added a new `PKG_DEVELOPER` setting to enable pkgsrc development
  from within the sandbox.
2019-01-14 10:53:37 +00:00
jmmv
96e67ea1f2 Fix typo in reference to pkgbuild-user.
Problem found by Ian D. Leroux and reported via private email... a few
months ago.  My bad.
2017-12-09 20:55:48 +00:00
jlam
ed78f0a137 pkgtools/pkg_comp: Correct usage of ${PKG_SYSCONFDIR}.
Package configuration files should be found in ${PKG_SYSCONFDIR},
which can be modified by a user-settable variable.  Look for the
default sandboxctl(8) configuration files in
${PKG_SYSCONFDIR.sandboxctl} if that variable is set, or else in
${PKG_SYSCONFBASE}/sandboxctl.

Fixes problem noted by Iain Hibbert on tech-pkg@.

Bump the PKGREVISION to 2 due to changes in the binary package if
PKG_SYSCONFDIR.pkg_comp is set to a non-default value.
2017-09-02 16:18:56 +00:00
jmmv
ac0c47cb8b Fix sysconfdir settings for pkg_comp.
This allows the default configuration in pkg_comp to properly find the
default configuration of sandboxctl.

Bump PKGREVISION to 1.
2017-04-26 00:48:14 +00:00
jmmv
8623f309ad Hardcode the location of sandboxctl to not rely on the PATH.
Should fix the problems observed in:
http://ftp.netbsd.org/pub/pkgsrc/misc/joerg/20170219.1406/meta/report.html
2017-02-20 11:15:19 +00:00
jmmv
e22e939d47 Readd pkg_comp, now at version 2.0:
**Released on 2017-02-17.**

This is the first release of the pkg_comp project as a standalone
package.  This new release shares no code with previous versions and is
not compatible with them.

The following are the major differences between pkg_comp 2.0 and all
previous releases, which incidentally are the reasons that triggered
this rewrite:

* Support for multiple platforms.

* Use of pbulk to (re)build packages within the sandbox.  This results
  in more reliable incremental builds after pkgsrc updates.

* Support for bootstrap, generating binary kits as part of the builds.

* Better scriptability to allow running from cron(8) trivially.
2017-02-17 21:25:46 +00:00
jmmv
135a5dd16a Move pkgtools/pkg_comp to pkgtools/pkg_comp1.
This is to make room for pkg_comp 2.0, which is coming soon.  The new release
is significantly different from the 1.x series in features (supports multiple
platforms, bootstrap, and pbulk) but also comes with a different configuration
syntax.
2017-02-12 10:48:55 +00:00
agc
0e9ef95c9a Update pkg_comp to 1.38nb1
pkgsrc uses the "BUILD_TARGET" definition internally as the primary
target for building in a package's WRKDIR.  It defaults to "all".
So pkgsrc cd's to ${WRKDIR} and does a "make ${BUILD_TARGET}"

pkg_comp also wants to use the same "BUILD_TARGET" definition
internally for itself to guide the builds for making binary packages.
It's done at a higher level than the pkgsrc definition.  It defaults
to "package".

The use of the same name for two different purposes can cause
pkg_comp to fail to build packages. This commit renames the pkg_comp
definition to be "BUILD_PKG_COMP_TARGET".

With this change in place, my pkg_comp builds now complete successfully.

Bump PKGREVISION for the BUILD_PKG_COMP_TARGET fix
2015-11-21 23:10:27 +00:00
wiz
eeea55b8ce Remove references to xpkgwedge and USE_XPKGWEDGE flag.
Bump version.
2015-08-17 08:18:31 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
obache
79b43f5049 LICENSE=modified-bsd 2014-03-03 04:40:12 +00:00
obache
34637a70ac Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
wiz
784e3c9f4d Remove aperture reference. Bump date. 2013-12-31 17:22:40 +00:00
wiz
b6d125ee08 Use Mt for email addresses. 2013-07-20 21:50:52 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
jmmv
618009b298 Update to pkg_comp 1.37:
- Add the GENERATE_PKG_SUMMARY option to tell pkg_comp to generate a
  pkg_summary.gz file in the packages directory.  Useful to later be
  able to run a packaging tool like pkgin against new binary packages.
2012-05-19 10:54:39 +00:00
jmmv
b56cc68848 Update to 1.36:
- Allow specifying packages by their basename, without a category.  This
  affects the arguments to the 'build' command as well as the list of
  packages provided to AUTO_PACKAGES and BUILD_PACKAGES.
2012-02-27 22:42:26 +00:00
jmmv
cf51f462dc Update to 1.35:
* Fix BUILD_PACKAGES to really support multiple packages.  Reported by
  Ian D. Leroux in private mail.
2010-11-13 16:23:22 +00:00
jmmv
09da11f79d Update to 1.34:
- Remove pkg_install version check and rebuild if outdated.  pkgsrc is
  supposed to do that for us.  Addresses PR pkg/38323.

- Don't bother to explicitly builddigest.  pkgsrc DTRT nowadays when
  PKGSRC_COMPILER includes ccache/distcc.
2010-07-20 16:50:25 +00:00
jmmv
464f85b522 Update to 1.33:
* Make PKG_DBDIR customizable.  This sets the variable in mk.conf, in
  pkg_install.conf and in the environment.
2010-04-15 09:42:45 +00:00
wiz
288552e3c7 Remove trailing space. 2010-04-13 20:59:19 +00:00
jmmv
4c0ca68e76 Update to 1.32:
* Do not force the install target to take a full package name.  pkg_add will
  automatically pick the latest version.

* When building a package as part of makeroot, make sure it actually gets
  installed.  This is to fix a regression with the switch to USE_DESTDIR=yes.
  Otherwise these packages will get rebuilt later on when needed.

* It is common for calls to mktemp to have 6 placeholders in the template,
  not 4.  Make it so.
2010-04-13 16:46:01 +00:00
wiz
b1515beca9 More closely match man page. 2009-05-13 10:40:24 +00:00
wiz
12256aca25 Sort options. Update example NetBSD versions. Use Nx.
Fix xref.
2009-05-13 10:39:52 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
sborrill
6f1eaa64f0 Version 1.31 - make chroot target return its exit status 2008-10-10 15:56:31 +00:00
joerg
0eb64b908c Fix DESTDIR. 2008-06-16 13:19:57 +00:00
joerg
ba171a91fa Add DESTDIR support. 2008-06-12 02:14:13 +00:00
seb
2acd20e5db 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-10-27 17:11:24 +00:00
rillig
2829e658f2 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.
2007-01-07 09:13:46 +00:00
seb
73311e458f Update to version 1.29
Ensure that libkver.so is loaded if needed via LD_PRELOAD
for all kind of commands run via the chroot target.

This fix PR pkg/32921.

Approved by MAINTAINER.
2006-06-17 12:18:24 +00:00
jmmv
e06d00cd6b Update to 1.28:
- PKG_SYSCONFDIR cannot be set by mk.conf; it is PKG_SYSCONFBASE.  This was
  correct in one place but incorrect in another.  Fixes PR pkg/33061 by
  Yoshito Komatsu.
2006-03-12 19:36:01 +00:00
jmmv
0cd822b83e Update to 1.27:
- Allow empty variables to be added to the mk.conf file (useful for,
  e.g., BINPKG_SITES).  Requested by Lans Nordlund in private mail.
2006-02-16 13:25:43 +00:00
salo
21686515f8 Welcome to 1.26:
- add MAKEROOT_HOOKS, a whitespace separated list of functions
  or external scripts to be executed after the sandbox is created,
- be more verbose about hooks execution,
- run hooks only when they are defined.

ok <jmmv>
2006-02-10 23:41:20 +00:00
salo
9b0c71935c Add LIBKVER_STANDALONE_PREFIX to _TEMPLATE_VARS so it will appear
in the template. (hi seb!)
2006-02-10 23:36:12 +00:00
seb
5ad846112f Update to version 1.25.
Fix libkver support for pkg_comp's build, auto and install targets,
Reported broken and fix tested by salo@.

Also ensure libkver is built, if needed, even before digest.

Approved by jmmv@
2006-01-06 23:08:51 +00:00
seb
5aa7ec82d4 Update to version 1.24.
When installing libkver, as required when NETBSD_RELEASE is set
in a pkg_comp configuration, do so in a special purpose prefix and use
it from there.
This is useful when running a bulk build in the chroot or simply
removing all installed packages in it: the libkver package won't
be removed hence the chroot will still be usable.

Approved by MAINTAINER.
2005-11-16 01:31:35 +00:00
jmmv
a13cc4da40 Update to 1.23:
- Sync SETS_X11's default value with recent NetBSD versions: xcontrib.tgz
  and xmisc.tgz disappeared while xetc.tgz was added, starting in NetBSD 2.0.
2005-10-02 09:38:39 +00:00
jmmv
27d05a3d93 Update to 1.22:
- Honour INSTALL_PACKAGES during the 'auto' target.  Found by jwise@.
2005-08-23 14:52:58 +00:00
jmmv
c0fc7c293d Update to 1.21:
- Make the EXTRA_MK variable be a list of files rather a single one.
  From brook at biology.nmsu.edu in PR pkg/30099.
- Directly recognize pkg_* commands to be executed within the sandbox
  (i.e., no need to use the chroot keyword).
  From Robert Elz in PR pkg/29749.
- Fix a typo in the manual page.
2005-06-06 18:50:07 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
jmmv
599183622a Drop extra word. 2005-03-20 21:29:05 +00:00
snj
a5aeaadd93 Small grammar fix. 2004-12-29 22:16:22 +00:00
grant
af48e46417 fix X tarball names, we no longer have xcontrib.tgz.
fixes PR pkg/28608 from Ulrich Heilmann.
2004-12-12 01:04:27 +00:00
jmmv
07f6381c77 Update to 1.19 (ok'ed by agc@, as we are in a freeze):
- Ensure that the first attempt to build pkgtools/digest inside the
  chroot works by explicitly setting PKGSRC_COMPILER to gcc (pkg_comp
  assumes NetBSD in lots of places, so this assumption is acceptable).

  It was failing because it set PKGSRC_COMPILER to the empty string in
  the environment, which breaks the build.
2004-06-10 09:16:48 +00:00
jmmv
2d370bcf31 s/netbsd/NetBSD/ in email address. 2004-06-04 16:17:13 +00:00
jmmv
44a715b2b3 Update to 1.18:
- Make kern-GENERIC.tgz part of the default SETS value, so that we get a kernel
  inside the chroot.  If the user removes it from the list, and no /netbsd file
  exists after extraction, create an empty /netbsd kernel.
  This fixes packages that look for a kernel during compilation, like net-snmp.
  Found by cube@.
2004-04-02 18:03:01 +00:00
xtraeme
363fed6288 pkg_comp just works on NetBSD, so use ONLY_FOR_PLATFORM= NetBSD-*-*. 2004-03-10 13:32:39 +00:00
jmmv
41d1ef3661 Update to 1.17:
- Recognize the PKGSRC_COMPILER variable and set it automatically in mk.conf.
- Add the REAL_CCACHE variable: if set, the directory pointed by it will be
  null-mounted inside the chroot in a place known by ccache to store the
  cache.  This is useful to keep it across rebuilds of the sandbox.
  Idea suggested by gavan@.
2004-02-21 13:08:31 +00:00
snj
b838585d87 s/independant/independent/ 2004-02-13 23:52:07 +00:00