Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2002 01:01:24 -0800 (PST)
From:      Kris Kennaway <kris@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/35767: make_index script does not deal with symlinked PORTSDIR
Message-ID:  <200203110901.g2B91OF15946@freefall.freebsd.org>

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

>Number:         35767
>Category:       ports
>Synopsis:       make_index script does not deal with symlinked PORTSDIR
>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:   Mon Mar 11 01:10:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kris Kennaway
>Release:        
>Organization:
>Environment:
>Description:
The make_index script fails if PORTSDIR is a path which contains a
symlink, so realpath ${PORTSDIR} != ${PORTSDIR}.  The output from
'make describe' contains some fields which use ${PORTSDIR}, and the perl
script fails to match anything since it uses the realpath (`pwd`).
>How-To-Repeat:
ln -sf /usr/ports /usr/ports2
setenv PORTSDIR /usr/ports2
cd /usr/ports
make index

>Fix:
Fix make_index and/or the describe target to call the perl equivalent of
the realpath function, whatever that is, on the relevant paths.
>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?200203110901.g2B91OF15946>