Opened 13 years ago

Closed 12 years ago

#31458 closed defect (fixed)

Incorrect checksums for ocaml-doc

Reported by: someuser12 Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: haspatch Cc:
Port: ocaml-doc

Description

It seems the checksums in the Portfile of ocaml-doc are outdated:

$ sudo port -vu upgrade ocaml-doc
--->  Fetching archive for ocaml-doc
--->  ocaml-doc-3.12_1.darwin_9.noarch.tbz2 doesn't seem to exist in /opt/local/var/macports/software/ocaml-doc
--->  Attempting to fetch ocaml-doc-3.12_1.darwin_9.noarch.tbz2 from http://packages.macports.org/ocaml-doc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching ocaml-doc
--->  Verifying checksum(s) for ocaml-doc
--->  Checksumming ocaml-3.12-refman.html.tar.gz
Error: Checksum (md5) mismatch for ocaml-3.12-refman.html.tar.gz
Portfile checksum: ocaml-3.12-refman.html.tar.gz md5 93cd91f525441eb7e94cc49b9b64bab0
Distfile checksum: ocaml-3.12-refman.html.tar.gz md5 f62a8bb181c1ca7b3233dba8ff51dd46
Error: Checksum (sha1) mismatch for ocaml-3.12-refman.html.tar.gz
Portfile checksum: ocaml-3.12-refman.html.tar.gz sha1 3a332ab965f6a917953f30e8ee069d9ecfb342a1
Distfile checksum: ocaml-3.12-refman.html.tar.gz sha1 07991b8e9a5636900c4126056da69331a30f8b8b
Error: Checksum (rmd160) mismatch for ocaml-3.12-refman.html.tar.gz
Portfile checksum: ocaml-3.12-refman.html.tar.gz rmd160 39a0964d0d3f9ba70d312525fe919d6bb4bff18e
Distfile checksum: ocaml-3.12-refman.html.tar.gz rmd160 67ff4954aff18ba2991e41df90454aa36f89b8ef
The correct checksum line may be:
checksums           md5     f62a8bb181c1ca7b3233dba8ff51dd46 \
                    sha1    07991b8e9a5636900c4126056da69331a30f8b8b \
                    rmd160  67ff4954aff18ba2991e41df90454aa36f89b8ef
Error: Target org.macports.checksum returned: Unable to verify file checksums
Warning: the following items did not execute (for ocaml-doc): org.macports.install org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot
Log for ocaml-doc is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_localhost_release_ports_lang_ocaml-doc/ocaml-doc/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>
$

Attached is a patch to the Portfile.

Attachments (1)

patch-ocaml-doc-Portfile (1.0 KB) - added by someuser12 13 years ago.
Patch to ocaml-doc Portfile

Download all attachments as: .zip

Change History (5)

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Keywords: haspatch added
Owner: changed from macports-tickets@… to mww@…

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

You cannot just change the checksums; you must follow the stealth-update procedure (that is: also change dist_subdir, and perhaps increase revision).

Changed 13 years ago by someuser12

Attachment: patch-ocaml-doc-Portfile added

Patch to ocaml-doc Portfile

comment:3 in reply to:  2 Changed 13 years ago by someuser12

Thanks. I checked that the two versions are indeed different (not just the tar of zip files, but also the content), then I changed the dist_subdir (new patch attached).

I don't think it would be a good idea to change the revision, since ocaml has a revision number, which is currently up-to-date. Adding a revision number to ocaml-doc might make things more confuse.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.