public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tcpreplay] f44: Build fixes for EPEL8/9
@ 2026-07-28  3:52 Bojan Smojver
  0 siblings, 0 replies; only message in thread
From: Bojan Smojver @ 2026-07-28  3:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/tcpreplay
Branch : f44
Commit : 6093edd65a93493b6ef92cc5b44703803b2183ad
Author : Bojan Smojver <bojan@rexursive.com>
Date   : 2026-07-28T13:51:55+10:00
Stats  : +17/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/tcpreplay/c/6093edd65a93493b6ef92cc5b44703803b2183ad?branch=f44

Log:
Build fixes for EPEL8/9

---
diff --git a/tcpreplay-4.6.0-examples-strlcpy-include.patch b/tcpreplay-4.6.0-examples-strlcpy-include.patch
new file mode 100644
index 0000000..8cb161e
--- /dev/null
+++ b/tcpreplay-4.6.0-examples-strlcpy-include.patch
@@ -0,0 +1,9 @@
+--- a/examples/Makefile.in
++++ b/examples/Makefile.in
+@@ -363,5 +363,5 @@
+ top_srcdir = @top_srcdir@
+ replay_stats_SOURCES = replay_stats.c
+-replay_stats_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src $(LIBOPTS_CFLAGS)
++replay_stats_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_builddir)/src $(LIBOPTS_CFLAGS)
+ replay_stats_LDADD = $(top_builddir)/src/libtcpreplay.a @LPCAPLIB@ @LDNETLIB@ $(LIBOPTS_LDADD)
+ EXTRA_DIST = README.md CMakeLists.txt

diff --git a/tcpreplay.spec b/tcpreplay.spec
index b38202a..83522bb 100644
--- a/tcpreplay.spec
+++ b/tcpreplay.spec
@@ -10,13 +10,14 @@
 
 Name:           tcpreplay
 Version:        4.6.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Replay captured network traffic
 
 # Automatically converted from old format: GPLv3 - review is highly recommended.
 License:        GPL-3.0-only
 URL:            http://tcpreplay.appneta.com/
 Source:         https://github.com/appneta/tcpreplay/releases/download/v%{version}/tcpreplay-%{version}.tar.xz
+Patch0:         tcpreplay-4.6.0-examples-strlcpy-include.patch
 
 BuildRequires:  make
 BuildRequires:  gcc
@@ -53,6 +54,9 @@ The static (%{_libdir}/libtcpreplay.a) build of libtcpreplay.
 %autosetup -p1
 
 %build
+%if 0%{?rhel} && 0%{?rhel} < 10
+export LDFLAGS="%{?__global_ldflags} -pthread"
+%endif
 %configure --enable-local-libopts \
            --disable-libopts-install \
            --disable-maintainer-mode
@@ -82,6 +86,9 @@ The static (%{_libdir}/libtcpreplay.a) build of libtcpreplay.
 %{_libdir}/libtcpreplay.a
 
 %changelog
+* Tue Jul 28 2026 Bojan Smojver <bojan@rexursive.com> - 4.6.0-2
+- Add -pthreads for EPEL8/9
+
 * Tue Jul 28 2026 Bojan Smojver <bojan@rexursive.com> - 4.6.0-1
 - Update to 4.6.0
 - Add -devel and -static for headers, pkgconfig file and static library

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

only message in thread, other threads:[~2026-07-28  3:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-28  3:52 [rpms/tcpreplay] f44: Build fixes for EPEL8/9 Bojan Smojver

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