sydbox: update to 2.2.0.

This commit is contained in:
classabbyamp 2023-09-27 19:00:45 -04:00 committed by classabbyamp
parent 0ac907b55c
commit fa943a16bc
2 changed files with 20 additions and 15 deletions

View file

@ -0,0 +1,11 @@
--- a/src/syscall-filter.c
+++ b/src/syscall-filter.c
@@ -172,7 +172,7 @@
SCMP_SYS(epoll_ctl),
SCMP_SYS(epoll_ctl_old),
SCMP_SYS(epoll_pwait),
-#ifdef __SNR_epoll_pwait2
+#ifdef __NR_epoll_pwait2
SCMP_SYS(epoll_pwait2),
#endif
SCMP_SYS(epoll_wait),

View file

@ -1,25 +1,19 @@
# Template file for 'sydbox' # Template file for 'sydbox'
pkgname=sydbox pkgname=sydbox
version=1.2.1 version=2.2.0
revision=1 revision=1
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="automake pkg-config libtool pinktrace-devel" hostmakedepends="automake pkg-config libtool"
makedepends="pinktrace-devel" makedepends="pinktrace-devel libseccomp-devel"
short_desc="Utility for ptrace() sandboxing" short_desc="Utility for ptrace() sandboxing"
maintainer="Andrea Brancaleoni <abc@pompel.me>" maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="MIT" license="MIT"
homepage="http://dev.exherbo.org/~alip/sydbox/sydbox.html" homepage="https://sydbox.exherbolinux.org"
distfiles="http://git.exherbo.org/$pkgname-1.git/snapshot/$pkgname-1-$version.tar.gz" distfiles="https://gitlab.exherbo.org/sydbox/sydbox-1/-/archive/v${version}/sydbox-1-v${version}.tar.gz"
checksum=50a17c3639ec46ce1c9a70844b6e01888264e396d5da607aab2f20a1f204ca04 checksum=681e44816f2780f9b45a2ef601acc4174bc8336277ea6b9015aad8213b93e3c0
python_version=2 #unverified # needs perlful grep which breaks masterdir
make_check=no
# https://github.com/sydbox/pinktrace/blob/main/pinktrace/abi.h nocross="unable to properly check if seccomp is supported"
# implemented for x86_64 and i386 in sydbox, but pinktrace does
# not seem to have i386, so only enable for x86_64
case "$XBPS_TARGET_MACHINE" in
x86_64*) configure_args+=" --enable-seccomp" ;;
*) configure_args+=" --disable-seccomp" ;;
esac
pre_configure() { pre_configure() {
./autogen.sh ./autogen.sh