public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Bojan Smojver <bojan@rexursive.com>
To: git-commits@fedoraproject.org
Subject: [rpms/tcpreplay] epel10: Build fixes for EPEL8/9
Date: Tue, 28 Jul 2026 03:53:21 GMT	[thread overview]
Message-ID: <178521080112.1.13979220025866809417.rpms-tcpreplay-6093edd65a93@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/tcpreplay
Branch : epel10
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=epel10

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

                 reply	other threads:[~2026-07-28  3:53 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=178521080112.1.13979220025866809417.rpms-tcpreplay-6093edd65a93@fedoraproject.org \
    --to=bojan@rexursive.com \
    --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