public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/coan] rawhide: coan fails to build with gcc 17 snapshot, resolves rhbz#2581961
@ 2026-11-23 16:26 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-23 16:26 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/coan
Branch : rawhide
Commit : 3446f909a99bb02737acce9e46a679df9886d3c3
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-11-23T13:25:40-03:00
Stats : +16/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/coan/c/3446f909a99bb02737acce9e46a679df9886d3c3?branch=rawhide
Log:
coan fails to build with gcc 17 snapshot, resolves rhbz#2581961
'filebuf' in namespace 'std' does not name a type
---
diff --git a/coan-gcc17-fstream.patch b/coan-gcc17-fstream.patch
new file mode 100644
index 0000000..3bf67cd
--- /dev/null
+++ b/coan-gcc17-fstream.patch
@@ -0,0 +1,14 @@
+Description: io.h uses std::filebuf without including <fstream>
+ It relied on a transitive include that libstdc++ from gcc 17 removed.
+ Upstream-status: not submitted yet
+ References: https://bugzilla.redhat.com/show_bug.cgi?id=2581961
+--- a/src/io.h
++++ b/src/io.h
+@@ -42,6 +42,7 @@
+ #include "filesys.h"
+ #include <string>
+ #include <cassert>
++#include <fstream>
+
+ /** \file io.h
+ * This defines `struct io`
diff --git a/coan.spec b/coan.spec
index 27438f5..04f434c 100644
--- a/coan.spec
+++ b/coan.spec
@@ -10,6 +10,8 @@ Source0: http://downloads.sourceforge.net/coan2/%{name}-%{version}.tar.gz
Patch0: expression_parser.patch
# https://sourceforge.net/p/coan2/bugs/95/
Patch1: coan-autoconf-c99.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=2581961
+Patch2: coan-gcc17-fstream.patch
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: perl-podlators
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 16:26 [rpms/coan] rawhide: coan fails to build with gcc 17 snapshot, resolves rhbz#2581961 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox