Commit cd673393 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

treewide: remove unreferenced patch files

Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'``

We're running more and more into patches fetched via `applyPatches`, for the next PR i'll script something to account for that.
parent 8bca501b
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c
index b8f09a1f..f8a15c1b 100644
--- a/libcrystfel/src/image-cbf.c
+++ b/libcrystfel/src/image-cbf.c
@@ -287,7 +287,7 @@ static float *read_cbf_data(const char *filename, int gz, int *w, int *h)
 
 	} else {
 
-		#ifdef HAVE_ZLIB
+		#if defined(HAVE_ZLIB) && !(defined(__aarch64__) && defined(__APPLE__))
 		gzFile gzfh;
 		int len_read;
 		size_t len;
+0 −15
Original line number Diff line number Diff line
diff --git a/src/protocols/LinuxDMABUF.cpp b/src/protocols/LinuxDMABUF.cpp
index 0fbf832e..c6077114 100644
--- a/src/protocols/LinuxDMABUF.cpp
+++ b/src/protocols/LinuxDMABUF.cpp
@@ -492,9 +492,8 @@ CLinuxDMABufV1Protocol::CLinuxDMABufV1Protocol(const wl_interface* iface, const
                 return;
             }
         } else {
-            protoLog(ERR, "DRM device {} has no render node, disabling linux dmabuf", device->nodes[DRM_NODE_PRIMARY] ? device->nodes[DRM_NODE_PRIMARY] : "null");
+            protoLog(ERR, "DRM device {} has no render node, disabling linux dmabuf checks", device->nodes[DRM_NODE_PRIMARY] ? device->nodes[DRM_NODE_PRIMARY] : "null");
             drmFreeDevice(&device);
-            removeGlobal();
         }
     });
 }
+0 −92
Original line number Diff line number Diff line
From 8304b645c655832c47ee9ca706d182c26d29eaff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
Date: Tue, 9 Apr 2024 06:35:39 +0000
Subject: [PATCH] Revert "rust: recursively pull proc-macro dependencies as
 well"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit aee941559c4b88a062e88186819a820c69c200ae.

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
---
 mesonbuild/build.py                                   |  2 ++
 test cases/rust/18 proc-macro/lib.rs                  |  8 --------
 test cases/rust/18 proc-macro/meson.build             | 11 -----------
 test cases/rust/18 proc-macro/subdir/meson.build      |  1 -
 .../rust/18 proc-macro/transitive-proc-macro.rs       |  7 -------
 5 files changed, 2 insertions(+), 27 deletions(-)
 delete mode 100644 test cases/rust/18 proc-macro/lib.rs
 delete mode 100644 test cases/rust/18 proc-macro/subdir/meson.build
 delete mode 100644 test cases/rust/18 proc-macro/transitive-proc-macro.rs

diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 6f0d6a2dd..7be9b497b 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1295,6 +1295,8 @@ def get_dependencies_recurse(self, result: OrderedSet[BuildTargetTypes], include
         for t in self.link_targets:
             if t in result:
                 continue
+            if t.rust_crate_type == 'proc-macro':
+                continue
             if include_internals or not t.is_internal():
                 result.add(t)
             if isinstance(t, StaticLibrary):
diff --git a/test cases/rust/18 proc-macro/lib.rs b/test cases/rust/18 proc-macro/lib.rs
deleted file mode 100644
index 5242886cc..000000000
--- a/test cases/rust/18 proc-macro/lib.rs	
+++ /dev/null
@@ -1,8 +0,0 @@
-extern crate proc_macro_examples;
-use proc_macro_examples::make_answer;
-
-make_answer!();
-
-pub fn func() -> u32 {
-    answer()
-}
diff --git a/test cases/rust/18 proc-macro/meson.build b/test cases/rust/18 proc-macro/meson.build
index e8b28eda1..c5f0dfc82 100644
--- a/test cases/rust/18 proc-macro/meson.build	
+++ b/test cases/rust/18 proc-macro/meson.build	
@@ -31,14 +31,3 @@ main = executable(
 )
 
 test('main_test2', main)
-
-subdir('subdir')
-
-staticlib = static_library('staticlib', 'lib.rs',
-  link_with: pm_in_subdir,
-  rust_dependency_map : {'proc_macro_examples3' : 'proc_macro_examples'}
-)
-
-executable('transitive-proc-macro', 'transitive-proc-macro.rs',
-  link_with: staticlib,
-)
diff --git a/test cases/rust/18 proc-macro/subdir/meson.build b/test cases/rust/18 proc-macro/subdir/meson.build
deleted file mode 100644
index 04842c431..000000000
--- a/test cases/rust/18 proc-macro/subdir/meson.build	
+++ /dev/null
@@ -1 +0,0 @@
-pm_in_subdir = rust.proc_macro('proc_macro_examples3', '../proc.rs')
diff --git a/test cases/rust/18 proc-macro/transitive-proc-macro.rs b/test cases/rust/18 proc-macro/transitive-proc-macro.rs
deleted file mode 100644
index 4c804b3b6..000000000
--- a/test cases/rust/18 proc-macro/transitive-proc-macro.rs	
+++ /dev/null
@@ -1,7 +0,0 @@
-extern crate staticlib;
-use staticlib::func;
-
-
-fn main() {
-    assert_eq!(42, func());
-}
-- 
2.44.0
+0 −13
Original line number Diff line number Diff line
diff --git a/thrust/thrust/cmake/thrust-header-search.cmake.in b/thrust/thrust/cmake/thrust-header-search.cmake.in
index 8529d89fe..94879ee01 100644
--- a/thrust/thrust/cmake/thrust-header-search.cmake.in
+++ b/thrust/thrust/cmake/thrust-header-search.cmake.in
@@ -7,7 +7,6 @@ set(from_install_prefix "@from_install_prefix@")
 find_path(_THRUST_VERSION_INCLUDE_DIR thrust/version.h
   NO_CMAKE_FIND_ROOT_PATH # Don't allow CMake to re-root the search
   NO_DEFAULT_PATH # Only search explicit paths below:
-  PATHS
-    "${CMAKE_CURRENT_LIST_DIR}/${from_install_prefix}/@CMAKE_INSTALL_INCLUDEDIR@"
+  PATHS "@CMAKE_INSTALL_INCLUDEDIR@"
 )
 set_property(CACHE _THRUST_VERSION_INCLUDE_DIR PROPERTY TYPE INTERNAL)
+0 −37
Original line number Diff line number Diff line
From 52ac1d6548b4a92d569c5d2f53b84c604c7fce8a Mon Sep 17 00:00:00 2001
From: OPNA2608 <opna2608@protonmail.com>
Date: Thu, 1 Feb 2024 22:42:39 +0100
Subject: [PATCH] Remove custom check target

The automatic one provides better controls for us
---
 CMakeLists.txt | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index af643a7..75b3cc1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -105,18 +105,13 @@ add_subdirectory("data")
 
 
 if(ENABLE_TESTS)
-enable_testing()
+include(CTest)
 
 pkg_check_modules(QTDBUSTEST REQUIRED libqtdbustest-1 REQUIRED)
 include_directories(${QTDBUSTEST_INCLUDE_DIRS})
 
 add_subdirectory(tests)
 
-ADD_CUSTOM_TARGET(
-	check
-	${CMAKE_CTEST_COMMAND} --force-new-ctest-process --output-on-failure
-)
-
 find_package(CoverageReport)
 enable_coverage_report(
   TARGETS
-- 
2.42.0
Loading