Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 2021 13:37:07 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 98b8e8b444dc - main - Mk/bsd.port.mk: configurable delay identify-install-conflicts
Message-ID:  <202111081337.1A8Db769020965@gitrepo.freebsd.org>

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

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

commit 98b8e8b444dc2e7c37266205af6225034e20e560
Author:     Trond Endrestøl <Trond.Endrestol@ximalas.info>
AuthorDate: 2021-11-08 13:34:57 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-11-08 13:36:58 +0000

    Mk/bsd.port.mk: configurable delay identify-install-conflicts
    
    Instead of hardcoding the 10s delay for the conflicts warning, add
    a new variable CONFLICT_WARNING_WAIT the same way we have WARNING_WAIT
    and DEV_WARNING_WAIT
    
    PR:             248548
---
 Mk/bsd.port.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 40144769d967..317b65f748e2 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3359,6 +3359,7 @@ check-build-conflicts:
 .endif
 
 .if !target(identify-install-conflicts)
+CONFLICT_WARNING_WAIT?=	10
 identify-install-conflicts:
 .if ( defined(CONFLICTS) || defined(CONFLICTS_INSTALL) ) && !defined(DISABLE_CONFLICTS)
 	@conflicts_with=$$( \
@@ -3377,7 +3378,7 @@ identify-install-conflicts:
 		${ECHO_MSG}; \
 		${ECHO_MSG} "      They install files into the same place."; \
 		${ECHO_MSG} "      You may want to stop build with Ctrl + C."; \
-		sleep 10; \
+		sleep ${CONFLICT_WARNING_WAIT}; \
 	fi
 .endif
 .endif



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