-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
=> Running test suite with PKGIN=/home/riastradh/pkgsrc/pkgin/build/x86_64--netbsd9/prefix/bin/pkgin
autoremove.bats
✗ autoremove install initial packages
(in test file suite/autoremove.bats, line 97)
`[ $status -eq 0 ]' failed
1 processing remote summary (http://localhost:14067)...
2 database for http://localhost:14067 is up-to-date
3 empty available packages list
✓ autoremove switch repository
✓ autoremove force pkgdb update
✓ autoremove perform pkgin upgrade
✗ autoremove run pkgin autoremove
(from function `line_match' in file suite/common.bash, line 501,
in test file suite/autoremove.bats, line 162)
`line_match 0 "1 package.* to be autoremoved"' failed
1 all packages are marked as "keepable"
2 .
✗ autoremove verify pkg_info
(from function `compare_output' in file suite/common.bash, line 454,
from function `compare_pkg_info' in file suite/common.bash, line 464,
in test file suite/autoremove.bats, line 170)
`compare_pkg_info "pkg_info.final"' failed
1 --- /home/riastradh/pkgsrc/pkgin/test-suite/exp/autoremove/pkg_info.final 2023-12-18 17:53:46.902985999 +0000
2 +++ /tmp/bats-run-INQv5e/autoremove/pkg_info.final 2026-01-06 03:33:43.038872849 +0000
3 @@ -1,2 +1 @@
4 base-1.0 Base package for initial installation
5 -upgrade-2.0 Package should be upgraded
Some investigation revealed that touch -d ... does work properly for the ISO8601-based syntax prescribed in POSIX.1-2008, because of NetBSD PR standards/59888: touch(1) parses dates wrongly, so the pkg_summary file was made older than it should have been by a few hours, leading pkgin to think it's up-to-date when it's not.
Fortunately, touch -t ..., which is an older notation, works in netbsd-9 and netbsd-10 and probably everywhere else too, even if it's not as nice as the strict ISO8601 subset for touch -d ....
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels