opencascade 7.5.0-6 (znver1) 2022-14330
0

Status rejected
Submitter mandian [@T] tutanota.com
Platform rolling
Repository unsupported
URL https://abf.openmandriva.org/build_lists/121276
Packages
lib64opencascade-devel-7.5.0-6.znver1.binary
lib64opencascade7-7.5.0-6.znver1.binary
lib64opencascade7-debuginfo-7.5.0-6.znver1.debuginfo
opencascade-7.5.0-6.znver1.source
opencascade-7.5.0-6.znver1.binary
opencascade-debuginfo-7.5.0-6.znver1.debuginfo
opencascade-debugsource-7.5.0-6.znver1.binary
Build Date 2022-01-09 23:52:13 +0000 UTC
Last Updated 2022-01-15 04:31:54.407419597 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary b690011a849c29542b0848bf3cd8eba698e5481a

commit b690011a849c29542b0848bf3cd8eba698e5481a
Author:     Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Sun Jan 9 06:12:22 2022 +0100
Commit:     Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Sun Jan 9 06:12:22 2022 +0100

    Fix headers for use with clang
---
 oce-7.5.0-clang.patch | 12 ++++++++++++
 opencascade.spec      |  4 ++--
 2 files changed, 14 insertions(+), 2 deletions(-)
 create mode 100644 oce-7.5.0-clang.patch

diff --git a/oce-7.5.0-clang.patch b/oce-7.5.0-clang.patch
new file mode 100644
index 0000000..4a2a30f
--- /dev/null
+++ b/oce-7.5.0-clang.patch
@@ -0,0 +1,12 @@
+diff -up oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx.omv~ oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx
+--- oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx.omv~	2022-01-09 01:03:31.512273977 +0100
++++ oce-upstream-V7_5_0/src/Standard/Standard_Type.hxx	2022-01-09 01:03:38.866283692 +0100
+@@ -26,7 +26,7 @@
+ // DEFINE_STANDARD_RTTI* macro is actually a base class.
+ #if ! defined(OCCT_CHECK_BASE_CLASS)
+ 
+-#if (defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || (__GNUC__ > 4)))
++#if (defined(__GNUC__) && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 7) || (__GNUC__ > 4))) && !defined(__clang__)
+ 
+ // For GCC 4.7+, more strict check is possible -- ensuring that base class 
+ // is direct base -- using non-standard C++ reflection functionality.
diff --git a/opencascade.spec b/opencascade.spec
index 6a218c5..7fa1431 100644
--- a/opencascade.spec
+++ b/opencascade.spec
@@ -16,8 +16,7 @@
 Name:		opencascade
 Group:		Sciences/Physics
 Version:	%{version}
-Release:	5
-Epoch:		1
+Release:	6
 Summary:	3D modeling & numerical simulation
 License:	LGPLv2 with exceptions
 URL:		https://github.com/tpaviot/oce
@@ -33,6 +32,7 @@ Patch1:		opencascade-fix_externlib.patch
 Patch2:		opencascade-compile.patch
 # (fedora)
 Patch3:		opencascade-cmake.patch
+Patch4:		oce-7.5.0-clang.patch
 # (upstream)
 Patch100:	opencascade-7.5.0-fix_tbb.patch
 BuildRequires:	cmake
Not Available

benbullard79 [@T] cox.netNo Comment.1044d 06hrs