summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonatan Pålsson <jonatan.p@gmail.com>2020-08-25 14:01:18 +0200
committerArmin Kuster <akuster808@gmail.com>2020-08-29 07:25:35 -0700
commit5efa53b2b2bab6f2d8589624c1700d1e66f29683 (patch)
treee434198b1afe35c5b0a1c0343e1be45b0f953dde
parent55cbb636340ed7da08a0ae338b54d72c66d41242 (diff)
downloadmeta-security-5efa53b2b2bab6f2d8589624c1700d1e66f29683.tar.gz
sssd: Make manpages buildable
Some XML related fixes are needed to make the sssd manpages buildable Signed-off-by: Jonatan Pålsson <jonatan.p@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-security/sssd/files/0001-build-Don-t-use-AC_CHECK_FILE-when-building-manpages.patch34
-rw-r--r--recipes-security/sssd/sssd_1.16.4.bb4
2 files changed, 37 insertions, 1 deletions
diff --git a/recipes-security/sssd/files/0001-build-Don-t-use-AC_CHECK_FILE-when-building-manpages.patch b/recipes-security/sssd/files/0001-build-Don-t-use-AC_CHECK_FILE-when-building-manpages.patch
new file mode 100644
index 0000000..b64670c
--- /dev/null
+++ b/recipes-security/sssd/files/0001-build-Don-t-use-AC_CHECK_FILE-when-building-manpages.patch
@@ -0,0 +1,34 @@
1From d54aa109600bcd02bf72cfe64c01935890a102a1 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= <jonatan.p@gmail.com>
3Date: Fri, 21 Aug 2020 14:45:10 +0200
4Subject: [PATCH] build: Don't use AC_CHECK_FILE when building manpages
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9AC_CHECK_FILE does not support cross-compilation, and will only check
10the host rootfs. Replace AC_CHECK_FILE with a 'test -f <FILE>' instead,
11to allow building manpages when cross-compiling.
12
13Upstream-status: Submitted [https://github.com/SSSD/sssd/pull/5289]
14Signed-off-by: Jonatan Pålsson <jonatan.p@gmail.com>
15---
16 src/external/docbook.m4 | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/external/docbook.m4 b/src/external/docbook.m4
20index deb8632fa..acdc89a68 100644
21--- a/src/external/docbook.m4
22+++ b/src/external/docbook.m4
23@@ -18,7 +18,7 @@ dnl Checks if the XML catalog given by FILE exists and
24 dnl if a particular URI appears in the XML catalog
25 AC_DEFUN([CHECK_STYLESHEET],
26 [
27- AC_CHECK_FILE($1, [], [AC_MSG_ERROR([could not find XML catalog])])
28+ AS_IF([test -f "$1"], [], [AC_MSG_ERROR([could not find XML catalog])])
29
30 AC_MSG_CHECKING([for ifelse([$3],,[$2],[$3]) in XML catalog])
31 if AC_RUN_LOG([$XSLTPROC --catalogs --nonet --noout "$2" >&2]); then
32--
332.26.1
34
diff --git a/recipes-security/sssd/sssd_1.16.4.bb b/recipes-security/sssd/sssd_1.16.4.bb
index 2c3c803..916f1ac 100644
--- a/recipes-security/sssd/sssd_1.16.4.bb
+++ b/recipes-security/sssd/sssd_1.16.4.bb
@@ -17,6 +17,7 @@ SRC_URI = "https://releases.pagure.org/SSSD/${BPN}/${BP}.tar.gz \
17 file://sssd.conf \ 17 file://sssd.conf \
18 file://volatiles.99_sssd \ 18 file://volatiles.99_sssd \
19 file://fix-ldblibdir.patch \ 19 file://fix-ldblibdir.patch \
20 file://0001-build-Don-t-use-AC_CHECK_FILE-when-building-manpages.patch \
20 " 21 "
21 22
22SRC_URI[md5sum] = "757bbb6f15409d8d075f4f06cb678d50" 23SRC_URI[md5sum] = "757bbb6f15409d8d075f4f06cb678d50"
@@ -41,7 +42,7 @@ PACKAGECONFIG[autofs] = "--with-autofs, --with-autofs=no"
41PACKAGECONFIG[crypto] = "--with-crypto=libcrypto, , libcrypto" 42PACKAGECONFIG[crypto] = "--with-crypto=libcrypto, , libcrypto"
42PACKAGECONFIG[curl] = "--with-kcm, --without-kcm, curl jansson" 43PACKAGECONFIG[curl] = "--with-kcm, --without-kcm, curl jansson"
43PACKAGECONFIG[infopipe] = "--with-infopipe, --with-infopipe=no, " 44PACKAGECONFIG[infopipe] = "--with-infopipe, --with-infopipe=no, "
44PACKAGECONFIG[manpages] = "--with-manpages, --with-manpages=no" 45PACKAGECONFIG[manpages] = "--with-manpages, --with-manpages=no, libxslt-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
45PACKAGECONFIG[nl] = "--with-libnl, --with-libnl=no, libnl" 46PACKAGECONFIG[nl] = "--with-libnl, --with-libnl=no, libnl"
46PACKAGECONFIG[nscd] = "--with-nscd=${sbindir}, --with-nscd=no " 47PACKAGECONFIG[nscd] = "--with-nscd=${sbindir}, --with-nscd=no "
47PACKAGECONFIG[nss] = "--with-crypto=nss, ,nss," 48PACKAGECONFIG[nss] = "--with-crypto=nss, ,nss,"
@@ -60,6 +61,7 @@ EXTRA_OECONF += " \
60 --enable-pammoddir=${base_libdir}/security \ 61 --enable-pammoddir=${base_libdir}/security \
61 --without-python2-bindings \ 62 --without-python2-bindings \
62 --without-secrets \ 63 --without-secrets \
64 --with-xml-catalog-path=${STAGING_ETCDIR_NATIVE}/xml/catalog \
63" 65"
64 66
65do_configure_prepend() { 67do_configure_prepend() {