Always set a higher priority for repo overrides
Two configuration files for the same repository, with the same priority
(default to 0) but with a different values for `enabled` result in the
actual value of `enabled` to be dependent of the order of evaluation of
the files. This is likely to cause problem one day. Make sure we set
an explicit priority when overriding repositories.
While here, use conistent syntax/style for the configuration files.
(cherry picked from commit e98aa071fa116c61ef3e7c072bb7f84db4426074)
Conflicts:
src/share/poudriere/common.sh
Remove useless environment variable
It seems that was used to tell pkg from which URL to download packages,
but it seems not to be working anymore and as we only have a single
enabled repository with the same URL, we can probably safely remove it.
(cherry picked from commit 30982dc44a3c86216d1abcad5c94b6be901912c5)
Fix fetching packages on FreeBSD 15.0
Older versions of FreeBSD had a single package repository, named
"FreeBSD". FreeBSD 14.3 introduced a second repository for kernel
modules, named "FreeBSD-kmods". FreeBSD 15.0 add support for managing
the base system with packages (aka pkgbase), and to avoid confusion for
users and emphasis they are related to ports and not the base system,
the mentioned repositories were respectively renamed "FreeBSD-ports" and
"FreeBSD-ports-kmods".
In order to fetch latest packages, poudriere tune the "FreeBSD" repo,
and attempts were made to ignore the "FreeBSD-kmods" repository
(#1218, #1228), unfortunately with the changes described above in
FreeBSD 15, it is broken again.
Since fa68587c67ffb59c1c240d53fb16e73788d06cd3, poudriere disable all
official repositories, but that was not done for fetching packages.
Fix this by disabling all known variations of the default FreeBSD
[10 lines not shown]
Always set a higher priority for repo overrides
Two configuration files for the same repository, with the same priority
(default to 0) but with a different values for `enabled` result in the
actual value of `enabled` to be dependent of the order of evaluation of
the files. This is likely to cause problem one day. Make sure we set
an explicit priority when overriding repositories.
While here, use conistent syntax/style for the configuration files.
Remove useless environment variable
It seems that was used to tell pkg from which URL to download packages,
but it seems not to be working anymore and as we only have a single
enabled repository with the same URL, we can probably safely remove it.
Fix fetching packages on FreeBSD 15.0
Older versions of FreeBSD had a single package repository, named
"FreeBSD". FreeBSD 14.3 introduced a second repository for kernel
modules, named "FreeBSD-kmods". FreeBSD 15.0 add support for managing
the base system with packages (aka pkgbase), and to avoid confusion for
users and emphasis they are related to ports and not the base system,
the mentioned repositories were respectively renamed "FreeBSD-ports" and
"FreeBSD-ports-kmods".
In order to fetch latest packages, poudriere tune the "FreeBSD" repo,
and attempts were made to ignore the "FreeBSD-kmods" repository
(#1218, #1228), unfortunately with the changes described above in
FreeBSD 15, it is broken again.
Since fa68587c67ffb59c1c240d53fb16e73788d06cd3, poudriere disable all
official repositories, but that was not done for fetching packages.
Fix this by disabling all known variations of the default FreeBSD
[5 lines not shown]
Revert "testport/bulk -t: Make stage-qa library dependencies check fatal."
This reverts commit 24aa0dda088c08aafd2f317c67dc4c271177157c.
The qa check needs more work. There are at least 2 cases:
1. A library happens to be installed by a dependency, _is needed_,
and gets linked in without a `LIB_DEPENDS`.
2. A library happens to be installed by a dependency, _is not needed_,
and is _overlinked_. The qa check suggests to add a `LIB_DEPENDS`
which is not the right advice.
Update the shlib warnings to note the stage-qa failure is silent.
testport: Fix testing of an IGNORE/BROKEN port.
- Also fixes old bulk bug with empty repo, on an IGNORED port, resulting in an
error trying to build repo without pkg having been built yet.
- Also fixes old testport bug with -P leftover error of /prefix.
- Also fixes old testport bug of empty repo on BROKEN port not building pkg.
- Add several new tests covering these cases and more.
- testport on an IGNORED port no longer consider it as a "failure"
for stats.
Fixes: b95a9ee02 ("testport: Don't spin up a builder if not needed")
Fixes: bac5acb8f ("build_port: Can fetch NEED_ROOT upfront.")
test jobs.sh SH=/bin/sh: Improve racy test
commit 3085e8acd748dd tweaked this check to deal with Running
or Done, but needs to deal with the %- job being different
as well.