Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#41682 closed defect (fixed)

py27-pymc @2.3_2 +gcc48 Checksum error

Reported by: jeisch@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: Russell-Jones-OxPhys (Russell Jones), g5pw (Aljaž Srebrnič)
Port: py-pymc

Description

--->  Fetching distfiles for py27-pymc
--->  Attempting to fetch pymc-2.3.tar.gz from https://github.com/pymc-devs/pymc/tarball/2.3
--->  Verifying checksums for py27-pymc
Error: Checksum (rmd160) mismatch for pymc-2.3.tar.gz
Error: Checksum (sha256) mismatch for pymc-2.3.tar.gz
Error: org.macports.checksum for port py27-pymc returned: Unable to verify file checksums

From the port file:

checksums           rmd160  8f810928bd2edf8fbd857eb08530e81d9a661028 \
                    sha256  b4ce92cfffcdebfb4e4083bae5113b019b8ef2c33f3fd020
d2818cc3a9a4b53d

The log file suggests that the checksums should be:

checksums           rmd160  c832b5eb35a4e67b14743e4a9274cd5ae9fef21f \
                    sha256  775d164826c55f369906dc2cd82309326deb1ac4e61dd6c144f471293a0a3931

Attachments (1)

patch-Portfile.diff (1.5 KB) - added by dbevans (David B. Evans) 11 years ago.
Proposed patch for Portfile

Download all attachments as: .zip

Change History (12)

comment:1 Changed 11 years ago by Russell-Jones-OxPhys (Russell Jones)

Cc: russell.jones@… added

Cc Me!

comment:2 Changed 11 years ago by Russell-Jones-OxPhys (Russell Jones)

At https://pypi.python.org/pypi/pymc/ the md5 sum given for pymc-2.3.tar.gz (source) is 03678068b552eecb16fc7aded39d125a

However,

wget --no-check-certificate https://github.com/pymc-devs/pymc/tarball/2.3/pymc-2.3.tar.gz
-> pymc-2.3.tar.gz
wget --no-check-certificate https://github.com/pymc-devs/pymc/tarball/2.3/
-> index.html
(in browser, https://github.com/pymc-devs/pymc/tarball/2.3 -> pymc-devs-pymc-v2.3-10-g0f87c8e.tar.gz)

$ md5 index.html pymc-2.3.tar.gz  pymc-devs-pymc-v2.3-10-g0f87c8e.tar.gz
MD5 (index.html) = f93ad949ab92061c535b089e9c486586
MD5 (pymc-2.3.tar.gz) = f93ad949ab92061c535b089e9c486586
MD5 (pymc-devs-pymc-v2.3-10-g0f87c8e.tar.gz) = f93ad949ab92061c535b089e9c486586

comment:3 Changed 11 years ago by mf2k (Frank Schima)

Port: py-pymc added; py27-pymc removed

comment:4 Changed 11 years ago by dbevans (David B. Evans)

Cc: russell.jones@… g5pw@… added; russell.jones@… removed

comment:5 Changed 11 years ago by dbevans (David B. Evans)

Cc: russell.jones@… added; russell.jones@… removed

comment:6 Changed 11 years ago by dbevans (David B. Evans)

Seems to be an ongoing problem. From svn log:

------------------------------------------------------------------------
r113141 | g5pw@macports.org | 2013-11-10 12:04:17 -0800 (Sun, 10 Nov 2013) | 4 lines

python/py-pymc:
  checksums changed again, for no apparent reason.
  Treating as silent upgrade.

------------------------------------------------------------------------
r112765 | g5pw@macports.org | 2013-10-31 02:45:51 -0700 (Thu, 31 Oct 2013) | 4 lines

python/py-pymc:
  Strange checksum mismatch, doing a stealth update just to be sure (#35241)
  maintainer override, port broken


comment:7 Changed 11 years ago by dbevans (David B. Evans)

Cc: g5pw@… added; g5pw@… removed

comment:8 Changed 11 years ago by dbevans (David B. Evans)

As shown at https://github.com/pymc-devs/pymc/releases, the correct tag for this release is 'v2.3' not '2.3'.

Attached is a proposed patch that adds the 'v' tag_prefix to the github.setup command line. I've also added a md5 checksum line for comparison with that from the pypi site.

Unfortunately they don't match.

e49de8920609727c13de42f3101454fe from https://github.com/pymc-devs/pymc/tarball/v2.3/pymc-2.3.tar.gz
03678068b552eecb16fc7aded39d125a from https://pypi.python.org/packages/source/p/pymc/pymc-2.3.tar.gz

Changed 11 years ago by dbevans (David B. Evans)

Attachment: patch-Portfile.diff added

Proposed patch for Portfile

comment:9 Changed 11 years ago by dbevans (David B. Evans)

After manually downloading the two separate versions from their respective web sites, verifying their individual checksums and performing a diff -ur on the unpacked files it appears they are identical with the exception of the name of the top level archive directory.

github uses pymc-devs-pymc-46f8f6a
pypi   uses py-2.3

Satisfied that nothing funny is going on and build is successful for me, fix committed as per patch in r115527.

comment:10 Changed 11 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

comment:11 Changed 11 years ago by g5pw (Aljaž Srebrnič)

As per the MacPorts Guide:

Using the ${revision} variable in the dist_subdir definition isn't usually a good idea, because the revision is supposed to allow the portfile author to offer the user an upgrade that is unrelated to the upstream software version.

Otherwise, the commit looks OK to me, thanks!

Note: See TracTickets for help on using tickets.