From 31bbe92d89ac81ce83a30a733a588b672d724a41681bf8379ec3289bccec2dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= Date: Sat, 6 May 2023 19:25:50 +0000 Subject: [PATCH] Accepting request 1083975 from home:iznogood:factory - Add add-missing-include.patch: Add missing include OBS-URL: https://build.opensuse.org/request/show/1083975 OBS-URL: https://build.opensuse.org/package/show/science/cura-engine?expand=0&rev=58 --- add-missing-include.patch | 12 ++++++++++++ cura-engine.changes | 5 +++++ cura-engine.spec | 6 ++++-- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 add-missing-include.patch diff --git a/add-missing-include.patch b/add-missing-include.patch new file mode 100644 index 0000000..9b7ddd1 --- /dev/null +++ b/add-missing-include.patch @@ -0,0 +1,12 @@ +Index: CuraEngine-4.13.1/src/utils/math.h +=================================================================== +--- CuraEngine-4.13.1.orig/src/utils/math.h ++++ CuraEngine-4.13.1/src/utils/math.h +@@ -4,6 +4,7 @@ + #ifndef UTILS_MATH_H + #define UTILS_MATH_H + ++#include + #include + + diff --git a/cura-engine.changes b/cura-engine.changes index 1c1cdc0..ac2c05c 100644 --- a/cura-engine.changes +++ b/cura-engine.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 2 08:45:11 UTC 2023 - Bjørn Lie + +- Add add-missing-include.patch: Add missing include + ------------------------------------------------------------------- Sun Feb 6 21:52:59 UTC 2022 - Stefan Brüns diff --git a/cura-engine.spec b/cura-engine.spec index cfb9919..c734ab3 100644 --- a/cura-engine.spec +++ b/cura-engine.spec @@ -1,7 +1,7 @@ # # spec file for package cura-engine # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,8 @@ Source0: https://github.com/Ultimaker/CuraEngine/archive/%{sversion}.tar. Source1: CuraEngine.1 # X-OPENSUSE-PATCH fix-build.patch follow openSUSE policies Patch1: fix-build.patch +# PATCH-FIX-UPSTREAM add-missing-include.patch -- Add missing include +Patch2: add-missing-include.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gmock @@ -48,7 +50,7 @@ It is part of the larger project called "Cura". %prep %setup -q -n CuraEngine-%sversion -%patch1 -p1 +%autopatch -p1 # the test is hardcoding the version number sed -i -e 's,"master","%{version}",' tests/GCodeExportTest.cpp