Bug 2388198 - Hardlink identical files in packages by default
Summary: Hardlink identical files in packages by default
Keywords:
Status: ON_QA
Alias: None
Product: Fedora
Classification: Fedora
Component: Changes Tracking
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zbigniew Jędrzejewski-Szmek
QA Contact:
URL:
Whiteboard:
Depends On: 2400621 2413314
Blocks: F44Changes
TreeView+ depends on / blocked
 
Reported: 2025-08-13 10:40 UTC by Aoife Moloney
Modified: 2025-11-07 09:31 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Aoife Moloney 2025-08-13 10:40:56 UTC
This is a tracking bug for Change: Hardlink identical files in packages by default
For more details, see: https://fedoraproject.org/wiki/Changes/Hardlink_identical_files_in_packages_by_default

A post-build step is added to the package build macros to automatically hardlink all identical files under /usr. Previously, this was done in some packages and now it's done everywhere by default.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Aoife Moloney 2025-08-19 21:12:31 UTC
Dear change owner, this is a reminder that your change is required to be 100% code complete by August 26, which is the start of beta freeze. Please provide a status update on your change in the Incomplete Changes Report if you are not able to move your change to 'ON_QA' before this date. If you need to defer your change to the next Fedora release, please let me know and I will reassign this bug and the change page. Thank you kindly.

Comment 2 Zbigniew Jędrzejewski-Szmek 2025-08-26 16:56:15 UTC
Some bits are still missing. It seems to late to push this to F43. Let's postpone to F44.

Comment 3 Zbigniew Jędrzejewski-Szmek 2025-10-12 19:16:56 UTC
This is live in rawhide now.

Comment 4 Petr Pisar 2025-11-07 08:56:59 UTC
I got a report that the deduplication breaks SELinux file context: If a package contains the same-content files with different SELinux labels, squashing the files into a single i-node looses the other file SELinux labels.

Comment 5 Zbigniew Jędrzejewski-Szmek 2025-11-07 09:16:10 UTC
Please be more specific. The linking takes the selinux policy into account when comparing files. (The default targeted policy, at the time of the package build.)

Comment 6 Jan Kurik 2025-11-07 09:24:08 UTC
@(In reply to Zbigniew Jędrzejewski-Szmek from comment #5)
> Please be more specific. The linking takes the selinux policy into account
> when comparing files. (The default targeted policy, at the time of the
> package build.)

I opened bz2413314 describing the issue in more details. Is it sufficient, or do you need more info ?

Comment 7 Zbigniew Jędrzejewski-Szmek 2025-11-07 09:31:49 UTC
It's enough. Let's continue the discussion there.


Note You need to log in before you can comment on or make changes to this bug.