diff options
Diffstat (limited to 'debian/fix_xtrkcad_build_failure.patch')
-rw-r--r-- | debian/fix_xtrkcad_build_failure.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/debian/fix_xtrkcad_build_failure.patch b/debian/fix_xtrkcad_build_failure.patch new file mode 100644 index 0000000..fef5e6c --- /dev/null +++ b/debian/fix_xtrkcad_build_failure.patch @@ -0,0 +1,58 @@ +diff -Nru xtrkcad-5.3.0GA/debian/changelog xtrkcad-5.3.0GA/debian/changelog +--- xtrkcad-5.3.0GA/debian/changelog 2024-07-04 03:32:38.000000000 +0800 ++++ xtrkcad-5.3.0GA/debian/changelog 2024-11-14 10:40:35.000000000 +0800 +@@ -1,3 +1,9 @@ ++xtrkcad (1:5.3.0GA-1.1) UNRELEASED; urgency=medium ++ ++ * fix link zip lib failed on all arch except amd64. ++ ++ -- Gui-Yue <yuemeng.gui@gmail.com> Thu, 14 Nov 2024 10:40:35 +0800 ++ + xtrkcad (1:5.3.0GA-1) unstable; urgency=medium + + * New upstream release (Closes: #1057286, #1074722): +diff -Nru xtrkcad-5.3.0GA/debian/patches/fix_link_lib_failed.patch xtrkcad-5.3.0GA/debian/patches/fix_link_lib_failed.patch +--- xtrkcad-5.3.0GA/debian/patches/fix_link_lib_failed.patch 1970-01-01 08:00:00.000000000 +0800 ++++ xtrkcad-5.3.0GA/debian/patches/fix_link_lib_failed.patch 2024-11-14 10:40:35.000000000 +0800 +@@ -0,0 +1,34 @@ ++--- a/CMake/FindLibzip.cmake +++++ b/CMake/FindLibzip.cmake ++@@ -37,17 +37,23 @@ ++ HINTS ${PC_LIBZIP_INCLUDE_DIRS})
++
++ if(UNIX AND NOT APPLE)
+++ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
++ find_library(LIBZIP_LIBRARY
++ NAMES libzip.a zip
++ PATHS
++- /usr/lib64
++- /usr/lib
++- /usr/local/lib64
++- /usr/local/lib
++- /sw/lib
++- /opt/local/lib
++- ${CMAKE_CURRENT_SOURCE_DIR}/app/tools/lib/linux
++- )
+++ /usr/lib64
+++ /usr/lib
+++ /usr/local/lib64
+++ /usr/local/lib
+++ /sw/lib
+++ /opt/local/lib
+++ ${CMAKE_CURRENT_SOURCE_DIR}/app/tools/lib/linux
+++ )
+++ else()
+++ find_library(LIBZIP_LIBRARY
+++ NAMES zip
+++ )
+++ endif()
++ else()
++ find_library(LIBZIP_LIBRARY
++ NAMES zip)
+diff -Nru xtrkcad-5.3.0GA/debian/patches/series xtrkcad-5.3.0GA/debian/patches/series +--- xtrkcad-5.3.0GA/debian/patches/series 2024-07-03 16:21:59.000000000 +0800 ++++ xtrkcad-5.3.0GA/debian/patches/series 2024-11-14 10:28:36.000000000 +0800 +@@ -1,2 +1,3 @@ + #0001-usr_gtk-3.patch + #0900-spelling-errors.patch ++fix_link_lib_failed.patch |