kernel-6.1: exclude more object files from devel #172
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue number:
Closes #171
Description of changes:
Now that an unpacked set of kernel-devel files is present in the buildroot, object files will be found by the
/usr/lib/rpm/brp-strip
invocation that tries to ensure all files are stripped.This can lead to build failures if the host and target arch don't match, and if the target arch requires a host tool to be built. The object files will be built for the host, and the target's
strip
command will not recognize the format.In any case, these object files shouldn't be included, as they may need to be rebuilt to match the running host architecture at the time the kernel-devel files are used.
Fixes: 76af8be ("kernel-6.1: also provide uncompressed devel files")
Testing done:
Collected files before and after:
Confirmed that
.o
and.a
files were removed:Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.