git: 18bf494c080e - main - Mk/bsd.port.mk: Use PKG_VERSION instead of PKG_BIN

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 06 Mar 2025 11:08:38 UTC
The branch main has been updated by arrowd:

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

commit 18bf494c080ea07cc1498eebae1fbfc6cd6aa3c2
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-02-26 15:12:15 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-03-06 11:08:34 +0000

    Mk/bsd.port.mk: Use PKG_VERSION instead of PKG_BIN
    
    Sponsored by:   Future Crew, LLC
---
 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 712fe0b7acd6..4063193af49b 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1210,7 +1210,7 @@ _EXPORTED_VARS+=	_PKG_TRANSITIONING_TO_NEW_EXT
 WARNING+=	"It is strongly recommended to upgrade to a newer version of pkg first"
 .      endif
 # XXX End of hack
-_PKG_STATUS!=	${PKG_BIN} version -t ${_PKG_VERSION:C/-.*//g} ${MINIMAL_PKG_VERSION}
+_PKG_STATUS!=	${PKG_VERSION} -t ${_PKG_VERSION:C/-.*//g} ${MINIMAL_PKG_VERSION}
 .      if ${_PKG_STATUS} == "<"
 IGNORE=		pkg(8) must be version ${MINIMAL_PKG_VERSION} or greater, but you have ${_PKG_VERSION}. You must upgrade the ${PKG_ORIGIN} port first
 .      endif