Opened 4 years ago

Closed 4 years ago

#59715 closed defect (fixed)

opencv @3.4.8 +contrib: checksum mismatch

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: jmroot (Joshua Root)
Port: opencv

Description (last modified by Schamschula (Marius Schamschula))

opencv has a checksum mismatch:

--->  Fetching distfiles for opencv
--->  Attempting to fetch 3.4.8.zip from https://distfiles.macports.org/opencv
--->  Attempting to fetch 3.4.8.zip from https://github.com/opencv/opencv_contrib/archive
--->  Attempting to fetch v1.0.0a3.tar.gz from https://distfiles.macports.org/opencv
--->  Attempting to fetch v1.0.0a3.tar.gz from https://github.com/tiny-dnn/tiny-dnn/archive/
--->  Attempting to fetch boostdesc_bgm.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_bgm.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch boostdesc_bgm_bi.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_bgm_bi.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch boostdesc_bgm_hd.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_bgm_hd.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch boostdesc_binboost_064.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_binboost_064.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch boostdesc_binboost_128.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_binboost_128.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch boostdesc_binboost_256.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_binboost_256.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch boostdesc_lbgm.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch boostdesc_lbgm.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/34e4206aef44d50e6bbcd0ab06354b52e7466d26
--->  Attempting to fetch vgg_generated_48.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch vgg_generated_48.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d
--->  Attempting to fetch vgg_generated_64.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch vgg_generated_64.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d
--->  Attempting to fetch vgg_generated_80.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch vgg_generated_80.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d
--->  Attempting to fetch vgg_generated_120.i from https://distfiles.macports.org/opencv
--->  Attempting to fetch vgg_generated_120.i from https://raw.githubusercontent.com/opencv/opencv_3rdparty/fccf7cd6a4b12079f73bbfb21745f9babcd4eb1d
--->  Attempting to fetch face_landmark_model.dat from https://distfiles.macports.org/opencv
--->  Attempting to fetch face_landmark_model.dat from https://raw.githubusercontent.com/opencv/opencv_3rdparty/8afa57abc8229d611c4937165d20e2a2d9fc5a12
Error: Checksum (rmd160) mismatch for 3.4.8.zip
Error: Checksum (sha256) mismatch for 3.4.8.zip
Error: Checksum (size) mismatch for 3.4.8.zip

Change History (9)

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

Description: modified (diff)
Summary: opencv @3.4.8: checksum mismatchopencv @3.4.8+contrib: checksum mismatch

with the +contrib variant

comment:2 Changed 4 years ago by Schamschula (Marius Schamschula)

Description: modified (diff)
Summary: opencv @3.4.8+contrib: checksum mismatchopencv @3.4.8: checksum mismatch

Hmm. We are downloading the same source code as a .tar.gz and .zip file?

Last edited 4 years ago by Schamschula (Marius Schamschula) (previous) (diff)

comment:3 Changed 4 years ago by Schamschula (Marius Schamschula)

Summary: opencv @3.4.8: checksum mismatchopencv @3.4.8 +contrib: checksum mismatch

comment:4 Changed 4 years ago by Schamschula (Marius Schamschula)

I updated the checksums for the .zip file. The file is significantly smaller in size.

I get the following error:

CMake Error at cmake/OpenCVModule.cmake:288 (message):
  No modules has been found:
  /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_graphics_opencv/opencv/work/opencv_contrib-3.4.8/modules
Call Stack (most recent call first):
  cmake/OpenCVModule.cmake:370 (_glob_locations)
  modules/CMakeLists.txt:7 (ocv_glob_modules)


-- OpenCV Python: during development append to PYTHONPATH: /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_graphics_opencv/opencv/work/build/python_loader

with and with the .zip file.

Have the modules been removed from the release?

comment:5 in reply to:  2 Changed 4 years ago by jmroot (Joshua Root)

Cc: jmroot added

Replying to Schamschula:

Hmm. We are downloading the same source code as a .tar.gz and .zip file?

No, it's the same version number but a different repo. Yes, it would be better to use filenames that aren't just a version number.

comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

GitHub supports this. (You can request the file with any filename as long as the tag name before it is correct.) The github portgroup does so automatically, but since this port uses more than one file it can't benefit from the portgroup.

comment:7 Changed 4 years ago by Schamschula (Marius Schamschula)

I get the following error extracting the .zip file:

Executing:  cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_graphics_opencv/opencv/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/opencv/3.4.8.zip' | /usr/bin/tar -xf - 
gzip: /opt/local/var/macports/distfiles/opencv/3.4.8.zip: not in gzip format

comment:8 Changed 4 years ago by jmroot (Joshua Root)

Yeah, it isn't setting use_zip (because the main distfile is still gzip). Using distinct filenames would help with that since both could then use .tar.gz. Otherwise the main distfile should be the only thing in extract.only and the zip file would have to be extracted in a post-extract block.

comment:9 Changed 4 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed

In c1037690a786fc294f1858ef544d02336eb520ab/macports-ports (master):

opencv +contrib: checksum mismatch

Closes: #59715
also work around issues with the .zip archive

Note: See TracTickets for help on using tickets.