git: ec2764d5ec49 - main - Mk/bsd.port.mk: prepare the land for pkg 1.17
Baptiste Daroussin
bapt at FreeBSD.org
Wed Jul 21 12:23:13 UTC 2021
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ec2764d5ec4933f52cb0718663f60f1e1b1eed7f
commit ec2764d5ec4933f52cb0718663f60f1e1b1eed7f
Author: Baptiste Daroussin <bapt at FreeBSD.org>
AuthorDate: 2021-07-21 12:19:56 +0000
Commit: Baptiste Daroussin <bapt at FreeBSD.org>
CommitDate: 2021-07-21 12:23:04 +0000
Mk/bsd.port.mk: prepare the land for pkg 1.17
in next version of pkg, we now use a uniq extension: '.pkg' whatever the
compression is, the problem is some bootstrap pkg(7) does not handle
that yet, notably on freebsd 11.4 and 12.2.
We already have a compatibility layer by creating a symlink on the old
extension, which works but the signature itself will not exist with the
old extension. Add a workaround in the ports tree to symlink the new
signature to the old expected signature.
Given at the moment we are doing that things are not yet signed by
default we do create a dead symlink, but at the moment the repo are
published the right signature will be there.
---
Mk/bsd.port.mk | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 0fe16fa5426d..228644a1845f 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2648,6 +2648,9 @@ PKGBASE?= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PKGLATESTFILE= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_SUFX}
.if ${WITH_PKG} == devel
PKGOLDLATESTFILE= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_OLDSUFX}
+# Temporary workaround to be deleted once every supported version of FreeBSD
+# have a bootstrap which handles the pkg extension.
+PKGOLDSIGFILE= ${PKGLATESTREPOSITORY}/${PKGBASE}${PKG_OLDSUFX}.sig
.endif
CONFIGURE_SCRIPT?= configure
@@ -3447,10 +3450,16 @@ ${PKGLATESTFILE}: ${PKGFILE} ${PKGLATESTREPOSITORY}
${INSTALL} -l rs ${PKGFILE} ${PKGLATESTFILE}
.if ${WITH_PKG} == devel
-_EXTRA_PACKAGE_TARGET_DEP+= ${PKGOLDLATESTFILE}
+_EXTRA_PACKAGE_TARGET_DEP+= ${PKGOLDLATESTFILE} ${PKGOLDSIGFILE}
${PKGOLDLATESTFILE}: ${PKGOLDFILE} ${PKGLATESTREPOSITORY}
${INSTALL} -l rs ${PKGOLDFILE} ${PKGOLDLATESTFILE}
+
+# Temporary workaround to be deleted once every supported version of FreeBSD
+# have a bootstrap which handles the pkg extension.
+
+${PKGOLDSIGFILE}: ${PKGLATESTREPOSITORY}
+ ${INSTALL} -l rs pkg.pkg.sig ${PKGOLDSIGFILE}
.endif
. endif
More information about the dev-commits-ports-all
mailing list