From owner-freebsd-ports@FreeBSD.ORG Fri Jun 27 12:55:31 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA00A96D; Fri, 27 Jun 2014 12:55:31 +0000 (UTC) Received: from critical.ch (critical.ch [IPv6:2a01:4f8:100:936f::1:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 649FB2BCF; Fri, 27 Jun 2014 12:55:31 +0000 (UTC) Received: from wiggles.local (27-98.1-85.cust.bluewin.ch [85.1.98.27]) (authenticated bits=0) by critical.ch (8.14.7/8.14.7/critical-1.0) with ESMTP id s5RCtRXq067678; Fri, 27 Jun 2014 14:55:27 +0200 (CEST) (envelope-from ehaupt@FreeBSD.org) Date: Fri, 27 Jun 2014 14:55:27 +0200 From: Emanuel Haupt To: Ben Tung Subject: Re: rsync 3.1.1 zlib might not work Message-Id: <20140627145527.9d22938908a9f4847ba62388@FreeBSD.org> In-Reply-To: References: X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2014 12:55:31 -0000 Thanks for your report. I was able to confirm this: --- output of regression test begins here --- # 3.1.1 root@wiggles:/tmp/test # rm dst/*; rsync -z -avP src/. dst/ This rsync lacks old-style --compress due to its external zlib. Try -zz. Continuing without compression. sending incremental file list ./ file1 104,857,600 100% 316.36MB/s 0:00:00 (xfr#1, to-chk=2/4) file2 104,857,600 100% 154.32MB/s 0:00:00 (xfr#2, to-chk=1/4) file3 104,857,600 100% 107.64MB/s 0:00:00 (xfr#3, to-chk=0/4) sent 314,649,797 bytes received 76 bytes 209,766,582.00 bytes/sec total size is 314,572,800 speedup is 1.00 root@wiggles:/tmp/test # rm dst/*; rsync -zz -avP src/ dst/ sending incremental file list ./ file1 104,857,600 100% 16.57MB/s 0:00:06 (xfr#1, to-chk=2/4) file2 104,857,600 100% 16.37MB/s 0:00:06 (xfr#2, to-chk=1/4) file3 104,857,600 100% 16.36MB/s 0:00:06 (xfr#3, to-chk=0/4) sent 314,752,131 bytes received 76 bytes 17,013,632.81 bytes/sec total size is 314,572,800 speedup is 1.00 # 3.1.1 with bundled ZLIB root@wiggles:/tmp/test # rm dst/*; rsync -z -avP src/ dst/ sending incremental file list ./ file1 104,857,600 100% 16.33MB/s 0:00:06 (xfr#1, to-chk=2/4) file2 104,857,600 100% 16.17MB/s 0:00:06 (xfr#2, to-chk=1/4) file3 104,857,600 100% 15.99MB/s 0:00:06 (xfr#3, to-chk=0/4) sent 314,752,131 bytes received 76 bytes 17,013,632.81 bytes/sec total size is 314,572,800 speedup is 1.00 # 3.1.0_3 root@wiggles:/tmp/test # rm dst/*; rsync -z -avP src/. dst/ sending incremental file list ./ file1 104,857,600 100% 16.92MB/s 0:00:05 (xfr#1, to-chk=2/4) file2 104,857,600 100% 14.72MB/s 0:00:06 (xfr#2, to-chk=1/4) file3 104,857,600 100% 14.99MB/s 0:00:06 (xfr#3, to-chk=0/4) sent 314,752,131 bytes received 76 bytes 17,013,632.81 bytes/sec total size is 314,572,800 speedup is 1.00 --- output of regression test ends here --- As a workaround I would suggest to rebuild the port without the ZLIB_BASE option checked. As this option is broken I am thinking about either removing this option entirely or change the default value to 'off' with a warning that this option is currently broken. Emanuel Ben Tung wrote: > Dear sir, > > > I guess something wrong with the new net/rsync 3.1.1 > > > I set up a new server today and install rsync for deploy my contents. > > I usually use the option -z to compress the contents, but it doesn't > work today. I have multiple servers around aws locations, the other > old servers are ok, because they are rsync 3.1.0_3. > > > I drop the -z option, then it works, so it seems it is because the > zlib used for rsync problem. > > > The command I am using to deploy is as following: > > > # rsync -azv --delete /Path/To/The/Source/Dir/ > ec2-user@my.domain:/Path/To/The/Destination/Dir/ > --exclude=.svn --exclude=.git --exclude=.cache --exclude=.idea > --exclude=.DS_Store --exclude=node_modules > > > > > 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(1575) > [server=3.1.1] > > rsync: connection unexpectedly closed (0 bytes received so far) > [sender] > > rsync error: error in rsync protocol data stream (code 12) at > /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9] > > Hope it helps, and if any further question, please feel free to let > me know, > > Have a wonderful day :) > > Ben