Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions SPECS/mtr/mtr.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 <azaugg@linkedin.com> - 0.95-4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triggered a test build:

Thanks @AZaugg

- Fix mtr segfault

* Mon Jul 14 2025 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 0.95-3
- Patch for CVE-2025-49809

Expand Down
Loading