Commit graph

159 commits

Author SHA1 Message Date
Mathieu Arnold
8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00
Bryan Drewery
2ad59ab084 - Update to 3.0-1641-gf976ae1
Changes:
   - Fix error starting up when jail contains ':' (or other special characters)
2016-02-16 17:01:44 +00:00
Bryan Drewery
cbc5818542 - Update to 3.0-1639-ga5325bf
Changes:
  - Optimize jail startup/cloning/rollback and mtree comparisons.
  - api: Make more useful
  - check_fs_violation: Use mktemp rather than hard-coded tmpfile
  - Fix false-positive 'Leftover processes' warning after disabling jexecd
  - Conditionalize the jexec logic around USE_JEXECD and add back missing jkills.
  - QEMU: Remove _MAKE_JOBS not present in release-3.1 and noted to break
    builds by sbruno
  - Kill processes before remounting/rolling back the builder FS, rather than
    after.
  - jail -c: Support older FREEBSD_HOST=ftp.freebsd.org URL schemes still. [1]
  - jail -c: Support pre-distributed MANIFESTs for checksum comparing.

PR:		206848 [1]
2016-02-16 00:14:38 +00:00
Bryan Drewery
651d23fa1c Enable ZSH option by default 2016-02-09 00:07:53 +00:00
Bryan Drewery
b1d21a4c2e - Update to 3.0-1609-g7147a70
Changes:
 - jail -c: Always copy in QEMU emulator, even if not building from src.
 - jail -c: Ensure MANIFEST is not empty or give an error.
 - Clear CMD_ENV to disallow sneaking in environment vars
 - Update libnv to the latest head @ r293361
 - Update sh from head @ r293359
 - Null-mount read-only /rescue and /nxb-bin into the jails as they will not
   change.
 - Add a MUTABLE_BASE option (default yes) to experiment with null-mounting of
   base.
 - Prefer https://download.FreeBSD.org for snapshot downloads from FreeBSD.
 - Remove duplicate NM from make.nxb.conf.
2016-01-27 19:56:35 +00:00
Baptiste Daroussin
c387f93b28 Fix default svn url for ports
Reported by:	many
Pointy hat:	bapt
2015-12-31 12:50:32 +00:00
Bryan Drewery
89c08f63ee - Update to 3.0-1596-g9dc9ca4
Changes:
  - jail -d: If stdin is a TTY, confirm before removing jail.
  - Disable rexec/jexecd for now as it has issues on <head and seems racy on
    head as well, possibly leading to "Unable to execute id(1) in jail."
  - QEMU: Use host pkg-static in the jail for repo to speed it up.  For
    this PKG_REPO_FROM_HOST=yes may be needed on mips.
2015-12-04 16:42:29 +00:00
Bryan Drewery
9db7964a0e Revert usage of -x for rm(1) for now due to 9.x not having it. 2015-11-30 17:26:50 +00:00
Bryan Drewery
869a663eae - Update to master branch checkin 1e0fd46149f9e17e12dadcdd0a28ef40b06587aa
This brings in almost a year of updates that had been held back.

Changes: https://github.com/freebsd/poudriere/wiki/release_notes_32

  - New sub-command 'image' which is still in development, for generating
    install images.
  - Some poudriered fixes, but it is still experimental.
  - DISTFILES_CACHES may be 'no' to use distfiles/ from ports tree.
  - A cache daemon has been added in, off by default, for experimentation.
  - The ports 'environment' feature from Mk/Scripts/functions.sh:export_ports_env
    is used for dependency gathering now, which avoids 8 or so fork/execs for
    every make -V call.

  jail:
    - New -K [KERNCONF] flag to build and install a kernel into the jail.
    - New -S <path> flag to specify what srcpath to use from the master jail,
      rather than /usr/src.
    - Git support.
    - New -U flag to specify what url to fetch from for git and svn.
    - EXTRA_DISTS added to add to the distribution list fetched/extracted, from
      poudriere.conf.
    - NO_LIB32 added, when set to 'yes' skips installing lib32 distribution.

  ports:
    - Support '-m none' to disable portsnap usage.
    - New -U flag to specify what url to fetch from for git and svn.

  Build process handling:
    - A jexecd process is spawned in the jail and communicated with via rexec
      using a pipe.  This is intended to lessen the jail locking contention,
      allow more easily cleaning up processes, and limiting of TTY.  It is
      still considered experimental.
2015-11-25 17:27:05 +00:00
Bryan Drewery
90d937a2c2 Update to 3.1.9-30-g47b14b7
Changes:
  - Fix 'builder stop' hook, which never worked.
  - Don't transcend mount directories when running rm -rf
  - Stop exporting MY_JOBID
  - Run 'builder stop' hook always in stop_builder() [this means the hook
    runs at startup as well to clean out stale builders].
  - Enable post-mount jail hooks.
2015-11-23 17:29:31 +00:00
Bryan Drewery
ec0e72e4ad Update to 3.1.9-22-ga91b224.
Unless something major is wrong here, this will be 3.1.10 and the next update
to -devel *will be* master which has a year of pending updates.

Changes:
  -Always call make by absolute path of /usr/bin/make.
  -Update stale comment about MFS
  -Fun things happen with /nonexistent exists. Ensure it doesn't.
  -testport: Allow -o to be optional.
  -Mark poudriere-queue experimental.
  -Using ccache on 10+ is fine so long as we use a PATH.
  -XDEV: Don't endlessly append to make.conf on updates.
  -Fix leftover lock file in /tmp at cleanup
  -Support in-tree ccache for buildworld on recent head
  -Always use the FAST_DEPEND option for buildworld.
  -Go crazy, use -j for installworld targets on recent head
  -Allow comments on the same line with port entries in blacklist
2015-11-09 17:14:12 +00:00
Bryan Drewery
2dd1601dae - Update to 3.1.9
Changes: https://github.com/freebsd/poudriere/wiki/release_notes_319

  - Fix handling of ports dependencies without a PORTSDIR
  - jail -c: Fix fetching when TARGET does not match TARGET_ARCH
2015-10-14 21:06:00 +00:00
Bryan Drewery
373caa805d - Update to 3.1.7-54-g6b5b90c
Changes:
  - Fix cases where /var/db/freebsd-update was not being ignored.
  - Fix crash from 'make showconfig'
2015-09-15 15:48:40 +00:00
Bryan Drewery
0ac6456add - Update to 3.1.7-52-g1988cd4
Changes:
  - Support new pkg bootstrap PUBKEY signature format.

PR:		202622
2015-09-14 23:35:25 +00:00
Bryan Drewery
2ef6d8d856 Add missed distinfo for r393626 2015-09-03 18:38:18 +00:00
Bryan Drewery
8f08c1740b Update to 3.1.7-51-ga3fb251
Changes:
  - Remove old references to the fossil site and point to github.
  - options: Override LOCALBASE to prevent pollution from
    LOCALBASE/etc/perl5_version. Also use which(1) to find
    some helper tools.
  - Avoid SIGINFO crash in startup

As long as this is stable, this will be release as 3.1.8. The next update will
then be an update from master, holding the 3.2 code.
2015-09-03 17:52:39 +00:00
Bryan Drewery
d7eb465606 - Update to 3.1.7-41-gb7d0543
Changes:
  - bulk -c: Restore previous behavior with log deletion. Don't wipe out ALL
             logs, only delete the ones for the given build. This change
             almost inadvertently wiped out all logs and violates POLA at
             this point.
  - bulk -c: Fix it, it wouldn't start.
  - Misc cleanups
2015-08-05 23:06:38 +00:00
Bryan Drewery
7aa35def9b - Update to 3.1.7-34-g1c90084
Changes:
  - jail: check the directory for method src=
  - csup has been deorbited from the project
  - Test to make sure $SVN_CMD is actually set before trying to use it.
    Improve test and error message for detecting if svn is installed.
  - jail -x: Run native-xtools from /usr/src for now.
  - Remove EOL 8.3 support
  - Run 'jail start' hook before any 'make' commands.
  - jail -m src: Fix handling of cross-compile by setting proper TARGET/TARGET_ARCH
  - Remove use of SVN mirrors.
  - Fix need_emulation to only check TARGET_ARCH against kern.supported_archs.
  - Let KEEP_OLD_PACKAGES work on 9.x/8.4 with sort(1) lacking -V [1]
  - Fix typo in poudriere.8
  - Correct typo in poudriere -p help output

PR:		193732 [1]
2015-08-04 19:45:33 +00:00
Bryan Drewery
0144377185 Update to 3.1.7-15-ge84bac5.
I had intended to update this to master but have not yet fixed a blocking
bug on it.

Changes:
  - status -a: Fix handling of showing older builds.
  - QEMU: Add a hack to raise the default build times.
  - Don't crash starting up a job, or otherwise, if the time goes backwards.
  - blacklist: Fix loading of JAIL-SETNAME-blacklist
  - QEMU: Always try loading a qemu-blacklist file
  - Add a helper 'clock_monotonic' to use clock_gettime(CLOCK_MONOTONIC)
    rather than non-monotonic 'date +%s'
  - Use monotonic time for calculating durations
  - Add a build.started epoch time.
  - Add a build.ended epoch time that is set in the last HTML json generation.
  - Update sh to FreeBSD r281982
  - Fix build on older FreeBSD due to sh. If F_DUPFD_CLOEXEC is unavailable
    then use system sh.
  - Ignore /var/db/freebsd-update/ too.
2015-06-08 20:37:58 +00:00
Bryan Drewery
e335283ca2 Update to 3.1.7
Changes: https://github.com/freebsd/poudriere/wiki/release_notes_317
 - Restore /usr/sbin and /sbin to PATH lost in 3.1.5
 - HTML: Fix broken log link from 3.1.5
 - Avoid copying /var/db/freebsd-update into build jails
 - QEMU: Fix handling of elftoolchain install for older src checkouts.
2015-05-27 14:44:14 +00:00
Bryan Drewery
58e884a591 Update to 3.1.6
Changes:
  - jail -m src: Fix asking about removing files. This was a bug in 3.1.0. The
    fix came in right after 3.1.5 release.
2015-05-11 15:57:51 +00:00
Bryan Drewery
677d6537a9 Update to 3.1.5
Changes: https://github.com/freebsd/poudriere/wiki/release_notes_315
2015-05-11 14:03:53 +00:00
Bryan Drewery
5f81aa59f7 Update to 3.1.4-71-g652abb7
Changes:
  - Fix running poudriere in a jail due to lack of procctl(2) access.
2015-05-01 17:25:25 +00:00
Bryan Drewery
b02499c80b Update to 3.1.4-70-gea2537e
Changes:
  - Fix testport -o for invalid origins.
  - HTML open tag fixes
  - Fix temporary file creation causing bad 'mv: fastcopy' warnings about
    JSON files.
2015-04-29 05:39:24 +00:00
Bryan Drewery
5f9aedd9d5 No need for bsd.port.options.mk now 2015-04-28 17:27:28 +00:00
Bryan Drewery
50dc2835d5 Update to 3.1.4-62-g431268b
Changes:
  Fix building of HTML json files / an occasional 'mv: fastcopy:' warning.
2015-04-22 16:18:28 +00:00
Bryan Drewery
c93dd5c05c Remove my accidentally committed test for r384436 2015-04-21 18:24:18 +00:00
Bryan Drewery
f1324f8f05 Update to 3.1.4-61-g2259889
Changes:
  Support STRICT_DEPENDS.
2015-04-21 18:20:08 +00:00
Bryan Drewery
811b15052e Update to 3.1.4-60-ga6e4d2b
Changes:
  Fix build with 8.4.
2015-04-21 17:01:50 +00:00
Bryan Drewery
c726dd5df1 Update to 3.1.4-58-gd237819
Changes:
    Fix not setting proper UNAME_m/p for powerpc64 cross build
    Fix qemu builds not setting MACHINE/MARCHINE_ARCH in make.conf
    QEMU: No need to set MACHINE/MACHINE_ARCH in env.
    QEMU: For consistency set UNAME_m/p in jail's login.conf.
    Don't let balance_pool() failure crash a builder.
    Avoid double ln(1) when called in a clean_pool/stop_build failure from build_pkg
    When a build crashes and does not complete, properly cleanup its builder jail.
    bulk queue optimizations
    Call pkg_cache_data in a separate worker. This allows build_pkg() to finish quicker.
    bulk -t/testport: Fix the first package built in a jail not showing its needed shared libraries.
    Disable 'set -x' in some noisy functions
    Rewrite lock_acquire() to not spam 'sleep 0.1'
    SIGINFO: Disable trap when erroring, exiting or in other traps
    SIGINFO: Don't allow running twice, and ignore errors.
    SIGINFO: Hide html_json's sleep(1) SIGINFO output
    Allow TMPFS_DATA to be used for builders too.
    Always protect(1) poudriere and its coprocesses from OOM killer.
    Create temporary files in [MASTER]MNT/.p/tmp when possible rather than /tmp
    Don't ignore SIGINT in bg processes. This should fix cpdup spam on ^C during cloning.
    Fix some interleaved messages during parallel processing.
    Rework stderr prefixer for parallel jobs.
    Don't show 2 errors when failing to get PKGNAME.
    Import and prefer /bin/sh from FreeBSD r281718. This simplifies compatibility and allows job control.
2015-04-20 16:34:00 +00:00
Bryan Drewery
5acb2d8b21 Update to 3.1.3-7-g07740a0
Changes:
  - Run ldconfig -m (/etc/rc.d/ldconfig) on jail startup rather than
    jail creation.
2015-04-10 01:54:02 +00:00
Bryan Drewery
e97430e0b1 Update to 3.1.3-6-g784f9aa
Changes:
  - jail -cx: Fix incorrect hard linking.
  - Support building powerpc from powerpc64 without qemu.
  - Document that '.' is not allowed in -jzp
  - jail_start: Enforce no '.' in -jzp.
2015-04-09 18:55:33 +00:00
Bryan Drewery
ecd4ad78f3 Update to 3.1.3
Changes:
  - Fix deleting jails when using NO_ZFS/TMPFS_ALL is used.
2015-04-04 04:45:06 +00:00
Bryan Drewery
1076dc61a3 Update to 3.1.2
Changes:
  - HTML: Fix JS error processing data.status by improving compatibilty with
    older JSON files.
2015-03-31 17:12:18 +00:00
Bryan Drewery
b095e282a3 Update to 3.1.1-42-g77fcbdb
Changes:
  - jail -u: Fix freebsd-update caring about host `sysctl kern.bootfile`
2015-03-28 01:59:13 +00:00
Bryan Drewery
5d0c7072fa Update to 3.1.1-41-g00ae908
Changes:
  - Fix 'cp: File Exists' and 'identical (not copied)' errors
  - jail -u: Fix freebsd-update for EOL and non-TTY usage
  - ATOMIC_PACKAGE_REPOSITORY: Fix crash if user removes the dir .latest
    refers to
2015-03-26 22:03:24 +00:00
Bryan Drewery
8c9ad9f26a Update to 3.1.1-36-g2c5e0ca
Changes:
  - jail -i: Show 'fs' and 'mnt' values
  - Fix ZFS not rolling back the jail to clean when using TMPFS
2015-03-25 05:30:31 +00:00
Bryan Drewery
d25eacbd97 - Update to 3.1.1-34-g9b5d330
This fixes a realpath warning from all poudriere commands.
2015-03-23 21:17:34 +00:00
Bryan Drewery
4ac087e9d4 Actually there is a harmless warning only. 2015-03-23 21:07:59 +00:00
Bryan Drewery
2cf8453e6d Block this for now as it is not actually running now. 2015-03-23 21:05:41 +00:00
Bryan Drewery
1fd6022b1e - Update to 3.1.1-33-gbf2a55b
(I decided to use 'git-describe --tags' now that USE_GITHUB supports it)

Changes:
 - Allow overriding jail params with JAIL_PARAMS
 - Remove old nxb-bin directory if needed.
 - Fix more cases of running from local checkout
 - Allow all COLOR variables to be overridden in poudriere.conf.
 - testport -c is fixed
 - bulk now creates a copy of /var/db/ports to avoid breakage if the
   directory in /usr/local/etc/poudriere.d/options is touched during a build.
 - XDEV: Remove /bin/sh /bin/csh from the static hardlink list on mips/mips64
   as there are endian issues to work out.
2015-03-23 19:29:01 +00:00
Bryan Drewery
37a1520519 For the new USE_GITHUB with only GH_TAGNAME set default DISTNAME to
include GH_PROJECT/GH_ACCOUNT/GH_TAGNAME. This prevents the distfile
having the same name despite changing one of these values and causing
a bad checksum.

Differential Revision:	https://reviews.freebsd.org/D2103
Reviewed by:	mat
With hat:	bdrewery
2015-03-20 20:07:50 +00:00
Bryan Drewery
738c4f22aa Update to checkin 54183f5f
Changes:
  - When using TMPFS_LOCALBASE (TMPFS_ALL) always try to clone the ref
    jail's LOCALBASE to the builder jail on port build startups. There
    is an optimization to not do this but it is needed for 'jail start'
    hooks that want to customize LOCALBASE. It normally will be a NOP.
2015-03-20 17:52:45 +00:00
Bryan Drewery
db55af0fea Fix the new USE_GITHUB to rename the distfile such that it does not
conflict with the old scheme and cause a "reroll" or "invalid checksums".  This
also avoids clobbering the FreeBSD distcache.

Use a revision in the DISTNAME for USE_GITHUB in case we need to bump this
again for anything. It's more a hint of how to handle it in the future.

Reported by:	mat
Discused with:	mat, antoine, swills
With hat:	portmgr
2015-03-19 20:30:19 +00:00
Bryan Drewery
8271a03f3a Fix accidental change in r381648 2015-03-19 18:13:18 +00:00
Bryan Drewery
010d8c7d9a Remove GITHUB_RELEASE MASTER_SITE from r375010 as it is now redundant with GITHUB.
The new GITHUB MASTER_SITE from r381618 now supports not setting GH_COMMIT and
only having GH_TAGNAME default to DISTVERSION.

All of these ports as-is.

With hat:	portmgr
2015-03-19 18:08:25 +00:00
Bryan Drewery
277ba6661d Convert to new USE_GITHUB 2015-03-19 16:55:30 +00:00
Bryan Drewery
698bbb62a6 Update to checkin 80b7167
Changes:
  - Clean up language of the zsh completion for bulk -c and -C.
  - Manpage fixes
  - jail: Fix handling of games distribution for recent CURRENT.
  - testport: Show error when unable to extract pkg
  - jail -uc: Support a SETNAME-src.conf
  - Add 'builder' start/stop hook. Params: id mnt
  - Add a check to see if id(1) works in the jail.
  - HTML: Show proper percentage in progress bar.
  - Fix creating cpdup ignore files in jail if cpdup is not used (ZFS).
  - Cross-building updates
2015-03-19 15:45:16 +00:00
Dmitry Marakasov
c4a79d6fc9 - Add missing EXAMPLES option
PR:		196244
Submitted by:	amdmi3
Approved by:	bdrewery (maintainer)
2015-03-11 17:33:39 +00:00
Bryan Drewery
d35f39e899 - Update to 3.1.1 which fixes pkg(8) crashing in 8.4 jails.
8.4 jails should be recreated if created with Poudriere 3.1 or
  poudriere-devel-3.0.99.20141117.
2014-12-08 17:15:40 +00:00