Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2023 08:53:57 GMT
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2ab2d3769ef0 - main - ports-mgmt/poudriere-devel: Also adapt "testport" to accept portconfig
Message-ID:  <202310110853.39B8rvfo036141@gitrepo.freebsd.org>

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

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

commit 2ab2d3769ef02ff757d53fdd00721d921abcd0dd
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2023-10-11 08:53:19 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2023-10-11 08:53:19 +0000

    ports-mgmt/poudriere-devel: Also adapt "testport" to accept portconfig
    
    Approved by:    bapt
    Obtained from:  https://github.com/freebsd/poudriere/commit/9c2a5dcc81d35b388a69ba711db77b5f20e261f3
---
 ports-mgmt/poudriere-devel/Makefile               |  2 +-
 ports-mgmt/poudriere-devel/files/patch-portconfig | 15 +++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/ports-mgmt/poudriere-devel/Makefile b/ports-mgmt/poudriere-devel/Makefile
index 8115d53cd85b..b32a47902b9c 100644
--- a/ports-mgmt/poudriere-devel/Makefile
+++ b/ports-mgmt/poudriere-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	poudriere
 DISTVERSION=	3.3.99.20220831
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	LOCAL/bdrewery/${PORTNAME}/ \
 		http://mirror.shatow.net/freebsd/${PORTNAME}/ \
diff --git a/ports-mgmt/poudriere-devel/files/patch-portconfig b/ports-mgmt/poudriere-devel/files/patch-portconfig
index 723ffd38cf69..ef7d75cc1471 100644
--- a/ports-mgmt/poudriere-devel/files/patch-portconfig
+++ b/ports-mgmt/poudriere-devel/files/patch-portconfig
@@ -26,3 +26,18 @@ index 745c20d8..51a9aff9 100755
  			LOCALBASE=/nonexistent \
  			-C ${PORTSDIR}/${origin} \
  			${RECURSE_COMMAND}
+diff --git a/src/share/poudriere/testport.sh b/src/share/poudriere/testport.sh
+index 07b788310..c684a3d27 100755
+--- src/share/poudriere/testport.sh
++++ src/share/poudriere/testport.sh
+@@ -231,7 +231,9 @@ injail /usr/bin/make -C ${portdir} maintainer ECHO_CMD=true || \
+     err 1 "Port is broken"
+ 
+ if [ $CONFIGSTR -eq 1 ]; then
+-	command -v dialog4ports >/dev/null 2>&1 || err 1 "You must have ports-mgmt/dialog4ports installed on the host to use -c."
++	command -v portconfig >/dev/null 2>&1 || \
++	    command -v dialog4ports >/dev/null 2>&1 || \
++	    err 1 "You must have ports-mgmt/dialog4ports or ports-mgmt/portconfig installed on the host to use -c."
+ 	__MAKE_CONF=$(mktemp -t poudriere-make.conf)
+ 	setup_makeconf "${__MAKE_CONF}" "${JAILNAME}" "${PTNAME}" "${SETNAME}"
+ 	PORTSDIR=${portsdir} \



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