[info=bc3f2ee17d072aa7d4f5a40deebe16f4e8c00930]

OBS-URL: https://build.opensuse.org/package/show/science/gfan?expand=0&rev=32
This commit is contained in:
OBS User unknown 2024-09-10 09:42:50 +00:00 committed by Git OBS Bridge
parent 3ae63d44e3
commit 5978713da8
3 changed files with 4 additions and 86 deletions

View File

@ -1,4 +1,4 @@
mtime: 1725961134 mtime: 1725961359
commit: 9a97068a726686bf792175d2b40a66f0e22d79ca commit: bc3f2ee17d072aa7d4f5a40deebe16f4e8c00930
url: https://src.opensuse.org/jengelh/gfan url: https://src.opensuse.org/jengelh/gfan
revision: master revision: master

View File

@ -1,82 +0,0 @@
From a75e670e0e228e0a738eb65c7128a01446b4135c Mon Sep 17 00:00:00 2001
From: Alois Wohlschlager <alois1@gmx-topmail.de>
Date: Sat, 3 Jul 2021 11:07:23 +0200
Subject: [PATCH] Fix ODR violations
Upstream: not reachable
Various traversal code reused class names (Boundary, pathStepRidge,
pathStepFacet) in violation of the one definition rule. Put the
respective classes into anonymous namespaces to comply with ODR.
---
src/gfanlib_traversal.cpp | 4 ++++
src/symmetrictraversal.cpp | 4 ++++
src/tropicaltraverse.cpp | 5 +++++
3 files changed, 13 insertions(+)
Index: gfan0.7/src/gfanlib_traversal.cpp
===================================================================
--- gfan0.7.orig/src/gfanlib_traversal.cpp
+++ gfan0.7/src/gfanlib_traversal.cpp
@@ -45,6 +45,8 @@ bool FanBuilder::process(FanTraverser &t
+namespace
+{
/**
* Classes
@@ -159,6 +161,8 @@ public:
}
};
+}
+
/**
Rewrite these comments.
Index: gfan0.7/src/symmetrictraversal.cpp
===================================================================
--- gfan0.7.orig/src/symmetrictraversal.cpp
+++ gfan0.7/src/symmetrictraversal.cpp
@@ -103,6 +103,8 @@ bool SymmetricTargetVertexSetBuilder::pr
in the computation is made these edges will be deleted.
*/
+namespace
+{
class Boundary
{
@@ -231,6 +233,8 @@ public:
}
};
+}
+
/**
Rewrite these comments.
Index: gfan0.7/src/tropicaltraverse.cpp
===================================================================
--- gfan0.7.orig/src/tropicaltraverse.cpp
+++ gfan0.7/src/tropicaltraverse.cpp
@@ -104,6 +104,9 @@ public:
}
};
+namespace
+{
+
/**
Rewrite these comments.
@@ -135,6 +138,8 @@ struct pathStepFacet
using namespace tropicalTraverseNamespace;
+}
+
/**
We need to simulate two mutually recursive functions. An actual
implementation of these two functions would propably not work since

View File

@ -5,9 +5,9 @@ Tue Sep 10 09:05:35 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
* Introduction of ``_tropicalprevariety`` which is much faster * Introduction of ``_tropicalprevariety`` which is much faster
than the old ``_tropicalintersection``. than the old ``_tropicalintersection``.
- Add gfan-c++20.patch, gfan-gcd.patch, gfan-multiplicities.patch, - Add gfan-c++20.patch, gfan-gcd.patch, gfan-multiplicities.patch,
gfan-odr.patch, gfan-soplex.patch, gfan-warning.patch gfan-soplex.patch, gfan-warning.patch
- Delete gfan-warnings.diff & cddlib.patch - Delete gfan-warnings.diff & cddlib.patch
(replaced by gfan-warning.patch) (replaced by gfan-warning.patch), delete gfan-odr.patch (obsolete)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 13 09:09:06 UTC 2021 - Alois Wohlschlager <alois1@gmx-topmail.de> Tue Jul 13 09:09:06 UTC 2021 - Alois Wohlschlager <alois1@gmx-topmail.de>