git: 188fe88ec50e - main - pkgbase: force OSVERSION

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Fri, 03 Nov 2023 08:30:31 UTC
The branch main has been updated by bapt:

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

commit 188fe88ec50eac7c10e1d8350bf1180f8c16e463
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2023-11-03 08:29:23 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2023-11-03 08:29:23 +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
---
 Makefile.inc1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index a49903a30903..c1c0b56efd1b 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2192,6 +2192,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} \