[packages/wf-config] upstream fix for gcc 14

atler atler at pld-linux.org
Thu May 30 19:40:57 CEST 2024


commit 837332a921d5855b9bbef9f88ecdca5263428dcd
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu May 30 19:20:21 2024 +0200

    upstream fix for gcc 14

 gcc14.patch    | 33 +++++++++++++++++++++++++++++++++
 wf-config.spec |  2 ++
 2 files changed, 35 insertions(+)
---
diff --git a/wf-config.spec b/wf-config.spec
index d877c8e..5ec6509 100644
--- a/wf-config.spec
+++ b/wf-config.spec
@@ -12,6 +12,7 @@ Group:		Libraries
 #Source0Download: https://github.com/WayfireWM/wf-config/releases
 Source0:	https://github.com/WayfireWM/wf-config/releases/download/v%{version}/%{name}-%{version}.tar.xz
 # Source0-md5:	633cd902c2c889ae02c6ffeef8b44357
+Patch0:		gcc14.patch
 URL:		https://wayfire.org/
 BuildRequires:	GLM-devel >= 0.9.9.9
 BuildRequires:	libevdev-devel
@@ -62,6 +63,7 @@ Biblioteka statyczna wf-config.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %meson build \
diff --git a/gcc14.patch b/gcc14.patch
new file mode 100644
index 0000000..be8d95d
--- /dev/null
+++ b/gcc14.patch
@@ -0,0 +1,33 @@
+From af1bddc9d7191b9902edcb4c74572eac65577806 Mon Sep 17 00:00:00 2001
+From: Kostadin <kocelfc at tutanota.com>
+Date: Tue, 7 Nov 2023 16:41:55 +0200
+Subject: [PATCH] Fix build with gcc 14 (#64)
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix building with gcc 14 by adding #include <algorithm> to src/file.cpp
+
+FAILED: libwf-config.so.0.9.0.p/src_file.cpp.o
+ccache c++ -Ilibwf-config.so.0.9.0.p -I. -I.. -Iinclude -I../include -I/usr/include/libevdev-1.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++17 -O0 -g -Wno-deprecated-declarations -fPIC -MD -MQ libwf-config.so.0.9.0.p/src_file.cpp.o -MF libwf-config.so.0.9.0.p/src_file.cpp.o.d -o libwf-config.so.0.9.0.p/src_file.cpp.o -c ../src/file.cpp ../src/file.cpp: In lambda function:
+../src/file.cpp:419:25: error: ‘any_of’ is not a member of ‘std’
+  419 |             return std::any_of(
+      |                         ^~~~~~
+
+Signed-off-by: Kostadin Shishmanov <kocelfc at tutanota.com>
+---
+ src/file.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/file.cpp b/src/file.cpp
+index c974738..704b600 100644
+--- a/src/file.cpp
++++ b/src/file.cpp
+@@ -7,6 +7,7 @@
+ #include <fstream>
+ #include <cassert>
+ #include <set>
++#include <algorithm>
+ 
+ #include "option-impl.hpp"
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wf-config.git/commitdiff/837332a921d5855b9bbef9f88ecdca5263428dcd



More information about the pld-cvs-commit mailing list