From pcasidy@casidy.com  Fri Jun 29 03:48:54 2001
Return-Path: <pcasidy@casidy.com>
Received: from tamaris.wanadoo.fr (smtp-rt-12.wanadoo.fr [193.252.19.60])
	by hub.freebsd.org (Postfix) with ESMTP id 590FB37B403
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 29 Jun 2001 03:48:52 -0700 (PDT)
	(envelope-from pcasidy@casidy.com)
Received: from citronier.wanadoo.fr (193.252.19.222) by tamaris.wanadoo.fr; 29 Jun 2001 12:48:50 +0200
Received: from greatoak.home (193.248.220.198) by citronier.wanadoo.fr; 29 Jun 2001 12:48:50 +0200
Received: (from pcasidy@localhost)
	by greatoak.home (8.11.4/8.11.3) id f5TAKDx21334;
	Fri, 29 Jun 2001 12:20:13 +0200 (CEST)
	(envelope-from pcasidy)
Message-Id: <200106291020.f5TAKDx21334@greatoak.home>
Date: Fri, 29 Jun 2001 12:20:13 +0200 (CEST)
From: Philippe Casidy <pcasidy@casidy.com>
Reply-To: Philippe Casidy <pcasidy@casidy.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Can't make ports readmes if categories missing.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         28510
>Category:       ports
>Synopsis:       Can't make ports readmes if categories missing.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 29 03:50:01 PDT 2001
>Closed-Date:    Sun Dec 23 03:11:40 PST 2001
>Last-Modified:  Sun Dec 23 03:11:50 PST 2001
>Originator:     Philippe Casidy
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD greatoak.home 4.3-STABLE FreeBSD 4.3-STABLE #0: Fri Jun 22 15:58:43 CEST 2001 updater@greatoak.home:/home/nobackup/obj/home/nobackup/src/sys/GREATOAK i386


	
>Description:
	One use removed categories from ports such as specific languages
	categories or whatever (chinese, games...).
	When trying to create all readmes, makefile fails to cd to
	removed categories.
>How-To-Repeat:
	remove chinese (or else) category from ports.
	make readmes
	=> can't cd to chinese...
>Fix:
	I suggest this patch. "works for me".
	WARNING: this is a makefile path. Watch out for TABs replaced
		by spaces while copy/pasting.

*** bsd.port.subdir.mk  Fri Jun 29 12:16:13 2001
--- bsd.port.subdir.mk.new      Fri Jun 29 12:17:22 2001
***************
*** 1,5 ****
  #     from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
! # $FreeBSD: ports/Mk/bsd.port.subdir.mk,v 1.40 2001/06/29 03:39:54 green Exp $
  #
  # The include file <bsd.port.subdir.mk> contains the default targets
  # for building ports subdirectories. 
--- 1,5 ----
  #     from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
! # $FreeBSD$
  #
  # The include file <bsd.port.subdir.mk> contains the default targets
  # for building ports subdirectories. 
***************
*** 207,218 ****
--- 207,220 ----
        @echo "===>  Creating README.html"
        @> $@.tmp
  .for entry in ${SUBDIR}
+ .if exists(${entry})
  .if defined(PORTSTOP)
  	@echo -n '<a href="'${entry}/README.html'">'"`echo ${entry} | ${HTMLIFY}
`"'</a>: ' >> $@.tmp
  .else
   	@echo -n '<a href="'${entry}/README.html'">'"`cd ${entry}; make package-
name | ${HTMLIFY}`</a>: " >> $@.tmp
  .endif
  	@cat `cd ${entry}; make -V COMMENT` | ${HTMLIFY} >> $@.tmp
+ .endif
  .endfor
  	@sort -t '>' +1 -2 $@.tmp > $@.tmp2
  .if exists(${DESCR})

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->portmgr 
Responsible-Changed-By: roam 
Responsible-Changed-When: Fri Jun 29 04:03:44 PDT 2001 
Responsible-Changed-Why:  
Over to the ports infrastructure maintainers.  I think this one has been 
brought up before, can't find any specific references now, though. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28510 
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Sun Dec 23 03:11:40 PST 2001 
State-Changed-Why:  
Fixed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=28510 
>Unformatted:
