all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob b2b08d2327c42d131de87cf29d927236e99a35e7 2464 bytes (raw)
name: gnu/packages/patches/librealsense-remove-network-connectivity.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
From cfc87289d7636f439e2b91d88e35430949b29c0f Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Sat, 31 Jul 2021 05:58:40 +0200
Subject: [PATCH] Remove network connectivity


diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0c15d9510..a4d891444 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 3.1.0)
 project(librealsense2 LANGUAGES CXX C)

 include(CMake/lrs_options.cmake)
-include(CMake/connectivity_check.cmake)

 #Deprecation message, should be removed in future releases
 if(${FORCE_LIBUVC} OR ${FORCE_WINUSB_UVC} OR ${ANDROID_USB_HOST_UVC})
@@ -12,14 +11,12 @@ if(${FORCE_LIBUVC} OR ${FORCE_WINUSB_UVC} OR ${ANDROID_USB_HOST_UVC})
 endif()

 # Checking Internet connection, as TM2 needs to download the FW from amazon cloud
-if(BUILD_WITH_TM2 AND NOT INTERNET_CONNECTION)
-    message(WARNING "No internet connection, disabling BUILD_WITH_TM2")
+if(BUILD_WITH_TM2)
     set(BUILD_WITH_TM2 OFF)
 endif()

 # Checking Internet connection, as DEPTH CAM needs to download the FW from amazon cloud
-if(IMPORT_DEPTH_CAM_FW AND NOT INTERNET_CONNECTION)
-    message(WARNING "No internet connection, disabling IMPORT_DEPTH_CAM_FW")
+if(IMPORT_DEPTH_CAM_FW)
     set(IMPORT_DEPTH_CAM_FW OFF)
 endif()

diff --git a/common/fw/CMakeLists.txt b/common/fw/CMakeLists.txt
index 32b1dd29a..9961e4d1d 100644
--- a/common/fw/CMakeLists.txt
+++ b/common/fw/CMakeLists.txt
@@ -6,8 +6,6 @@ project(fw)

 file(READ "firmware-version.h" ver)

-message(STATUS "Fetching recommended firmwares:")
-
 set(REALSENSE_FIRMWARE_URL "https://librealsense.intel.com" CACHE STRING
     "URL to download firmware binaries from")

@@ -51,16 +49,6 @@ set_target_properties (${PROJECT_NAME} PROPERTIES FOLDER Resources)

 function(target_binary url version sha1 symbol ext)
   set(binary "${CMAKE_CURRENT_BINARY_DIR}/${symbol}-${version}${ext}")
-  message(STATUS "${url}/${symbol}-${version}${ext}")
-  file(DOWNLOAD "${url}/${symbol}-${version}${ext}" "${binary}"
-       EXPECTED_HASH SHA1=${sha1}
-       STATUS status)
-  list(GET status 0 error_code)
-  if (NOT ${error_code} EQUAL 0)
-    message(FATAL_ERROR "Download firmwnare (${status}) - ${url}")
-  else()
-    message(STATUS "Download firmware ${status} for ${symbol}-${version}${ext}")
-  endif()
   string(TOUPPER ${symbol} SYMBOL)
   string(REPLACE "." "," version_commas ${version})
   string(REPLACE "\\" "\\\\" binary_escaped "${binary}")
--
2.32.0


debug log:

solving 73926587ff ...
found 73926587ff in https://yhetil.org/guix/yeU0GQI8UNbXXhkc3I7vfjtyF7LZx_f_4ZZhy9EDULZ-L7iztWsddkZy19HzsP5kudIEHLqR_24Qhk1jTFWY4hWj02-qPU-2_oUj8BTv59Y=@protonmail.com/ ||
	https://yhetil.org/guix/Z3a1-3BsctuJKXMug3q-FLJ1G6HdBnh3ZqeRNvipMBRRNiDCAZtUsnTV-9pmtBlZULh9nj2Re0pahX5s8HFhFNyXbEIJ3C8Qldf7gEOBzdE=@protonmail.com/

applying [1/1] https://yhetil.org/guix/yeU0GQI8UNbXXhkc3I7vfjtyF7LZx_f_4ZZhy9EDULZ-L7iztWsddkZy19HzsP5kudIEHLqR_24Qhk1jTFWY4hWj02-qPU-2_oUj8BTv59Y=@protonmail.com/
diff --git a/gnu/packages/patches/librealsense-remove-network-connectivity.patch b/gnu/packages/patches/librealsense-remove-network-connectivity.patch
new file mode 100644
index 0000000000..73926587ff

Checking patch gnu/packages/patches/librealsense-remove-network-connectivity.patch...
1:74: new blank line at EOF.
+
Applied patch gnu/packages/patches/librealsense-remove-network-connectivity.patch cleanly.
warning: 1 line adds whitespace errors.

skipping https://yhetil.org/guix/Z3a1-3BsctuJKXMug3q-FLJ1G6HdBnh3ZqeRNvipMBRRNiDCAZtUsnTV-9pmtBlZULh9nj2Re0pahX5s8HFhFNyXbEIJ3C8Qldf7gEOBzdE=@protonmail.com/ for 73926587ff
index at:
100644 b2b08d2327c42d131de87cf29d927236e99a35e7	gnu/packages/patches/librealsense-remove-network-connectivity.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.