234 Commits
Author SHA1 Message Date
John McQuah 1cc3d165c9 prt-auf: cache the active drivers under /etc/ports 2026-04-30 16:50:32 +00:00
John McQuah 0d8328eb8b prt-auf: determine full path to package using regex on pkgmk output
This patch addresses the design flaw pointed out by Vitaly in 2016,
where two independent interpreters were reading the same file(s)
and coming to different conclusions about the location of the built
package. The coupling between programs is now much more fragile,
though. Only by ensuring stability of the user-facing layer
(specifically how the success of a build is reported) can we guarantee a
regex match with the current pattern. Changes to the user-facing layer
of pkgmk will require corresponding changes to the regex matching here.

Commit 4145a63e (delegate to pkgmk) also addressed the problem of two
independent parsers, but that solution is no longer viable when pkgmk is
invoked under rootlesskit. Defining in /etc/prt-get.conf the line
"addcommand doas /usr/bin/pkgadd" leads to problems when pkgmk inside a
user namespace is told to run this addcommand on the built package.
Specifically, inside the user namespace the file /etc/doas.conf appears
to have the wrong owner. Rather than fiddle with /etc/subuid and
/etc/subgid to fix the apparent owner, it seems more viable in the long
run to revert the delegate-to-pkgmk solution, and move the eventual
pkgadd invocation back to the parent process.
2026-03-25 11:24:11 +00:00
John McQuah 5e2d4c39d5 pkgmeek: trivial whitespace changes
extend the lookup table for compression modes
2026-03-25 11:14:46 +00:00
John McQuah 2f8c3124cf pkgfile.5: recommend filesystem tests instead of prt-get isinst tests 2025-11-09 18:13:20 +00:00
John McQuah 4145a63e04 prt-auf: delegate install/update to pkgmk
avoid having multiple independent parsers of /etc/pkgmk.conf
2025-11-09 18:12:04 +00:00
John McQuah 8f7c8f592b firefox and sndio env vars: minor updates 2024-09-08 20:08:16 +00:00
John McQuah f7ffaabe8b prt-auf: refactor the list_ports subroutine 2024-09-07 15:44:27 +00:00
John McQuah e39224cd61 pkgmeek: respect -kw flag even before building 2024-09-07 15:44:27 +00:00
John McQuah 2dbcad710d firefox and sndio env vars: initial draft 2024-09-07 15:44:27 +00:00
John McQuah 64073e3035 katana-handle2: uploaded photo 2024-04-27 21:00:02 +00:00
John McQuah 08b4123493 katana-handle: uploaded photo 2024-04-27 20:55:48 +00:00
John McQuah e57593ca44 prt-auf: treat the remove command as a string, not a list 2024-03-22 00:01:26 +00:00
John McQuah 71597add39 prt-auf: respect aliases when determining the list of orphans 2024-03-16 19:10:28 +00:00
John McQuah 2aea62227c git-driver: expand the short status code for renamed files 2024-02-13 15:20:13 +00:00
John McQuah 1ef86cb3ec pkgmeek: strip binary files using multiple threads 2024-02-13 15:18:18 +00:00
John McQuah 750e998c93 prt-auf: respect non-whitespace separators when reading optional dependencies 2024-02-13 15:16:20 +00:00
John McQuah 0a61682b93 prtcheck: consolidate tests of mandatory Pkgfile vars 2024-02-13 15:11:04 +00:00
John McQuah e9ba2b5909 prtwash: escape metacharacters in pkgfile variables 2024-02-13 15:08:54 +00:00
John McQuah dfe2a87820 prtrej: use cmp instead of diff 2024-02-13 15:07:46 +00:00
John McQuah c749f5c595 prt-auf: add sync command 2023-11-29 01:10:28 +00:00
jmq 56a8fc12d4 pkgfoster: small refactoring 2023-11-29 01:07:03 +00:00
jmq 15a8fcc3f3 oldfiles: document the use of config file to protect pkg-get index 2023-11-29 00:40:57 +00:00
jmq 79dbac7647 pkgmeek: add some pattern-matching functions
(for better pkgmk compatibility)
2023-11-16 23:56:53 +00:00
jmq 9f5096eb27 prtwash: use stricter regex to identify latest built package 2023-11-16 23:54:02 +00:00
jmq bb58beecda prt-auf: add support for rmlog_on_uninst 2023-09-25 17:48:02 +00:00
jmq 1ea7303305 pkgmeek: cleanup work after reporting footprint mismatch 2023-09-25 17:47:25 +00:00
jmq c23eb319d3 bread recipe: initial import 2023-09-24 20:38:13 +00:00
jmq 20d78a4e0d upload baking photos 2023-09-24 17:27:55 +00:00
jmq dff03f9b00 prt-auf: report the targets omitted from an install transaction 2023-09-14 05:42:17 -04:00
jmq 0c301f6387 protect maintainer-clean-footprint from being deleted by prtwash,prtsweep 2023-09-13 07:53:36 -04:00
jmq f91912b1f7 prtcheckmissing: new subroutine to check permissions (FS#63) 2023-09-13 07:51:39 -04:00
jmq 14d8e4257a ports drivers for git and rsync: initial import 2023-09-13 07:50:33 -04:00
jmq 9f2bfaa011 oldfiles: initial import 2023-09-06 09:56:07 -04:00
jmq fe29385053 prtrej: initial import 2023-09-06 09:55:30 -04:00
jmq ec3c8f87ab prt-get.8: revise the examples section 2023-08-24 19:55:13 -04:00
jmq ae41c77bd4 prt-auf: guard against using invalid keys in a hash 2023-08-24 19:20:40 -04:00
jmq ab4a9ee6fd pkgmeek: accommodate verbose output from signify 2023-08-20 19:52:16 -04:00
jmq a9fb36fff0 prt-auf: more robust handling of whitespace in the dependency line 2023-08-19 16:42:37 -04:00
jmq 6bce0f06f5 pkgmeek: pass the -p flag to signify only when --public-key is given 2023-08-19 16:41:28 -04:00
jmq a34fa96166 prtwash, prtsweep: add author and copyright 2023-08-07 10:38:45 -04:00
jmq 495ce0457f prtsweep.pl: fall back to md5sums if signature file is not found 2023-08-07 08:50:12 -04:00
jmq 9ca23cc68d prtwash.pl: use a hash map to test files against the keeplist 2023-08-07 08:46:44 -04:00
jmq c04e9cf3e8 pkgmeek: explicitly choose the compression mode for the created package
(workaround for buggy pkginfo -f)
2023-07-19 14:38:36 -04:00
jmq 9e3c7e2c49 prt-auf: fix function signatures 2023-07-19 14:35:15 -04:00
jmq d48fcba47b pkgmeek: do not try to retain xattrs when unpacking 2023-07-02 20:55:33 -04:00
jmq 69b9a3dc2b prt-auf: prevent locked ports from affecting the exit status of 'diff'
fix some post-transaction reports
2023-07-02 20:54:41 -04:00
jmq 8b6807d7f8 prt-auf: notify user about pre- or post-install scripts in test mode 2023-06-26 09:04:06 -04:00
jmq 7d6795728d pkgmeek: update man-page
restore a needed flag for the bsdtar command
2023-06-26 08:55:39 -04:00
jmq 9d4f22e6d1 prt-auf: respect the --run-scripts flag
update the man-page
2023-06-22 17:44:51 -04:00
jmq 801587943d prt-auf.8: fix indentation 2023-06-20 11:58:23 -04:00