[82103] trunk/dports/archivers

Anders F Björklund afb at macports.org
Tue Aug 9 01:59:26 PDT 2011


Blair Zajac wrote:

> --->  Activating rpm2cpio @5.2.1_0
> DEBUG: Using /bin/pax
> pax: Cannot identify format. Searching...
> pax: End of archive volume 1 reached
> pax: unknown format, 1925 bytes skipped.
> pax: Sorry, unable to determine archive format.
> shell command "/bin/pax -r -v -p e -f /opt/local/var/macports/software/rpm2cpio/rpm2cpio-5.2.1_0.darwin_11.noarch.tbz2 ." returned error 1
> Error: Target org.macports.activate returned: shell command failed (see log for details)

Must be a bug in base, it most definitely shouldn't use pax for .tbz2!
This is getting silly enough, think I'll just delete the port again...

      51 rpm-5.2.1/scripts/rpm2cpio

      43 archivers/rpm2cpio/Portfile

The portfile is already twice as long as the original rpm2cpio script (!),
and that doesn't include the distfile (I should have stuck it in files/)

--anders

PS.
#!/bin/sh

pkg=$1

leadsize=96
o=`expr $leadsize + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
# echo "sig il: $il dl: $dl"

sigsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $sigsize + \( 8 - \( $sigsize \% 8 \) \) \% 8 + 8`
set `od -j $o -N 8 -t u1 $pkg`
il=`expr 256 \* \( 256 \* \( 256 \* $2 + $3 \) + $4 \) + $5`
dl=`expr 256 \* \( 256 \* \( 256 \* $6 + $7 \) + $8 \) + $9`
# echo "hdr il: $il dl: $dl"

hdrsize=`expr 8 + 16 \* $il + $dl`
o=`expr $o + $hdrsize`

dd if=$pkg ibs=$o skip=1 2>/dev/null | gunzip



More information about the macports-dev mailing list