Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions srcpkgs/zathura-cb/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/zathura-djvu/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/zathura-pdf-poppler/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions srcpkgs/zathura-ps/template
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down
26 changes: 26 additions & 0 deletions srcpkgs/zathura/patches/add-mmap2-for-32-bit-arm.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 448855acec6a6010c4bfe4b525a739b3968254f9 Mon Sep 17 00:00:00 2001
From: valoq <[email protected]>
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

46 changes: 46 additions & 0 deletions srcpkgs/zathura/patches/musl.patch
Original file line number Diff line number Diff line change
@@ -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);

6 changes: 3 additions & 3 deletions srcpkgs/zathura/template
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Template file for 'zathura'
pkgname=zathura
version=0.5.13
version=0.5.14
revision=1
build_style=meson
configure_args="-Dsynctex=enabled"
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 <[email protected]>"
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"
Expand Down
Loading