pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/comms/asterisk19



Module Name:    pkgsrc
Committed By:   gdt
Date:           Tue Jul  8 11:54:39 UTC 2025

Modified Files:
        pkgsrc/comms/asterisk19: Makefile

Log Message:
comms/asterisk19: Use bash for CONFIG_SHELL

Resolves 'bad substitution' if xmlstarlet is installed.
No apparent change to binary package.

\todo Check and apply if necessary to all other asterisk versions
after a week, unless a different fix (e.g. bash exorcism) appears
first.

As reported in pkg/59478 for asterisk22.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/comms/asterisk19/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/comms/asterisk19/Makefile
diff -u pkgsrc/comms/asterisk19/Makefile:1.43 pkgsrc/comms/asterisk19/Makefile:1.44
--- pkgsrc/comms/asterisk19/Makefile:1.43       Sat Jul  5 19:59:36 2025
+++ pkgsrc/comms/asterisk19/Makefile    Tue Jul  8 11:54:38 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.43 2025/07/05 19:59:36 gdt Exp $
+# $NetBSD: Makefile,v 1.44 2025/07/08 11:54:38 gdt Exp $
 #
 # NOTE: when updating this package, there are two places that sound
 #       tarballs need to be checked; look in ${WRKSRC}/sounds/Makefile
@@ -32,10 +32,7 @@ MKPIE_SUPPORTED=     NO
 
 .include "../../mk/bsd.prefs.mk"
 
-USE_TOOLS+=            bison gmake perl:run pkg-config tar bash:run
-# asterisk checks for `xml`, provided in pkgsrc if `xmlstarlet` is installed,
-# and then fails with a mysterious "bad substitution".
-# \todo Fix asterisk to build in the presence of xmlstarlet.
+USE_TOOLS+=            bison gmake perl:run pkg-config tar bash
 USE_LANGUAGES=         c c++
 REPLACE_BASH+=         contrib/scripts/astversion
 REPLACE_BASH+=         contrib/scripts/ast_coredumper
@@ -49,6 +46,10 @@ REPLACE_PYTHON+=     contrib/scripts/reflock
 CHECK_INTERPRETER_SKIP+=       libdata/asterisk/scripts/refcounter.py
 
 GNU_CONFIGURE=         yes
+# asterisk's makefiles don't work with POSIX shell if xmlstarlet is
+# installed, even though they are not documented to need bash.  Work
+# around that by specifying bash as the shell for configure.
+CONFIG_SHELL=          ${TOOLS_PATH.bash}
 CONFIGURE_ARGS+=       --datarootdir=${PREFIX}/libdata
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --without-gtk2



Home | Main Index | Thread Index | Old Index