Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497588 - net-misc/rsync - add support for sytem-zlib
Summary: net-misc/rsync - add support for sytem-zlib
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-08 23:45 UTC by Michael Rowell
Modified: 2014-01-09 12:58 UTC (History)
0 users

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


Attachments
Patch for new rsync ebuild. (rsync-3.1.0.ebuild.diff,1.20 KB, patch)
2014-01-08 23:45 UTC, Michael Rowell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rowell 2014-01-08 23:45:16 UTC
Created attachment 367450 [details, diff]
Patch for new rsync ebuild.

rsync bundles its own modified version of zlib by default. As of 3.1.0, however, the option to compile against an unmodified zlib (such as the system zlib) is available. The developers' intention is to eventually make this option the default, but for now, it can be manually enabled with a configure flag: --with-included-zlib=no.

I propose exposing this option as a use flag. Attached is a diff against the current rsync-3.1.0 ebuild which I believe does this.
Comment 1 SpanKY gentoo-dev 2014-01-09 12:58:08 UTC
doesn't seem like anything has really changed:
zlib/README.rsync:

Specific changes that have been made to zlib for rsync include:

- add Z_INSERT_ONLY to allow for efficient history updating without
  actually emitting any data. This is used to compress the matched
  blocks that don't cross the wire, which gives better compression
  ratios on the literal data.

As a result of the first item, the streams from rsync's version of
zlib are *not compatible* with those produced by the upstream version
of rsync.  In other words, if you link rsync against your system's
copy, it will not be able to interoperate with any other version if
the -z option is used.  (Sorry.  Sometimes standard is better than
better.)