Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macros: Add %remove_installed_la_files #1674

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

tbaederr
Copy link
Contributor

@tbaederr tbaederr commented May 5, 2021

Lots of packages remove .la files via

find $RPM_BUILD_ROOT -name "*.la" -delete

or similar. Add %remove_installed_la_files to standardize this.

I could not find tests for the macros in the rpm repository, but I testes this separately in a spec file. I went with -delete here and not exec rm -f {} \;. It might also be worthwhile to add -print as well.

Thoughts?

@pmatilai
Copy link
Member

pmatilai commented May 6, 2021

This would just replace one line of boilerplate with another. Lets rather add a brp-script which removes the .la files by default, and then the handful of packages that actually do want to ship those files can simply disable the brp policy.

@tbaederr
Copy link
Contributor Author

tbaederr commented May 7, 2021

Sounds good, I tried doing that.

@tbaederr
Copy link
Contributor Author

Sorry, missed the broken CI before.

.la files are libtool files and should generally not be installed. Tons
of spec files contain a 'find' command to remove them. Add a helper
script that automatically removes all .la files from the build root and
let projects that need them opt out of this instead.
@pmatilai
Copy link
Member

Looks fine now. Thanks for the patch!

@pmatilai pmatilai merged commit e0de325 into rpm-software-management:master Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants