FreeBSD/poudriere 8c91181src/share/poudriere logclean.sh

Merge pull request #1313 from delphij/logclean-1157

logclean: Fix empty build log directory removal with multiple jails
DeltaFile
+1-1src/share/poudriere/logclean.sh
+1-11 files

FreeBSD/poudriere 21a440dsrc/share/poudriere logclean.sh

logclean: Fix empty build log directory removal with multiple jails

When multiple jails are configured, the "Removing empty build log
directories" step fails because the script incorrectly processes the
space-separated MASTERNAMES_LOCKED list.

The issue is that sed appends "/latest-per-pkg" to the end of the
entire space-separated string rather than to each jail name individually.
This results in a malformed path like:
  "neptune-amd64-default odin-amd64-default saturn-amd64-default/latest-per-pkg"

Fix by converting spaces to newlines before the sed operation, ensuring
each jail name gets the suffix appended correctly.

Fixes #1157
DeltaFile
+1-1src/share/poudriere/logclean.sh
+1-11 files

FreeBSD/poudriere f4a68d8src/share/poudriere common.sh

do_confirm_delete: document return statuses
DeltaFile
+4-0src/share/poudriere/common.sh
+4-01 files

FreeBSD/poudriere c9a6ca3src/share/poudriere jail.sh

jail -d: Make code clearer that 'cache_dir' expands.

This was a leftover from an old change that did not hardcode
the cache_dir.

No functional change.
DeltaFile
+4-4src/share/poudriere/jail.sh
+4-41 files

FreeBSD/poudriere 0e80edesrc/share/poudriere jail.sh

jail -d: Ensure cleandir vars expand POUDRIERE_DATA.

No functional change.
DeltaFile
+5-5src/share/poudriere/jail.sh
+5-51 files

FreeBSD/poudriere be2ef10src/share/poudriere jail.sh

jail -d -C: Regenerate HTML json files after trimming logs.

Fixes #694
DeltaFile
+43-21src/share/poudriere/jail.sh
+43-211 files

FreeBSD/poudriere 38cd5b1src/man poudriere-jail.8, src/share/poudriere jail.sh

jail -d: Tweaks; Allow rerunning and multiple -C flags.

- jail -d can now be reran to cleanup any leftover files.
- -C can be specified multiple times.
- Display each dir as it is cleaned up.
- Stop force deleting the cache dir.
- Speedup finding logs by separating out the latest-per-pkg traversal.
- Support cleaning up images.

Issue #694
DeltaFile
+82-36src/share/poudriere/jail.sh
+4-2src/man/poudriere-jail.8
+86-382 files

FreeBSD/poudriere 34ab701src/share/poudriere common.sh

do_confirm_delete: Count files once.
DeltaFile
+2-3src/share/poudriere/common.sh
+2-31 files

FreeBSD/poudriere bb6a574src/share/poudriere jail.sh

jail -d -C wrkdirs: Delete proper wrkdirs directory.

Issue #694
DeltaFile
+1-1src/share/poudriere/jail.sh
+1-11 files

FreeBSD/poudriere 75d5abc. Makefile.am Makefile.in, src/bin poudriere.in

Makefile.am: Fix spelling of PACKAGE_VERSION.

This has no functional change. It actually avoided a
substitution bug.
DeltaFile
+1-1Makefile.am
+1-1Makefile.in
+1-1src/bin/poudriere.in
+3-33 files

FreeBSD/poudriere b30405b. Makefile.am Makefile.in, src/bin poudriere.in

poudriere: Fix substituting default USE_DEBUG
DeltaFile
+1-1src/bin/poudriere.in
+1-1Makefile.am
+1-1Makefile.in
+3-33 files

FreeBSD/poudriere 7cb563esrc/share/poudriere common.sh pkgclean.sh

do_confirm_delete: Cleanup the return statuses.

Make this return either 0 or 1 as normal functions do. This fixes
errors not being detectable.

Add 2 output vars that can communicate what was done.

This also fixes the `pkgclean done` hook to properly pass in whether
files were deleted.
DeltaFile
+46-20src/share/poudriere/common.sh
+13-9src/share/poudriere/pkgclean.sh
+10-10src/share/poudriere/logclean.sh
+6-3src/share/poudriere/distclean.sh
+75-424 files

FreeBSD/poudriere 008709asrc/share/poudriere pkgclean.sh

pkgclean: fix dry-run still generating repo

Fixes: 7c39d9685ae6e4b3f6ffeef713126d290e7d8a42
DeltaFile
+1-1src/share/poudriere/pkgclean.sh
+1-11 files

FreeBSD/poudriere 21c69a4. Makefile.am Makefile.in, src/bin poudriere.in

Makefile.am: Fix spelling of PACKAGE_VERSION.

This has no functional change. It actually avoided a
substitution bug.

(cherry picked from master)
DeltaFile
+1-1Makefile.am
+1-1Makefile.in
+1-1src/bin/poudriere.in
+3-33 files

FreeBSD/poudriere c5afec3src/share/poudriere common.sh

jail_start: MASTERMNT is expected to be set when entering here.
DeltaFile
+3-6src/share/poudriere/common.sh
+3-61 files

FreeBSD/poudriere 7f6df71src/share/poudriere jail.sh common.sh

