Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2022 12:08:46 GMT
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: e00d16832d53 - 2022Q1 - net/asterisk16: Fix build when textproc/xmlstarlet is installed
Message-ID:  <202203051208.225C8k34088369@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q1 has been updated by madpilot:

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

commit e00d16832d53fa4a6872eeddbc4c505e683eb5c6
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2022-02-12 14:25:52 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2022-03-05 12:07:06 +0000

    net/asterisk16: Fix build when textproc/xmlstarlet is installed
    
    Asterisk build system checks for presence of xmlstarlet as "xml"
    binary on the system.
    
    If found it triggers part of the build system trying to download
    some external files during the install phase which even uses a
    command line tool not available on FreeBSD.
    
    Such code is not necessary for the port, as all supported modules
    are downloaded using ports tree provided functionality. Furthermore
    downloading files from the internet is forbidden during the install
    phase.
    
    This patch forces the variable used by the Makefiles to identify
    xmlstarlet presence to be empty. so the code path described above
    is not triggered.
    
    PR:             261884
    (cherry picked from commit f0f667985b8db89511e7caf5a37fa151f10e1cde)
---
 net/asterisk16/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/net/asterisk16/Makefile b/net/asterisk16/Makefile
index 13cfd4632e91..423862bbf71c 100644
--- a/net/asterisk16/Makefile
+++ b/net/asterisk16/Makefile
@@ -240,6 +240,7 @@ post-extract-OPUS-on:
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|/var/lib|${PREFIX}/share|g' ${WRKSRC}/configs/samples/musiconhold.conf.sample
+	@${REINPLACE_CMD} -e 's/@XMLSTARLET@//' ${WRKSRC}/makeopts.in
 .if exists(${FILESDIR}/.asterisk.makeopts)
 	${CP} ${FILESDIR}/.asterisk.makeopts ${WRKSRC}/menuselect.makeopts
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203051208.225C8k34088369>