public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mstflint] f45: hardlink duplicate files in RHEL buildroots
Date: Fri, 20 Nov 2026 07:01:42 GMT [thread overview]
Message-ID: <179515810284.1.16530269217640606491.rpms-mstflint-ce4de30d2553@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mstflint
Branch : f45
Commit : ce4de30d2553062ce3f8d133bb577a076535413c
Author : Michal Schmidt <mschmidt@redhat.com>
Date : 2026-11-19T18:28:49+01:00
Stats : +11/-0 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mstflint/c/ce4de30d2553062ce3f8d133bb577a076535413c?branch=f45
Log:
hardlink duplicate files in RHEL buildroots
rpmlint reports
mstflint.x86_64: E: files-duplicated-waste 816835
for every architecture: roughly 800 KiB of byte-identical files that
are not hardlinks. The mst* binaries in /usr/bin are identical to each
other, so are some of the per-switch CSV files in /usr/share/mstflint.
Fedora buildroots deduplicate the whole buildroot in %%__os_install_post
(linkdupes from add-determinism), RHEL and ELN buildroots do not, so run
the hardlink tool there. It merges 16 files and saves 797.68 KiB of
duplicated data.
Assisted-by: OpenCode:enmaas/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017
(cherry picked from commit 0403f78981ac14a55fad99c25aca51a4187147cc)
---
diff --git a/mstflint.spec b/mstflint.spec
index acb2ebe..253b811 100644
--- a/mstflint.spec
+++ b/mstflint.spec
@@ -65,6 +65,9 @@ Provides: bundled(muParser)
%if %{__remake_config}
BuildRequires: libtool, autoconf, automake
%endif
+%if 0%{?rhel}
+BuildRequires: hardlink
+%endif
Obsoletes: openib-mstflint <= 1.4 openib-tvflash <= 0.9.2 tvflash <= 0.9.0
ExcludeArch: s390 %{arm} %{ix86}
Requires: python3
@@ -118,6 +121,14 @@ find %{buildroot} -type f,l \( -name '*.a' -o -name '*.la' \) -delete
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Debuginfo/
chmod +x %{buildroot}/%{_libdir}/mstflint/{python_tools,sdk}/*.so
+%if 0%{?rhel}
+# rpmlint reports files-duplicated-waste for identical files that are not
+# hardlinked. Fedora deduplicates the whole buildroot as part of
+# %%__os_install_post (linkdupes from add-determinism), RHEL buildroots
+# do not, so hardlink the duplicates here.
+hardlink -c %{buildroot}
+%endif
+
%files
%doc README
%_bindir/*
reply other threads:[~2026-11-20 7:01 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=179515810284.1.16530269217640606491.rpms-mstflint-ce4de30d2553@fedoraproject.org \
--to=mschmidt@redhat.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