public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
To: git-commits@fedoraproject.org
Subject: [rpms/fastnetmon] rawhide: Fix linking issue on RISC-V architecture
Date: Thu, 03 Sep 2026 09:41:27 GMT	[thread overview]
Message-ID: <178842848737.1.17292621619009140288.rpms-fastnetmon-79ccc7a30dc5@fedoraproject.org> (raw)

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
+

                 reply	other threads:[~2026-09-03  9:41 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=178842848737.1.17292621619009140288.rpms-fastnetmon-79ccc7a30dc5@fedoraproject.org \
    --to=marcin@juszkiewicz.com.pl \
    --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