From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 11 18:20:02 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2EFC16A4CE for ; Fri, 11 Mar 2005 18:20:01 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 949E443D2D for ; Fri, 11 Mar 2005 18:20:01 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2BIK1nN015952 for ; Fri, 11 Mar 2005 18:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2BIK1jI015951; Fri, 11 Mar 2005 18:20:01 GMT (envelope-from gnats) Resent-Date: Fri, 11 Mar 2005 18:20:01 GMT Resent-Message-Id: <200503111820.j2BIK1jI015951@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Neil Woods Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 307D316A4CE for ; Fri, 11 Mar 2005 18:11:05 +0000 (GMT) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B97A643D31 for ; Fri, 11 Mar 2005 18:11:04 +0000 (GMT) (envelope-from neil@phasmic.org) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 5335270 for ; Fri, 11 Mar 2005 13:11:03 -0500 (EST) Received: from drazi.int.phasmic.org (modem-1239.zebra.dialup.pol.co.uk [81.76.148.215]) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id A39D989 for ; Fri, 11 Mar 2005 13:11:02 -0500 (EST) Received: from neil by drazi.int.phasmic.org with local (Exim 3.36 #1 (Debian)) id 1D9obF-0003Ty-00 for ; Fri, 11 Mar 2005 18:11:01 +0000 Message-Id: Date: Fri, 11 Mar 2005 18:11:01 +0000 From: Neil Woods To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/78704: make readmes in /usr/ports produces empty README.html's X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Neil Woods List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 18:20:02 -0000 >Number: 78704 >Category: ports >Synopsis: make readmes in /usr/ports produces empty README.html's >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 11 18:20:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: >Release: FreeBSD 5.3-RELEASE i386 >Organization: >Environment: System: FreeBSD bester.int.phasmic.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: I recently installed FreeBSD 5.3-RELEASE and have done a cvsup ports-supfile, followed by a portupgrade. Earlier today I ran 'make readmes' in the /usr/ports directory. The command created a /usr/ports/README.html with correct links, but all the README.html files in the (sub)sub-directories are empty (zero length). To clarify. README.html's in directories directly under /usr/ports (i.e. one level below) are fine, and contain proper links. However, README.html's under these (two levels deep from /usr/ports), are empty. At the end of the make, a message stating cat: /README.port not found. >How-To-Repeat: cd /usr/ports make readmes >Fix: (not tested) The readmes target expands to: perl /usr/ports/Tools/make_readmes < /usr/ports/INDEX-5 On further investigation, Tools/make_readmes contains, at the beginning: $README=`cat ${PORTSDIR}/README.port`; I think that this should be $README=`cat ${PORTSDIR}/Templates/README.port`; instead. However, it looks as if the makefile variable ${PORTSDIR} evaluates to a null string in Tools/make_readmes. It appears that a quick fix would be to use $README=`cat /usr/ports/Templates/README.port`; perhaps, though I haven't had time to test this. >Release-Note: >Audit-Trail: >Unformatted: