Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2001 12:20:13 +0200 (CEST)
From:      Philippe Casidy <pcasidy@casidy.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/28510: Can't make ports readmes if categories missing.
Message-ID:  <200106291020.f5TAKDx21334@greatoak.home>

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

>Number:         28510
>Category:       ports
>Synopsis:       Can't make ports readmes if categories missing.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 29 03:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>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?200106291020.f5TAKDx21334>