diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-07-18 15:41:07 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-18 21:47:36 +0100 |
commit | 33eb305af809f7859a0e7b281c20e23bb8650ff0 (patch) | |
tree | 96becb3ec3ceef3fda19a7e5751d2e6061f33ad8 /meta/recipes-extended/at/at_3.2.4.bb | |
parent | a6ccd0172df70e217977751ea5c4a2bba446748c (diff) | |
download | poky-33eb305af809f7859a0e7b281c20e23bb8650ff0.tar.gz |
package.py: Fix static library processing
When PACKAGE_DEBUG_STATIC_SPLIT is enabled, the copy frunction fails since
shutil was not availble in this python module. Fix this with an import.
When PACKAGE_STRIP_STATIC is enabled the system did not pay attention to
hardlinks. This could trigger a race condition during stripping of static
libraries where multiple strips (through hardlinks) could run at the same
time triggering a truncated or modified file error.
The hardlink breaking code is based on the existing code for elf files, but
due to the nature of the symlinks needed to be done in a separate block of
code.
The process_split_and_strip_files attempts to reconstruct hardlinks
through the .debug directory components. Unfortunately there was an error
in the 'dest' calculation that cause the SRC and DEST to be the same with
they box exist in the same path. This did not trigger an error due to
the os.access(fpath) check in the original code. Fix the dest calculation
by using 'file' instead of target, as this will ensure we get the correct
target filename at all times.
Add support for static-library debugfs hardlinking as well, using the
changes above as a foundation for the work.
Print a note to the logs if the link target can't be found. This isn't
strictly an error, but may be useful for debugging an issue where a file
isn't present.
(From OE-Core rev: d92f896cae55d793e3f992295694e8a93e96a389)
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/at/at_3.2.4.bb')
0 files changed, 0 insertions, 0 deletions