[MacPorts] #17098: reinplace fails if filename has spaces

MacPorts noreply at macports.org
Thu Nov 6 02:01:19 PST 2008


#17098: reinplace fails if filename has spaces
-------------------------------------+--------------------------------------
 Reporter:  ryandesign at macports.org  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                   |      Status:  new                                  
 Priority:  Normal                   |   Milestone:  MacPorts base bugs                   
Component:  base                     |     Version:  1.7.0                                
 Keywords:                           |        Port:                                       
-------------------------------------+--------------------------------------
 If a filename has spaces in it, trying to use reinplace fails. e.g.:

 {{{
 PortSystem          1.0

 name                reinplace-spaces
 version             1.0

 fetch {}
 checksum {}

 extract.mkdir       yes
 extract {
     xinstall "${filespath}/filename with spaces.txt" ${worksrcpath}
 }

 configure {
     reinplace s/foo/bar/ "${worksrcpath}/filename with spaces.txt"
 }
 }}}

 {{{
 $ port configure
 --->  Fetching reinplace-spaces
 --->  Verifying checksum(s) for reinplace-spaces
 --->  Extracting reinplace-spaces
 --->  Configuring reinplace-spaces
 Error: reinplace: cp: /tmp/filename: No such file or directory
 Error: Target org.macports.configure returned: reinplace copy failed
 Error: Status 1 encountered during processing.
 $
 }}}

 This was [http://lists.macosforge.org/pipermail/macports-
 users/2008-November/012229.html reported on macports-users] by Scott
 Haneda.

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


More information about the macports-tickets mailing list