Skip to content

Conversation

@ismell
Copy link
Contributor

@ismell ismell commented Apr 24, 2024

I've noticed that scalelf doesn't produce deterministic output. This change adds a sort to the NEEDED and NEEDED.ELF.2 files to remove a source of non-determinism when building binpkgs.

This change was cherry picked from:
https://chromium-review.googlesource.com/c/chromiumos/third_party/portage_tool/+/4018820/2/bin/misc-functions.sh

Bug: https://bugs.gentoo.org/914441

I've noticed that scalelf doesn't produce deterministic output. This
change adds a sort to the NEEDED and NEEDED.ELF.2 files to remove a
source of non-determinism when building binpkgs.

This change was cherry picked from:
https://chromium-review.googlesource.com/c/chromiumos/third_party/portage_tool/+/4018820/2/bin/misc-functions.sh

Bug: https://bugs.gentoo.org/914441
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Copy link
Member

@thesamesam thesamesam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eli-schwartz
Copy link
Member

eli-schwartz commented Apr 28, 2024

The change is conceptually a good idea. What about sorting the scanelf output on line 177 instead, though?

@eli-schwartz
Copy link
Member

Also commit message typo, "scalelf".

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.

4 participants