public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/coan] rawhide: fix gcc17 patch format + spec cleanup and modernization
Date: Mon, 23 Nov 2026 17:26:02 GMT	[thread overview]
Message-ID: <179545476298.1.18338847048543566903.rpms-coan-2405a1c5ef72@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-23 17:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179545476298.1.18338847048543566903.rpms-coan-2405a1c5ef72@fedoraproject.org \
    --to=rosset.filipe@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox