FS#41024 - [rsync] external zlib breaks compatibility with ≤ 3.1.0

Attached to Project: Arch Linux
Opened by Mantas Mikulėnas (grawity) - Saturday, 28 June 2014, 20:49 GMT
Last edited by Pierre Schmitz (Pierre) - Thursday, 03 July 2014, 18:36 GMT
Task Type General Gripe
Category Packages: Extra
Status Closed
Assigned To Pierre Schmitz (Pierre)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 9
Private No


rsync 3.1.1 has two compress methods, "old" and "new". The old method (-z) depends on the internal modified zlib, while the new one (-zz) can use stock zlib.

Since Arch's rsync is built using "--with-included-zlib=no", the old compress method (-z) is unavailable, and attempting to use it results in this error:

"This rsync lacks old-style --compress due to its external zlib. Try -zz"
"Continuing without compression."

However, if I use -zz, it stops working with *older* rsync (backing up a server that has 3.1.0):

"rsync: on remote machine: --new-compress: unknown option"

So my backup script has to either add -zz depending on the remote hostname, or avoid compression entirely. Both of which, honestly, suck.
This task depends upon

Closed by  Pierre Schmitz (Pierre)
Thursday, 03 July 2014, 18:36 GMT
Reason for closing:  Fixed
Comment by Linas (Linas) - Monday, 30 June 2014, 20:45 GMT

As a workaround, for rebuilding the package without this issue, you only need to remove the "--with-included-zlib=no" in the PKGBUILD.