git: f512ec40bbbd - releng/15.0 - release: GCE builds depend on ftp

From: Colin Percival <cperciva_at_FreeBSD.org>
Date: Thu, 06 Nov 2025 23:12:00 UTC
The branch releng/15.0 has been updated by cperciva:

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

commit f512ec40bbbd0263c3bad98283784f95fe5e1267
Author:     Colin Percival <cperciva@FreeBSD.org>
AuthorDate: 2025-11-03 21:41:14 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-11-06 23:11:23 +0000

    release: GCE builds depend on ftp
    
    GCE images are required by Google to include their source code; we do
    this by extracting {src,ports}.txz into the images, from the (legacy)
    distribution sets.
    
    Make sure those distribution sets actually exist.
    
    Approved by:    re (cperciva)
    Reviewed by:    ivy
    MFC after:      3 days
    Differential Revision:  https://reviews.freebsd.org/D53567
    
    (cherry picked from commit 7f536b1c1146c4bc5cde336e1fe7a083f2874f11)
    (cherry picked from commit a1b00e368926198a163015bfe21171f2d582c703)
---
 release/Makefile.vm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/release/Makefile.vm b/release/Makefile.vm
index a04f779ebebb..142fd6e7bdf5 100644
--- a/release/Makefile.vm
+++ b/release/Makefile.vm
@@ -129,6 +129,13 @@ ${_CW:tu}${_FS:tu}${_FMT:tu}IMAGE=	${_CW:tl}.${_FS}.${_FMT}
 cw-${_CW:tl}-${_FS}-${_FMT}: cw-ec2-base-${_FS}-${_FMT}
 .endif
 
+# Special handling: GCE images ingest src.txz and ports.txz and expect them
+# to be in the /ftp/ directory.  Note: This will need to be reworked before
+# distribution sets go away!
+.if ${_CW} == GCE
+cw-${_CW:tl}-${_FS}-${_FMT}: ftp
+.endif
+
 cw-${_CW:tl}-${_FS}-${_FMT}: ${QEMUTGT} ${PKGBASE_REPO_DIR}
 	mkdir -p ${.OBJDIR}/${.TARGET}
 	env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} SWAPSIZE=${SWAPSIZE} \