Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Oct 2000 16:18:50 -0800 (PST)
From:      Dann Lunsford <dann@greycat.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/22403: "make readmes" in ports hangs if category directory is missing
Message-ID:  <200010300018.e9U0Io301724@bigphred.greycat.com>

next in thread | raw e-mail | index | archive | help

>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 <blah>"
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010300018.e9U0Io301724>