Robin Candau pushed to branch main at Arch Linux / Packaging / Packages / syd


Commits:
864af22c by Robin Candau at 2025-02-14T16:48:29+01:00
upgpkg: 3.32.2-2: Add checks + provide on 'sydbox'
Some distros package this under the name 'sydbox' so providing it would 
eventually avoid confusion for users

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = syd
-       pkgdesc = seccomp and landlock based application sandbox with support 
for namespaces
+       pkgdesc = Seccomp and landlock based application sandbox with support 
for namespaces
        pkgver = 3.32.2
-       pkgrel = 1
+       pkgrel = 2
        url = https://lib.rs/crates/syd
        arch = x86_64
        license = GPL-3.0-only
@@ -11,6 +11,7 @@ pkgbase = syd
        depends = gcc-libs
        depends = glibc
        depends = libseccomp
+       provides = sydbox
        source = 
syd-3.32.2.tar.gz::https://gitlab.exherbo.org/sydbox/sydbox/-/archive/v3.32.2/sydbox-v3.32.2.tar.gz
        sha256sums = 
d84089e48fa7f5e1c9d895d448b3bf932832427445c6c2fed741789b5780b8ed
 


=====================================
PKGBUILD
=====================================
@@ -3,13 +3,14 @@
 pkgname=syd
 _pkgname=sydbox
 pkgver=3.32.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Seccomp and landlock based application sandbox with support for 
namespaces"
 url="https://lib.rs/crates/syd";
 arch=('x86_64')
 license=('GPL-3.0-only')
 depends=('bash' 'gcc-libs' 'glibc' 'libseccomp')
 makedepends=('cargo' 'scdoc')
+provides=('sydbox')
 
source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.exherbo.org/${_pkgname}/${_pkgname}/-/archive/v${pkgver}/${_pkgname}-v${pkgver}.tar.gz";)
 sha256sums=('d84089e48fa7f5e1c9d895d448b3bf932832427445c6c2fed741789b5780b8ed')
 
@@ -28,6 +29,23 @@ build() {
        find man -type f -name "*.scd" -exec sh -c 'scdoc < "${1}" > 
"${1%.scd}"' _ {} \;
 }
 
+check() {
+       cd "${_pkgname}-v${pkgver}"
+       export RUSTUP_TOOLCHAIN=stable
+       # "syd_test" and "fs" tests fail with sandbox
+       # "hash" tests seems flaky (they fail on the build server for some 
reason)
+       cargo test --frozen -- \
+               --skip=syd_test \
+               --skip=fs::tests::test_canonicalize_non_directory_with_slash \
+               --skip=fs::tests::test_canonicalize_self_referential_symlink \
+               --skip=fs::tests::test_canonicalize_symlink_loop \
+               --skip=hash::tests::test_aes_ctr_enc_and_dec \
+               --skip=hash::tests::test_aes_ctr_enc_and_dec_tmp \
+               --skip=hash::tests::test_aes_ctr_enc_with_more_flag \
+               --skip=hash::tests::test_aes_ctr_init \
+               --skip=hash::tests::test_aes_ctr_setup
+}
+
 package() {
        cd "${_pkgname}-v${pkgver}"
        install -Dm 755 "target/release/${pkgname}" 
"${pkgdir}/usr/bin/${pkgname}"



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/syd/-/commit/864af22cfa136bb24112c6cebb97fc2f42099cf3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/syd/-/commit/864af22cfa136bb24112c6cebb97fc2f42099cf3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to