Accepting request 992064 from science
OBS-URL: https://build.opensuse.org/request/show/992064 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/PrusaSlicer?expand=0&rev=22
This commit is contained in:
commit
b0c6d40211
69
PrusaSlicer-cereal.patch
Normal file
69
PrusaSlicer-cereal.patch
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
From 0ffcfd8393457fd035576436752267c9a1e6bbcc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Yuri D'Elia <wavexx@thregr.org>
|
||||||
|
Date: Mon, 24 Jan 2022 20:21:24 +0100
|
||||||
|
Subject: [PATCH] Use namespaces to link against libcereal >= 1.3.1
|
||||||
|
|
||||||
|
Create an alias for previous versions.
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 3 +++
|
||||||
|
src/CMakeLists.txt | 2 +-
|
||||||
|
src/libslic3r/CMakeLists.txt | 2 +-
|
||||||
|
src/slic3r/CMakeLists.txt | 2 +-
|
||||||
|
4 files changed, 6 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
Index: PrusaSlicer-version_2.4.2/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- PrusaSlicer-version_2.4.2.orig/CMakeLists.txt
|
||||||
|
+++ PrusaSlicer-version_2.4.2/CMakeLists.txt
|
||||||
|
@@ -474,6 +474,12 @@ endif ()
|
||||||
|
|
||||||
|
# Find the Cereal serialization library
|
||||||
|
find_package(cereal REQUIRED)
|
||||||
|
+add_library(libcereal INTERFACE)
|
||||||
|
+if (NOT TARGET cereal::cereal)
|
||||||
|
+ target_link_libraries(libcereal INTERFACE cereal)
|
||||||
|
+else()
|
||||||
|
+ target_link_libraries(libcereal INTERFACE cereal::cereal)
|
||||||
|
+endif()
|
||||||
|
|
||||||
|
# l10n
|
||||||
|
set(L10N_DIR "${SLIC3R_RESOURCES_DIR}/localization")
|
||||||
|
Index: PrusaSlicer-version_2.4.2/src/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- PrusaSlicer-version_2.4.2.orig/src/CMakeLists.txt
|
||||||
|
+++ PrusaSlicer-version_2.4.2/src/CMakeLists.txt
|
||||||
|
@@ -125,7 +125,7 @@ if (NOT WIN32 AND NOT APPLE)
|
||||||
|
set_target_properties(PrusaSlicer PROPERTIES OUTPUT_NAME "prusa-slicer")
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
-target_link_libraries(PrusaSlicer libslic3r cereal)
|
||||||
|
+target_link_libraries(PrusaSlicer libslic3r libcereal)
|
||||||
|
if (APPLE)
|
||||||
|
# add_compile_options(-stdlib=libc++)
|
||||||
|
# add_definitions(-DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_NO_CXX11_RVALUE_REFERENCES -DBOOST_THREAD_USES_MOVE)
|
||||||
|
Index: PrusaSlicer-version_2.4.2/src/libslic3r/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- PrusaSlicer-version_2.4.2.orig/src/libslic3r/CMakeLists.txt
|
||||||
|
+++ PrusaSlicer-version_2.4.2/src/libslic3r/CMakeLists.txt
|
||||||
|
@@ -337,7 +337,7 @@ target_include_directories(libslic3r PUB
|
||||||
|
target_link_libraries(libslic3r
|
||||||
|
libnest2d
|
||||||
|
admesh
|
||||||
|
- cereal
|
||||||
|
+ libcereal
|
||||||
|
libigl
|
||||||
|
miniz
|
||||||
|
boost_libs
|
||||||
|
Index: PrusaSlicer-version_2.4.2/src/slic3r/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- PrusaSlicer-version_2.4.2.orig/src/slic3r/CMakeLists.txt
|
||||||
|
+++ PrusaSlicer-version_2.4.2/src/slic3r/CMakeLists.txt
|
||||||
|
@@ -260,7 +260,7 @@ add_library(libslic3r_gui STATIC ${SLIC3
|
||||||
|
|
||||||
|
encoding_check(libslic3r_gui)
|
||||||
|
|
||||||
|
-target_link_libraries(libslic3r_gui libslic3r avrdude cereal imgui GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES})
|
||||||
|
+target_link_libraries(libslic3r_gui libslic3r avrdude libcereal imgui GLEW::GLEW OpenGL::GL hidapi libcurl ${wxWidgets_LIBRARIES})
|
||||||
|
|
||||||
|
if (MSVC)
|
||||||
|
target_link_libraries(libslic3r_gui Setupapi.lib)
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 1 15:42:40 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Add PrusaSlicer-cereal.patch -- gh#prusa3d/PrusaSlicer#7809
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 31 19:04:00 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
Tue May 31 19:04:00 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ URL: https://www.prusa3d.com/prusaslicer/
|
|||||||
Source0: https://github.com/prusa3d/PrusaSlicer/archive/version_%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/prusa3d/PrusaSlicer/archive/version_%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM PrusaSlicer-boost1.79.patch -- gh#prusa3d/PrusaSlicer#8238
|
# PATCH-FIX-UPSTREAM PrusaSlicer-boost1.79.patch -- gh#prusa3d/PrusaSlicer#8238
|
||||||
Patch0: PrusaSlicer-boost1.79.patch
|
Patch0: PrusaSlicer-boost1.79.patch
|
||||||
|
# PATCH-FIX-UPSTREAM PrusaSlicer-cereal.patch -- gh#prusa3d/PrusaSlicer#7809
|
||||||
|
Patch1: PrusaSlicer-cereal.patch
|
||||||
BuildRequires: blosc-devel
|
BuildRequires: blosc-devel
|
||||||
BuildRequires: cereal-devel
|
BuildRequires: cereal-devel
|
||||||
BuildRequires: cgal-devel >= 4.13.2
|
BuildRequires: cgal-devel >= 4.13.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user