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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

bin/misc-functions.sh Outdated Show resolved Hide resolved
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 <[email protected]>
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