Opened 7 years ago

Closed 7 years ago

#53039 closed defect (fixed)

luarocks 2.3.0: Unable to verify checksums

Reported by: mathomp4 (Matthew Thompson) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: luarocks

Description

I was trying to install luarocks today and I got a checksum failure (see below). I ran these commands based on other checksum tickets I saw, but I can run some more if requested.

(12) $ port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.5 installed,
MacPorts base version 2.3.5 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
(13) $ port clean --all luarocks
--->  Cleaning luarocks
(14) $ port -v checksum luarocks
--->  Fetching distfiles for luarocks
--->  luarocks-2.3.0.tar.gz does not exist in /Users/mathomp4/macports/var/macports/distfiles/luarocks
--->  Attempting to fetch luarocks-2.3.0.tar.gz from https://github.com/keplerproject/luarocks/tarball/v2.3.0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   139    0   139    0     0    215      0 --:--:-- --:--:-- --:--:--   215
100   132    0   132    0     0    197      0 --:--:-- --:--:-- --:--:--   197
100 3918k  100 3918k    0     0  3861k      0  0:00:01  0:00:01 --:--:-- 3861k
--->  Verifying checksums for luarocks
--->  Checksumming luarocks-2.3.0.tar.gz
Error: Checksum (rmd160) mismatch for luarocks-2.3.0.tar.gz
Portfile checksum: luarocks-2.3.0.tar.gz rmd160 7b435a44d738aac1a37436cb8fab6b14ae5deb10
Distfile checksum: luarocks-2.3.0.tar.gz rmd160 377103c0ac5ec62576a798da2b3e721162a9f241
Error: Checksum (sha256) mismatch for luarocks-2.3.0.tar.gz
Portfile checksum: luarocks-2.3.0.tar.gz sha256 0e44e4246ee602dcc623b4a2c329a2c57627a598018d3474e30c28a91fe5276d
Distfile checksum: luarocks-2.3.0.tar.gz sha256 b544a630f2a936e487745781dee342d2d90da1df91d35ded532a3a995affe719
The correct checksum line may be:
checksums           rmd160  377103c0ac5ec62576a798da2b3e721162a9f241 \
                    sha256  b544a630f2a936e487745781dee342d2d90da1df91d35ded532a3a995affe719
Error: org.macports.checksum for port luarocks returned: Unable to verify file checksums
Warning: targets not executed for luarocks: org.macports.checksum
Please see the log file for port luarocks for details:
    /Users/mathomp4/macports/var/macports/logs/_Users_mathomp4_macports_var_macports_sources_distfiles.macports.org_ports_devel_luarocks/luarocks/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port luarocks failed

Attachments (1)

macports-luarocks-fix.diff (1.1 KB) - added by DanielO (Daniel O'Connor) 7 years ago.

Download all attachments as: .zip

Change History (4)

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

This probably occurred because the "luarocks" project moved from the "keplerproject" GitHub organization to the "luarocks" GitHub organization, and the GitHub organization name is contained within the data that gets checksummed, so this caused the checksum to change.

Meanwhile newer versions of luarocks have been released; perhaps we could update the port to 2.4.0, 2.4.1 or 2.4.2 while fixing this problem.

Changed 7 years ago by DanielO (Daniel O'Connor)

Attachment: macports-luarocks-fix.diff added

comment:2 Changed 7 years ago by DanielO (Daniel O'Connor)

I tried your suggestion Ryan and it works, I've attached a diff which worked for me. Thanks

comment:3 Changed 7 years ago by l2dy (Zero King)

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