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")
Support pkg-devel shlib changes.
pkg-devel now adds base libs as required metadata. Base libs need
to be considered as "provided" by dependencies even if no dependency
provides them.
- _package_deps_provided_libs() changes fix the new incremental
algorithm enabled with PKG_NO_VERSION_FOR_DEPS.
The change done is simple; an ideal change might introduce a pseudo
base libs package that package_recursive_deps() returns for all
packages and would cause package_deps_provided_libs() and
pkg_get_shlib_provides() to return the base libs from. This would
have the benefit of caching the base find call. For now the
simple method is done.
runtest: Fix gmake jobserver race.
This fixes a race when using the runtest's own job token
for running the child test. The race could cause it to
wait forever on the job server pipe for a new token
when it will never receive one.
This could be seen with something like -j3 and running
calculate_duration.sh and read_file.sh tests.
Revert cut(1) and paste(1) builtins.
- These do not read from stdin properly and fail the added tests.
- paste(1) also had a use-after-free issue with warg/delim after the
getopt processing.
- Add more defines to catch this problem
Issue #1187