public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/fastnetmon] epel10: Add missing header for g++13
Date: Fri, 26 Jun 2026 09:31:27 GMT	[thread overview]
Message-ID: <178246628742.1.11260384724586445136.rpms-fastnetmon-0a5b2bfbb1dc@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fastnetmon
Branch : epel10
Commit : 0a5b2bfbb1dcab491a8164692337fe8170172f21
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2023-02-28T17:42:57+09:00
Stats  : +36/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fastnetmon/c/0a5b2bfbb1dcab491a8164692337fe8170172f21?branch=epel10

Log:
Add missing header for g++13

---
diff --git a/fastnetmon-pr968-g++13-header.patch b/fastnetmon-pr968-g++13-header.patch
new file mode 100644
index 0000000..bb275f1
--- /dev/null
+++ b/fastnetmon-pr968-g++13-header.patch
@@ -0,0 +1,28 @@
+From 43134b54bc696e4871674a4d5412d762cc559b07 Mon Sep 17 00:00:00 2001
+From: Mamoru TASAKA <mtasaka@fedoraproject.org>
+Date: Tue, 28 Feb 2023 17:35:03 +0900
+Subject: [PATCH] BUILDFIX: add missing header for g++13
+
+With g++13, the following error is produced:
+
+```
+src/metrics/../abstract_subnet_counters.hpp:79:28: error: 'std::function' has not been declared
+```
+
+Fix this error by including additional header.
+---
+ src/abstract_subnet_counters.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/abstract_subnet_counters.hpp b/src/abstract_subnet_counters.hpp
+index 74b82368..80fdd058 100644
+--- a/src/abstract_subnet_counters.hpp
++++ b/src/abstract_subnet_counters.hpp
+@@ -3,6 +3,7 @@
+ #include <mutex>
+ #include <unordered_map>
+ #include <algorithm>
++#include <functional>
+ 
+ // I keep these declaration here because of following error:
+ // error: there are no arguments to ‘increment_outgoing_counters’ that depend on a template parameter, so a declaration

diff --git a/fastnetmon.spec b/fastnetmon.spec
index 081f6aa..8a2114d 100644
--- a/fastnetmon.spec
+++ b/fastnetmon.spec
@@ -11,7 +11,7 @@
 
 Name:              fastnetmon
 Version:           1.2.1
-Release:           6.%{date}git%{shortcommit0}%{?dist}
+Release:           7.%{date}git%{shortcommit0}%{?dist}
 
 Summary:           DDoS detection tool with sFlow, Netflow, IPFIX and port mirror support
 License:           GPLv2
@@ -19,6 +19,9 @@ URL:               https://fastnetmon.com
 
 Source0:           https://github.com/pavel-odintsov/fastnetmon/archive/%{commit0}.tar.gz
 Source1:           fastnetmon.sysusers
+# https://github.com/pavel-odintsov/fastnetmon/pull/968
+# Adding missing header for g++13
+Patch0:            fastnetmon-pr968-g++13-header.patch
 
 BuildRequires:     make
 BuildRequires:     gcc
@@ -50,7 +53,7 @@ Requires(pre):     shadow-utils
 DDoS detection tool with sFlow, Netflow, IPFIX and port mirror support.
 
 %prep
-%autosetup -n %{name}-%{commit0}
+%autosetup -n %{name}-%{commit0} -p1
 
 %build
 
@@ -110,6 +113,9 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/fastnetmon.conf
 %doc README.md SECURITY.md THANKS.md
 
 %changelog
+* Tue Feb 28 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.2.1-7.20220528git420e7b8
+- Add missing header for g++13
+
 * Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-6.20220528git420e7b8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
 

                 reply	other threads:[~2026-06-26  9:31 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=178246628742.1.11260384724586445136.rpms-fastnetmon-0a5b2bfbb1dc@fedoraproject.org \
    --to=mtasaka@fedoraproject.org \
    --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