[MacPorts] #25246: MacPorts can't extract distfiles whose names contain spaces
MacPorts
noreply at macports.org
Mon Jun 14 08:09:19 PDT 2010
#25246: MacPorts can't extract distfiles whose names contain spaces
-------------------------------------+--------------------------------------
Reporter: ryandesign@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 1.9.0
Keywords: | Port:
-------------------------------------+--------------------------------------
Once you get past the problem that [ticket:25245 MacPorts can't fetch
distfiles whose names contain spaces], it can't extract them either:
{{{
$ sudo port -d extract bbcolors
[snip]
---> Extracting Bell Dark.bbcolors.zip
DEBUG: setting option extract.args to
{/mp/var/macports/distfiles/bbcolors/Bell Dark.bbcolors.zip}
DEBUG: Environment: CPATH='/mp/include'
CC_PRINT_OPTIONS_FILE='/mp/var/macports/build/_Volumes_data_macports_ports_sysutils_bbcolors/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/mp/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.5'
DEBUG: Assembled command: 'cd
"/mp/var/macports/build/_Volumes_data_macports_ports_sysutils_bbcolors/work/bbcolors_1.0.1"
&& /usr/bin/unzip -q /mp/var/macports/distfiles/bbcolors/Bell
Dark.bbcolors.zip -d
/mp/var/macports/build/_Volumes_data_macports_ports_sysutils_bbcolors/work/bbcolors_1.0.1'
unzip: cannot find or open /mp/var/macports/distfiles/bbcolors/Bell,
/mp/var/macports/distfiles/bbcolors/Bell.zip or
/mp/var/macports/distfiles/bbcolors/Bell.ZIP.
shell command " cd
"/mp/var/macports/build/_Volumes_data_macports_ports_sysutils_bbcolors/work/bbcolors_1.0.1"
&& /usr/bin/unzip -q /mp/var/macports/distfiles/bbcolors/Bell
Dark.bbcolors.zip -d
/mp/var/macports/build/_Volumes_data_macports_ports_sysutils_bbcolors/work/bbcolors_1.0.1
" returned error 9
Error: Target org.macports.extract returned: shell command failed
}}}
The attached patch seems to fix this (using the same strategy Rainer
employed to fix #23456). I'll test it in my MacPorts installations for
awhile before committing.
--
Ticket URL: <http://trac.macports.org/ticket/25246>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list