#2693 F36 Change: Remove .la files from buildroot
Closed: Accepted 16 days ago by zbyszek. Opened a month ago by bcotton.

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.

*.la files are "libtool archives" and provide additional metadata for library files and come from a time before the introduction of the ELF format. Today, they are only consumed by libtool itself. Refer to https://autotools.io/libtool/lafiles.html.

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.


+1 provided that you can opt out

On November 9, 2021 6:55:34 PM UTC, Ben Cotton pagure@pagure=2Eio wrote:

bcotton reported a new issue against the project: fesco that you are fo=
llowing:
``
Autools/libtool-based projects frequently install files ending in =2Ela i=
n their make install=2E These files are usually unwanted=2E Many projects t=
herefore end up with a variation of find $RPM_BUILD_ROOT -name "*=2Ela" -de=
lete in their %install section=2E

*=2Ela files are "libtool archives" and provide additional metadata for l=
ibrary files and come from a time before the introduction of the ELF format=
=2E Today, they are only consumed by libtool itself=2E Refer to https://aut=
otools=2Eio/libtool/lafiles=2Ehtml=2E

This changes proposes to instead use the %__brp_remove_la_files macro in =
redhat-rpm-config's %__os_install_post to remove the =2Ela files automatic=
ally=2E This has been added to RPM 4=2E17=2E
Change proposal
devel-announce post
devel list discussion
* Owners: @tbaeder=20

``

To reply, visit the link below or just reply to this email
https://pagure=2Eio/fesco/issue/2693

After a week, the vote is
APPROVED (+7,0,-0)

Metadata Update from @bcotton:
- Issue tagged with: pending announcement

20 days ago

Metadata Update from @zbyszek:
- Issue untagged with: pending announcement
- Issue close_status updated to: Accepted
- Issue status updated to: Closed (was: Open)

16 days ago

Login to comment on this ticket.

Metadata