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

stage-1 find-libs: initialise left to empty array #96259

Merged
merged 1 commit into from Aug 25, 2020

Conversation

lheckemann
Copy link
Member

Motivation for this change

declare -a is not sufficient to make the array variable actually
exist, which resulted in the script failing when the target object did
not have any DT_NEEDED entries. This in turn resulted in some
initramfs libraries not having their rpaths patched to point to
extra-utils, which in turn broke the extra-utils tests.

cc @vcunat who pointed this out

Things done
  • Tested building iso_minimal, which was failing before (nix-build nixos/release.nix -A iso_minimal.x86_64-linux)
  • Fits CONTRIBUTING.md.

declare -a is not sufficient to make the array variable actually
exist, which resulted in the script failing when the target object did
not have any DT_NEEDED entries. This in turn resulted in some
initramfs libraries not having their rpaths patched to point to
extra-utils, which in turn broke the extra-utils tests.
@lheckemann lheckemann added the 1.severity: channel blocker Blocks a channel label Aug 25, 2020
@lheckemann
Copy link
Member Author

@ofborg test boot

Copy link
Member

@vcunat vcunat left a comment

Choose a reason for hiding this comment

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

I see, thanks. Works for me locally.

It's interesting that indexing an associative array (seen) does pass even before it "exists".

@vcunat vcunat merged commit 4f157f4 into NixOS:master Aug 25, 2020
@lheckemann lheckemann deleted the fix-extra-utils branch August 25, 2020 11:00
@vcunat
Copy link
Member

vcunat commented Aug 25, 2020

Sadly, that extra-utils build still failing on Hydra due to #96197.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants