public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fastnetmon] epel10: Add missing header for g++13
@ 2026-06-26  9:31 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-06-26  9:31 UTC (permalink / raw)
  To: git-commits

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
 

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

only message in thread, other threads:[~2026-06-26  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26  9:31 [rpms/fastnetmon] epel10: Add missing header for g++13 Mamoru TASAKA

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