Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2012 21:58:03 -0400
From:      "Thomas Mueller" <mueller6727@bellsouth.net>
To:        freebsd-ports@freebsd.org
Cc:        llwang@infor.org
Subject:   Snag in math/py-numpy: checksum fails
Message-ID:  <41.1B.23131.BA2ED805@smtp02.insight.synacor.com>

next in thread | raw e-mail | index | archive | help
I have hit another snag in updating ports that depend on png, but seem to have
found a way around. 

This time, the checksum apparently fails on two files in math/py-numpy.

Is this a known problem?  File corruption on remote server?  Or rather, a new
checksum with older version of distfiles?

Should I try
make fetch NO_CHECKSUM=yes
or google around for another place to download from?

To isolate the problem, I went to directory /BETA1/usr/ports/math/py-numpy 
and ran

make fetch checksum |& tee fetch.log 
and got


===>  License BSD accepted by the user
===>  Found saved configuration for py27-numpy-1.6.2_1,1
===>   py27-numpy-1.6.2_1,1 depends on file: /usr/local/sbin/pkg - found
=> SHA256 Checksum OK for numpy-1.6.2.tar.gz.
=> SHA256 Checksum mismatch for numpy-ref.pdf.
=> SHA256 Checksum mismatch for numpy-user.pdf.
===>  Refetch for 1 more times files: numpy-ref.pdf numpy-user.pdf 
===>  License BSD accepted by the user
===>  Found saved configuration for py27-numpy-1.6.2_1,1
===>   py27-numpy-1.6.2_1,1 depends on file: /usr/local/sbin/pkg - found
=> numpy-ref.pdf doesn't seem to exist in /BETA1/usr/ports/distfiles/.
=> Attempting to fetch http://docs.scipy.org/doc/numpy-1.6.0/numpy-ref.pdf
fetch: http://docs.scipy.org/doc/numpy-1.6.0/numpy-ref.pdf: Requested Range Not Satisfiable
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/numpy-ref.pdf
=> numpy-user.pdf doesn't seem to exist in /BETA1/usr/ports/distfiles/.
=> Attempting to fetch http://docs.scipy.org/doc/numpy-1.6.0/numpy-user.pdf
fetch: http://docs.scipy.org/doc/numpy-1.6.0/numpy-user.pdf: Requested Range Not Satisfiable
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/numpy-user.pdf
===>  License BSD accepted by the user
===>  Found saved configuration for py27-numpy-1.6.2_1,1
===>   py27-numpy-1.6.2_1,1 depends on file: /usr/local/sbin/pkg - found
=> SHA256 Checksum OK for numpy-1.6.2.tar.gz.
=> SHA256 Checksum mismatch for numpy-ref.pdf.
=> SHA256 Checksum mismatch for numpy-user.pdf.
===>  Giving up on fetching files: numpy-ref.pdf numpy-user.pdf 
Make sure the Makefile and distinfo file (/BETA1/usr/ports/math/py-numpy/distinfo)
are up to date.  If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** [checksum] Error code 1

Stop in /BETA1/usr/ports/math/py-numpy.
*** [checksum] Error code 1

Stop in /BETA1/usr/ports/math/py-numpy.

(end of log)

I didn't google, I ran lynx and got the URLs

http://docs.scipy.org/doc/numpy/numpy-ref.pdf
http://docs.scipy.org/doc/numpy/numpy-user.pdf

So I will now try to portmaster this port with the new pdf references 
downloaded to /BETA1/usr/ports/distfiles: same number of bytes as the
respective older pdf references but revealed a difference when running cmp.
Maybe a new checksum with older distfiles, hence mismatch?

Yes, I just did that, successfully, meaning a change is needed in the Makefile.


Tom




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41.1B.23131.BA2ED805>