From owner-freebsd-bugs Tue Jan 22 23:30: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C259F37B405 for ; Tue, 22 Jan 2002 23:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0N7U1R68873; Tue, 22 Jan 2002 23:30:01 -0800 (PST) (envelope-from gnats) Received: from rumori.com (client62-2-193-38.hispeed.ch [62.2.193.38]) by hub.freebsd.org (Postfix) with ESMTP id 3ECA837B402 for ; Tue, 22 Jan 2002 23:22:44 -0800 (PST) Received: (from ast@localhost) by rumori.com (8.11.6/8.11.6) id g0N7MdD83170; Wed, 23 Jan 2002 08:22:39 +0100 (MET) (envelope-from ast) Message-Id: <200201230722.g0N7MdD83170@rumori.com> Date: Wed, 23 Jan 2002 08:22:39 +0100 (MET) From: Adrian Steinmann Reply-To: Adrian Steinmann To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: misc/34194: 'make release' removes distfiles too early when making ISO images Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34194 >Category: misc >Synopsis: 'make release' removes distfiles too early when making ISO images >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 22 23:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Adrian Steinmann >Release: FreeBSD 4.4-STYX i386 >Organization: Webgroup Consulting AG >Environment: System: FreeBSD rumori.com 4.4-STYX FreeBSD 4.4-STYX #2: Fri Aug 31 13:23:17 MEST 2001 root@rumori.com:/usr/src/sys/compile/RUM i386 -stable build system >Description: 'make release' removes ports/distfiles before rolling ports.tgz for the distribution. Later, 'make release' then needs to fetch cdrtools because it wants mkisofs when "-DMAKE_ISOS" is specified. >How-To-Repeat: make release -DMAKE_ISOS >Fix: Instead of removing ports/distfiles, we exclude distfiles in the tar command (analog --exclude CVS, which is already there). The following patch has been verified, the resulting ports.tgz does not contain ports/distfiles, and cdrtools was not fetched during the make release process because it was still present in the (chrooted) usr/ports/distfiles. *** release/Makefile.orig Sat Jan 19 15:56:22 2002 --- release/Makefile Mon Jan 21 17:52:50 2002 *************** *** 789,797 **** @cp ${CD_DISC1}/floppies/boot.flp ${CD_DISC2}/floppies .endif .if !defined(NOPORTS) - @-rm -rf /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 \ && (cd ${CD_DISC1}/ports; md5 * > CHECKSUM.MD5) .endif --- 792,800 ---- @cp ${CD_DISC1}/floppies/boot.flp ${CD_DISC2}/floppies .endif .if !defined(NOPORTS) @mkdir -p ${CD_DISC1}/ports && \ ! tar --exclude CVS --exclude distfiles -czf \ ! ${CD_DISC1}/ports/ports.tgz -C /usr ports && \ cp ${.CURDIR}/scripts/ports-install.sh ${CD_DISC1}/ports/install.sh \ && (cd ${CD_DISC1}/ports; md5 * > CHECKSUM.MD5) .endif >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message