Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2024 04:16:41 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 024b595495f2 - stable/13 - release.sh: Pass ARCH_FLAGS when setting VMSIZE
Message-ID:  <202410160416.49G4GfSZ036300@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cperciva:

URL: https://cgit.FreeBSD.org/src/commit/?id=024b595495f240625ef2096efd6969084770855b

commit 024b595495f240625ef2096efd6969084770855b
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2024-07-06 17:15:22 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2024-10-16 04:16:18 +0000

    release.sh: Pass ARCH_FLAGS when setting VMSIZE
    
    The default VM size may depend on the architecture.  In particular,
    it is currently larged on riscv64 due to a toolchain issue which
    results in bloated binaries.
    
    MFC after:      3 days
    Fixes:  59c21ed6e811 "release: Bump default VM size for riscv64 to 6 GB"
    Sponsored by:   Amazon
    
    (cherry picked from commit ed807f7bcaecbf32b0b81a7d18cee489a3666157)
---
 release/release.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/release/release.sh b/release/release.sh
index c9d0203debd4..8e22af254d69 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -335,7 +335,7 @@ chroot_build_release() {
 		fi
 		if [ -z "${VMSIZE}" ]; then
 			VMSIZE="$(eval chroot ${CHROOTDIR} \
-				make -C /usr/src/release -V VMSIZE)"
+				make -C /usr/src/release ${ARCH_FLAGS} -V VMSIZE)"
 		fi
 		RELEASE_RMAKEFLAGS="${RELEASE_RMAKEFLAGS} \
 			VMFORMATS=\"${VMFORMATS}\" VMSIZE=${VMSIZE}"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410160416.49G4GfSZ036300>