From 981bae2c2d29036c5a4cc3b82134eea23b25293b Mon Sep 17 00:00:00 2001 From: Andy Zaugg Date: Thu, 11 Dec 2025 16:37:54 +0000 Subject: [PATCH 1/3] fix mtr segfault When building mtr with pkgconfig we are getting missmatched ABI pairing betweeen ncursesw tinfo during build time force the correct ABI pair and dont confuse v5 and v6 ncurse versions --- SPECS/mtr/mtr.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPECS/mtr/mtr.spec b/SPECS/mtr/mtr.spec index 15a8dce4fb0..891499f80a4 100644 --- a/SPECS/mtr/mtr.spec +++ b/SPECS/mtr/mtr.spec @@ -36,14 +36,14 @@ in the mtr-gtk package). %autosetup -p1 %build -export CFLAGS="%{optflags} -fPIE" -export LDFLAGS="-z now -pie" +export CFLAGS="%{optflags} -fPIE $(pkg-config --cflags ncursesw)" +export LDFLAGS="-z now -pie $(pkg-config --libs ncursesw)" # Upstream forgot to ship .tarball-version echo "%{version}" > .tarball-version ./bootstrap.sh -%configure --without-gtk +%configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" --without-gtk %make_build %install From 23b1d7e660e8062197b0105e8cf3969b93604d92 Mon Sep 17 00:00:00 2001 From: Andy Zaugg Date: Thu, 11 Dec 2025 16:41:43 +0000 Subject: [PATCH 2/3] Bump version --- SPECS/mtr/mtr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SPECS/mtr/mtr.spec b/SPECS/mtr/mtr.spec index 891499f80a4..1a6230f53f7 100644 --- a/SPECS/mtr/mtr.spec +++ b/SPECS/mtr/mtr.spec @@ -3,7 +3,7 @@ Summary: Network diagnostic tool combining 'traceroute' and 'ping' Name: mtr Version: 0.95 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2 Vendor: Microsoft Corporation Distribution: Azure Linux @@ -62,6 +62,9 @@ install -D -p -m 0755 mtr %{buildroot}%{_sbindir}/mtr %{_datadir}/bash-completion/completions/%{name} %changelog +*Thu Dev 11 2025 Andy Zaugg - 0.95-4 +- Fix mtr segfault + * Mon Jul 14 2025 Azure Linux Security Servicing Account - 0.95-3 - Patch for CVE-2025-49809 From 1304d78093d1747cc94f035d08af04dea66df4ba Mon Sep 17 00:00:00 2001 From: AZaugg Date: Fri, 12 Dec 2025 10:36:44 -0500 Subject: [PATCH 3/3] Update SPECS/mtr/mtr.spec Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com> --- SPECS/mtr/mtr.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPECS/mtr/mtr.spec b/SPECS/mtr/mtr.spec index 1a6230f53f7..cad82b1bd69 100644 --- a/SPECS/mtr/mtr.spec +++ b/SPECS/mtr/mtr.spec @@ -62,7 +62,7 @@ install -D -p -m 0755 mtr %{buildroot}%{_sbindir}/mtr %{_datadir}/bash-completion/completions/%{name} %changelog -*Thu Dev 11 2025 Andy Zaugg - 0.95-4 +* Thu Dev 11 2025 Andy Zaugg - 0.95-4 - Fix mtr segfault * Mon Jul 14 2025 Azure Linux Security Servicing Account - 0.95-3