From ec2764d5ec4933f52cb0718663f60f1e1b1eed7f Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 21 Jul 2021 14:19:56 +0200 Subject: [PATCH] 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