[MacPorts] #20002: bugs in vtk-devel Portfile on Tiger
MacPorts
noreply at macports.org
Tue Jun 30 16:39:59 PDT 2009
#20002: bugs in vtk-devel Portfile on Tiger
-------------------------------+--------------------------------------------
Reporter: jjstickel@… | Owner: dweber@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: Tiger darwin_8 | Port: vtk-devel
-------------------------------+--------------------------------------------
Comment(by dweber@…):
I'm concerned that we need to directly address the version of tar used.
Can you try this solution on Tiger?
I'm considering these lines for the post-destroot of the data variant:
{{{
# tar-1.14 uses --strip-path, tar-1.14.90+ uses --strip-components
set tarArg "--strip-components"
set tarVersion [lrange [split [exec tar --version]] 3 3]
set tarMaj [lrange [split $tarVersion .] 0 0]
set tarMin [lrange [split $tarVersion .] 1 1]
set tarRev [lrange [split $tarVersion .] 2 2]
if (expr $tarMaj == 1 && $tarMin == 14 && $tarRev < 90) {
set tarArg "--strip-path"
}
system "tar $tarArg 1 -C ${destroot}/${vtkDataPath} -zxvf
${distpath}/${vtkDataFile}"
}}}
--
Ticket URL: <http://trac.macports.org/ticket/20002#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list