Bug 42060

Summary: "make search ..." may not work due to symlinks
Product: Ports & Packages Reporter: nnd <nnd>
Component: Individual Port(s)Assignee: Port Management Team <portmgr>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description nnd 2002-08-27 08:50:01 UTC
	If PORTSDIR on your CURRENT system contains symlinks
then "make search ..." command may not work as intended, i.e.
not find any ports.

Fix: The problem is in the 'pwd' builtin command of the /bin/sh
which (by default) prints "Logical" working directory while /bin/pwd
and /bin/csh builtin pwd prints "Phisical" working directory by default.

	The next patch make it possible to "make search" in the
ports hierarchy depite the symlinks in the PORTSDIR.

How-To-Repeat: 
	Let's assume that on your system /usr/ports is a symlink to the
/a/ports (for example). In this case following commands (in csh)
give no results:

	cd /a/ports/shells
	make search key=bash
Comment 1 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2002-08-27 17:04:57 UTC
Responsible Changed
From-To: freebsd-ports->portmgr

Over to maintainer(s)
Comment 2 joe freebsd_committer freebsd_triage 2002-09-03 10:08:39 UTC
State Changed
From-To: open->closed

Committed.  Thanks.