Date: Tue, 18 Sep 2001 08:40:02 -0700 (PDT) From: Peter Pentchev <roam@ringlet.net> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/30647: "make release" in src/release/ creates ports.tgz that includes distfiles Message-ID: <200109181540.f8IFe2O78609@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/30647; it has been noted by GNATS.
From: Peter Pentchev <roam@ringlet.net>
To: NIIMI Satoshi <sa2c@and.or.jp>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/30647: "make release" in src/release/ creates ports.tgz that includes distfiles
Date: Tue, 18 Sep 2001 18:33:45 +0300
On Tue, Sep 18, 2001 at 08:00:37AM -0700, NIIMI Satoshi wrote:
>
> >Number: 30647
> >Category: misc
> >Synopsis: "make release" in src/release/ creates ports.tgz that includes distfiles
> >Originator: NIIMI Satoshi
> >Release: 4.4-RELEASE
> >Organization:
> >Environment:
> FreeBSD berkeley.sa2c.net 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Sun Sep 16 13:03:19 JST 2001 sa2c@berkeley.sa2c.net:/usr/obj/usr/src/sys/BERKELEY i386
> >Description:
> "make release" in src/relase with very large /usr/ports/distfiles,
> cdrom.1 target in src/relase/Makefile failes to remove distfile.
> This causes very large (for me, over 5GB)
> ${CHROOT}/R/cdrom/disc1/ports/ports.tgz.
>
> >How-To-Repeat:
> cd /usr/ports; make -k BATCH=yes fetch
> cd /usr/src/release; make release RELEASETAG=RELENG_4_4_0_RELEASE blah blah...
>
> >Fix:
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/src/release/Makefile,v
> retrieving revision 1.536.2.56
> diff -u -r1.536.2.56 Makefile
> --- Makefile 2001/09/13 06:58:31 1.536.2.56
> +++ Makefile 2001/09/18 14:57:39
> @@ -756,6 +756,7 @@
> @cp ${CD_DISC1}/floppies/boot.flp ${CD_DISC2}/floppies
> .endif
> .if !defined(NOPORTS)
> + @find /usr/ports/distfiles -type f -print0 | xargs -0 rm -rf --
> @-rm -rf /usr/ports/distfiles/*
> @mkdir -p ${CD_DISC1}/ports && \
> tar --exclude CVS -czf ${CD_DISC1}/ports/ports.tgz -C /usr ports && \
Without actually having looked at the problem (the 'rm -rf' at the next
line is supposed to do the trick), the line you added could be also
written as:
@find /usr/ports/distfiles -type f -delete
It is another question just why the rm -rf cannot really delete things..
G'luck,
Peter
--
Hey, out there - is it *you* reading me, or is it someone else?
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109181540.f8IFe2O78609>
