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.  rpm.rte warning during installp - clarification please

    Posted Fri January 12, 2018 10:13 AM

    Originally posted by: janhar


    Hi Sangamesh!

     

    I noticed the following when installing rpm.rte 4.13.0.1  from AIX images:

    #############################################################
    
    Warning: the contents of the following RPM packages will be overwritten. If these packages did not come from the AIX Toolbox for Linux Applications, it may be necessary to reinstall them.
    
    bzip2-1.0.6-1
    gettext-0.10.40-8
    gettext-0.19.7-1
    info-4.13a-2
    popt-1.7-2
    popt-1.16-3
    zlib-1.2.8-1
    file-libs-5.20-1
    readline-6.3-5
    
    #############################################################
    

    Can you explain what this means (what is overwritten, how to avoid..etc)  I don't recall seeing this before. I'm posting this on the forum so we have information for AIX customers.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: rpm.rte warning during installp - clarification please

    Posted Fri January 12, 2018 11:01 AM

    Originally posted by: AyappanP


    RPM itself requires some of the binaries and libraries from these packages. So the rpm rte fileset itself ships those files.

    If the system already has these packages installed , above mentioned binaries & libraries will be overwritten while installing the rpm.rte.4.13.0.1 fileset.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: rpm.rte warning during installp - clarification please

    Posted Thu October 25, 2018 09:11 AM

    Originally posted by: AlekseiDorokhov


    Hi !

    So it doesn't install IBM version, but just rewrite files corruting installed packages and making rpmdb inconsistent?

    Actually I don't need specific rpm-packages from foregin sources (but they were installed in the OS).

    I am just thinking how to make OS consistent.

    Could you clarify a bit more in which cases do I need to reinstall them?

    If I got dependency problems during reinstall?

    If it makes OS inconsistent - why installer don't remove them at all?

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: rpm.rte warning during installp - clarification please

    Posted Thu October 25, 2018 09:43 AM

    Originally posted by: AyappanP


    This has nothing to do with making rpmdb inconsistent.

    As i mentioned earlier, these are required for the proper functioning of rpm itself.

    Ofcourse if you have packages (from foreign sources) which depends on these packages, there is chance of inconsistency. 

    We are saying only "chance" because it can work as well in some scenarios. 

    If any consistency is found, you can always reinstall the package with the latest one from AIX Toolbox. 

    Just removing them has more chance of inconsistency.

    We have taken some steps recently to make packages from foreign sources to co-exist with Toolbox packages. 

    One of such steps is the release of new rpm.rte fileset ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte.4.13.0.4

    This will install in an entirely different path and won't mess up with the files from rpm packages.

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: rpm.rte warning during installp - clarification please

    Posted Fri November 02, 2018 05:08 AM

    Originally posted by: AlekseiDorokhov


    Thank you for quick reply.
    But I still think that it is not good solution:

     

    - Installation of rpm.rte fileset changes files belonging to rpm packages.
    - Further update of these rpm packages (using IBM provided packages) breaks rpm.rte!

     

    Please see an example below:
    root@testserver / > rpm -qi gettext
    Name        : gettext
    Version     : 0.19.7
    Release     : 1
    Architecture: ppc
    Install Date: 25. oktober 2017 00:08:01 CEST
    Group       : Development/Tools
    Size        : 12602657
    License     : GPLv3 and LGPLv2+
    Signature   : (none)
    Source RPM  : gettext-0.19.7-1.src.rpm
    Build Date  :  2. juni 2016 16:02:07 CEST
    Build Host  : green52.in.ibm.com
    Relocations : (not relocatable)
    URL         : http://www.gnu.org/software/gettext/
    Summary     : GNU libraries and utilities for producing multi-lingual messages.
    ...
    root@testserver / > yum update
    AIX_Toolbox                                                                                                                               | 2.9 kB  00:00:00
    AIX_Toolbox/primary_db                                                                                                                    | 1.4 MB  00:00:00
    AIX_Toolbox_Extended                                                                                                                      | 2.9 kB  00:00:00
    AIX_Toolbox_noarch                                                                                                                        | 2.9 kB  00:00:00                                                                                                                                   | 2.9 kB  00:00:00
    Setting up Update Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package gettext.ppc 0:0.19.7-1 will be updated
    ---> Package gettext.ppc 0:0.19.8.1-1 will be an update
    --> Finished Dependency Resolution
    Dependencies Resolved
    =================================================================================================================================================================
     Package                              Arch                             Version                                    Repository                                Size
    =================================================================================================================================================================
    Updating:
     gettext                              ppc                              0.19.8.1-1                                 AIX_Toolbox                              9.3 M
    Transaction Summary
    =================================================================================================================================================================
    Upgrade       1 Package
    Total download size: 9.3 M
    Is this ok [y/N]: y
    Downloading Packages:
    gettext-0.19.8.1-1.aix6.1.ppc.rpm                                                                                                         | 9.3 MB  00:00:00
    Running Transaction Check
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating   : gettext-0.19.8.1-1.ppc                                                                                                                        1/2
      Cleanup    : gettext-0.19.7-1.ppc                                                                                                                          2/2
    Ignore the error about AIX-rpm dependency since the older libintl.a            is already preserved and will be reverted back
    Non-fatal POSTUN scriptlet failure in rpm package gettext-0.19.7-1.ppc
    Updated:
      gettext.ppc 0:0.19.8.1-1
    Complete!
    root@testserver / > yum repolist
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:
            0509-022 Cannot load module /opt/freeware/lib/librpm.so.
            0509-150   Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
            0509-152   Member libintl.so.8 is not found in archive
            0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
            0509-150   Dependent module /opt/freeware/lib/librpm.so could not be loaded.
    Please install a package which provides this module, or
    verify that the module is installed correctly.
    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.15 (default, Sep 28 2018, 03:58:41)
    [GCC 6.3.0]
    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

     

    It looks like we have NO WAY to keep OS in consistent state.

     

    With the best regards,
    Aleksei D.

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: rpm.rte warning during installp - clarification please

    Posted Fri November 02, 2018 05:59 AM

    Originally posted by: AyappanP


    This issue is because of a bug in the post-installation script of gettext-0.19.7-1.

    To fix this, one has to copy the libintl.a file (containing libintl.so.8) from another working AIX machine and put it here i /opt/freeware/lib

    Or if you have cpio rpm already installed, get the gettext-0.19.8.1 rpm and put it inside in a directory and extract the files using

    " rpm2cpio gettext-0.19.8.1-1.aix6.1.ppc.rpm | /opt/freeware/bin/cpio -idmv "

    Then copy the libintl.a file to /opt/freeware/lib .

    We will fix this problem soon through a new update of gettext rpm.

     

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: rpm.rte warning during installp - clarification please

    Posted Fri November 02, 2018 06:16 AM

    Originally posted by: AyappanP


    If only yum is broken and rpm is still working , then you can manually install gettext-0.19.8.1 to fix this. 

    In my previous update , i assumed your rpm itself is broken. 


    #AIX-Open-Source-Software
    #AIXOpenSource