diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-02-06 15:56:21 +0100 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-02-06 15:56:35 +0100 |
commit | 3036a22411fb59d675268b3f945410d20c3c3e6a (patch) | |
tree | caac7faf3115ab1c8dfc3baf6de6a664516c40f6 /sys-apps/man-db/files | |
parent | www-client/vivaldi: Version 1.14.1077.45_p1. (diff) | |
download | gentoo-3036a22411fb59d675268b3f945410d20c3c3e6a.tar.gz gentoo-3036a22411fb59d675268b3f945410d20c3c3e6a.tar.bz2 gentoo-3036a22411fb59d675268b3f945410d20c3c3e6a.zip |
sys-apps/man-db: Bump to version 2.8.0
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'sys-apps/man-db/files')
-rw-r--r-- | sys-apps/man-db/files/man-db-2.8.0-libseccomp_automagic.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-apps/man-db/files/man-db-2.8.0-libseccomp_automagic.patch b/sys-apps/man-db/files/man-db-2.8.0-libseccomp_automagic.patch new file mode 100644 index 000000000000..333bc5fe2957 --- /dev/null +++ b/sys-apps/man-db/files/man-db-2.8.0-libseccomp_automagic.patch @@ -0,0 +1,45 @@ +From c693c0d6c41e777def51984035710779697d1989 Mon Sep 17 00:00:00 2001 +From: Lars Wendler <polynomial-c@gentoo.org> +Date: Tue, 6 Feb 2018 14:41:22 +0100 +Subject: [PATCH] Change libseccomp logic to not be automagic only. + +Introduce --with-libseccomp configure option so that users can disable +seccomp even if libseccomp is available on the system. +The default is unchanged to before this patch. If no --with(out)-libseccomp +has been given on command line, the macro looks for presence of libseccomp +and uses that if found. +--- + m4/man-libseccomp.m4 | 19 ++++++++++++++----- + 1 file changed, 14 insertions(+), 5 deletions(-) + +diff --git a/m4/man-libseccomp.m4 b/m4/man-libseccomp.m4 +index a9377317..17a52f72 100644 +--- a/m4/man-libseccomp.m4 ++++ b/m4/man-libseccomp.m4 +@@ -1,9 +1,18 @@ + # man-libseccomp.m4 serial 1 + dnl MAN_LIBSECCOMP +-dnl Check for the libseccomp library. ++dnl Add a --with-libseccomp option. + AC_DEFUN([MAN_LIBSECCOMP], +-[PKG_CHECK_MODULES([libseccomp], [libseccomp], +- [AC_DEFINE([HAVE_LIBSECCOMP], [1], +- [Define to 1 if you have the `libseccomp' library.])], +- [:]) ++ [AC_ARG_WITH([libseccomp], ++ [AS_HELP_STRING([--with-libseccomp], ++ [use libseccomp to do most subprocessing])], ++ [], ++ [with_libseccomp=check]) ++ if test "x$with_libseccomp" != "xno"; then ++ PKG_CHECK_MODULES([libseccomp], [libseccomp], ++ [AC_DEFINE([HAVE_LIBSECCOMP], [1], ++ [Define to 1 if you have the `libseccomp' library.])], ++ [if test "xyes" = "x$with_libseccomp"; then ++ AC_MSG_ERROR(--with-libseccomp given but cannot find libseccomp) ++ fi]) ++ fi + ]) # MAN_LIBSECCOMP +-- +2.16.1 + |