html: Remove the dead /latest/ redirect
Since dfe3002d4, process_data() sets page_buildname from the loaded
data before process_data_build() runs, so the page_buildname ==
"latest" check never matches. A build=latest URL loads the build
through the latest symlink and stays on it.
json_jail.awk: Point "latest" at the latest symlink's build
The jail .data.json "latest" key named whichever build was read last.
The */.data.mini.json glob also matches the latest-done symlink, which
sorts after typical build names, so a running build was never shown
as latest and the latest-done build was listed twice.
Take "latest" from latest/.data.mini.json, as before 4fd639ebe, and
skip latest-done. Without a readable latest build there is no
"latest" key.
(cherry picked from commit a45f101a9842be10d6c4a853f4b117af4d8ea4a5)
json_jail.awk: Point "latest" at the latest symlink's build
The jail .data.json "latest" key named whichever build was read last.
The */.data.mini.json glob also matches the latest-done symlink, which
sorts after typical build names, so a running build was never shown
as latest and the latest-done build was listed twice.
Take "latest" from latest/.data.mini.json, as before 4fd639ebe, and
skip latest-done. Without a readable latest build there is no
"latest" key.
Do not import symlinks from non-pkg package builds
The package phase lets the jail build user write to a host-backed
/.npkg directory. build_port() imported every file and symlink from
that directory into the host package repository. An absolute symlink
changes meaning at this boundary: it points inside the jail while
mounted but at the host after import.
Only the pkg bootstrap variants need package-manager compatibility
links. Process those links before their targets and reject any that
resolve outside staging. Import only regular files for other ports,
preventing their build output from introducing host-resolved symlinks
into the repository.
(cherry picked from commit d558fca255b11e6350b62337bdd80bef36f673bf)
Conflicts:
src/share/poudriere/common.sh
Issue #1366
check_leftovers: Tee the mtree data to stderr.
Some modifications are not obvious without seeing the mtree output,
such as changed mode/perm on a file or dir.