Gcenx / macports-wine

MacPorts overlay for building wine on macOS
93 stars 11 forks source link

Wrong checksums for winecx #100

Closed yasuiniko closed 11 months ago

yasuiniko commented 11 months ago

Summary: Something is going wrong between the winecx commit you're pointing to and the checksums. I was able to make macports build game-porting-toolkit correctly by changing the commit hash and the checksums. Since this is the first time I'm really interacting with macports I'm not sure whether this is achieving the outcome that you intended.

Original Error:

?1 /opt/macports-wine % sudo port install game-porting-toolkit
Password:
--->  Computing dependencies for game-porting-toolkit
--->  Verifying checksums for game-porting-toolkit
Error: Checksum (rmd160) mismatch for winecx-853f1f2.tar.gz
Error: Checksum (sha256) mismatch for winecx-853f1f2.tar.gz
Error: Checksum (size) mismatch for winecx-853f1f2.tar.gz
Error: Failed to checksum game-porting-toolkit: Unable to verify file checksums
Error: See /opt/local/var/macports/logs/_opt_macports-wine_devel_game-porting-toolkit/game-porting-toolkit/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port game-porting-toolkit failed

Change:

diff --git a/devel/game-porting-toolkit/Portfile b/devel/game-porting-toolkit/Portfile
index 4a1cdb5..d4dc59e 100644
--- a/devel/game-porting-toolkit/Portfile
+++ b/devel/game-porting-toolkit/Portfile
@@ -4,7 +4,7 @@ PortSystem                  1.0
 PortGroup                   github 1.0
 PortGroup                   muniversal 1.1

-github.setup                gcenx winecx 853f1f2
+github.setup                gcenx winecx 2e232b5
 git.branch                  game-porting-toolkit

 name                        game-porting-toolkit
@@ -24,9 +24,9 @@ description                 Apple Game Porting Toolkit
 long_description            {*}${description}

 checksums \
-    rmd160  541277db693b24b7dccbd72f4c8a5c0d5a824b7b \
-    sha256  e9c11fb237f60e4815f2d6c711d779816cb6db0a4d4e927ffb512799a657e440 \
-    size    46762246
+    rmd160  a7b44e258da0024fba89b6192637fb0e914eac6d \
+    sha256  d78871130e2b897366d4778a445e318f60cb0489b47d258c1a46eb4d4673697d \
+    size    46771440

 depends_build \
     port:bison \

I got the commit hash from your winecx repo here: https://github.com/Gcenx/winecx/commits/game-porting-toolkit. To get the checksums I just ran the macports install command again and grabbed the checksums from the logfile.

Gcenx commented 11 months ago

I'd recently redone that branch and force pushed so the branch was re-written. Your assumption on how to accomplish this was indeed correct.

Gcenx commented 11 months ago

Resolved by https://github.com/Gcenx/macports-wine/commit/d463c80e7a6ebd5ed088efaa34c002f49072a94f