diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2025-09-19 08:07:17 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2025-09-19 08:09:01 +0000 |
| commit | 088e21000507510a2c3b1ec22684fe9665f6c8a7 (patch) | |
| tree | 047dc7da59ad357dfdd8104480b7d4cf55e8dab9 | |
| parent | 627b778d9e6b603a44a010d22d823ca7c392b363 (diff) | |
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
| -rwxr-xr-x | release/scripts/make-pkg-package.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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}" \ |
