File tree Expand file tree Collapse file tree 2 files changed +36
-4
lines changed
Expand file tree Collapse file tree 2 files changed +36
-4
lines changed Original file line number Diff line number Diff line change 1+ From 448855acec6a6010c4bfe4b525a739b3968254f9 Mon Sep 17 00:00:00 2001
2+ 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+
Original file line number Diff line number Diff line change 11# Template file for 'zathura'
22pkgname=zathura
3- version=0.5.13
3+ version=0.5.14
44revision=1
55build_style=meson
66configure_args="-Dsynctex=enabled"
77hostmakedepends="pkg-config gettext python3-Sphinx desktop-file-utils
88 appstream-glib glib-devel librsvg-utils"
99makedepends="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 "
1212short_desc="Highly customizable and functional document viewer"
1313maintainer="lemmi <
[email protected] >"
1414license="Zlib"
1515homepage="https://pwmt.org/projects/zathura/"
1616changelog="https://pwmt.org/projects/zathura/changelog/${version}/index.html"
1717distfiles="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"
2222else
2323 configure_args+=" -Dtests=disabled"
@@ -28,6 +28,12 @@ if [ "$XBPS_TARGET_LIBC" = musl ]; then
2828 -D__NR_landlock_restrict_self=446"
2929fi
3030
31+ post_patch() {
32+ if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
33+ patch -Np1 < "${FILESDIR}/add-mmap2-for-32-bit-arm.patch"
34+ fi
35+ }
36+
3137post_install() {
3238 vlicense LICENSE
3339}
You can’t perform that action at this time.
0 commit comments