Skip to content

Commit 333bb77

Browse files
committed
zathura: update to 0.5.14
Backport 448855a (fixes builds for 32-bit archs)
1 parent bbfb197 commit 333bb77

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 448855acec6a6010c4bfe4b525a739b3968254f9 Mon Sep 17 00:00:00 2001
2+
From: valoq <[email protected]>
3+
Date: Wed, 29 Oct 2025 21:59:49 +0100
4+
Subject: [PATCH] add mmap2 for 32-bit arm
5+
6+
---
7+
zathura/seccomp-filters.c | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/zathura/seccomp-filters.c b/zathura/seccomp-filters.c
11+
index 87649c4..f6a15b2 100644
12+
--- a/zathura/seccomp-filters.c
13+
+++ b/zathura/seccomp-filters.c
14+
@@ -102,6 +102,9 @@ int seccomp_enable_strict_filter(zathura_t* zathura) {
15+
ALLOW_RULE(madvise);
16+
ALLOW_RULE(memfd_create);
17+
ALLOW_RULE(mmap);
18+
+#ifdef __NR_mmap2
19+
+ ALLOW_RULE(mmap2); /* Only required on 32-bit ARM systems */
20+
+#endif
21+
ALLOW_RULE(mprotect);
22+
ALLOW_RULE(mremap); /* mupdf requirement */
23+
ALLOW_RULE(munmap);
24+
--
25+
2.51.2
26+

srcpkgs/zathura/template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
# Template file for 'zathura'
22
pkgname=zathura
3-
version=0.5.13
3+
version=0.5.14
44
revision=1
55
build_style=meson
66
configure_args="-Dsynctex=enabled"
77
hostmakedepends="pkg-config gettext python3-Sphinx desktop-file-utils
88
appstream-glib glib-devel librsvg-utils"
99
makedepends="girara-devel sqlite-devel file-devel zlib-devel libseccomp-devel
1010
libglib-devel texlive-devel"
11-
checkdepends="AppStream gettext-devel check-devel xvfb-run"
11+
checkdepends="AppStream gettext-devel check-devel xvfb-run weston"
1212
short_desc="Highly customizable and functional document viewer"
1313
maintainer="lemmi <[email protected]>"
1414
license="Zlib"
1515
homepage="https://pwmt.org/projects/zathura/"
1616
changelog="https://pwmt.org/projects/zathura/changelog/${version}/index.html"
1717
distfiles="https://pwmt.org/projects/zathura/download/zathura-${version}.tar.xz"
18-
checksum=6302173bcd46f897e5209c883a5b51ad1dab4946c2f3861cba374a3b80d8f3c1
18+
checksum=647aca4d494315905d236504576e35b7568a4d702e56aa4590295a9f6a7259bd
1919

20-
if [ -z "$CROSS_BUILD" ] && [ "$XBPS_CHECK_PKGS" ]; then
20+
if [ -z "$CROSS_BUILD" ] && [ "$XBPS_CHECK_PKGS" ] && [ "$XBPS_TARGET_MACHINE" != x86_64-musl ] ; then
2121
configure_args+=" -Dtests=enabled"
2222
else
2323
configure_args+=" -Dtests=disabled"

0 commit comments

Comments
 (0)