Opened 9 years ago

Closed 7 years ago

#48987 closed defect (fixed)

mythtv-core.27: checksum mismatch

Reported by: gsulshski (Greg Ulsh) Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: mythtv-core.27

Description (last modified by ryandesign (Ryan Carsten Schmidt))

-->  Computing dependencies for mythtv-core.27
--->  Verifying checksums for mythtv-core.27
Error: Checksum (rmd160) mismatch for mythtv-e9b577d3.tar.gz
Error: Checksum (sha256) mismatch for mythtv-e9b577d3.tar.gz
Error: org.macports.checksum for port mythtv-core.27 returned: Unable to verify file checksums
Please see the log file for port mythtv-core.27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.27/mythtv-core.27/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Change History (9)

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

Description: modified (diff)
Owner: changed from macports-tickets@… to ctreleaven@…
Summary: Mythtv port file checksum problemmythtv-core.27: checksum mismatch

comment:2 Changed 9 years ago by ctreleaven (Craig Treleaven)

Status: newassigned

Would you please run the following command for me?

sudo port clean --all mythtv-core.27 && sudo port -d checksum mythtv-core.27

Please post the output.

I've had this problem off and on where GitHub returns an archive that is somehow different from the one I got. In this case, I updated the port on September 9 and you now get a checksum error on the 25th.

comment:3 Changed 9 years ago by gsulshski (Greg Ulsh)

--->  Cleaning mythtv-core.27
DEBUG: Copying /Users/gregoryulsh/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
Error: Port mythtv- not found
Ulsh-HTPC:~ gregoryulsh$ sudo port clean --all mythtv-core.27 && sudo port -d checksum mythtv-core.27
--->  Cleaning mythtv-core.27
DEBUG: Copying /Users/gregoryulsh/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/mythtv-core.27
DEBUG: OS darwin/14.5.0 (Mac OS X 10.10) arch i386
DEBUG: Sourcing PortGroup github 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/github-1.0.tcl
DEBUG: Sourcing PortGroup qt4 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/qt4-1.0.tcl
DEBUG: Sourcing PortGroup compiler_blacklist_versions 1.0 from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
DEBUG: compiler clang 700.0.72 not blacklisted because it doesn't match { clang <= 500.2.79 }
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.27/mythtv-core.27/work /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/multimedia/mythtv-core.27/work
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: Starting logging for mythtv-core.27
DEBUG: Executing org.macports.main (mythtv-core.27)
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: fetch phase started at Mon Sep 28 20:00:27 CDT 2015
--->  Fetching distfiles for mythtv-core.27
DEBUG: Can't run fetch on this port without elevated privileges. Escalating privileges back to root.
DEBUG: euid changed to: 0. egid changed to: 0.
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: Executing proc-pre-org.macports.fetch-fetch-0
DEBUG: Executing org.macports.fetch (mythtv-core.27)
--->  mythtv-e9b577d3.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/mythtv-core.27
--->  Attempting to fetch mythtv-e9b577d3.tar.gz from https://github.com/MythTV/mythtv/tarball/e9b577d3
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   162    0   162    0     0    172      0 --:--:-- --:--:-- --:--:--   171
100 81.6M    0 81.6M    0     0  6479k      0 --:--:--  0:00:12 --:--:-- 7863k
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: checksum phase started at Mon Sep 28 20:00:40 CDT 2015
--->  Verifying checksums for mythtv-core.27
DEBUG: Executing org.macports.checksum (mythtv-core.27)
--->  Checksumming mythtv-e9b577d3.tar.gz
DEBUG: Calculated (rmd160) is 4627125d6b70becf0d460144a4ac7a5c30995f0b
Error: Checksum (rmd160) mismatch for mythtv-e9b577d3.tar.gz
Portfile checksum: mythtv-e9b577d3.tar.gz rmd160 e2fad7b18484641487ce37d743ab552adeab4825
Distfile checksum: mythtv-e9b577d3.tar.gz rmd160 4627125d6b70becf0d460144a4ac7a5c30995f0b
DEBUG: Calculated (sha256) is 1c74ff4ca7afb3f4efe3d0209a81fa769ec90765f1acddee59887f85ff7959bd
Error: Checksum (sha256) mismatch for mythtv-e9b577d3.tar.gz
Portfile checksum: mythtv-e9b577d3.tar.gz sha256 e1013b560e319702d0f7cc901b3403e028f1ca8b2ba076b3a158e566e9d79a6a
Distfile checksum: mythtv-e9b577d3.tar.gz sha256 1c74ff4ca7afb3f4efe3d0209a81fa769ec90765f1acddee59887f85ff7959bd
The correct checksum line may be:
checksums           rmd160  4627125d6b70becf0d460144a4ac7a5c30995f0b \
                    sha256  1c74ff4ca7afb3f4efe3d0209a81fa769ec90765f1acddee59887f85ff7959bd
Error: org.macports.checksum for port mythtv-core.27 returned: Unable to verify file checksums
DEBUG: Error code: NONE
DEBUG: Backtrace: Unable to verify file checksums
    while executing
"portchecksum::checksum_main org.macports.checksum"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
Warning: targets not executed for mythtv-core.27: org.macports.checksum
Please see the log file for port mythtv-core.27 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mythtv-core.27/mythtv-core.27/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mythtv-core.27 failed
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 9 years ago by ctreleaven (Craig Treleaven)

Thanks, but please use wiki formatting for Terminal output (code block).

I've identified what has changed to cause the checksum to fail. I've queried the MythTV developers as to why the snapshot sometimes changes. Please hold on a day or two and I'll try to get better long-term solution to this problem.

Last edited 9 years ago by ctreleaven (Craig Treleaven) (previous) (diff)

comment:5 Changed 9 years ago by ctreleaven (Craig Treleaven)

Well, I'm not getting much traction with upstream. I think I have a workaround, however. Please try blacklisting github.com. To do this, edit

/opt/local/etc/macports/macports.conf

Around line 185, add the following:

host_blacklist      	github.com

Then try again

sudo port clean --all mythtv-core.27 && sudo port install mythtv-core.27

That should download an appropriate copy of the dist file from one of the MacPorts mirrors. You may want to revert your change to macports.conf if all is well.

Please let me know if this works. This problem has come up 3 or 4 times over the last 2.5 years.

comment:6 Changed 9 years ago by pixilla (Bradley Giesbrecht)

ctreleaven: Is the issue a stealth update?

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 9 years ago by ctreleaven (Craig Treleaven)

No. Myth includes a .gitattributes file that causes another file to be updated during a git-archive operation. Which is what happens when GitHub creates a tarball from a commit hash.

Unfortunately it apparently creates different results at different times. The following shows the difference between the Sep 17 snapshot and Sep 25:

$ diff -ur prev new
diff -ur prev/MythTV-mythtv-e9b577d/mythtv/EXPORTED_VERSION new/MythTV-mythtv-e9b577d/mythtv/EXPORTED_VERSION
--- prev/MythTV-mythtv-e9b577d/mythtv/EXPORTED_VERSION	2015-09-09 13:14:00.000000000 -0400
+++ new/MythTV-mythtv-e9b577d/mythtv/EXPORTED_VERSION	2015-09-09 13:14:00.000000000 -0400
@@ -1,2 +1,2 @@
 SOURCE_VERSION="e9b577d"
-BRANCH=" (fixes/0.27)"
+BRANCH=""

Just one line...but more than enough to mess up the checksums! I don't understand git/.gitattributes well enough to determine why. I contacted the MythTV dev who set this up (2 years ago) but he stopped responding (IRC) and I believe he is leaving on an extended trip in the near future. If you're interested, the commit is:

https://github.com/MythTV/mythtv/commit/cc037a8804c3f260e33f5611272b192699927662

comment:8 Changed 9 years ago by gsulshski (Greg Ulsh)

I completed the proposed workaround as follows:

  1. update macports.conf by uncommented the host_blacklist and added github.com
  2. I ran the sudo port clean and install
  3. The build was successful !
  4. I commented back the host_backlist and saved this version of the macports.conf
  5. I re-ran port self update and upgrade outdated

It looks like it picked up all of the other updates ...apache, mysql and others so that I think I should have a full update !

I use this mac mini as a server and a home theatre setup with mythtv and kodi so this is a big deal for me !

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 7 years ago by ctreleaven (Craig Treleaven)

Resolution: fixed
Status: assignedclosed

Fixed in recent update to port

Note: See TracTickets for help on using tickets.