[packages/openbabel] fix build with gcc >= 12
atler
atler at pld-linux.org
Fri Jul 7 12:05:24 CEST 2023
commit 6f5eb7dfa29226aa5cd704a19d47917b25956a24
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jul 7 10:58:49 2023 +0200
fix build with gcc >= 12
gcc12.patch | 10 ++++++++++
openbabel.spec | 2 ++
2 files changed, 12 insertions(+)
---
diff --git a/openbabel.spec b/openbabel.spec
index c2ee912..862251c 100644
--- a/openbabel.spec
+++ b/openbabel.spec
@@ -23,6 +23,7 @@ Patch3: ruby-install.patch
Patch4: gcc6.patch
Patch5: plugindir.patch
Patch6: cmake.patch
+Patch7: gcc12.patch
URL: http://openbabel.org/
BuildRequires: cairo-devel
BuildRequires: cmake >= 2.6.0
@@ -138,6 +139,7 @@ Wiązanie języka Ruby do biblioteki OpenBabel.
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%build
%cmake . \
diff --git a/gcc12.patch b/gcc12.patch
new file mode 100644
index 0000000..9694249
--- /dev/null
+++ b/gcc12.patch
@@ -0,0 +1,10 @@
+--- openbabel-openbabel-2-4-1/include/openbabel/obutil.h.orig 2016-10-10 17:56:17.000000000 +0200
++++ openbabel-openbabel-2-4-1/include/openbabel/obutil.h 2023-07-07 10:56:44.846548563 +0200
+@@ -22,6 +22,7 @@
+
+ #include <openbabel/babelconfig.h>
+
++#include <ctime>
+ #include <string>
+ #include <iosfwd>
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openbabel.git/commitdiff/957595f3196191e3540e600a2a8977a994a9a50a
More information about the pld-cvs-commit
mailing list