Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package assimp for openSUSE:Factory checked 
in at 2021-02-09 21:16:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/assimp (Old)
 and      /work/SRC/openSUSE:Factory/.assimp.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "assimp"

Tue Feb  9 21:16:53 2021 rev:5 rq:870332 version:5.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/assimp/assimp.changes    2020-09-22 
21:16:29.528208199 +0200
+++ /work/SRC/openSUSE:Factory/.assimp.new.28504/assimp.changes 2021-02-09 
21:16:54.542817788 +0100
@@ -1,0 +2,6 @@
+Mon Feb  8 10:45:37 UTC 2021 - Christophe Giboudeaux <[email protected]>
+
+- Add patch to fix build with GCC11:
+  * 0001-Fix-build-with-GCC-11.patch (boo#1181859)
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-build-with-GCC-11.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ assimp.spec ++++++
--- /var/tmp/diff_new_pack.dnRiwX/_old  2021-02-09 21:16:55.298818647 +0100
+++ /var/tmp/diff_new_pack.dnRiwX/_new  2021-02-09 21:16:55.298818647 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package assimp
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 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 @@
 Patch0:         do-not-install-irrXML.patch
 # PATCH-FIX-UPSTREAM -- Don't hardcode the library and binary location
 Patch1:         0001-use-GNUInstallDirs-where-possible.patch
+# PATCH-FIX-UPSTREAM -- GCC 11 build fixes backported to the 5.0.1 version
+Patch2:         0001-Fix-build-with-GCC-11.patch
 BuildRequires:  cmake
 BuildRequires:  dos2unix
 BuildRequires:  gcc-c++

++++++ 0001-Fix-build-with-GCC-11.patch ++++++
>From afc79a00f8377cd376480a1d245d4d570ea6f426 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <[email protected]>
Date: Mon, 8 Feb 2021 11:43:34 +0100
Subject: [PATCH] Fix build with GCC 11.

Based on upstream change 1afc4c045e.
---
 code/AMF/AMFImporter_Postprocess.cpp | 4 ++--
 code/Common/Importer.cpp             | 1 +
 code/Common/Importer.h               | 1 +
 include/assimp/Importer.hpp          | 2 ++
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/code/AMF/AMFImporter_Postprocess.cpp 
b/code/AMF/AMFImporter_Postprocess.cpp
index 79b5e15..3c1b842 100644
--- a/code/AMF/AMFImporter_Postprocess.cpp
+++ b/code/AMF/AMFImporter_Postprocess.cpp
@@ -359,9 +359,9 @@ void AMFImporter::Postprocess_AddMetadata(const 
std::list<CAMFImporter_NodeEleme
         sceneNode.mMetaData = aiMetadata::Alloc( static_cast<unsigned 
int>(metadataList.size()) );
                size_t meta_idx( 0 );
 
-               for(const CAMFImporter_NodeElement_Metadata& metadata: 
metadataList)
+               for(const CAMFImporter_NodeElement_Metadata *metadata: 
metadataList)
                {
-                       sceneNode.mMetaData->Set(static_cast<unsigned 
int>(meta_idx++), metadata.Type, aiString(metadata.Value));
+                       sceneNode.mMetaData->Set(static_cast<unsigned 
int>(meta_idx++), metadata->Type, aiString(metadata->Value));
                }
        }// if(!metadataList.empty())
 }
diff --git a/code/Common/Importer.cpp b/code/Common/Importer.cpp
index 91b5085..a287637 100644
--- a/code/Common/Importer.cpp
+++ b/code/Common/Importer.cpp
@@ -78,6 +78,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 
DAMAGE.
 #include <assimp/TinyFormatter.h>
 #include <assimp/Exceptional.h>
 #include <assimp/Profiler.h>
+#include <exception>
 #include <set>
 #include <memory>
 #include <cctype>
diff --git a/code/Common/Importer.h b/code/Common/Importer.h
index a439d99..277af0f 100644
--- a/code/Common/Importer.h
+++ b/code/Common/Importer.h
@@ -45,6 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 
DAMAGE.
 #ifndef INCLUDED_AI_IMPORTER_H
 #define INCLUDED_AI_IMPORTER_H
 
+#include <exception>
 #include <map>
 #include <vector>
 #include <string>
diff --git a/include/assimp/Importer.hpp b/include/assimp/Importer.hpp
index 4941df4..d0705c7 100644
--- a/include/assimp/Importer.hpp
+++ b/include/assimp/Importer.hpp
@@ -55,6 +55,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 
DAMAGE.
 // Public ASSIMP data structures
 #include <assimp/types.h>
 
+#include <exception>
+
 namespace Assimp    {
     // =======================================================================
     // Public interface to Assimp
-- 
2.30.0

Reply via email to