[MacPorts] #36597: portpkg.tcl script fails with segfault
MacPorts
noreply at macports.org
Sat Oct 13 22:49:47 PDT 2012
#36597: portpkg.tcl script fails with segfault
---------------------------+--------------------------------
Reporter: damo.clarky@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: High | Milestone:
Component: base | Version: 2.1.2
Keywords: pkg | Port:
---------------------------+--------------------------------
Like 189 of portpkg.tcl uses the findBinary procedure to locate the full
path to the cpio binary and then uses that as the value to the -x
parameter of the pax command. This causes pax to segmentation fault.
The command that fails is:
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv-
core.25/work/destroot && /bin/pax -x /usr/bin/cpio -w -z . >
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_release_tarballs_ports_multimedia_mythtv-core.25/mythtv-core.25/work
/mythtv-core.25-0.25.2-Fixes-20120918.pkg/Contents/Archive.pax.gz
The attached patch file simply uses 'cpio' as the parameter to -x option
of pax rather than the calculated full path (ie /usr/bin/pax). With just
'cpio' there is no segmentation fault.
--
Ticket URL: <https://trac.macports.org/ticket/36597>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list