AIX Open Source

 View Only
  • 1.  bash as dependency on AIX 7.3

    Posted Wed May 18, 2022 06:15 AM
    Hello,

    we are currently testing on AIX 7.3 and wanted to install some rpms that have bash as a dependency. As AIX 7.3 has already a bash in /usr/bin, we have not installed the bash rpm. In our understanding the AIX-rpm rpm should provide the necessary information to the rpms.

    But installing the rpms (via bundle file) throws a dependency error:

    The following errors occurred during installation:
    error: Failed dependencies:
    bash is needed by apr-1.5.2-1.ppc
    bash is needed by info-6.4-1.ppc

    We also tried updtvpkg, but it does not change anything. We installed the bash rpm, but this uses the same location as the bash from bash.rte and overwrites some things, so we are not comfortable with this.

    Are there any suggestions how to solve this problem?

    Regards
    Henning

    ------------------------------
    Henning Bösch
    ------------------------------


  • 2.  RE: bash as dependency on AIX 7.3

    Posted Wed May 18, 2022 11:12 AM
    Hi Henning,

    Thanks for reporting the issue.
    Though, AIX-rpm seems to be adding provides for /bin/bash & /usr/bin/bash we missed to add the package name.
    We will update the rpm.rte and include bash as provides.
    One workaround if it is feasible for you is to add bash to the end of this line "for other in perl awk env python3" in /usr/sbin/updtvpkg file and run updtvpkg again.

    In our latest bash rpm packages we have taken care that it won't overwrite bash.rte files.
    Please let me know which version of bash rpm package you tried.

    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: bash as dependency on AIX 7.3

    Posted Thu May 19, 2022 02:31 AM
    Hello Sangamesh,

    thanks for the answer. We have tested your workaround and it worked for us. Do you have any timeline when we can expect the updated rpm.rte?

    We still used an older bash rpm for our tests (5.0-1). We checked the latest version 5.1.4-2 and there nothing is overwritten.

    ------------------------------
    Henning Bösch
    ------------------------------



  • 4.  RE: bash as dependency on AIX 7.3

    Posted Mon March 06, 2023 09:55 AM
    Edited by Portia Melita Mon March 06, 2023 01:22 PM

    Hello Sangamesh,

    I saw this post and would like to ask you something else about /usr/sbin/updtvpkg file.

    It seems, at least on AIX 7300-01-01-2246, IBM has added bash and removed python3 from "provides". Is there any special reason for this?

    I would like to understand better "python3 removal" in case we need to take actions in advance for our future AIX7.3 machines.

    # Check for shells
    shells="sh bsh csh ksh tsh ksh93 python3"
    for sh in $shells
    do
       if [[ -r /usr/bin/$sh ]]
       then
          echo "Provides: /usr/bin/$sh, /bin/$sh"
       fi
    done
    
    for other in perl awk env bash ???????
    do
       if [[ -r /usr/bin/$other ]]
       then
          echo "Provides: /usr/bin/$other"
          echo "Provides: /bin/$other"
          echo "Provides: $other"
       fi
    done

    ------------------------------
    Peter Furtado
    ------------------------------



  • 5.  RE: bash as dependency on AIX 7.3

    Posted Tue March 07, 2023 05:58 AM

    Adding python3 in the "provides" is creating problems for dnf users trying to update any python3 dependent packages through dnf as the "provides" is already satisfying the dependency requirement and the required python3 version is not getting pulled. For that reason , we have removed python3 as a provides. 



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