Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#50174 closed defect (fixed)

Latexdiff won't build because of checksum failure; breaks texlive

Reported by: rpgoldman Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mojca (Mojca Miklavec), squiggledid
Port: latexdiff

Description

When I try to build texlive, it triggers building of latexdiff.

Specifically, it tries to download latexdiff-1.1.0_2.darwin_15.noarch.tbz2

port can't find this tarball because the most up-to-date version on the servers (at least the ones that I search) is latexdiff-1.1.0_2.darwin_14.noarch.tbz2

Unable to find the tarball it wants, port falls back to loading latexdiff.zip from CTAN.

After downloading the zipfile, port raises a checksum verification error and crashes.

I'm afraid I'm not sophisticated enough to know:

  1. why is it that port wants to load version _15
  2. why it falls back from loading a tarball to loading a zipfile
  3. where the checksum it's using comes from and why it tries to apply the checksum for a tarball to a zip file.

The exact error transcript is:

--->  Fetching archive for latexdiff
--->  Attempting to fetch latexdiff-1.1.0_2.darwin_15.noarch.tbz2 from http://packages.macports.org/latexdiff
--->  Attempting to fetch latexdiff-1.1.0_2.darwin_15.noarch.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/latexdiff
--->  Attempting to fetch latexdiff-1.1.0_2.darwin_15.noarch.tbz2 from http://lil.fr.packages.macports.org/latexdiff
--->  Fetching distfiles for latexdiff
--->  Attempting to fetch latexdiff.zip from http://mirrors.ibiblio.org/CTAN/support
--->  Verifying checksums for latexdiff
Error: Checksum (rmd160) mismatch for latexdiff.zip
Error: Checksum (sha256) mismatch for latexdiff.zip
Error: org.macports.checksum for port latexdiff returned: Unable to verify file checksums
Error: Failed to install latexdiff

I will attach the logfile.

Attachments (1)

main.log (4.7 KB) - added by rpgoldman 9 years ago.
logfile from latexdiff build

Download all attachments as: .zip

Change History (16)

Changed 9 years ago by rpgoldman

Attachment: main.log added

logfile from latexdiff build

comment:1 in reply to:  description Changed 9 years ago by ars@…

I encountered the same behaviour, except on my configuration a different file is to be downloaded: latexdiff-1.1.0_2.darwin_11.noarch.tbz2

I did a totally new installation on a Mac OS 10.7.5. using the .pkg from macports. When trying to install texlive, the installation breaks due to the dependency on latexdiff.

comment:2 Changed 9 years ago by rpgoldman

Should have recorded this before: I am running 10.11.2 (El Capitan).

comment:3 Changed 9 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added
Resolution: fixed
Status: newclosed
Version: 2.3.4

I committed r144012. I wanted to switch to GitHub, but the repository there is not quite ready yet.

comment:4 Changed 9 years ago by rpgoldman

Thank you; works fine now.

comment:5 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #50175.

comment:6 Changed 9 years ago by ars@…

my build was fixed, too.

comment:7 Changed 9 years ago by squiggledid

Resolution: fixed
Status: closedreopened

comment:8 Changed 9 years ago by squiggledid

This problem is back. This happened a few minutes ago, after I had cleaned latexdiff and tried again:

--->  Computing dependencies for latexdiff
--->  Fetching archive for latexdiff
--->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://packages.macports.org/latexdiff
--->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://jog.id.packages.macports.org/macports/packages/latexdiff
--->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://lil.fr.packages.macports.org/latexdiff
--->  Fetching distfiles for latexdiff
--->  Verifying checksums for latexdiff
Error: Checksum (rmd160) mismatch for latexdiff.zip
Error: Checksum (sha256) mismatch for latexdiff.zip
Error: org.macports.checksum for port latexdiff returned: Unable to verify file checksums

I am using 10.11.2 (El Capitan).

comment:9 Changed 9 years ago by squiggledid

Cc: david.mcg.squire@… added

Cc Me!

comment:10 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: reopenedclosed

r144953 is now fetching files from GitHub. I realized that there is a "download" link that's different from the generated files straight from the source tree and that file look ok for now.

comment:11 Changed 9 years ago by squiggledid

Resolution: fixed
Status: closedreopened

Still broken, I'm afraid. I just cleaned and tried again, and got exactly the same error:

--->  Computing dependencies for latexdiff
--->  Fetching archive for latexdiff
--->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://packages.macports.org/latexdiff
--->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://jog.id.packages.macports.org/macports/packages/latexdiff
--->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://lil.fr.packages.macports.org/latexdiff
--->  Fetching distfiles for latexdiff
--->  Verifying checksums for latexdiff
Error: Checksum (rmd160) mismatch for latexdiff.zip
Error: Checksum (sha256) mismatch for latexdiff.zip
Error: org.macports.checksum for port latexdiff returned: Unable to verify file checksums
Please see the log file for port latexdiff for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_latexdiff/latexdiff/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

I don't know the details of how this works, but it seems to me from the log file that nothing was actually fetched. There is 404 message for every URL tried. Here is the log file:

version:1
:msg:main --->  Computing dependencies for latexdiff:info:main .:debug:main latexdiff has no conflicts
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$
:debug:main Searching for dependency: unzip
:debug:main Didn't find receipt, going to depspec regex for: unzip
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$
:debug:main Searching for dependency: perl5.22
:debug:main Found Dependency: receipt exists for perl5.22
:debug:main Searching for dependency: p5.22-algorithm-diff
:debug:main Found Dependency: receipt exists for p5.22-algorithm-diff
:msg:main 
:debug:main Executing org.macports.main (latexdiff)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 20
:debug:main euid changed to: 501
:debug:archivefetch archivefetch phase started at Sat Jan 23 22:32:22 AEDT 2016
:msg:archivefetch --->  Fetching archive for latexdiff
:debug:archivefetch Executing org.macports.archivefetch (latexdiff)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 501/20
:info:archivefetch --->  latexdiff-1.1.1_0.darwin_15.noarch.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://packages.macports.org/latexdiff
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://jog.id.packages.macports.org/macports/packages/latexdiff
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch latexdiff-1.1.1_0.darwin_15.noarch.tbz2 from http://lil.fr.packages.macports.org/latexdiff
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Sat Jan 23 22:32:34 AEDT 2016
:notice:fetch --->  Fetching distfiles for latexdiff
:debug:fetch Executing org.macports.fetch (latexdiff)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sat Jan 23 22:32:34 AEDT 2016
:notice:checksum --->  Verifying checksums for latexdiff
:debug:checksum Executing org.macports.checksum (latexdiff)
:info:checksum --->  Checksumming latexdiff.zip
:debug:checksum Calculated (rmd160) is ee4c002be4865a01161bf45b2e2a5fd830e2b143
:error:checksum Checksum (rmd160) mismatch for latexdiff.zip
:info:checksum Portfile checksum: latexdiff.zip rmd160 f79073607eacda0e15945717e3eaaa718075712c
:info:checksum Distfile checksum: latexdiff.zip rmd160 ee4c002be4865a01161bf45b2e2a5fd830e2b143
:debug:checksum Calculated (sha256) is 9f0cc207d71a2225926cf9b8b87dbc4283c68de12db8a7708e780941516f13f6
:error:checksum Checksum (sha256) mismatch for latexdiff.zip
:info:checksum Portfile checksum: latexdiff.zip sha256 d530d268dd54458d728218e9ec7b4d9e9bc2858148bab64f277143e6a40fccee
:info:checksum Distfile checksum: latexdiff.zip sha256 9f0cc207d71a2225926cf9b8b87dbc4283c68de12db8a7708e780941516f13f6
:info:checksum The correct checksum line may be:
:info:checksum checksums           rmd160  ee4c002be4865a01161bf45b2e2a5fd830e2b143 \
                    sha256  9f0cc207d71a2225926cf9b8b87dbc4283c68de12db8a7708e780941516f13f6
:error:checksum org.macports.checksum for port latexdiff returned: Unable to verify file checksums
:debug:checksum Error code: NONE
:debug:checksum Backtrace: Unable to verify file checksums
    while executing
"portchecksum::checksum_main org.macports.checksum"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:checksum Warning: targets not executed for latexdiff: org.macports.install org.macports.checksum org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot
:notice:checksum Please see the log file for port latexdiff for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_latexdiff/latexdiff/main.log

comment:12 Changed 9 years ago by mojca (Mojca Miklavec)

Did you update the ports properly? MacPorts should no longer look for latexdiff.zip.

The new checksums are

checksums           rmd160  51e9e85c8152143a9229b7bd7c41e6f67ef85ecd \
                    sha256  5d772897c77d931ae0a6999f7254ba66a8fe4706d2508fdeebbb5c4ab6ba290c

If MacPorts is checking for anything else, there's something wrong.

Last edited 9 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:13 Changed 9 years ago by squiggledid

I did "sudo port clean latexdiff", and then "sudo port upgrade outdated" (which was what I was doing when I first saw the failure). I figured cleaning would be enough, but now realise that I needed to update the port file itself.

I've just done a "sudo port selfupdate", again followed by the steps above. This took a quite a while, as it triggered other (large) ports to update (surprisingly many, as I last did this only a couple of days ago)..

The bottom line is that latexdiff installed without problem this time.

Thanks.

comment:14 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: reopenedclosed

comment:15 in reply to:  13 Changed 9 years ago by mojca (Mojca Miklavec)

Replying to david.mcg.squire@…:

I did "sudo port clean latexdiff", and then "sudo port upgrade outdated" (which was what I was doing when I first saw the failure). I figured cleaning would be enough, but now realise that I needed to update the port file itself.

Sure. Just "sudo port upgrade outdated" without "sudo port selfupdate" (or updating a copy in your local tree if you have one) will never be enough if a problem your reported just got fixed. The large number of other ports could be a coincidence, but you always need to update (at least) the Portfile for port in question.

Note: See TracTickets for help on using tickets.