AIX Open Source

Expand all | Collapse all

Removal of symlink/files from /usr for AIX Toolbox packages

  • 1.  Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Thu September 17, 2020 08:53 AM


    Over the years we have seen some issues where packages from AIX toolbox and base AIX have conflict.

    This happens because some of the open source rpm packages creates symlinks in /usr or install in /usr, sometime this causes overwriting of base AIX symlinks.

    For example some libraries and utilities are provided by both base AIX and open source rpm packages and when rpm packages get installed they overwrite base AIX provided files/links.

    We have fixed these issues over the time but we do not want this to ever happen again.

    Also we want to have AIX toolbox/open source environment separate from base AIX. 

    Hence AIX toolbox packages are not going to provide binaries, libraries and include files in /usr.

    Going forward with each packages update from AIX toolbox it will be verified that package should not provide any files/symblinks in /usr.

    This will make sure we do not overwrite anything on base AIX and create a totally separate environment in /opt/freeware for open source packages that does not conflict with base AIX. 

    Please make sure if you use /usr path for any of the binaries, libraries or include files from AIX toolbox then change it to /opt/freeware. 

    You can always add /opt/freeware/bin and /opt/freeware/sbin path in your PATH environment variable. 

    Thanks 



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


  • 2.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Mon September 21, 2020 04:22 AM
    Edited by C- -T Mon September 21, 2020 04:28 AM
    yeah, very cool...who cares, a quick posting on friday afternoon about a major change in your packaging strategy...no problem. this made my monday morning experiency a real bad one.

    new rsync package came in without /usr links and broke out whole batch/deployment runs...

    thumbs up!

    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 3.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Mon September 21, 2020 06:18 AM
    Sorry to hear that. But if you really need a /usr link then you can manually add that.
    We have seen lot of problems with providing /usr link on other packages and trying to be consistent (by not providing for any packages)
    Right now some packages have link in /usr and some do not. 
    It has to be done at some point otherwise it will continue like that. 
    We know this can cause issues in some environment but please cooperate with us.
    We are making all this effort to eventually have a better experience.

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



  • 4.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Tue October 06, 2020 05:15 AM
    does this effect the bash package also? we are using "/usr/bin/bash" as the root shell. if this link is removed, this will lead to a serious disaster.

    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 5.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Tue October 06, 2020 05:21 AM
    Edited by SANKET RATHI Tue October 06, 2020 05:22 AM
    We understand that lot of people would be using /usr/bin/bash in their scripts and hence we are not going to remove bash from /usr/bin.

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



  • 6.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Wed October 07, 2020 02:40 AM
    While I can understand wanting to use bash, it is an ok shell if you "set -o vi",  but changing the default shell of the root user is typically not recommended in any unix system. This will affect all system scripts and can lead to strange and unknown bugs. I would not sleep well at night with that.

    ------------------------------
    Morten Torstensen
    ------------------------------



  • 7.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Wed October 07, 2020 02:50 AM
    bash is not an "ok" shell, its an shell like any other but with some modern conveniences. dont worry, as long  bash stays in "/usr/bin",  i sleep very well.
    its 2020 already, so what.

    ------------------------------
    I regret starting this entire conversation
    ------------------------------



  • 8.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Wed October 14, 2020 06:52 AM
    Very good point! IBM AIX Support will not support bash, and the boot and kernel experts have had cases with script failures during boot, and cron phases, and will insist the shell be set to ksh for support.

    ------------------------------
    Jan Harris
    ------------------------------



  • 9.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Fri October 16, 2020 08:39 AM
    Hello

    You also have to keep in mind that if you use Ansible synchronize (rsync), it wants to find the command in "/usr/bin/rsync". So it is mandatory to create the symbolic link.

    Another option is to set the Ansible option: rsync_path or the variable asnible_rsync_path, but this I have to test. In this way I would not have to recreate the symbolic link in the 200 AIX lpars that I have to update soon.

    Regards


    ------------------------------
    Luis Tejeda Alcolea
    ------------------------------



  • 10.  RE: Removal of symlink/files from /usr for AIX Toolbox packages

    Posted Tue October 13, 2020 05:15 PM
    Hi Sanket

    Can you advise if gettext libintl.a is in plan to be updated, and will they remove the symlinks?

    Version 0.19.8.1 introduced open source libiconv, which causes some issues for some AIX customer applications.

    /usr/lib/libintl.a -> ../../opt/freeware/lib/libintl.a

    # dump -X64 -Tv /usr/lib/libintl.a |grep libiconv.a
    [59] 0x00000000 undef IMP DS EXTref /opt/freeware/lib/libiconv.a(libiconv.so.2) libiconv_open
    [60] 0x00000000 undef IMP DS EXTref /opt/freeware/lib/libiconv.a(libiconv.so.2) libiconv
    [61] 0x00000000 undef IMP DS EXTref /opt/freeware/lib/libiconv.a(libiconv.so.2) libiconv_set_relocation_prefix
    [40] 0x00000000 undef IMP DS EXTref libiconv.a(shr4_64.o) iconv_close
    [41] 0x00000000 undef IMP DS EXTref libiconv.a(shr4_64.o) iconv
    [42] 0x00000000 undef IMP DS EXTref libiconv.a(shr4_64.o) iconv_open


    ------------------------------
    Jan Harris
    ------------------------------