Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#30532 closed defect (fixed)

cpio @2.10 gets pax error activating with MacPorts 2.0.0

Reported by: mndavidoff (Monte Davidoff) Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.2
Component: base Version: 2.0.1
Keywords: Cc:
Port:

Description

I get the following error when trying to install cpio with MacPorts 2.0.0.

$ sudo port -v install cpio
...
--->  Activating cpio @2.10_0
pax: Cannot identify format. Searching...
pax: Cpio file name in header is corrupted
pax: Invalid header, starting valid header search.
pax: Cpio file name length 6624 is out of range
pax: Cpio file name length 22785 is out of range
pax: Cpio file name length 9226 is out of range
pax: Cpio file name length 16866 is out of range
pax: Cpio file name length 50616 is out of range
pax: Cpio file name length 23165 is out of range
pax: End of archive volume 1 reached
pax: WARNING! These patterns were not matched:
.
shell command "/bin/pax -r -v -p e -f /opt/local/var/macports/software/cpio/cpio-2.10_0.darwin_10.x86_64.tbz2 ." returned error 1
Error: Target org.macports.activate returned: shell command failed (see log for details)
Warning: the following items did not execute (for cpio): org.macports.activate
Log for cpio is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_cpio/cpio/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

The complete build log is attached. This appears to be a base problem since the error did not occur when I installed the same port using MacPorts 1.9.2. The pax command recognizes the cpio-2.10_0.darwin_10.x86_64.tbz2 file if you include the -j option, although I don't know whether or not that is the correct way to fix this problem.

$ /bin/pax -r -v -p e -j -f /opt/local/var/macports/software/cpio/cpio-2.10_0.darwin_10.x86_64.tbz2 .

Mac OS X 10.6.8, Xcode 3.2.6.

Attachments (1)

main.log.bz2 (14.1 KB) - added by mndavidoff (Monte Davidoff) 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by mndavidoff (Monte Davidoff)

Attachment: main.log.bz2 added

comment:1 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Well, that code is certainly doing it wrong. At least it probably only affects this one port. Fixed, r81577.

comment:2 Changed 9 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.0.2
Version: 2.0.02.0.1
Note: See TracTickets for help on using tickets.