Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
From 9e73fd8ddde844d755f3f992ca9cd7bb0502d87e Mon Sep 17 00:00:00 2001
From: Pepper Gray <hello@peppergray.xyz>
Date: Tue, 11 Aug 2026 00:03:34 +0200
Subject: [PATCH] add syscall for close_range for non-glibc targets

compiling on musl fails with error:
```
error[E0425]: cannot find function `close_range` in crate `libc`
```

use syscall for targets which do not provide a `close-range`-wrapper

Closes: #730
Signed-off-by: Pepper Gray <hello@peppergray.xyz>
---
src/main.rs | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index f3af0d6a..c20761e1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -32,9 +32,19 @@ enum SubCommand {
Version(version::Version),
}

+#[cfg(any(all(target_os = "linux", target_env = "gnu"), target_os = "freebsd",))]
+unsafe fn close_range(first: libc::c_uint, last: libc::c_uint, flags: libc::c_int) -> libc::c_int {
+ unsafe { libc::close_range(first, last, flags) }
+}
+
+#[cfg(all(target_os = "linux", not(target_env = "gnu"),))]
+unsafe fn close_range(first: libc::c_uint, last: libc::c_uint, flags: libc::c_int) -> libc::c_int {
+ unsafe { libc::syscall(libc::SYS_close_range, first, last, flags) as libc::c_int }
+}
+
fn main() {
// Close all fds we inherited from our parent process, we only need stdio.
- let _ = unsafe { libc::close_range(3, libc::c_uint::MAX, 0) };
+ let _ = unsafe { close_range(3, libc::c_uint::MAX, 0) };

let formatter = Formatter3164 {
facility: Facility::LOG_USER,
4 changes: 2 additions & 2 deletions srcpkgs/aardvark-dns/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'aardvark-dns'
pkgname=aardvark-dns
version=1.17.1
version=2.1.0
revision=1
build_style=cargo
short_desc="Authoritative dns server for A/AAAA container records"
Expand All @@ -9,7 +9,7 @@ license="Apache-2.0"
homepage="https://github.com/containers/aardvark-dns"
changelog="https://raw.githubusercontent.com/containers/aardvark-dns/main/RELEASE_NOTES.md"
distfiles="https://github.com/containers/aardvark-dns/archive/refs/tags/v${version}.tar.gz"
checksum=25b39bfad079a03862825b2f9db8b71b82fc80aad5552a9c76ea912edc9b889e
checksum=daf871488603e659b0501224cf0731ac317809b1d1701fc061cb4f6ae39a894f

post_install() {
vmkdir usr/libexec/podman
Expand Down
6 changes: 3 additions & 3 deletions srcpkgs/buildah/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'buildah'
pkgname=buildah
version=1.45.0
revision=2
version=1.45.1
revision=1
build_style=go
go_import_path=go.podman.io/buildah
go_package="${go_import_path}/cmd/buildah"
Expand All @@ -15,7 +15,7 @@ license="Apache-2.0"
homepage="https://buildah.io/"
changelog="https://raw.githubusercontent.com/containers/buildah/main/CHANGELOG.md"
distfiles="https://github.com/podman-container-tools/buildah/archive/refs/tags/v${version}.tar.gz"
checksum=d2bc03332c9f6ad5fcc210c68ad3190fe11d358214c88fb12a233f5045d5eddd
checksum=b48e701c75a2bd30dfe63fda5f886c8a7e0c3dd17b6aa0feb74cc93099254ca4

# tests require access to privileged container operations
make_check=no
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/containers.image/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'containers.image'
pkgname=containers.image
version=5.38.0
version=5.41.2
revision=1
build_wrksrc=image
conf_files="/etc/containers/registries.conf /etc/containers/policy.json"
Expand All @@ -11,7 +11,7 @@ license="Apache-2.0"
homepage="https://github.com/containers/container-libs"
changelog="https://github.com/containers/container-libs/tags"
distfiles="https://github.com/containers/container-libs/archive/refs/tags/image/v${version}.tar.gz"
checksum=10d6deb6cafa6f95a516049a63ee68804ba68d2f7d8541f970e6a8ca3fe5d26a
checksum=3a158ccc167536488d050a8290c8628cc01ba9ab95c44047a5c0d19c1c557620

do_build() {
mkdir -p build
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/containers.storage/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'containers.storage'
pkgname=containers.storage
version=1.61.0
version=1.64.1
revision=1
build_wrksrc=storage
hostmakedepends="go-md2man"
Expand All @@ -11,7 +11,7 @@ license="Apache-2.0"
homepage="https://github.com/containers/container-libs"
changelog="https://github.com/containers/container-libs/tags"
distfiles="https://github.com/containers/container-libs/archive/refs/tags/storage/v${version}.tar.gz"
checksum=6d620c7dd89a541da35243c92c39e5906a4ccdf573565d09284af5e5f44ab8ab
checksum=cb5ffdcf7e70b82c244c7a9de1e0662ec9ccfbac968597f251dcb3cc39a7d1ca
_manpage="containers-storage.conf.5"

do_build() {
Expand Down
5 changes: 3 additions & 2 deletions srcpkgs/netavark/template
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Template file for 'netavark'
pkgname=netavark
version=1.17.2
version=2.1.0
revision=1
build_style=cargo
hostmakedepends="mandown protobuf"
depends="nftables"
short_desc="Container network stack"
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/containers/netavark"
changelog="https://raw.githubusercontent.com/containers/netavark/main/RELEASE_NOTES.md"
distfiles="https://github.com/containers/netavark/archive/refs/tags/v${version}.tar.gz"
checksum=284faa7cc525b869cbac4053e0a4127ac743ca7da1457c49fffb35558ea9c78d
checksum=96677048168ddd1abe313e4c2e17f1cace72b60ee1bac8ca12a4bd7dfcadfbbb
# needs unshare which cannot be used in CI
make_check=ci-skip

Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/passt/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'passt'
pkgname=passt
version=2026.01.20.386b5f5
version=2026.09.25.df90211
revision=1
# upstream uses YYYY_MM_DD.COMMIT
_version=${version/./_}
Expand All @@ -12,7 +12,7 @@ maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-or-later AND BSD-3-Clause"
homepage="https://passt.top"
distfiles="https://passt.top/passt/snapshot/passt-${_version}.tar.xz"
checksum=cc0a86b0ac28e1e5b2a4243bcf7fa84b14dd91c7dc883a78896060111e12d105
checksum=cdf655b5677ce219108cf3df93a55e0ae98a376887be110fe35303ea900d5d68

post_install() {
vlicense LICENSES/BSD-3-Clause.txt
Expand Down
14 changes: 7 additions & 7 deletions srcpkgs/podman/template
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Template file for 'podman'
pkgname=podman
version=5.8.8
version=6.1.4
revision=1
_container_libs_common=0.67.1
_container_libs_common=0.69.2
build_style=go
build_wrksrc=podman-${version}
go_import_path="github.com/containers/podman/v5"
go_import_path="go.podman.io/podman/v6"
go_package="${go_import_path}/cmd/podman ${go_import_path}/cmd/rootlessport"
go_build_tags="seccomp apparmor containers_image_ostree_stub cni libsqlite3"
hostmakedepends="pkg-config go-md2man python3 mdocml"
makedepends="gpgme-devel libseccomp-devel device-mapper-devel libbtrfs-devel sqlite-devel"
depends="runc conmon cni-plugins slirp4netns fuse-overlayfs containers-common
depends="runc conmon cni-plugins fuse-overlayfs containers-common
containers.image containers.storage netavark passt"
checkdepends="qemu"
short_desc="Simple management tool for containers and images"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://podman.io/"
changelog="https://raw.githubusercontent.com/containers/podman/main/RELEASE_NOTES.md"
distfiles="https://github.com/containers/podman/archive/v${version}.tar.gz
distfiles="https://github.com/podman-container-tools/podman/archive/v${version}.tar.gz
https://github.com/containers/container-libs/archive/refs/tags/common/v${_container_libs_common}.tar.gz"
checksum="d0b8dc905a2a767d0d7419e232761a589d66e7a67de2e7d1ce80a8f4e845bcbb
5438aa7763acd6d0ddb39426bec20bc344c53161716d88a9d75ac1fed0172b64"
checksum="200fd9b4b6d820cae24fc99d8e290ec945512365cf3cda8283b3905c0c284ea8
76ac2130ee222adf0dca4551ae79637e6c4ece9dc024bcbe166dfca1e20b87dd"

case $XBPS_TARGET_MACHINE in
aarch64* | x86_64*) ;;
Expand Down
8 changes: 4 additions & 4 deletions srcpkgs/skopeo/template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Template file for 'skopeo'
pkgname=skopeo
version=1.21.0
revision=2
version=1.24.1
revision=1
build_style=go
build_helper=qemu
go_import_path="github.com/containers/skopeo"
go_import_path="go.podman.io/skopeo"
go_package="${go_import_path}/cmd/skopeo"
go_build_tags="containers_image_ostree_stub"
hostmakedepends="go-md2man pkg-config"
Expand All @@ -16,7 +16,7 @@ license="Apache-2.0"
homepage="https://github.com/containers/skopeo"
changelog="https://github.com/containers/skopeo/releases"
distfiles="https://github.com/containers/skopeo/archive/refs/tags/v${version}.tar.gz"
checksum=f76eeddf697a3cc7a872e3077ab4d0fdbebe9f3c6171462e3e9feb84368b3fac
checksum=6a3f342a327ec7684198eb0e15114940b6101506db48d9a96590f5942cb3b335
make_dirs="/var/lib/atomic/sigstore 0755 root root"
make_check=no # executables not found

Expand Down
Loading