From owner-freebsd-ports Sun Oct 29 16:20: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C05CA37B4FE for ; Sun, 29 Oct 2000 16:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA62376; Sun, 29 Oct 2000 16:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from vortex.greycat.com (vortex.greycat.com [207.173.133.4]) by hub.freebsd.org (Postfix) with SMTP id EE9D337B4D7 for ; Sun, 29 Oct 2000 16:18:52 -0800 (PST) Received: (qmail 17272 invoked from network); 30 Oct 2000 00:18:51 -0000 Received: from bigphred.greycat.com (207.173.133.2) by vortex.greycat.com with SMTP; 30 Oct 2000 00:18:51 -0000 Received: (from dann@localhost) by bigphred.greycat.com (8.11.1/8.11.1) id e9U0Io301724; Sun, 29 Oct 2000 16:18:50 -0800 (PST) (envelope-from dann) Message-Id: <200010300018.e9U0Io301724@bigphred.greycat.com> Date: Sun, 29 Oct 2000 16:18:50 -0800 (PST) From: Dann Lunsford Reply-To: Dann Lunsford To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/22403: "make readmes" in ports hangs if category directory is missing Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22403 >Category: ports >Synopsis: "make readmes" hangs if category directory is missing >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 29 16:20:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Dann Lunsford >Release: FreeBSD 4.1.1-STABLE i386 >Organization: not very much >Environment: FreeBSD bigphred.greycat.com 4.1.1-STABLE FreeBSD 4.1.1-STABLE #0: Tue Oct 24 22:29:49 PDT 2000 root@bigphred.greycat.com:/u2/obj/usr/src/sys/PHRED i386 >Description: "make readmes" will (apparently) hang after issuing a message if a category directory is missing (Actually, it's a cat waiting for EOF on stdin, but this is not obvious). So, if chinese is missing, you'll see "cd: can't cd to chinese"; then everything just stops. >How-To-Repeat: If any of the category directories is missing, cd /usr/ports ; make readmes. >Fix: Work around: Hit CTRL-D whenever you get the "can't cd to " message. This will allow the process to continue, but the generated toplevel README.html will contain some minor formatting gaffes. A better fix would be to alter /usr/ports/Makefile or bsd.ports.subdir.mk to check for the existence of a category directory before attempting to use it. The following is against /usr/ports/Makefile; I haven't looked at bsd.ports.subdir.mk long enough to feel comfortable with it. --- Makefile Tue Sep 26 19:08:53 2000 +++ Makefile.fixed Sun Oct 29 11:24:26 2000 @@ -1,53 +1,59 @@ # $FreeBSD: ports/Makefile,v 1.60 2000/09/27 02:08:53 asami Exp $ # -SUBDIR += archivers -SUBDIR += astro -SUBDIR += audio -SUBDIR += benchmarks -SUBDIR += biology -SUBDIR += cad -SUBDIR += chinese -SUBDIR += comms -SUBDIR += converters -SUBDIR += databases -SUBDIR += deskutils -SUBDIR += devel -SUBDIR += editors -SUBDIR += emulators -SUBDIR += french -SUBDIR += ftp -SUBDIR += games -SUBDIR += german -SUBDIR += graphics -SUBDIR += hebrew -SUBDIR += irc -SUBDIR += japanese -SUBDIR += java -SUBDIR += korean -SUBDIR += lang -SUBDIR += mail -SUBDIR += math -SUBDIR += mbone -SUBDIR += misc -SUBDIR += net -SUBDIR += news -SUBDIR += palm -SUBDIR += print -SUBDIR += russian -SUBDIR += security -SUBDIR += shells -SUBDIR += sysutils -SUBDIR += textproc -SUBDIR += vietnamese -SUBDIR += www -SUBDIR += x11 -SUBDIR += x11-clocks -SUBDIR += x11-fm -SUBDIR += x11-fonts -SUBDIR += x11-servers -SUBDIR += x11-toolkits -SUBDIR += x11-wm +XXTMPDIR += archivers +XXTMPDIR += astro +XXTMPDIR += audio +XXTMPDIR += benchmarks +XXTMPDIR += biology +XXTMPDIR += cad +XXTMPDIR += chinese +XXTMPDIR += comms +XXTMPDIR += converters +XXTMPDIR += databases +XXTMPDIR += deskutils +XXTMPDIR += devel +XXTMPDIR += editors +XXTMPDIR += emulators +XXTMPDIR += french +XXTMPDIR += ftp +XXTMPDIR += games +XXTMPDIR += german +XXTMPDIR += graphics +XXTMPDIR += hebrew +XXTMPDIR += irc +XXTMPDIR += japanese +XXTMPDIR += java +XXTMPDIR += korean +XXTMPDIR += lang +XXTMPDIR += mail +XXTMPDIR += math +XXTMPDIR += mbone +XXTMPDIR += misc +XXTMPDIR += net +XXTMPDIR += news +XXTMPDIR += palm +XXTMPDIR += print +XXTMPDIR += russian +XXTMPDIR += security +XXTMPDIR += shells +XXTMPDIR += sysutils +XXTMPDIR += textproc +XXTMPDIR += vietnamese +XXTMPDIR += www +XXTMPDIR += x11 +XXTMPDIR += x11-clocks +XXTMPDIR += x11-fm +XXTMPDIR += x11-fonts +XXTMPDIR += x11-servers +XXTMPDIR += x11-toolkits +XXTMPDIR += x11-wm + +.for dir in ${XXTMPDIR} +.if exists(${dir}) +SUBDIR += ${dir} +.endif +.endfor PORTSTOP= yes >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message