176 Commits

Author SHA1 Message Date
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
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
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
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
56a8fc12d4 pkgfoster: small refactoring 2023-11-29 01:07:03 +00:00
15a8fcc3f3 oldfiles: document the use of config file to protect pkg-get index 2023-11-29 00:40:57 +00:00
79dbac7647 pkgmeek: add some pattern-matching functions
(for better pkgmk compatibility)
2023-11-16 23:56:53 +00:00
9f5096eb27 prtwash: use stricter regex to identify latest built package 2023-11-16 23:54:02 +00:00
bb58beecda prt-auf: add support for rmlog_on_uninst 2023-09-25 17:48:02 +00:00
1ea7303305 pkgmeek: cleanup work after reporting footprint mismatch 2023-09-25 17:47:25 +00:00
dff03f9b00 prt-auf: report the targets omitted from an install transaction 2023-09-14 05:42:17 -04:00
0c301f6387 protect maintainer-clean-footprint from being deleted by prtwash,prtsweep 2023-09-13 07:53:36 -04:00
f91912b1f7 prtcheckmissing: new subroutine to check permissions (FS#63) 2023-09-13 07:51:39 -04:00
14d8e4257a ports drivers for git and rsync: initial import 2023-09-13 07:50:33 -04:00
9f2bfaa011 oldfiles: initial import 2023-09-06 09:56:07 -04:00
fe29385053 prtrej: initial import 2023-09-06 09:55:30 -04:00
ae41c77bd4 prt-auf: guard against using invalid keys in a hash 2023-08-24 19:20:40 -04:00
ab4a9ee6fd pkgmeek: accommodate verbose output from signify 2023-08-20 19:52:16 -04:00
a9fb36fff0 prt-auf: more robust handling of whitespace in the dependency line 2023-08-19 16:42:37 -04:00
6bce0f06f5 pkgmeek: pass the -p flag to signify only when --public-key is given 2023-08-19 16:41:28 -04:00
a34fa96166 prtwash, prtsweep: add author and copyright 2023-08-07 10:38:45 -04:00
495ce0457f prtsweep.pl: fall back to md5sums if signature file is not found 2023-08-07 08:50:12 -04:00
9ca23cc68d prtwash.pl: use a hash map to test files against the keeplist 2023-08-07 08:46:44 -04:00
c04e9cf3e8 pkgmeek: explicitly choose the compression mode for the created package
(workaround for buggy pkginfo -f)
2023-07-19 14:38:36 -04:00
9e3c7e2c49 prt-auf: fix function signatures 2023-07-19 14:35:15 -04:00
d48fcba47b pkgmeek: do not try to retain xattrs when unpacking 2023-07-02 20:55:33 -04:00
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
8b6807d7f8 prt-auf: notify user about pre- or post-install scripts in test mode 2023-06-26 09:04:06 -04:00
7d6795728d pkgmeek: update man-page
restore a needed flag for the bsdtar command
2023-06-26 08:55:39 -04:00
9d4f22e6d1 prt-auf: respect the --run-scripts flag
update the man-page
2023-06-22 17:44:51 -04:00
c2583c3642 prt-auf: clean up whitespace; improve documentation 2023-06-20 11:32:09 -04:00
b690906b27 pkgmeek: handle errors more flexibly in make_signature() 2023-06-13 16:02:22 -04:00
01bba80566 pkgmeek: automatically create new signature if one is not present, similar to how footprints are handled 2023-06-12 13:14:03 -04:00
b740564de5 prt-auf: fix the return type in uninstall() 2023-06-10 09:22:34 -04:00
da3539c83a prtorphan.awk: initial import 2023-06-09 14:14:44 -04:00
64a5505821 prt-auf: expand the documentation of --install-root 2023-06-09 14:03:36 -04:00
a76248a9cb prt-auf: respect --install-root when running pre- and post-install scripts 2023-06-02 15:17:14 -04:00
99d51f625d prt-auf: replace Fun's algorithm with a depth-first search 2023-05-25 16:00:33 -04:00
bc438288c5 prt-auf: use Fun's algorithm instead of Kahn's 2023-05-24 08:57:02 -04:00
646e3b74a3 prt-auf: minor optimization in the softdep sorting algorithm 2023-05-19 17:37:10 -04:00