libseccomp: update to 2.4.3.

This commit is contained in:
Anthony Iliopoulos 2020-03-07 12:22:13 +01:00 committed by Juan RP
parent 4d44ca4cde
commit 865955c053
2 changed files with 3 additions and 44 deletions

View file

@ -1,41 +0,0 @@
From e3647f5b6b52996bf30d0c2c1d1248e4182e1c1c Mon Sep 17 00:00:00 2001
From: Miroslav Lichvar <mlichvar@redhat.com>
Date: Wed, 13 Nov 2019 13:36:10 +0100
Subject: [PATCH] api: define __SNR_ppoll again
Commit bf747eb21e428c2b3ead6ebcca27951b681963a0 accidentally removed the
__SNR_ppoll definition. Add it back, using a PNR value if disabled in
the kernel headers.
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
---
include/seccomp-syscalls.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/seccomp-syscalls.h b/include/seccomp-syscalls.h
index 6457592..3c958df 100644
--- include/seccomp-syscalls.h
+++ include/seccomp-syscalls.h
@@ -272,6 +272,7 @@
#define __PNR_timerfd_gettime64 -10238
#define __PNR_timerfd_settime64 -10239
#define __PNR_utimensat_time64 -10240
+#define __PNR_ppoll -10241
/*
* libseccomp syscall definitions
@@ -1359,6 +1360,12 @@
#define __SNR_poll __PNR_poll
#endif
+#ifdef __NR_ppoll
+#define __SNR_ppoll __NR_ppoll
+#else
+#define __SNR_ppoll __PNR_ppoll
+#endif
+
#ifdef __NR_ppoll_time64
#define __SNR_ppoll_time64 __NR_ppoll_time64
#else

View file

@ -1,7 +1,7 @@
# Template file for 'libseccomp'
pkgname=libseccomp
version=2.4.2
revision=2
version=2.4.3
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="High level interface to the Linux Kernel's seccomp filter"
@ -9,7 +9,7 @@ maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/seccomp/libseccomp/"
distfiles="https://github.com/seccomp/${pkgname}/archive/v${version}.tar.gz"
checksum=c988dc3f6c641e12c68285afb57d69361f3bfd5b7235d067b3991bf9a57cca7e
checksum=4d86f0bd0847795bf7f7bf6e44cb73edf4417d84f6d8848c23eda99b0c50fce6
post_extract() {
case "$XBPS_TARGET_MACHINE" in