Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#56003 - [rsync] rsync lacks old-style --compress due to its external zlib.

Attached to Project: Arch Linux
Opened by jayki (jayki) - Sunday, 15 October 2017, 20:39 GMT
Last edited by Eli Schwartz (eschwartz) - Monday, 16 October 2017, 15:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
After adding system zlib to rsync all older rsync clients will fail if they are using old-stlye compression.
On many Systems the new-compression is not available so this Update breaks all these Clients.
Additional info:
* package version(s)3.1.2-4
* config and/or log files etc.

rsync: This rsync lacks old-style --compress due to its external zlib. Try -zz.
rsync error: syntax or usage error (code 1) at main.c(1567) [server=3.1.2]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0]
rsync: This rsync lacks old-style --compress due to its external zlib. Try -zz.
rsync error: syntax or usage error (code 1) at main.c(1567) [server=3.1.2]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]

Steps to reproduce:

Try sending files via rsync (and e.g. ssh) to a Server running Archlinux's newest rsync version from an older rsync Client (e.g. 3.1.0)

I've used SailfishOS to send some files via ssh to my Archlinux Server with this command:
rsync -avz -e "ssh -p XXXX" X Y
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Monday, 16 October 2017, 15:26 GMT
Reason for closing:  Fixed
Additional comments about closing:  rsync 3.1.2-5
Comment by Michael Gwin (oksijun) - Sunday, 15 October 2017, 21:21 GMT
Same issue here. This change effectively breaks compatibility with hosts running rsync compiled with an internal zlib.

I'm wondering what the rationale behind this change is, especially given rsync's primary use as a tool to transfer files to and from various systems.
Comment by Michael M. Tung (mmtung) - Monday, 16 October 2017, 06:50 GMT
I also had the same problem on various hosts with rsync scripts. Manually recompiled binary with './configure --prefix=/usr --with-included-zlib'.
Comment by Christian Hesse (eworm) - Monday, 16 October 2017, 07:49 GMT
*sigh*

The main reason one wants system libraries is maintainability... Imagine there's a security vulnerability in zlib. You have to update the system zlib, all programs using the system library benefit from that. Including a bundled zlib I have to care for that for rsync only...

Breaking compatibility is not desired, though. So let's revert the change... (And add a comment in PKGBUILD for the reason.)
Comment by Eli Schwartz (eschwartz) - Monday, 16 October 2017, 15:25 GMT
Other distros e.g. redhat currently use the bundled zlib as well, and mention that this is only a stopgap until rsync 3.1.1 is more available in the wild. https://bugzilla.redhat.com/show_bug.cgi?id=1102637

This should be noted in the PKGBUILD as well.

Loading...