Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Minor issue with readline-8.1-1.aix6.1.ppc.rpm installer when coreutils is also installed

    Posted Mon December 05, 2022 12:54 AM

    The toolbox rpm readline-8.1-1.aix6.1.ppc.rpm has a minor issue with its post install scriptlet - it is assuming the path of the 'uname' program. 

    On update/install/reinstall of readline, when 'coreutils' RPM is also installed, the uname error is repeated 295 times:

    Running scriptlet: readline-8.1-1.ppc 2/2
    uname: invalid option -- 'W'
    Try 'uname --help' for more information.
    uname: invalid option -- 'W'
    Try 'uname --help' for more information.
    ...
    ...
    ...

    When coreutils RPM is installed, it includes the open source uname program in /opt/freeware/bin/uname, which does not have the "-W" option that the AIX provided /usr/bin/uname has, and the installer seems to be using. It seems that the readline scriptlet is prioritising the /opt/freeware/bin path before /usr/bin.

    AIX uname:
    # /usr/bin/uname -W
    0

    Coreutils uname:
    # /opt/freeware/bin/uname -W
    /opt/freeware/bin/uname: invalid option -- 'W'
    Try '/opt/freeware/bin/uname --help' for more information.

    I think the readline RPM is installing OK - it probably just needs to have the uname path hardcoded to /usr/bin/ in its scriptlet. 



    ------------------------------
    Alan
    ------------------------------

    #AIXOpenSource


  • 2.  RE: Minor issue with readline-8.1-1.aix6.1.ppc.rpm installer when coreutils is also installed

    Posted Tue December 06, 2022 08:52 AM
    Thank you Alan for reporting the issue. We will look into the post install of readline.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: Minor issue with readline-8.1-1.aix6.1.ppc.rpm installer when coreutils is also installed

    Posted Thu December 08, 2022 07:17 AM
    /usr/lib/instl/baselib_sh is the one which runs "uname -W" and /usr/bin/rpm invokes this script. 
    This is fixed in the recent AIX levels. https://www.ibm.com/support/pages/apar/IJ43026

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



  • 4.  RE: Minor issue with readline-8.1-1.aix6.1.ppc.rpm installer when coreutils is also installed

    Posted Thu December 08, 2022 10:31 PM
    Thanks for the response and the APAR link. 

    We are running currently 7200-05-04-2220 and I can see this APAR is in the release notes for 7200-05-05-2246, which was only released a week ago. 

    We will look at this new service pack. 


    ------------------------------
    Alan
    ------------------------------