* update libseccomp to 2.5.5-3

This commit is contained in:
Alexander Baldeck 2024-05-08 09:59:05 +02:00
parent c399c4007b
commit ca63b0f857
3 changed files with 55 additions and 1834 deletions

View File

@ -7,7 +7,7 @@
pkgbase=libseccomp
pkgname=(libseccomp python-libseccomp)
pkgver=2.5.5
pkgrel=2
pkgrel=3
pkgdesc='Enhanced seccomp library'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=('LGPL2.1')
@ -15,11 +15,14 @@ url="https://github.com/seccomp/libseccomp"
depends=('glibc')
checkdepends=('valgrind')
makedepends=('gperf' 'cython' 'python-setuptools')
source=(https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
source=(https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc}
libseccomp-2.5.5-arch-syscall-check.patch)
sha256sums=('248a2c8a4d9b9858aa6baf52712c34afefcf9c9e94b76dce02c1c9aa25fb3375'
'SKIP')
'SKIP'
'f0a3efd60f8ce0b418de60d68ade60228b40654645f44554a578a100e796a066')
b2sums=('d770cee1f3e02fbbcd9f25655b360ab38160ad800e2829a67f2b9da62b095a90be99ac851a67344cf95bd6810a6268da4655dc1d37d996e58239c4999eb41998'
'SKIP')
'SKIP'
'c94cd88060e51e1ba4962fc56603a958bd8fe314adc6d038a271d8f661db1f421026a180d5aa6deccc42422818a95cf8ec46a2a4e961325ef74d342d17f24e2a')
validpgpkeys=(
'7100AADFAE6E6E940D2E0AD655E45A5AE8CA7C8A' # Paul Moore <paul@paul-moore.com>
'47A68FCE37C7D7024FD65E11356CE62C2B524099' # Tom Hromatka <tom.hromatka@oracle.com>
@ -27,6 +30,9 @@ validpgpkeys=(
prepare() {
cd ${pkgbase}-${pkgver}
patch -Np1 -i ${srcdir}/libseccomp-2.5.5-arch-syscall-check.patch
autoreconf -fiv
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,45 @@
From 744c9a897b74ad66d065791593e25a05e4b6f6a1 Mon Sep 17 00:00:00 2001
From: Michal Privoznik <mprivozn@redhat.com>
Date: Tue, 1 Nov 2022 11:59:51 +0100
Subject: [PATCH] src: Make arch-syscall-check work in VPATH build
The aim of arch-syscall-check test is to check for syscalls
missing implementation. It does so by comparing two files:
1) src/syscalls.csv
2) include/seccomp-syscalls.h
However, due to use of relative paths these files are not found
when doing a VPATH build. But, we can re-use an idea from GNU
coreutils and get an absolute path to the source dir. All that's
needed then is to prefix those two paths with the source dir
path.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
---
src/arch-syscall-check | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/arch-syscall-check b/src/arch-syscall-check
index ae67daa..9c7fd41 100755
--- a/src/arch-syscall-check
+++ b/src/arch-syscall-check
@@ -22,8 +22,11 @@
# along with this library; if not, see <http://www.gnu.org/licenses>.
#
-SYSCALL_CSV="./syscalls.csv"
-SYSCALL_HDR="../include/seccomp-syscalls.h"
+# Based on an idea from GNU coreutils
+abs_topsrcdir="$(unset CDPATH; cd $(dirname $0)/.. && pwd)"
+
+SYSCALL_CSV="$abs_topsrcdir/src/syscalls.csv"
+SYSCALL_HDR="$abs_topsrcdir/include/seccomp-syscalls.h"
function check_snr() {
(export LC_ALL=C; diff \
--
2.44.0