Skip to content

misc-functions.sh: Sort NEEDED and NEEDED.ELF.2#1317

Open
ismell wants to merge 1 commit intogentoo:masterfrom
ismell:needed
Open

misc-functions.sh: Sort NEEDED and NEEDED.ELF.2#1317
ismell wants to merge 1 commit intogentoo:masterfrom
ismell:needed

Conversation

@ismell
Copy link
Copy Markdown
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

Comment thread bin/misc-functions.sh Outdated
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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