[MacPorts] #45867: getopt portfile checksums not matched

MacPorts noreply at macports.org
Wed Nov 12 13:02:41 PST 2014


#45867: getopt portfile checksums not matched
-------------------------+--------------------------------
  Reporter:  teige-mp@…  |      Owner:  macports-tickets@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.2
Resolution:              |   Keywords:
      Port:  getopt      |
-------------------------+--------------------------------

Comment (by teige-mp@…):

 Thanks for the help with understanding this Larry.
 Those commands you list do provide exactly the same output for me. I am
 not sure what to do next. Why would the HTTP redirect error prevent the
 checksums matching given I've fetched the tarball myself? (Where does
 macports look-up the correct checksums?)

 I wonder whether I do not understand what a portfile and a distfile are. I
 thought the portfile checksums were the 'target' against which the
 checksums calculated from fetched distfiles were compared.

 I came to this conclusion because the portfile checksums in the error log
 remained constant whether the html was erroneously fetched, or I
 circumvented this provided the tarball in the correct directory, whereas
 the distfile checksums differed.

 Error Log with regular ''sudo port install getopt'' (fetches html):
 {{{
 :notice:fetch --->  Attempting to fetch getopt-1.1.5.tar.gz from
 http://software.frodo.looijaard.name/
 getopt/files/
 :debug:fetch Privilege de-escalation not attempted as not running as root.
 :debug:checksum checksum phase started at Wed Nov 12 20:47:42 GMT 2014
 :notice:checksum --->  Verifying checksums for getopt
 :debug:checksum Executing org.macports.checksum (getopt)
 :info:checksum --->  Checksumming getopt-1.1.5.tar.gz
 :debug:checksum Calculated (md5) is f7e366d5dc3eb22d3e2901e56f7f0160
 :error:checksum Checksum (md5) mismatch for getopt-1.1.5.tar.gz
 :info:checksum Portfile checksum: getopt-1.1.5.tar.gz md5
 546acfdb67ba16b8658a45ade9a64d5d
 :info:checksum Distfile checksum: getopt-1.1.5.tar.gz md5
 f7e366d5dc3eb22d3e2901e56f7f0160
 :debug:checksum Calculated (sha1) is
 3826c7087e7fc019243db0e9ef4ada0cd643e995
 :error:checksum Checksum (sha1) mismatch for getopt-1.1.5.tar.gz
 :info:checksum Portfile checksum: getopt-1.1.5.tar.gz sha1
 9090eb46ac92f2fd2749ca4121e81aaad40f325d
 :info:checksum Distfile checksum: getopt-1.1.5.tar.gz sha1
 3826c7087e7fc019243db0e9ef4ada0cd643e995
 :debug:checksum Calculated (rmd160) is
 e822226e00bd350a919a4d434a21e7185157d36b
 :error:checksum Checksum (rmd160) mismatch for getopt-1.1.5.tar.gz
 :info:checksum Portfile checksum: getopt-1.1.5.tar.gz rmd160
 5cdef902ada45ba5e8a66a1357be8189b0cc634f
 :info:checksum Distfile checksum: getopt-1.1.5.tar.gz rmd160
 e822226e00bd350a919a4d434a21e7185157d36b
 :notice:checksum ***
 :notice:checksum The non-matching file appears to be HTML.
 }}}

 Error Log with getopt-1.1.5.tar.gz provided in distfiles/getopt directory:
 (identical for tarballs from different sources)
 {{{
 :notice:fetch --->  Fetching distfiles for getopt
 :debug:fetch euid/egid changed to: 0/0
 :debug:fetch chowned /opt/local/var/macports/distfiles/getopt to macports
 :debug:fetch euid/egid changed to: 502/501
 :debug:fetch Executing org.macports.fetch (getopt)
 :debug:fetch Privilege de-escalation not attempted as not running as root.
 :debug:checksum checksum phase started at Wed Nov 12 20:56:49 GMT 2014
 :notice:checksum --->  Verifying checksums for getopt
 :debug:checksum Executing org.macports.checksum (getopt)
 :info:checksum --->  Checksumming getopt-1.1.5.tar.gz
 :debug:checksum Calculated (md5) is f6405207663f5376f52de35146d52363
 :error:checksum Checksum (md5) mismatch for getopt-1.1.5.tar.gz
 :info:checksum Portfile checksum: getopt-1.1.5.tar.gz md5
 546acfdb67ba16b8658a45ade9a64d5d
 :info:checksum Distfile checksum: getopt-1.1.5.tar.gz md5
 f6405207663f5376f52de35146d52363
 :debug:checksum Calculated (sha1) is
 b90321438fa0952240e25b396c7f1e3f031fafae
 :error:checksum Checksum (sha1) mismatch for getopt-1.1.5.tar.gz
 :info:checksum Portfile checksum: getopt-1.1.5.tar.gz sha1
 9090eb46ac92f2fd2749ca4121e81aaad40f325d
 :info:checksum Distfile checksum: getopt-1.1.5.tar.gz sha1
 b90321438fa0952240e25b396c7f1e3f031fafae
 :debug:checksum Calculated (rmd160) is
 87eb1e0028edf0bc086fe256b1256a8bbf7eeea2
 :error:checksum Checksum (rmd160) mismatch for getopt-1.1.5.tar.gz
 :info:checksum Portfile checksum: getopt-1.1.5.tar.gz rmd160
 5cdef902ada45ba5e8a66a1357be8189b0cc634f
 :info:checksum Distfile checksum: getopt-1.1.5.tar.gz rmd160
 87eb1e0028edf0bc086fe256b1256a8bbf7eeea2
 :info:checksum The correct checksum line may be:
 :info:checksum checksums           md5
 f6405207663f5376f52de35146d52363 \
                     sha1    b90321438fa0952240e25b396c7f1e3f031fafae \
                     rmd160  87eb1e0028edf0bc086fe256b1256a8bbf7eeea2
 :error:checksum org.macports.checksum for port getopt returned: Unable to
 verify file checksums
 }}}

 Thanks for the help & apologies for my neophyte ways.

-- 
Ticket URL: <https://trac.macports.org/ticket/45867#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list