git: a7fb33b94683 - stable/14 - pkgbase: force OSVERSION

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Sat, 02 Dec 2023 09:45:34 UTC
The branch stable/14 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=a7fb33b9468362416db157cdbcc1dbaa4665be2f

commit a7fb33b9468362416db157cdbcc1dbaa4665be2f
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2023-11-03 08:29:23 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-12-02 09:44:59 +0000

    pkgbase: force OSVERSION
    
    This is used to the package annotation helping pkg to know about
    backward compatibility is set to the version of the packages not
    the version of the host building the packages
    
    (cherry picked from commit 188fe88ec50eac7c10e1d8350bf1180f8c16e463)
---
 Makefile.inc1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 7e62894405df..67fe06aa1135 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2193,6 +2193,7 @@ sign-packages:	_pkgbootstrap .PHONY
 	@[ -L "${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/latest" ] && \
 		unlink ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/latest ; \
 	${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname repo \
+		-o OSVERSION="${OSRELDATE}" \
 		-m ${WSTAGEDIR}/meta \
 		-o ${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \
 		${REPODIR}/$$(${PKG_CMD} -o ABI_FILE=${WSTAGEDIR}/usr/bin/uname config ABI)/${PKG_VERSION} \