git: f552a493cc19 - 2026Q2 - Mk/bsd.port.mk: Use SETENV for EXTRACT_ENV

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Mon, 15 Jun 2026 10:12:51 UTC
The branch 2026Q2 has been updated by des:

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

commit f552a493cc19faef79b79af966df34cc2020c3eb
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-05-28 16:07:07 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-06-15 10:12:45 +0000

    Mk/bsd.port.mk: Use SETENV for EXTRACT_ENV
    
    Follow the precedent set by the other *_ENV variables in the ports
    framework.  The only practical effect is a very slight slowdown.
    
    Fixes:          98103f194302 ("Mk/bsd.port.mk: Add EXTRACT_ENV")
    Requested by:   arrowd
    MFH:            2026Q2
    Reviewed by:    mat
    Differential Revision:  https://reviews.freebsd.org/D57302
    
    (cherry picked from commit 1223a9d807e5855d72c8af0cdb3152241cf9c97f)
---
 Mk/bsd.port.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 165a9b0b2175..ae74c4737b2a 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3211,7 +3211,7 @@ clean-wrkdir:
 .    if !target(do-extract)
 do-extract: ${EXTRACT_WRKDIR}
 	@for file in ${EXTRACT_ONLY}; do \
-		if ! (cd ${EXTRACT_WRKDIR} && ${EXTRACT_ENV} ${EXTRACT_CMD} \
+		if ! (cd ${EXTRACT_WRKDIR} && ${SETENV} ${EXTRACT_ENV} ${EXTRACT_CMD} \
 		    ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
 		then \
 			${ECHO_MSG} "===>  Failed to extract \"${_DISTDIR}/$$file\"."; \