No reason to export MASTERMNT
DeltaFile
+0-3src/share/poudriere/jail.sh
+2-0src/share/poudriere/common.sh
+0-2src/share/poudriere/pkgclean.sh
+0-2src/share/poudriere/repo.sh
+0-1src/share/poudriere/foreachport.sh
+0-1src/share/poudriere/testport.sh
+2-91 files not shown
+2-107 files

FreeBSD/poudriere f1afd79src/share/poudriere common.sh, src/share/poudriere/include fs.sh

nullfs_paths() does not use the mnt param
DeltaFile
+2-3src/share/poudriere/include/fs.sh
+2-2src/share/poudriere/common.sh
+4-52 files

FreeBSD/poudriere 65c29d3src/share/poudriere common.sh distclean.sh, test common.bulk.sh port_var_fetch.sh

Add inhost()

- Deals with MASTERMNT clearing needs
- Avoids injail()
DeltaFile
+4-9test/common.bulk.sh
+10-0src/share/poudriere/common.sh
+3-3src/share/poudriere/distclean.sh
+2-2src/share/poudriere/options.sh
+0-1test/port_var_fetch.sh
+19-155 files

FreeBSD/poudriere 4aba719test common.bulk.sh common.sh

tests: Simplify OVERLAYSDIR handling.

This removes the MASTERMNT symlink hacks that were shadowed and
not cleaned up properly.

The behavior was only that way because MASTERMNTREL is referenced
in _lookup_port_dir(). It can just be blank though and read from
the git checkout.
DeltaFile
+4-17test/common.bulk.sh
+0-5test/common.sh
+4-222 files

FreeBSD/poudriere 0cdb085src/share/poudriere/include util.sh, test relpath.sh

relpath: Handle local scope clearing of var.
DeltaFile
+48-0test/relpath.sh
+1-1src/share/poudriere/include/util.sh
+49-12 files

FreeBSD/poudriere e98ef8esrc/share/poudriere common.sh, src/share/poudriere/include util.sh

Add in_dir()
DeltaFile
+91-0test/in_dir.sh
+17-8src/share/poudriere/include/util.sh
+8-1test/Makefile.in
+9-0src/share/poudriere/common.sh
+1-0test/Makefile.am
+126-95 files

FreeBSD/poudriere 92b16e4src/share/poudriere common.sh

_mastermnt: cleanup internal style a bit
DeltaFile
+11-8src/share/poudriere/common.sh
+11-81 files

FreeBSD/poudriere bfebf0ftest common.bulk.sh

tests: Fix setup_overlays leaking out 'o' var
DeltaFile
+1-1test/common.bulk.sh
+1-11 files

FreeBSD/poudriere 51ddf75src/share/poudriere common.sh

bulk fetching and -i: must disable pkgbase repo.

A pkgbase jail made by Poudriere will setup a repo named `pkgbase` which
must be disabled to ensure we use the branch passed in PACKAGE_FETCH_BRANCH.

Fixes #1312

(cherry picked from commit 422ff54ea9fcf7ce4feca216e93c8524026393ad)
DeltaFile
+8-0src/share/poudriere/common.sh
+8-01 files

FreeBSD/poudriere 422ff54src/share/poudriere common.sh

bulk fetching and -i: must disable pkgbase repo.

A pkgbase jail made by Poudriere will setup a repo named `pkgbase` which
must be disabled to ensure we use the branch passed in PACKAGE_FETCH_BRANCH.

Fixes #1312
DeltaFile
+8-0src/share/poudriere/common.sh
+8-01 files

FreeBSD/poudriere 6e4cac7src/share/poudriere common.sh

do_confirm_delete: Count files once.

(cherry picked from master)

Conflicts:
        src/share/poudriere/common.sh
DeltaFile
+2-4src/share/poudriere/common.sh
+2-41 files

FreeBSD/poudriere 79bca07src/share/poudriere pkgclean.sh

pkgclean: fix dry-run still generating repo

Fixes: 7c39d9685ae6e4b3f6ffeef713126d290e7d8a42
(cherry picked from master)
DeltaFile
+1-1src/share/poudriere/pkgclean.sh
+1-11 files

FreeBSD/poudriere e035397src/share/poudriere jail.sh

jail -d -C wrkdirs: Delete proper wrkdirs directory.

Issue #694

(cherry picked from master)
DeltaFile
+1-1src/share/poudriere/jail.sh
+1-11 files

FreeBSD/poudriere 5a67b1fsrc/share/poudriere jail.sh

jail -d: Ensure cleandir vars expand POUDRIERE_DATA.

No functional change.

(cherry picked from master)
DeltaFile
+5-5src/share/poudriere/jail.sh
+5-51 files

FreeBSD/poudriere b94c44bsrc/share/poudriere common.sh

Fix distfile caching for flavored ports.

gather_distfiles() used to lookup `make -V ALLFILES` for the given
originspec.  Then it was changed in commit ded8d39bf7 to cache that
information up-front in gather_port_vars().  There is an existing
problem where deps_fetch_vars() uses the flavorless port origin
for originspec, but gather_distfiles() uses the flavored originspec.
That is, deps_fetch_vars() uses `origin` while gather_distfiles()
uses `origin at default`.  The default flavor gets stripped off in
gather_port_vars_port() for some reason.  This problem is avoided
by using the pkgname.

Similarly the pkgname lookup should use get_pkgname_from_originspec()
which deals with this problem.

Fixes: ded8d39bf7 ("bulk: Fetch DISTFILES info from ports upfront.")
Fixes #1302
DeltaFile
+6-6src/share/poudriere/common.sh
+6-61 files