Date: Sun, 8 Apr 2001 21:31:47 -0500 (CDT) From: Tim Zingelman <zingelman@fnal.gov> To: <freebsd-stable@FreeBSD.ORG> Subject: make release broken with too many ports/distfiles... Message-ID: <Pine.GSO.4.30.0104082045560.940-100000@nova.fnal.gov>
next in thread | raw e-mail | index | archive | help
On a system with all (or most of) the distfiles existing in
/usr/ports/distfiles, line 680 of:
$FreeBSD: src/release/Makefile,v 1.536.2.40 2000/03/27 16:49:58
@-rm -rf /usr/ports/distfiles/*
fails to cleanup the duplicated distfiles directory, due to: "Argument
list too long", and as a result the ports tarball includes the whole set
of distfiles. (and that won't fit on a cdrom :)
Just for reference...
# cd /usr/ports/distfiles
# ls *
/bin/ls: Argument list too long.
# echo * | wc -c
83575
#
Here's a trivial patch:
diff -w -u -b -r1.536.2.40 Makefile
--- Makefile 2001/03/27 16:49:58 1.536.2.40
+++ Makefile 2001/04/09 02:21:47
@@ -677,7 +677,8 @@
@ln -f ${CD_DISC1}/kernel ${CD_DISC2}/kernel
.endif
.if !defined(NOPORTS)
- @-rm -rf /usr/ports/distfiles/*
+ @-rm -rf /usr/ports/distfiles
+ @-mkdir /usr/ports/distfiles
@mkdir -p ${CD_DISC1}/ports && \
tar --exclude CVS -czf ${CD_DISC1}/ports/ports.tgz -C /usr ports && \
cp ${.CURDIR}/scripts/ports-install.sh ${CD_DISC1}/ports/install.sh \
I just started a make release, with this patch in place. I'll reply to
this email only if it does not solve the problem as I expect it to.
Tim Zingelman <zingelman@fnal.gov>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0104082045560.940-100000>
