Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730470 - net-misc/rsync: Don't install rsync-ssl with USE=-openssl
Summary: net-misc/rsync: Don't install rsync-ssl with USE=-openssl
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2020-07-02 17:15 UTC by David Flogeras
Modified: 2020-07-03 16:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description David Flogeras 2020-07-02 17:15:28 UTC
I know it's kind of petty, but 20 years of muscle memory and I find it annoying when the rsy<TAB> no longer autocompletes with a space because there's now a rsync-ssl binary to contend with.

I don't need the openssl functionality, so I disabled it, but the binary still gets installed (I think) incorrectly.

If I add the following to src_install() in the ebuild, it culls the binary:

    if ! use ssl ; then
        rm -f "${ED}"/usr/bin/rsync-ssl || die

Reproducible: Always
Comment 1 Ionen Wolkens gentoo-dev 2020-07-02 19:42:55 UTC
Formerly it was only installed with USE=stunnel but upstream rsync build scripts started to install it by default and so here it is.

rsync-ssl is also just a small script with a few options of what it can use.. thus is not limited to stunnel (openssl, gnutls, stunnel), and it probably doesn't make much sense to put a tiny script behind a USE flag.

If bothered then INSTALL_MASK="/usr/bin/rsync-ssl" exists for situation like this, can be used through package.env if don't want a big mask used on every packages. Alternatively could configure your shell's tab completion to always complete to rsync (I'd suggest googling or using forums if need more information, bug tracker not really the place).
Comment 2 David Flogeras 2020-07-03 16:21:00 UTC
You're right, I can use EXECIGNORE in bash to do what I need.  It was difficult for me to find that option since search engines kept taking me to pages on how to "ignore case" in bash, but some folks in IRC helped me out.

Ultimately, I'll leave it up to the maintainers if they want the maintenance burden of filtering the script when no SSL/tunnels options are specified.