URL: https://github.com/SSSD/sssd/pull/5289 Author: jonte Title: #5289: build: Don't use AC_CHECK_FILE when building manpages Action: opened
PR body: """ AC_CHECK_FILE does not support cross-compilation, and will only check the host rootfs. Replace AC_CHECK_FILE with a 'test -f <FILE>' instead, to allow building manpages when cross-compiling. Signed-off-by: Jonatan Pålsson <jonata...@gmail.com> """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/5289/head:pr5289 git checkout pr5289
From d54aa109600bcd02bf72cfe64c01935890a102a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= <jonata...@gmail.com> Date: Fri, 21 Aug 2020 14:45:10 +0200 Subject: [PATCH] build: Don't use AC_CHECK_FILE when building manpages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AC_CHECK_FILE does not support cross-compilation, and will only check the host rootfs. Replace AC_CHECK_FILE with a 'test -f <FILE>' instead, to allow building manpages when cross-compiling. Signed-off-by: Jonatan Pålsson <jonata...@gmail.com> --- src/external/docbook.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/docbook.m4 b/src/external/docbook.m4 index deb8632fad..acdc89a683 100644 --- a/src/external/docbook.m4 +++ b/src/external/docbook.m4 @@ -18,7 +18,7 @@ dnl Checks if the XML catalog given by FILE exists and dnl if a particular URI appears in the XML catalog AC_DEFUN([CHECK_STYLESHEET], [ - AC_CHECK_FILE($1, [], [AC_MSG_ERROR([could not find XML catalog])]) + AS_IF([test -f "$1"], [], [AC_MSG_ERROR([could not find XML catalog])]) AC_MSG_CHECKING([for ifelse([$3],,[$2],[$3]) in XML catalog]) if AC_RUN_LOG([$XSLTPROC --catalogs --nonet --noout "$2" >&2]); then
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org