Skip to content

Commit 537bab0

Browse files
eweos-helper[bot]ziyao233
authored andcommitted
[libseccomp] 2.6.0-1: new upstream version
1 parent 8dc1c39 commit 537bab0

3 files changed

+40
-100
lines changed
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From 60df5bd43180593d499167e1f86f2ce2fe71857b Mon Sep 17 00:00:00 2001
2+
From: Yao Zi <[email protected]>
3+
Date: Wed, 12 Mar 2025 09:57:21 +0000
4+
Subject: [PATCH] tests: Workaround busybox tail
5+
6+
Busybox tail doesn't recognize "--pid" option, causing the testsuite
7+
failing to run. Emulate tail --pid with background job and kill -0.
8+
9+
Signed-off-by: Yao Zi <[email protected]>
10+
---
11+
tests/regression | 7 ++++++-
12+
1 file changed, 6 insertions(+), 1 deletion(-)
13+
14+
diff --git a/tests/regression b/tests/regression
15+
index c08a328..2b5faa5 100755
16+
--- a/tests/regression
17+
+++ b/tests/regression
18+
@@ -994,7 +994,12 @@ function tail_log() {
19+
local pid=$2
20+
21+
# dump the output
22+
- tail -n +0 --pid=$pid -f $log
23+
+ # tail -n +0 --pid=$pid -f $log
24+
+ tail -n +0 -F $log &
25+
+ while kill -0 $pid 2>/dev/null; do
26+
+ sleep 0.5s
27+
+ done
28+
+ kill %%
29+
30+
# accumulate the stats
31+
local stats=$(echo $log | sed 's/\.log$/.stats/')
32+
--
33+
2.48.1
34+

0002-add-fstat-syscallnum-on-loongarch64.patch

-87
This file was deleted.

PKGBUILD

+6-13
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
# Maintainer: Yukari Chiba <[email protected]>
22

33
pkgname=libseccomp
4-
pkgver=2.5.5
5-
pkgrel=6
4+
pkgver=2.6.0
5+
pkgrel=1
66
pkgdesc='Enhanced seccomp library'
77
arch=(x86_64 aarch64 riscv64 loongarch64)
88
license=('LGPL-2.1-or-later')
99
url="https://github.com/seccomp/libseccomp"
1010
depends=('linux-headers')
1111
makedepends=('gperf')
12-
# 0001, 0002: drop when libseccomp releases loongarch64 support
13-
# 0002: LoongArch kernel reintroduces fstat syscall in 6.12, we should keep
14-
# tests and syscall definitions in sync.
15-
source=(
16-
https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
17-
0001-loongarch64-support.patch::https://github.com/matoro/libseccomp/compare/v2.5.5..loongarch-r1.patch
18-
0002-add-fstat-syscallnum-on-loongarch64.patch
19-
)
20-
sha256sums=('248a2c8a4d9b9858aa6baf52712c34afefcf9c9e94b76dce02c1c9aa25fb3375'
21-
'0251a01a0ab047a9d9625003de12e95ca8fb9949887bf47987468478f599b4ee'
22-
'5fc53929e09070a9677b389d836c55cf60fe3db3b7cdbcb22d88eab5ad970a74')
12+
source=("https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
13+
"0001-tests-Workaround-busybox-tail.patch")
14+
sha256sums=('83b6085232d1588c379dc9b9cae47bb37407cf262e6e74993c61ba72d2a784dc'
15+
'2dc7b4e067650185cc7654d7ffc147daec0d8134d2b0142500d6b43a75dfea71')
2316

2417
prepare() {
2518
_patch_ ${pkgbase}-${pkgver}

0 commit comments

Comments
 (0)