Commit Graph

3 Commits

Author SHA1 Message Date
Ali 40f5fbd3cf ci: switch build scripts from wget to curl
runc's build scripts and CI setup used a mix of wget (4 sites) and
curl (8 sites) for HTTPS fetches. Standardise the three script sites on
curl, which is already required by the majority of call sites.

* script/build-libpathrs.sh and script/build-seccomp.sh: replace
  wget "<url>"{,.asc} with curl -fsSLO "<url>"{,.asc}. Bash brace
  expansion still yields two separate downloads (the tarball and its
  .asc signature).
* script/setup_host.sh: replace wget with curl in the Fedora RPM
  install list.

Leaving the single wget call in Dockerfile untouched per review
feedback -- the trixie base image already ships wget, and switching
would add an extra apt-get update && install step before the existing
single-pass package install.

Refs #5240

Signed-off-by: Ali <alliasgher123@gmail.com>
2026-04-24 03:33:06 +05:00
Akhil Mohan 28d5ffbab0 use POSIX regex in libpathrs build
word boundary anchor \> is present only in GNU awk implementation. This
will not work if we are building libpathrs inside a container like
debian/ubuntu which uses mawk. Therefore switch to a POSIX compatible
regex that can be used with all implementations of awk to find the
system libc path

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
Signed-off-by: Aleksa Sarai <aleksa@amutable.com>
2026-03-24 21:20:45 +11:00
Aleksa Sarai 8689e50cbe build: enable builds with libpathrs
pathrs-lite supports transparently switching to libpathrs.so as the
backend with the "libpathrs" build tag. In order to make this work
properly with our CI and release build scripts, we we need to have a
similar setup as with we do with libseccomp.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2026-03-12 17:58:10 +09:00