prevent cmake from downloading binary blob from internet.
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 17 Jul 2022 00:23:33 +0000 (01:23 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 17 Jul 2022 00:23:33 +0000 (01:23 +0100)
Gbp-Pq: Name face-no-download.patch

contrib/modules/face/CMakeLists.txt

index 4616515fa0fab153e8cf00df6c1858e54f7c75a5..5b6b4bf4da418a59f6f7cbb9293d4aec9795e98f 100644 (file)
@@ -10,18 +10,18 @@ ocv_define_module(face opencv_core
 
 set(__commit_hash "8afa57abc8229d611c4937165d20e2a2d9fc5a12")
 set(__file_hash "7505c44ca4eb54b4ab1e4777cb96ac05")
-ocv_download(
-    FILENAME face_landmark_model.dat
-    HASH ${__file_hash}
-    URL
-      "${OPENCV_FACE_ALIGNMENT_URL}"
-      "$ENV{OPENCV_FACE_ALIGNMENT_URL}"
-      "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${__commit_hash}/"
-    DESTINATION_DIR "${CMAKE_BINARY_DIR}/${OPENCV_TEST_DATA_INSTALL_PATH}/cv/face/"
-    ID "data"
-    RELATIVE_URL
-    STATUS res
-)
+#ocv_download(
+#    FILENAME face_landmark_model.dat
+#    HASH ${__file_hash}
+#    URL
+#      "${OPENCV_FACE_ALIGNMENT_URL}"
+#      "$ENV{OPENCV_FACE_ALIGNMENT_URL}"
+#      "https://raw.githubusercontent.com/opencv/opencv_3rdparty/${__commit_hash}/"
+#    DESTINATION_DIR "${CMAKE_BINARY_DIR}/${OPENCV_TEST_DATA_INSTALL_PATH}/cv/face/"
+#    ID "data"
+#    RELATIVE_URL
+#    STATUS res
+#)
 if(NOT res)
   message(WARNING "Face: Can't get model file for face alignment.")
 endif()