diff --git a/srcpkgs/zathura-cb/template b/srcpkgs/zathura-cb/template index 77d446b77ef046..73dbe7280c5f99 100644 --- a/srcpkgs/zathura-cb/template +++ b/srcpkgs/zathura-cb/template @@ -1,6 +1,6 @@ # Template file for 'zathura-cb' pkgname=zathura-cb -version=0.1.11 +version=0.1.12 revision=1 build_style=meson hostmakedepends="pkg-config" @@ -12,7 +12,7 @@ license="Zlib" homepage="https://pwmt.org/projects/zathura-cb/" changelog="https://pwmt.org/projects/zathura-cb/changelog/${version}/index.html" distfiles="https://pwmt.org/projects/zathura-cb/download/zathura-cb-${version}.tar.xz" -checksum=4e201ea54cdc20a93258c43556f6389441af99740de7dca6ca1ff524172fbd47 +checksum=bc62dec4d04d51419192d370ecdf2afa66ba10554c2518abecee0dfce2aac96e post_install() { vlicense LICENSE diff --git a/srcpkgs/zathura-djvu/template b/srcpkgs/zathura-djvu/template index d0708c57cc64ca..38e46a746daeeb 100644 --- a/srcpkgs/zathura-djvu/template +++ b/srcpkgs/zathura-djvu/template @@ -1,6 +1,6 @@ # Template file for 'zathura-djvu' pkgname=zathura-djvu -version=0.2.10 +version=0.2.11 revision=1 build_style=meson hostmakedepends="pkg-config" @@ -12,7 +12,7 @@ license="Zlib" homepage="https://git.pwmt.org/pwmt/zathura-djvu/" changelog="https://pwmt.org/projects/zathura-djvu/changelog/${version}/index.html" distfiles="https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-${version}.tar.xz" -checksum=32e9d89929a76cd7d3fcbaf79f441868bdabedf17317d1d1843faa1f19338d95 +checksum=a854d1d98ec54c2847818270506df3c5f0e134175dd01111af8b3ab3982985c4 post_install() { vlicense LICENSE diff --git a/srcpkgs/zathura-pdf-poppler/template b/srcpkgs/zathura-pdf-poppler/template index f4089c6bb99766..5cb48a456c40c7 100644 --- a/srcpkgs/zathura-pdf-poppler/template +++ b/srcpkgs/zathura-pdf-poppler/template @@ -1,6 +1,6 @@ # Template file for 'zathura-pdf-poppler' pkgname=zathura-pdf-poppler -version=0.3.3 +version=0.3.4 revision=1 build_style=meson hostmakedepends="pkg-config" @@ -12,7 +12,7 @@ license="Zlib" homepage="https://git.pwmt.org/pwmt/zathura-pdf-poppler/" changelog="https://pwmt.org/projects/zathura-pdf-poppler/changelog/${version}/index.html" distfiles="https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-${version}.tar.xz" -checksum=c812f2f4446fd5de16734e13c02ea9aa25ba4e3ba9f72b732c0ff90f9ba34935 +checksum=389fd46e27c7bb0ecb266dbdb0dca4aa9c90a5a0ef5096912f8faebeff939813 conflicts="zathura-pdf-mupdf>=0" diff --git a/srcpkgs/zathura-ps/template b/srcpkgs/zathura-ps/template index d436b7a90bfbc5..75c38374710784 100644 --- a/srcpkgs/zathura-ps/template +++ b/srcpkgs/zathura-ps/template @@ -1,6 +1,6 @@ # Template file for 'zathura-ps' pkgname=zathura-ps -version=0.2.8 +version=0.2.9 revision=1 build_style=meson hostmakedepends="pkg-config" @@ -12,7 +12,7 @@ license="Zlib" homepage="https://git.pwmt.org/pwmt/zathura-ps/" changelog="https://pwmt.org/projects/zathura-ps/changelog/${version}/index.html" distfiles="https://pwmt.org/projects/zathura-ps/download/zathura-ps-${version}.tar.xz" -checksum=07ca594f7277f9876d0038048418343ea2964028e93c90f9569eff36a8932e4a +checksum=a95334500848a7a6e8f497232abbc63ba4a628796df73766c3714840083555e8 post_install() { vlicense LICENSE diff --git a/srcpkgs/zathura/patches/add-mmap2-for-32-bit-arm.patch b/srcpkgs/zathura/patches/add-mmap2-for-32-bit-arm.patch new file mode 100644 index 00000000000000..61375005fa3eec --- /dev/null +++ b/srcpkgs/zathura/patches/add-mmap2-for-32-bit-arm.patch @@ -0,0 +1,26 @@ +From 448855acec6a6010c4bfe4b525a739b3968254f9 Mon Sep 17 00:00:00 2001 +From: valoq +Date: Wed, 29 Oct 2025 21:59:49 +0100 +Subject: [PATCH] add mmap2 for 32-bit arm + +--- + zathura/seccomp-filters.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/zathura/seccomp-filters.c b/zathura/seccomp-filters.c +index 87649c4..f6a15b2 100644 +--- a/zathura/seccomp-filters.c ++++ b/zathura/seccomp-filters.c +@@ -102,6 +102,9 @@ int seccomp_enable_strict_filter(zathura_t* zathura) { + ALLOW_RULE(madvise); + ALLOW_RULE(memfd_create); + ALLOW_RULE(mmap); ++#ifdef __NR_mmap2 ++ ALLOW_RULE(mmap2); /* Only required on 32-bit ARM systems */ ++#endif + ALLOW_RULE(mprotect); + ALLOW_RULE(mremap); /* mupdf requirement */ + ALLOW_RULE(munmap); +-- +2.51.2 + diff --git a/srcpkgs/zathura/patches/musl.patch b/srcpkgs/zathura/patches/musl.patch new file mode 100644 index 00000000000000..27ee3bd698a5a7 --- /dev/null +++ b/srcpkgs/zathura/patches/musl.patch @@ -0,0 +1,46 @@ +--- a/zathura/seccomp-filters.c ++++ b/zathura/seccomp-filters.c +@@ -116,6 +116,11 @@ + ALLOW_RULE(pread64); /* equals pread */ + /* ALLOW_RULE(pwrite64); equals pwrite */ + ALLOW_RULE(read); ++ /* musl libc (and some other non-glibc libc implementations) may use readv; */ ++#if !defined(__GLIBC__) ++ ALLOW_RULE(readv); ++ girara_debug("MUSL libc readv"); ++#endif + ALLOW_RULE(readlink); /* readlinkat */ + ALLOW_RULE(readlinkat); /* AArch64 requirement */ + /* ALLOW_RULE(recvfrom); X11 only */ +@@ -145,6 +150,9 @@ + /* ALLOW_RULE(uname); X11 only */ + /* ALLOW_RULE(unlink); unused?, unlinkat */ + ALLOW_RULE(write); /* investigate further */ ++#if !defined(__GLIBC__) ++ ALLOW_RULE(writev); ++#endif + /* ALLOW_RULE(writev); X11 only */ + /* ALLOW_RULE(wait4); unused? */ + +@@ -188,11 +196,21 @@ + /* block unsuccessful ipc attempt */ + ERRNO_RULE(getpeername); + ++ /* MUSL libc still uses CLONE_DETACHED */ ++#if !defined(__GLIBC__) ++ /* filter clone arguments */ ++ ADD_RULE("allow", SCMP_ACT_ALLOW, clone, 1, ++ SCMP_CMP(0, SCMP_CMP_EQ, ++ CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND | CLONE_THREAD | CLONE_SYSVSEM | CLONE_SETTLS | ++ CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID | CLONE_DETACHED)); ++#else + /* filter clone arguments */ + ADD_RULE("allow", SCMP_ACT_ALLOW, clone, 1, + SCMP_CMP(0, SCMP_CMP_EQ, + CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND | CLONE_THREAD | CLONE_SYSVSEM | CLONE_SETTLS | + CLONE_PARENT_SETTID | CLONE_CHILD_CLEARTID)); ++#endif ++ + /* trigger fallback to clone */ + ERRNO_RULE(clone3); + diff --git a/srcpkgs/zathura/template b/srcpkgs/zathura/template index 980d155692b3fd..ddde394b749bf1 100644 --- a/srcpkgs/zathura/template +++ b/srcpkgs/zathura/template @@ -1,6 +1,6 @@ # Template file for 'zathura' pkgname=zathura -version=0.5.13 +version=0.5.14 revision=1 build_style=meson configure_args="-Dsynctex=enabled" @@ -8,14 +8,14 @@ hostmakedepends="pkg-config gettext python3-Sphinx desktop-file-utils appstream-glib glib-devel librsvg-utils" makedepends="girara-devel sqlite-devel file-devel zlib-devel libseccomp-devel libglib-devel texlive-devel" -checkdepends="AppStream gettext-devel check-devel xvfb-run" +checkdepends="AppStream gettext-devel check-devel xvfb-run weston" short_desc="Highly customizable and functional document viewer" maintainer="lemmi " license="Zlib" homepage="https://pwmt.org/projects/zathura/" changelog="https://pwmt.org/projects/zathura/changelog/${version}/index.html" distfiles="https://pwmt.org/projects/zathura/download/zathura-${version}.tar.xz" -checksum=6302173bcd46f897e5209c883a5b51ad1dab4946c2f3861cba374a3b80d8f3c1 +checksum=647aca4d494315905d236504576e35b7568a4d702e56aa4590295a9f6a7259bd if [ -z "$CROSS_BUILD" ] && [ "$XBPS_CHECK_PKGS" ]; then configure_args+=" -Dtests=enabled"