[packages/libacovea] Rel 4
arekm
arekm at pld-linux.org
Tue Mar 10 13:25:03 CET 2026
commit cd4c11375906542a802a93f00fcb8b118944c8ca
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Mar 10 13:24:59 2026 +0100
Rel 4
libacovea-libs.patch | 2 +-
libacovea.spec | 7 ++++++-
modern-cxx-headers.patch | 10 ++++++++++
stat-function-scope.patch | 13 +++++++++++++
4 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/libacovea.spec b/libacovea.spec
index c0473b7..baf5641 100644
--- a/libacovea.spec
+++ b/libacovea.spec
@@ -1,7 +1,7 @@
Summary: ACOVEA (Analysis of Compiler Options via Evolutionary Algorithm)
Name: libacovea
Version: 5.1.1
-Release: 3
+Release: 4
License: GPL
Group: Libraries
URL: http://www.coyotegulch.com/products/acovea/index.html
@@ -9,6 +9,8 @@ Source0: http://www.coyotegulch.com/distfiles/%{name}-%{version}.tar.gz
# Source0-md5: e3bfa6b782205bad083ba58a8b882158
Patch0: %{name}-evocosm-latest.patch
Patch1: %{name}-libs.patch
+Patch2: modern-cxx-headers.patch
+Patch3: stat-function-scope.patch
BuildRequires: expat-devel
BuildRequires: libcoyotl-devel >= 3.1.0
BuildRequires: libevocosm-devel >= 3.1.0
@@ -43,6 +45,8 @@ libacovea static libraries.
%setup -q
%patch -P0 -p1
%patch -P1 -p0
+%patch -P2 -p1
+%patch -P3 -p1
%build
%{__libtoolize}
@@ -50,6 +54,7 @@ libacovea static libraries.
%{__autoconf}
%{__automake}
+CXXFLAGS="%{rpmcxxflags} -D_GLIBCXX_USE_CXX11_ABI=0" \
%configure
%{__make}
diff --git a/libacovea-libs.patch b/libacovea-libs.patch
index 55beaf1..1fc67e0 100644
--- a/libacovea-libs.patch
+++ b/libacovea-libs.patch
@@ -4,4 +4,4 @@
library_include_HEADERS = $(h_sources)
DEFS=-I. -I$(srcdir)
-+LIBS=-lexpat
++LIBS=-lexpat -levocosm -lcoyotl -lbrahe
diff --git a/modern-cxx-headers.patch b/modern-cxx-headers.patch
new file mode 100644
index 0000000..fc438d0
--- /dev/null
+++ b/modern-cxx-headers.patch
@@ -0,0 +1,10 @@
+--- libacovea-5.1.1/libacovea/acovea.h.orig 2005-10-10 04:48:31.000000000 +0000
++++ libacovea-5.1.1/libacovea/acovea.h 2026-03-10 11:23:00.000000000 +0000
+@@ -36,6 +36,8 @@
+ #define ACOVEA_H
+
++#include <unistd.h>
++
+ #include "libevocosm/evocommon.h"
+ #include "libevocosm/evocosm.h"
+ #include "libevocosm/roulette.h"
diff --git a/stat-function-scope.patch b/stat-function-scope.patch
new file mode 100644
index 0000000..5923699
--- /dev/null
+++ b/stat-function-scope.patch
@@ -0,0 +1,13 @@
+--- libacovea-5.1.1/libacovea/acovea.cpp.orig 2008-05-30 20:55:48.000000000 -0600
++++ libacovea-5.1.1/libacovea/acovea.cpp 2026-03-10 11:23:00.000000000 +0000
+@@ -44,6 +44,7 @@
+ #include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++#include <sys/stat.h>
+
+ #include <vector>
+ #include <cstring>
+@@ -1215 +1216 @@
+- stat(temp_name.c_str(),&stats);
++ ::stat(temp_name.c_str(),&stats);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libacovea.git/commitdiff/cd4c11375906542a802a93f00fcb8b118944c8ca
More information about the pld-cvs-commit
mailing list