On Thu, Sep 11, 2003, Bill Campbell wrote:

> I'm attempting to build OpenPKG release 1.3 on OS X/Darwin, and it builds
> with one minor hack in gzip to keep it from trying to use the assembler.
> Unfortunately once it's built, rpm fails when attempting to rebuild or
> install SRPMS with the error:
>
>       error: unpacking of archive failed: cpio: Bad/unreadable  header
>
> If I run ``rpm2cpio $srpm | cpio -itv'' it reads the archive successfully.
> I've looked at the cpio code in /tmp/openpkg-1.3.0/rpm-4.0.2/lib, but don't
> see anything that just jumps out at me.  I thought it might be an endian
> problem, but it doesn't appear that's the problem (I pulled the ENDIAN
> tests out of the verify.c routine, into a small test program which worked
> fine).
>
> I've been running a non OpenPKG version of rpm-4.0.2 on OS X with no
> problems using these patches (which don't seem to do anything to cpio
> related code except possibly the LIBMISC additions in a couple of
> Makefile.in files).
>
> http://www-jlc.kek.jp/~fujiik/macosx/10.2.X/SOURCES/rpm-4.0.2-macosx.patch
>
> Does anybody have any suggestions or solutions to this before I go digging?

I strongly suggest you to retry with the OpenPKG-CURRENT "openpkg"
package and its RPM 4.2.1. There were lots of fixes in this area inside
RPM. And if we finally should integrate MacOS support into OpenPKG. we
definetely need patches against OpenPKG-CURRENT anyway...

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to