Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#17098 closed defect (fixed)

reinplace fails if filename has spaces

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone: MacPorts 1.7.0
Component: base Version: 1.7.0
Keywords: Cc:
Port:

Description

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 reported on macports-users by Scott Haneda.

Change History (5)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Fixed in r41573.

comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Added note to ChangeLog in r41574.

comment:4 Changed 16 years ago by tobypeterson

Milestone: MacPorts base bugsMacPorts Future

Milestone MacPorts base bugs deleted

comment:5 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.7.0
Note: See TracTickets for help on using tickets.