From ea40e79070b8ae162e200bf01304b454bb36eebd3be47a56323a7696d4effd5f Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Sun, 24 Apr 2022 09:54:18 +0000 Subject: [PATCH] Accepting request 972363 from home:bnavigator:branches:science - Add PrusaSlicer-boost1.79.patch avoiding the deprecation of boost::filesystem::ofstream in Boost 1.79 * gh#prusa3d/PrusaSlicer#8238 OBS-URL: https://build.opensuse.org/request/show/972363 OBS-URL: https://build.opensuse.org/package/show/science/PrusaSlicer?expand=0&rev=38 --- PrusaSlicer-boost1.79.patch | 31 +++++++++++++++++++++++++++++++ PrusaSlicer.changes | 7 +++++++ PrusaSlicer.spec | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 PrusaSlicer-boost1.79.patch diff --git a/PrusaSlicer-boost1.79.patch b/PrusaSlicer-boost1.79.patch new file mode 100644 index 0000000..25c78b4 --- /dev/null +++ b/PrusaSlicer-boost1.79.patch @@ -0,0 +1,31 @@ +Index: PrusaSlicer-version_2.4.1/src/hints/HintsToPot.cpp +=================================================================== +--- PrusaSlicer-version_2.4.1.orig/src/hints/HintsToPot.cpp ++++ PrusaSlicer-version_2.4.1/src/hints/HintsToPot.cpp +@@ -1,4 +1,5 @@ + #include ++#include + #include + #include + #include +@@ -9,7 +10,7 @@ + + bool write_to_pot(boost::filesystem::path path, const std::vector>& data) + { +- boost::filesystem::ofstream file(std::move(path), std::ios_base::app); ++ std::ofstream file(std::move(path.string()), std::ios_base::app); + for (const auto& element : data) + { + //Example of .pot element +Index: PrusaSlicer-version_2.4.1/tests/fff_print/test_data.cpp +=================================================================== +--- PrusaSlicer-version_2.4.1.orig/tests/fff_print/test_data.cpp ++++ PrusaSlicer-version_2.4.1/tests/fff_print/test_data.cpp +@@ -9,6 +9,7 @@ + + #include + #include ++#include + + #include + #include diff --git a/PrusaSlicer.changes b/PrusaSlicer.changes index 888ab73..d0b912c 100644 --- a/PrusaSlicer.changes +++ b/PrusaSlicer.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Apr 24 09:26:22 UTC 2022 - Ben Greiner + +- Add PrusaSlicer-boost1.79.patch avoiding the deprecation + of boost::filesystem::ofstream in Boost 1.79 + * gh#prusa3d/PrusaSlicer#8238 + ------------------------------------------------------------------- Tue Apr 12 12:59:51 UTC 2022 - Hans-Peter Jansen diff --git a/PrusaSlicer.spec b/PrusaSlicer.spec index 0fd6371..3e43cf9 100644 --- a/PrusaSlicer.spec +++ b/PrusaSlicer.spec @@ -24,6 +24,8 @@ License: AGPL-3.0-only Group: Hardware/Printing URL: https://www.prusa3d.com/prusaslicer/ 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 +Patch0: PrusaSlicer-boost1.79.patch BuildRequires: blosc-devel BuildRequires: cereal-devel BuildRequires: cgal-devel >= 4.13.2