AIX Open Source

 View Only
  • 1.  AIX 7.1 cpio command

    Posted Tue July 02, 2024 08:48 PM

    We are looking to recompile a tool that uses expat.  We expect to compile from source, so I downloaded the expat SRPM file from the AIX OpenSoource Toolkit.  I am having difficulty in extracting the source file(s) though.  

    $ rpm2cpio expat-2.6.2-1.src.rpm | /usr/bin/cpio -idmv


    Out of phase!
    cpio attempting to continue...
    skipping 24032 bytes to get back in phase!
     One or more files lost and the previous file is possibly corrupt

    Length of file name doesn't match expected length.

    So, I tried to extract the package into a ".cpio" file, and that succeeded, but subsequently using cpio to extract the source files still fails.

    $ cpio -id <expat-2.6.2-1.src.cpio


    Out of phase!
    cpio attempting to continue...
    skipping 24032 bytes to get back in phase!
     One or more files lost and the previous file is possibly corrupt

    Length of file name doesn't match expected length.

    So, what do I do now?  I think I need to get a new updated "cpio", but I don't know where to look to find one to install.  It is not available within the "toolkit".

    Sincerely,

    Chuck



    ------------------------------
    Chuck Moore
    ------------------------------



  • 2.  RE: AIX 7.1 cpio command

    Posted Wed July 03, 2024 01:46 AM

    cpio is available in AIX Toolbox --> https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/cpio/cpio-2.15-1.aix7.1.ppc.rpm 
    After installing it, use "rpm2cpio expat-2.6.2-1.src.rpm | /opt/freeware/bin/cpio -idmv" to extract it. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: AIX 7.1 cpio command

    Posted Thu July 04, 2024 01:46 AM

    Another option is the System V version of cpio included with AIX:
    # rpm2cpio expat-2.6.2-1.src.rpm | /usr/sysv/bin/cpio -idmv
    expat-2.6.2-1.spec
    expat-2.6.2.tar.gz
    libexpat.so.0-aix32
    libexpat.so.0-aix64
    2558 blocks



    ------------------------------
    Zaki Jääskeläinen
    ------------------------------



  • 4.  RE: AIX 7.1 cpio command

    IBM Champion
    Posted Wed July 03, 2024 01:12 PM
    Is there a reason you're not just installing the SRPM? Why do you want to use rpm2cpio to extract it?

    Installing the SRPM will extract the source, patches, and spec file for you... 

    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems






  • 5.  RE: AIX 7.1 cpio command

    Posted Wed July 10, 2024 08:55 AM

    Thank you for the information.



    ------------------------------
    Chloe Scott
    ------------------------------