Opened 20 years ago

Closed 20 years ago

Last modified 19 years ago

#1427 closed defect (fixed)

dportsearchpath exits ungracefully on paths containing tilde

Reported by: warp-opendarwin@… Owned by: macports-tickets@…
Priority: Low Milestone:
Component: base Version: 1.0
Keywords: Cc:
Port:

Description

_dportsearchpath in darwinports.tcl dislikes PATH components with unexpanded ~ (e.g. "~/bin/"):

The isdirectory check apparently returns true in such a case, so the path component is not skipped, but the readdir afterwards will then fail with an "Unable to open directory". From a user's perspective this leads to an unintuitive "Unable to open directory" error message whenever one installs a port containing a dependency which needs a search through that path.

Maybe the readdir should simply be catch'ed, but I'm not familiar enough with Tcl to patch this myself.

Change History (1)

comment:1 Changed 20 years ago by blb@…

Resolution: fixed
Status: newclosed

This should be fixed with a recent change to the way the PATH is built (checked in by jkh@) where a default PATH is used, unless overridden by binpath in /etc/ports/ports.conf

Note: See TracTickets for help on using tickets.