public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fastnetmon] rawhide: Fix linking issue on RISC-V architecture
@ 2026-09-03 9:41 Marcin Juszkiewicz
0 siblings, 0 replies; only message in thread
From: Marcin Juszkiewicz @ 2026-09-03 9:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fastnetmon
Branch : rawhide
Commit : 79ccc7a30dc5c0160276411d86886a79addc0c7d
Author : Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Date : 2026-09-01T12:55:23+02:00
Stats : +50/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/fastnetmon/c/79ccc7a30dc5c0160276411d86886a79addc0c7d?branch=rawhide
Log:
Fix linking issue on RISC-V architecture
---
diff --git a/fastnetmon.spec b/fastnetmon.spec
index da6ab2e..f19884b 100644
--- a/fastnetmon.spec
+++ b/fastnetmon.spec
@@ -5,7 +5,7 @@
Name: fastnetmon
Version: 1.2.9
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: DDoS detection tool with sFlow, Netflow, IPFIX and port mirror support
# Automatically converted from old format: GPLv2 - review is highly recommended.
@@ -16,6 +16,7 @@ ExcludeArch: %{ix86}
Source0: https://github.com/pavel-odintsov/fastnetmon/archive/refs/tags/v%{version}.tar.gz
Source1: fastnetmon.sysusers
+Patch0: fix-absl-link-order.patch
BuildRequires: make
BuildRequires: gcc
@@ -114,6 +115,9 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/fastnetmon.conf
%doc README.md SECURITY.md THANKS.md
%changelog
+* Tue Sep 01 2026 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 1.2.9-3
+- Fix linking issue on RISC-V architecture
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/fix-absl-link-order.patch b/fix-absl-link-order.patch
new file mode 100644
index 0000000..3ce0483
--- /dev/null
+++ b/fix-absl-link-order.patch
@@ -0,0 +1,45 @@
+From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
+Date: Mon, 1 Sep 2026 12:00:00 +0200
+Subject: [PATCH] Fix abseil link order for ld.bfd
+
+Move absl:: libraries after gRPC in fastnetmon_api_client link list.
+ld.bfd (used on riscv64) is a single-pass linker and needs dependees
+before dependencies.
+
+Assisted-by: Claude (Anthropic)
+
+Sent upstream: https://github.com/pavel-odintsov/fastnetmon/pull/1092
+
+---
+ src/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 1111111..2222222 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -786,10 +786,6 @@ endif()
+
+ add_executable(fastnetmon_api_client fastnetmon_api_client.cpp)
+
+- if (LINK_WITH_ABSL)
+- target_link_libraries(fastnetmon_api_client absl::base absl::synchronization)
+- endif()
+-
+ # We use another way to specify dependencies for Windows as our standard approach clearly does not work
+ # https://www.f-ax.de/dev/2020/11/08/grpc-plugin-cmake-support.html
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+@@ -805,6 +801,10 @@ endif()
+
+ target_link_libraries(fastnetmon_api_client protobuf::libprotobuf)
+
++ if (LINK_WITH_ABSL)
++ target_link_libraries(fastnetmon_api_client absl::base absl::synchronization)
++ endif()
++
+ if (KAFKA_SUPPORT)
+ target_link_libraries(fastnetmon ${LIBKAFKA_CPP_LIBRARY_PATH})
+ endif()
+--
+2.49.0
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-03 9:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 9:41 [rpms/fastnetmon] rawhide: Fix linking issue on RISC-V architecture Marcin Juszkiewicz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox