FreeBSD/poudriere 9c7ee54. Makefile.in, src/poudriere-sh shm_hash.c builtins-poudriere.def

shm: add new SHASH_USE_SHM, do use a shm instead of files

For 65k ports basically we go from 2.5GB to 160B used saving ~95% of
memory
DeltaFile
+677-0src/poudriere-sh/shm_hash.c
+45-0src/share/poudriere/common.sh
+40-0src/share/poudriere/include/shared_hash.sh
+24-2Makefile.in
+6-6src/share/poudriere/include/pkg.sh
+5-0src/poudriere-sh/builtins-poudriere.def
+797-82 files not shown
+799-98 files

FreeBSD/poudriere 8373958src/share/poudriere jail.sh

jail.sh: Remove extraneous space

(cherry picked from commit 71ac75f61c21d036e24e9e066d89a0779551b075)

Conflicts:
        src/share/poudriere/jail.sh
DeltaFile
+1-1src/share/poudriere/jail.sh
+1-11 files

FreeBSD/poudriere 0068af8src/share/poudriere jail.sh

jail.sh: Re-create clean snapshot after upgrade

Create fresh clean snapshot after upgrading jail using pkgbase

(cherry picked from commit 540a45f765bab62a748f610db524d834ffe70ee7)

Issue #1317
DeltaFile
+1-0src/share/poudriere/jail.sh
+1-01 files

FreeBSD/poudriere dd78c6dsrc/share/poudriere jail.sh

pkgbase: Fix building packages

When updating a jail we first make buildworld/buildkernel and then
we make update-packages.
Since the src.conf/make.conf is now clean after building, if a user have
some custom option in them make update-packages will not know this and will
try to build packages with some non-existant files.

Fixes:  256f4f17a120 ("jail -cu: Don't include build-time make.conf files into jail's clean snapshot")
(cherry picked from commit 50f21876f11ef7703494d3083715653b7df90fbd)

Conflicts:
        src/share/poudriere/jail.sh

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

FreeBSD/poudriere 2f78c0bsrc/share/poudriere jail.sh

jail -cu: Don't include build-time make.conf files into jail's clean snapshot

(cherry picked from commit 256f4f17a12097b15cc2c493c15425b1a21131bb)

Conflicts:
        src/share/poudriere/jail.sh

Fixes #1317
DeltaFile
+22-2src/share/poudriere/jail.sh
+22-21 files

FreeBSD/poudriere 50c5397. configure configure.ac

Regenerate autoconf for 3.4.6
DeltaFile
+10-10configure
+1-1configure.ac
+11-112 files

FreeBSD/poudriere bf6230esrc/share/poudriere common.sh

fix: fs_violation with pkg 2.6.0

(cherry picked from commit a49ac64f7313cf4cc29b3f18a7e1558d9b1b1be2)
DeltaFile
+1-0src/share/poudriere/common.sh
+1-01 files

FreeBSD/poudriere 6eefb6c. Makefile.in, src/libexec/poudriere/write_atomic write_atomic.c mktemp.c

write_atomic: Add a C implementation.

This allows SH=/bin/sh to combine several fork+exec into 1, and cuts
down the test suite time to 1/3rd the time.

mktemp(3) implementation is copied from FreeBSD libc commit 9911028f5.
This is to allow a tempfile created respecting umask, without requiring
excess syscalls to fix the mode.

It replaces these exec patterns:
- mktemp
- chmod
- cmp
- ln or rename
- unlink

This utility is only meant for regular files. It does a rename(2) over
the destination file so special files don't make sense.
DeltaFile
+372-0src/libexec/poudriere/write_atomic/write_atomic.c
+198-0src/libexec/poudriere/write_atomic/mktemp.c
+120-5Makefile.in
+32-2test/write_atomic_cmp-piped.sh
+30-2test/write_atomic_cmp.sh
+23-1test/write_atomic.sh
+775-1010 files not shown
+812-1616 files

FreeBSD/poudriere 20dc590src/share/poudriere common.sh

bulk checksum: Don't retry fetch on failure if networking disabled.

Reported by:    nimaje on IRC
DeltaFile
+9-1src/share/poudriere/common.sh
+9-11 files

FreeBSD/poudriere a49ac64src/share/poudriere common.sh

fix: fs_violation with pkg 2.6.0
DeltaFile
+1-0src/share/poudriere/common.sh
+1-01 files

FreeBSD/poudriere 8126e16src/share/poudriere common.sh

bulk checksum: Don't retry fetch on failure if networking disabled.

Reported by:    nimaje on IRC

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

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.in Makefile.am, 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.in
+1-1Makefile.am
+1-1src/bin/poudriere.in
+3-33 files

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

poudriere: Fix substituting default USE_DEBUG
DeltaFile
+1-1Makefile.in
+1-1Makefile.am
+1-1src/bin/poudriere.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.in Makefile.am, 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.in
+1-1src/bin/poudriere.in
+1-1Makefile.am
+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