AIX Open Source

 View Only
  • 1.  rsync link not included in latest update

    Posted Tue September 29, 2020 03:41 PM
    ​In investigating why my rsync script stopped working, I determined that the latest version does not contain the link to the /usr/bin directory:

    Previous version:
    # /bin/rpm -ql rsync-3.1.3-5.ppc
    /opt/freeware/bin/rsync
    /opt/freeware/bin/rsync_32
    /opt/freeware/bin/rsync_64
    /opt/freeware/doc/rsync-3.1.3
    /opt/freeware/doc/rsync-3.1.3/COPYING
    /opt/freeware/doc/rsync-3.1.3/README
    /opt/freeware/doc/rsync-3.1.3/tech_report.tex
    /opt/freeware/man/man1/rsync.1
    /opt/freeware/man/man5/rsyncd.conf.5
    /usr/bin/rsync
    /usr/bin/rsync_32
    /usr/bin/rsync_64

    Current version:
    # /bin/rpm -ql  rsync-3.2.3-1.ppc
    /opt/freeware/bin/rsync
    /opt/freeware/bin/rsync-ssl
    /opt/freeware/bin/rsync-ssl_32
    /opt/freeware/bin/rsync-ssl_64
    /opt/freeware/bin/rsync_32
    /opt/freeware/bin/rsync_64
    /opt/freeware/doc/rsync-3.2.3
    /opt/freeware/doc/rsync-3.2.3/COPYING
    /opt/freeware/doc/rsync-3.2.3/INSTALL.md
    /opt/freeware/doc/rsync-3.2.3/NEWS.md
    /opt/freeware/doc/rsync-3.2.3/README.md
    /opt/freeware/doc/rsync-3.2.3/TODO
    /opt/freeware/man/man1/rsync-ssl.1
    /opt/freeware/man/man1/rsync.1
    /opt/freeware/man/man5/rsyncd.conf.5

    I of course can create this link, but would not think I'd have to...  Was it a design decision for some reason to keep the link to /usr/bin out of this version of rsync?​

    ------------------------------
    Mark Skinner
    ------------------------------


  • 2.  RE: rsync link not included in latest update

    Posted Wed September 30, 2020 01:29 AM
    Yes, this was a decision a while back. All the packages are removing anything from /usr and put everything in /opt/freeware. This is to avoid the periodical problems of clashes between AIX and RPM files. I would add "/opt/freeware/bin:/opt/freeware/sbin" to your default PATH.

    Not all RPMs have been updated yet, so there might still be some examples of files going to /usr, but they should disappear soon enough...

    PS. IMO they should also have selected a new home... The "freeware" label is misleading and a leftover from the Bull archive and makes it look a little amateurish. /opt/oss or simply /opt/rpm. But maybe that's just a streak of OCD :)

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



  • 3.  RE: rsync link not included in latest update

    Posted Wed September 30, 2020 09:18 AM
    ​Thanks for the suggestion to modify the default path, but I fully qualify the commands in my scripts, so without the /usr/bin/rsync link, the rsync command would still not be found.  I will have to do some checking on other scripts that use these tools and recreate links to /usr/bin as needed.

    ------------------------------
    Mark Skinner
    ------------------------------



  • 4.  RE: rsync link not included in latest update

    Posted Wed September 30, 2020 12:31 PM
    Edited by Michael Jack Wed September 30, 2020 12:49 PM

    Message removed as repeated below



  • 5.  RE: rsync link not included in latest update

    Posted Wed September 30, 2020 12:31 PM
    Hi Mark,
    I hit this the other day too. I found that by adding "--rsync-path=/opt/freeware/bin/rsync" to the rsync command line, it can then find the rsync binary on the remote end, where it previously found it because it was in the default path under /usr/bin.

    There is probably an alternate way around it, depending on the mechanism that rsync uses to get to the remote end (default is ssh I think).

    For ssh, it looks possible to do by adding/modifying a PATH value in /etc/sshrc or ~/.ssh/rc so that it contains /opt/freeware/bin, but I have not tried it as yet, and this depends on your sshd_config settings (see answer in Reasons for ssh rc file not to be executed).

    ------------------------------
    Michael Jack
    ------------------------------



  • 6.  RE: rsync link not included in latest update

    Posted Thu October 01, 2020 02:27 AM
    Our recommendation is if you use fully qualify path in scripts then why not to change the scripts and use the /opt/freeware path.
    I know this will be some work initially but I think that would be better in long run.


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



  • 7.  RE: rsync link not included in latest update

    Posted Fri February 19, 2021 04:04 PM

    Hi,

    I found this thread recently searching for this problem I got today after updating rsync-3.1.3-5.ppc to rsync-3.2.3-1.ppc (in one step with TL 4 servicepack 3). As I had to solve the "missing rsync" problem some hours ago, I added the following lines to my servicepack update guide:

    # which rsync || cd /usr/bin && ln -s ../../opt/freeware/bin/rsync /usr/bin/rsync
    # cd && ls -l /usr/bin/rsync && which rsync

    As not all rpms are affected (just the newer ones it seems), I have a mixture of symlinks and non-symlink /opt/freeware (after the rsync-failure, I compared the directories before and after).

    But what seems impolite at all is the removal of a decades old behaviour without any hint to the customer.



    ------------------------------
    Achim Haag
    ------------------------------



  • 8.  RE: rsync link not included in latest update

    Posted Mon February 22, 2021 12:47 AM
    Hi Achim,
    We published a blog sometime back before started making these changes.
    And hoped that people will either change their script (if uses fully qualified path) or create link themselves or add /opt/freeware/bin in their PATH variable.
    Would like to know what kind of hint you are looking and if that is possible probably we can make it for better user experience.

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



  • 9.  RE: rsync link not included in latest update

    Posted Wed February 24, 2021 07:19 AM
    Hi Sanket,

    just a thought:

    As the rpm-installation of e.g bash shows a message concerning 32bit vs. 64bit version since many days,
    wouldn't this be a way to notice the admin ?

    I googled and found the possibility of pre and post scripts, so as the new rpm package removes actively the former /usr symlink, it could show a message "/usr/bin/rsync symlink will be removed" at installation time - or am I wrong ?

    This would be a cool way to inform the administrator ?!?

    ------------------------------
    Achim Haag
    ------------------------------



  • 10.  RE: rsync link not included in latest update

    Posted Mon March 01, 2021 02:26 AM
    Sure we can add such a message but many admins do automated installation and update of many servers and may not be able to view all the logs.
    But anyway we discussed and we try to add such a message in our packages.

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