Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#15973 closed defect (fixed)

rsync: checksum verification failure for patchfiles

Reported by: george@… Owned by: simon@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: skymoo (Adam Mercer)
Port:

Description

I've installed MacPorts 1.60 on a new 10.5 system. When I attempt to build rsync, I get:

georger@george-reillys-macbook-pro-17:~$ sudo port clean rsync
--->  Cleaning rsync
georger@george-reillys-macbook-pro-17:~$ sudo port install rsync
--->  Fetching rsync
--->  Attempting to fetch fileflags.diff from http://rsync.samba.org/ftp/rsync/patches/
--->  Attempting to fetch crtimes.diff from http://rsync.samba.org/ftp/rsync/patches/
--->  Attempting to fetch rsync-3.0.3.tar.gz from http://rsync.samba.org/ftp/rsync/
--->  Verifying checksum(s) for rsync
Error: Checksum (md5) mismatch for fileflags.diff
Error: Checksum (sha1) mismatch for fileflags.diff
Error: Checksum (rmd160) mismatch for fileflags.diff
Error: Checksum (md5) mismatch for crtimes.diff
Error: Checksum (sha1) mismatch for crtimes.diff
Error: Checksum (rmd160) mismatch for crtimes.diff
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: Status 1 encountered during processing.

(I'm really trying to build git, per http://code.google.com/p/macvim/wiki/Building#Installing_Git. That failed initially with:

checking if you wish to install curses.h... yes
checking for mawk... (cached) no
checking for gawk... (cached) no
checking for nawk... (cached) no
checking for awk... (cached) no
configure: error: No awk program found

which I fixed by 'sudo port install gawk', but now I'm getting blocked by the failure to build rsync.)

Change History (5)

comment:1 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: simon@… added
Milestone: Port Bugs
Summary: Can't build rsync: checksum verification failurersync: checksum verification failure for patchfiles

I can confirm the checksum mismatch for the patchfiles in the rsync port. Assigning to maintainer of rsync.

P.S: You probably did not need to install gawk to overcome the "No awk program found" problem. Rather it's probably a manifestation of the Leopard environment variable issue. Simply cleaning (sudo port clean --work git) and reattempting the installation (sudo port install git) of the affected port should fix it.

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: simon@… removed
Owner: changed from macports-tickets@… to simon@…

comment:3 Changed 16 years ago by skymoo (Adam Mercer)

Cc: ram@… added

Seems like theres a problem with the patch files here, as if you fix the checksums then some of the patch hunks fail to apply:

--->  Applying patches to rsync
--->  Applying /opt/local/var/macports/distfiles/rsync/fileflags.diff
DEBUG: Environment: "MACOSX_DEPLOYMENT_TARGET"='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_Users_ram_opt_macports_net_rsync/work/rsync-3.0.3" && patch -p1'
patching file Makefile.in
patching file compat.c
Hunk #1 succeeded at 41 (offset 1 line).
Hunk #2 succeeded at 62 (offset 1 line).
Hunk #3 succeeded at 136 (offset 1 line).
patching file configure.in
patching file flist.c
Hunk #1 succeeded at 52 (offset 2 lines).
patching file generator.c
Hunk #1 succeeded at 42 (offset 2 lines).
Hunk #2 succeeded at 168 (offset 2 lines).
Hunk #3 succeeded at 176 (offset 2 lines).
Hunk #4 succeeded at 303 (offset 2 lines).
Hunk #5 succeeded at 609 (offset 2 lines).
Hunk #6 succeeded at 679 (offset 2 lines).
Hunk #7 succeeded at 1462 (offset 2 lines).
Hunk #8 succeeded at 1506 (offset 2 lines).
Hunk #9 succeeded at 1549 (offset 2 lines).
Hunk #10 FAILED at 2087.
1 out of 10 hunks FAILED -- saving rejects to file generator.c.rej
patching file log.c
Hunk #1 succeeded at 656 (offset -5 lines).
patching file options.c
Hunk #3 succeeded at 227 (offset -334 lines).
Hunk #4 succeeded at 260 (offset -334 lines).
Hunk #5 succeeded at 276 (offset -334 lines).
Hunk #6 succeeded at 344 (offset -336 lines).
Hunk #7 succeeded at 384 (offset -336 lines).
Hunk #8 succeeded at 494 (offset -339 lines).
Hunk #9 succeeded at 576 (offset -339 lines).
Hunk #10 succeeded at 1878 (offset -392 lines).
Hunk #11 succeeded at 1968 (offset -392 lines).
patching file rsync.c
Hunk #1 succeeded at 32 (offset 1 line).
Hunk #2 succeeded at 375 (offset 1 line).
Hunk #3 succeeded at 461 (offset 1 line).
Hunk #4 succeeded at 497 (offset 1 line).
Hunk #5 succeeded at 530 (offset 1 line).
Hunk #6 FAILED at 542.
Hunk #7 succeeded at 618 with fuzz 1 (offset 1 line).
Hunk #8 succeeded at 638 (offset 1 line).
1 out of 8 hunks FAILED -- saving rejects to file rsync.c.rej
patching file rsync.h
patching file rsync.yo
Hunk #1 succeeded at 338 (offset -2 lines).
Hunk #2 succeeded at 370 (offset -2 lines).
Hunk #3 succeeded at 544 (offset -41 lines).
Hunk #4 succeeded at 803 (offset -41 lines).
Hunk #5 succeeded at 940 (offset -41 lines).
Hunk #6 succeeded at 1218 (offset -48 lines).
Hunk #7 succeeded at 1680 (offset -78 lines).
Hunk #8 succeeded at 1736 (offset -78 lines).
patching file syscall.c
patching file t_stub.c
patching file util.c
Hunk #1 succeeded at 29 (offset 1 line).
Hunk #2 succeeded at 124 (offset 1 line).
Hunk #3 succeeded at 141 (offset 1 line).
Hunk #4 succeeded at 155 (offset 1 line).
patching file xattrs.c
Error: Target org.macports.patch returned: shell command " cd "/opt/local/var/macports/build/_Users_ram_opt_macports_net_rsync/work/rsync-3.0.3" && patch -p1 < '/opt/local/var/macports/distfiles/rsync/fileflags.diff'" returned error 1
Command output: Hunk #10 succeeded at 1878 (offset -392 lines).
Hunk #11 succeeded at 1968 (offset -392 lines).
patching file rsync.c
Hunk #1 succeeded at 32 (offset 1 line).
Hunk #2 succeeded at 375 (offset 1 line).
Hunk #3 succeeded at 461 (offset 1 line).
Hunk #4 succeeded at 497 (offset 1 line).
Hunk #5 succeeded at 530 (offset 1 line).
Hunk #6 FAILED at 542.
Hunk #7 succeeded at 618 with fuzz 1 (offset 1 line).
Hunk #8 succeeded at 638 (offset 1 line).
1 out of 8 hunks FAILED -- saving rejects to file rsync.c.rej
patching file rsync.h
patching file rsync.yo
Hunk #1 succeeded at 338 (offset -2 lines).
Hunk #2 succeeded at 370 (offset -2 lines).
Hunk #3 succeeded at 544 (offset -41 lines).
Hunk #4 succeeded at 803 (offset -41 lines).
Hunk #5 succeeded at 940 (offset -41 lines).
Hunk #6 succeeded at 1218 (offset -48 lines).
Hunk #7 succeeded at 1680 (offset -78 lines).
Hunk #8 succeeded at 1736 (offset -78 lines).
patching file syscall.c
patching file t_stub.c
patching file util.c
Hunk #1 succeeded at 29 (offset 1 line).
Hunk #2 succeeded at 124 (offset 1 line).
Hunk #3 succeeded at 141 (offset 1 line).
Hunk #4 succeeded at 155 (offset 1 line).
patching file xattrs.c

Warning: the following items did not execute (for rsync): org.macports.activate org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

comment:4 Changed 16 years ago by simon@…

Resolution: fixed
Status: newclosed

The problem was that the patches in http://rsync.samba.org/ftp/rsync/patches/ were changed. I thought they were stable and change only with a new release.

So I added the patches from http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.3.tar.gz to the files directory in r38280. This seems the easiest solution.

Thanks for your help,

Simon

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.