Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21346 closed defect (fixed)

odcctools fails to build on Snow Leopard (tar: Option --strip-path=1 is not supported)

Reported by: stefan.janecek@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: stefan.janecek@…
Port: odcctools

Description

I am trying to build odcctools on SL (fresh install of MacPorts 1.8), and it fails with the following error:

--->  Extracting odcctools
Error: Target org.macports.extract returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_odcctools/work/odcctools && ./extract.sh " returned error 1
Command output: tar: Option --strip-path=1 is not supported

The script extract.sh in the build directory contains the lines

if [ "`tar --help | grep -- --strip-components 2> /dev/null`" ]; then
    TARSTRIP=--strip-components
else
    TARSTRIP=--strip-path
fi

The problem is that the output of "tar --help" doesn't contain the text "--strip-components", yet the correct option *is* --strip-components, --strip-path is not recognized.

Change History (6)

comment:1 Changed 15 years ago by stefan.janecek@…

Cc: stefan.janecek@… added

Cc Me!

comment:2 Changed 15 years ago by tobypeterson

Resolution: fixed
Status: newclosed

I suspect your ports tree is out of date - but I've made it more likely to work in r57583

comment:3 in reply to:  2 Changed 15 years ago by stefan.janecek@…

Replying to toby@…:

I suspect your ports tree is out of date - but I've made it more likely to work in r57583

OK, thanks. After doing a "ports selfupdate" the error is gone. Now the build fails with

sudo port install pgplot
--->  Computing dependencies for pgplot
--->  Fetching odcctools
--->  Verifying checksum(s) for odcctools
--->  Extracting odcctools
Error: Target org.macports.extract returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_odcctools/work/odcctools && ./extract.sh " returned error 1
Command output: Merging content from /Developer/SDKs/MacOSX10.4u.sdk
/Developer/SDKs/MacOSX10.4u.sdk must be present

To be honest, I don't have the slightest clue what odcctools does, so I can't tell whether this is a bug or not. I am actually trying to install pgplot, which requires odcctools as a dependency.

comment:4 Changed 15 years ago by blb@…

It looks like the issue here is actually g95 which is bringing in odcctools (it doesn't on 10.5); I've filed #21355 to get odcctools deleted on 10.6 as well. Your other choice would be to use one of the gfortran dependencies (+gcc42 or +gcc43) which avoid g95.

Note that odcctools fails to build on 10.5 (ticket #13148) though it is a bit of a different reason. As commented on that ticket, odcctools should probably go away at some point...

comment:5 in reply to:  4 Changed 15 years ago by stefan.janecek@…

Replying to blb@…:

It looks like the issue here is actually g95 which is bringing in odcctools (it doesn't on 10.5); I've filed #21355 to get odcctools deleted on 10.6 as well. Your other choice would be to use one of the gfortran dependencies (+gcc42 or +gcc43) which avoid g95.

:) Seems like I'm a bit out of luck at the moment - I actually tried the +gcc42/+gcc43 variants first, but both gcc42 and gcc43 fail to build on SL at the moment (#20933)... Many thanks for your help!

comment:6 in reply to:  2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to toby@…:

I suspect your ports tree is out of date - but I've made it more likely to work in r57583

This caused a patch failure described in #21693 which I fixed in r60574.

Note: See TracTickets for help on using tickets.