public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/coan] rawhide: fix gcc17 patch format + spec cleanup and modernization
@ 2026-11-23 17:26 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-11-23 17:26 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/coan
Branch : rawhide
Commit : 2405a1c5ef72d04942f9ecae0dc735f44b151631
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date   : 2026-11-23T14:25:52-03:00
Stats  : +22/-28 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/coan/c/2405a1c5ef72d04942f9ecae0dc735f44b151631?branch=rawhide

Log:
fix gcc17 patch format + spec cleanup and modernization

---
diff --git a/coan-gcc17-fstream.patch b/coan-gcc17-fstream.patch
index fe30113..1a56f6b 100644
--- a/coan-gcc17-fstream.patch
+++ b/coan-gcc17-fstream.patch
@@ -1,9 +1,10 @@
 Add missing <fstream> include required by GCC 17.
+io.h uses std::filebuf but relied on a transitive include.
+https://bugzilla.redhat.com/show_bug.cgi?id=2581961
+https://sourceforge.net/p/coan2/bugs/98/
 
-diff --git a/src/io.h b/src/io.h
-index 06fd795..3068c56 100644
---- a/src/io.h
-+++ b/src/io.h
+--- src/io.h
++++ src/io.h
 @@ -42,6 +42,7 @@
  #include "filesys.h"
  #include <string>

diff --git a/coan.spec b/coan.spec
index ff418bc..22748c5 100644
--- a/coan.spec
+++ b/coan.spec
@@ -2,22 +2,22 @@ Name:		coan
 Version:	6.0.1
 Release:	%autorelease
 Summary:	A command line tool for simplifying the pre-processor conditionals in source code
-# Automatically converted from old format: BSD - review is highly recommended.
-License:	LicenseRef-Callaway-BSD
-URL:		http://coan2.sourceforge.net/
-Source0:	http://downloads.sourceforge.net/coan2/%{name}-%{version}.tar.gz
+License:	BSD-3-Clause
+URL:		https://coan2.sourceforge.net/
+Source0:	https://downloads.sourceforge.net/coan2/%{name}-%{version}.tar.gz
 # https://sourceforge.net/p/coan2/bugs/92/
-Patch0:         expression_parser.patch
+Patch0:	expression_parser.patch
 # https://sourceforge.net/p/coan2/bugs/95/
-Patch1:         coan-autoconf-c99.patch
+Patch1:	coan-autoconf-c99.patch
 # https://bugzilla.redhat.com/show_bug.cgi?id=2581961
 # https://sourceforge.net/p/coan2/bugs/98/
-Patch2:         coan-gcc17-fstream.patch
-BuildRequires:  gcc-c++
-BuildRequires:  make
-BuildRequires:  perl-podlators
-BuildRequires:  perl-Pod-Html
-BuildRequires:  autoconf automake
+Patch2:	coan-gcc17-fstream.patch
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	gcc-c++
+BuildRequires:	make
+BuildRequires:	perl-Pod-Html
+BuildRequires:	perl-podlators
 
 # removed python2 dependencies and asked upstream to port tests to python3
 # https://sourceforge.net/p/coan2/bugs/93/
@@ -53,22 +53,15 @@ for i in AUTHORS LICENSE.BSD README ChangeLog ; do
 done
 
 %build
-export CXXFLAGS="-std=c++14 -Wno-deprecated -Wno-deprecated-declarations -fpermissive $RPM_OPT_FLAGS"
+export CXXFLAGS="%{build_cxxflags} -std=c++14 -Wno-deprecated -Wno-deprecated-declarations -fpermissive"
 autoreconf -vi
 %configure
 %make_build
 
-# disabling all checks it's broken again on rawhide :(
-# some tests are broken in armv7hl and ppc64le - disable until upstream
-# fixes the issue upstream bug report:
-#     https://sourceforge.net/p/coan2/bugs/83/
-# so for now we'll just allow the tests to fail
-#
-# %ifnarch %{arm} ppc64le
-# make check || (for f in test_coan/*.log ; do cat ${f} ; done ; false)
-# %else
-# make check || (for f in test_coan/*.log ; do cat ${f} ; done ; true)
-# %endif
+# The upstream test harness uses Python 2 syntax and cannot run with Fedora's
+# Python 3. Upstream port request: https://sourceforge.net/p/coan2/bugs/93/
+# The suite also has reported failures on armv7hl and ppc64le:
+# https://sourceforge.net/p/coan2/bugs/83/
 
 
 %install

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 17: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 17:26 [rpms/coan] rawhide: fix gcc17 patch format + spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox