git: 78b01411ebc0 - 2021Q4 - security/sssd: Fix installation with automake 1.16.4

From: Tijl Coosemans <tijl_at_FreeBSD.org>
Date: Wed, 27 Oct 2021 19:26:49 UTC
The branch 2021Q4 has been updated by tijl:

URL: https://cgit.FreeBSD.org/ports/commit/?id=78b01411ebc078d12fc4fa01db49d00f7e36a526

commit 78b01411ebc078d12fc4fa01db49d00f7e36a526
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2021-10-09 13:16:12 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2021-10-27 19:26:27 +0000

    security/sssd: Fix installation with automake 1.16.4
    
    Patch the configure script so it evaluates a variable that uses
    PYTHON_PREFIX (since automake 1.16.4) before PYTHON_PREFIX is unset.
    
    PR:             258898
    Approved by:    maintainer timeout (2 weeks)
    
    (cherry picked from commit b07a361a29711f26c51b24b433662baa37648194)
---
 security/sssd/files/patch-configure.ac | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/security/sssd/files/patch-configure.ac b/security/sssd/files/patch-configure.ac
index 26284c2f63d5..4139f9c873e5 100644
--- a/security/sssd/files/patch-configure.ac
+++ b/security/sssd/files/patch-configure.ac
@@ -1,8 +1,6 @@
-diff --git configure.ac configure.ac
-index 9df463d9c..17d0d9ea7 100644
---- configure.ac
+--- configure.ac.orig	2020-03-17 13:31:28 UTC
 +++ configure.ac
-@@ -44,8 +44,6 @@ AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes])
+@@ -44,8 +44,6 @@ AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = y
  AC_CHECK_HEADERS(stdint.h dlfcn.h)
  AC_CONFIG_HEADER(config.h)
  
@@ -11,3 +9,14 @@ index 9df463d9c..17d0d9ea7 100644
  m4_include([src/build_macros.m4])
  BUILD_WITH_SHARED_BUILD_DIR
  
+@@ -356,8 +354,8 @@ them please use argument --without-python3-bindings wh
+     AM_CHECK_PYTHON_HEADERS([],
+                             AC_MSG_ERROR([Could not find python3 headers]))
+ 
+-    AC_SUBST([py3execdir], [$pyexecdir])
+-    AC_SUBST([python3dir], [$pythondir])
++    AC_SUBST([py3execdir], [$(eval echo $pyexecdir)])
++    AC_SUBST([python3dir], [$(eval echo $pythondir)])
+     AC_SUBST([PYTHON3_CFLAGS], [$PYTHON_CFLAGS])
+     AC_SUBST([PYTHON3_LIBS], [$PYTHON_LIBS])
+     AC_SUBST([PYTHON3_INCLUDES], [$PYTHON_INCLUDES])