From 3036a22411fb59d675268b3f945410d20c3c3e6a Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Tue, 6 Feb 2018 15:56:21 +0100 Subject: sys-apps/man-db: Bump to version 2.8.0 Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- .../files/man-db-2.8.0-libseccomp_automagic.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 sys-apps/man-db/files/man-db-2.8.0-libseccomp_automagic.patch (limited to 'sys-apps/man-db/files') 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 +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 + -- cgit v1.2.3-65-gdbad