Remove .la files from buildroot
Summary
Autools/libtool-based projects frequently install files ending in .la
in their make install
. These files are usually unwanted. Many projects therefore end up with a variation of find $RPM_BUILD_ROOT -name "*.la" -delete
in their %install section
.
This changes proposes to instead use the %__brp_remove_la_files
macro in redhat-rpm-config
's %__os_install_post
to remove the *.la
files automatically. This has been added to RPM 4.17.
Owner
- Name: Timm Bäder
- Email: tbaeder@redhat.com
Current status
- Targeted release: Fedora Linux 36
- Last updated: 2021-10-21
- FESCo issue: <will be assigned by the Wrangler>
- Tracker bug: <will be assigned by the Wrangler>
- Release notes tracker: <will be assigned by the Wrangler>
Detailed Description
Feedback
Benefit to Fedora
This change removes a widely used line of shell script from many spec files. The advantage is cleaner and easier to maintain spec files as well as more sensible defaults for rpm package builds.
Scope
- Proposal owners: Update packaging guidelines to mention the automatic removal of
*.la
files and mention the mechanism for opting out of this behavior.
- Other developers: For the packages already removing their
*.la
files manually, there should be no change. For packages that want to install such packages, the package maintainers need to opt out of the automatic removal.
- Release engineering: #Releng issue number
- Policies and guidelines: N/A (not needed for this Change)
- Alignment with Objectives:
Upgrade/compatibility impact
How To Test
User Experience
Dependencies
Contingency Plan
- Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change)
- Contingency deadline: N/A (not a System Wide Change)
- Blocks release? N/A (not a System Wide Change), Yes/No
Documentation
N/A (not a System Wide Change)