[MacPorts] #30736: Local repository with space in path name won't work

MacPorts noreply at macports.org
Fri Aug 12 21:27:02 PDT 2011


#30736: Local repository with space in path name won't work
-----------------------------+----------------------------------------------
 Reporter:  dansbox@…        |       Owner:  macports-tickets@…                   
     Type:  defect           |      Status:  new                                  
 Priority:  Normal           |   Milestone:                                       
Component:  base             |     Version:  2.0.1                                
 Keywords:                   |        Port:                                       
-----------------------------+----------------------------------------------
 I have a local repository, specified in sources.conf as:

 {{{file:///Users/dan/Dev/macports/custom-ports}}}

 The "Dev" directory is a symbolic link:

 {{{/Users/dan/Dev -> Shared/Dev}}}

 The "Shared" directory is also a symbolic link:

 {{{/Users/dan/Shared -> /Volumes/Shared HFS+/}}}

 Note that "Shared HFS+" has a space in the name.

 This setup has worked in the past.  However, after doing a selfupdate and
 adding the local repository URL to sources.conf, I get errors.  For
 example, if I try to selfupdate again:

 {{{
 $ -> sudo port -v selfupdate
 --->  Updating the ports tree
 Synchronizing local ports tree from file:///Users/dan/Dev/macports/custom-
 ports
 couldn't change working directory to "/Volumes/Shared HFS+/Dev/macports
 /custom-ports/HFS+/Dev/macports/custom-ports": no such file or directory
 shell command "/opt/local/bin/portindex /Volumes/Shared HFS+/Dev/macports
 /custom-ports" returned error 1
 Error: updating PortIndex for file:///Users/dan/Dev/macports/custom-ports
 failed
 }}}

 It looks like something is canonicalizing the path name (which is probably
 unnecessary), and later the path with a space in it is not escaped
 properly.

 To confirm my hunch, I moved aside the /Users/dan/Dev link and made a copy
 of my repository that made no use of links.  That worked without a hitch.

-- 
Ticket URL: <https://trac.macports.org/ticket/30736>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list