git: 088e21000507 - main - release: More fixes for building pkg package
Date: Fri, 19 Sep 2025 08:09:14 UTC
The branch main has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=088e21000507510a2c3b1ec22684fe9665f6c8a7
commit 088e21000507510a2c3b1ec22684fe9665f6c8a7
Author: Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-09-19 08:07:17 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-09-19 08:09:01 +0000
release: More fixes for building pkg package
* Ignore "wrong major" errors when obtaining WRKDIR.
* Put distfiles in /tmp in case /usr/ports is read-only.
MFC after: 6 hours
Sponsored by: https://www.patreon.com/cperciva
---
release/scripts/make-pkg-package.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/release/scripts/make-pkg-package.sh b/release/scripts/make-pkg-package.sh
index 7712054d26c0..ee75e7d68d14 100755
--- a/release/scripts/make-pkg-package.sh
+++ b/release/scripts/make-pkg-package.sh
@@ -9,7 +9,8 @@ unset PKG_VERSION
unset MAKEFLAGS
unset PKGBASE
export WRKDIRPREFIX=/tmp/ports.${TARGET}
-export WRKDIR=$(make -C ${PORTSDIR}/ports-mgmt/pkg -V WRKDIR)
+export DISTDIR=/tmp/distfiles
+export WRKDIR=$(make -C ${PORTSDIR}/ports-mgmt/pkg I_DONT_CARE_IF_MY_BUILDS_TARGET_THE_WRONG_RELEASE=YES -V WRKDIR)
make -C ${PORTSDIR}/ports-mgmt/pkg TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
CONFIGURE_ARGS="--host=$(uname -m)-portbld-freebsd${REVISION}" \