Opened 7 years ago

Last modified 2 months ago

#56457 new defect

use_dmg: /usr/bin/cpio: illegal option -- 0

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.99
Keywords: tiger leopard snowleopard Cc: blair (Blair Zajac), linuxjunkie999, barracuda156
Port:

Description

On Snow Leopard and earlier, ports using use_dmg yes cannot be extracted anymore:

:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_mkconsole/mkconsole/work" && /usr/bin/hdiutil attach '/opt/local/var/macports/distfiles/mkconsole/mkconsole-1.11.dmg' -private -readonly -nobrowse -mountpoint "/tmp/mports.GUhaepDg" && cd "/tmp/mports.GUhaepDg" && /usr/bin/find . -depth -perm -+r -print0 | /usr/bin/cpio -0 -p -d -m -u "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_mkconsole/mkconsole/work/mkconsole-1.11"; status=$?; cd / && /usr/bin/hdiutil detach "/tmp/mports.GUhaepDg" && /bin/rmdir "/tmp/mports.GUhaepDg"; exit $status 
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_mkconsole/mkconsole/work" && /usr/bin/hdiutil attach '/opt/local/var/macports/distfiles/mkconsole/mkconsole-1.11.dmg' -private -readonly -nobrowse -mountpoint "/tmp/mports.GUhaepDg" && cd "/tmp/mports.GUhaepDg" && /usr/bin/find . -depth -perm -+r -print0 | /usr/bin/cpio -0 -p -d -m -u "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_aqua_mkconsole/mkconsole/work/mkconsole-1.11"; status=$?; cd / && /usr/bin/hdiutil detach "/tmp/mports.GUhaepDg" && /bin/rmdir "/tmp/mports.GUhaepDg"; exit $status 
:info:extract Checksumming whole disk (Apple_HFS : 0)…
:info:extract           whole disk (Apple_HFS : 0): verified   CRC32 $6DB010CB
:info:extract verified   CRC32 $6B2207BB
:info:extract /dev/disk1          	                               	/tmp/mports.GUhaepDg
:info:extract /usr/bin/cpio: illegal option -- 0
:info:extract usage: cpio -o [-aABcLvVzZ] [-C bytes] [-H format] [-O archive]
:info:extract                [-F archive] < name-list [> archive]
:info:extract        cpio -i [-bBcdfmnrsStuvVzZ6] [-C bytes] [-E file] [-H format]
:info:extract                [-I archive] [-F archive] [pattern...] [< archive]
:info:extract        cpio -p [-adlLmuvV] destination-directory < name-list
:info:extract "disk1" unmounted.
:info:extract "disk1" ejected.

This problem was introduced in [78dacc173e32941dd46b922689bb4697523535cc/macports-base].

Change History (6)

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

Cc: linuxjunkie999 added

Has duplicate #58641.

comment:2 Changed 3 years ago by blair (Blair Zajac)

As a workaround, install the cpio port.

Is there a way to have this command depend upon the installation of the cpio port?

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

MacPorts base can add dependencies during any phase, yes, for example the way it adds a dependency on the xz port during the extract phase if use_xz is set to yes.

comment:4 Changed 6 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: barracuda156 added

Has duplicate #70056.

comment:5 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #70613.

comment:6 in reply to:  description Changed 2 months ago by barracuda156

Replying to ryandesign:

For a note, fpc port has a working way to extract from dmg.

Note: See TracTickets for help on using tickets.