commit: d5623805c5f80bc14210c6617fdf46f6d6f05093 Author: Filip Kobierski <fkobi <AT> fsfe <DOT> org> AuthorDate: Mon Oct 13 22:44:02 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Nov 7 01:46:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5623805
app-text/zathura: add USE=landlock thanks to Mason for the patch that I adapted here! Closes: https://bugs.gentoo.org/960313 Signed-off-by: Filip Kobierski <fkobi <AT> fsfe.org> Part-of: https://github.com/gentoo/gentoo/pull/41617 Signed-off-by: Sam James <sam <AT> gentoo.org> app-text/zathura/metadata.xml | 1 + app-text/zathura/zathura-9999.ebuild | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app-text/zathura/metadata.xml b/app-text/zathura/metadata.xml index 3ab8e9b9c3bc..a059067c2cb8 100644 --- a/app-text/zathura/metadata.xml +++ b/app-text/zathura/metadata.xml @@ -10,6 +10,7 @@ <name>Proxy Maintainers</name> </maintainer> <use> + <flag name="landlock">Build the sandboxed version using the Landlock (a Linux Security Module)</flag> <flag name="synctex">Use libsynctex to get latex codeline from pdf</flag> </use> <upstream> diff --git a/app-text/zathura/zathura-9999.ebuild b/app-text/zathura/zathura-9999.ebuild index df2c55974e3d..5f192a3f0fd0 100644 --- a/app-text/zathura/zathura-9999.ebuild +++ b/app-text/zathura/zathura-9999.ebuild @@ -18,7 +18,7 @@ fi LICENSE="ZLIB" SLOT="0/6.7" # plugin versions api.abi (see meson.build) -IUSE="+man seccomp synctex test wayland X" +IUSE="+man landlock seccomp synctex test wayland X" RESTRICT="!test? ( test )" REQUIRED_USE=" test? ( X ) @@ -58,11 +58,19 @@ src_configure() { local emesonargs=( -Dconvert-icon=disabled - -Dlandlock=enabled $(meson_feature man manpages) + $(meson_feature landlock) $(meson_feature seccomp) $(meson_feature synctex) $(meson_feature test tests) ) meson_src_configure } +src_install() { + meson_src_install + + if use seccomp || use landlock; then + mv "${D}"/usr/bin/zathura{,-full} + dosym zathura-sandbox /usr/bin/zathura + fi +}
