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

arm-trusted-firmware: remove version parameter #185004

Merged
merged 1 commit into from Aug 13, 2022
Merged

arm-trusted-firmware: remove version parameter #185004

merged 1 commit into from Aug 13, 2022

Conversation

ghost
Copy link

@ghost ghost commented Aug 3, 2022

Description of changes

The arm-trusted-firmware/default.nix expression exposes buildArmTrustedFirmware and its version?"2.7" field to top-level/all-packages.nix.` Unfortunately it doesn't work. Changing the version field doesn't change what version of the ATF source code is used. Attempting to "lock" an installation to a specific version by overriding this field (e.g. version="2.7") won't work either; when nixpkgs bumps the version to 2.8 the user will end
up building the 2.8 source code but the resulting expression will be labeled misleadingly in the store:

/nix/store/eeee...-arm-trusted-firmware-2.7/

using the 2.8 source code. So not only does version not lock
the version, it will actually conceal the fact that the underlying
source code has been upgraded!

Let's just remove the version field. It doesn't work and never did.

Things done
  • Built on platform(s)
    • aarch64-linux (cross from x86_64-linux)
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

squash merge

@ghost ghost requested a review from SuperSandro2000 August 4, 2022 22:06
@ghost

This comment was marked as outdated.

@ghost ghost marked this pull request as draft August 6, 2022 20:33
@ghost ghost marked this pull request as ready for review August 6, 2022 20:33
@ghost ghost changed the title arm-trusted-firmware: prevent dangerous version mixups arm-trusted-firmware: remove version parameter Aug 7, 2022
@ghost ghost requested a review from SuperSandro2000 August 7, 2022 02:04
@ghost ghost requested a review from SuperSandro2000 August 7, 2022 22:36
@ghost
Copy link
Author

ghost commented Aug 13, 2022

Squashed.

The arm-trusted-firmware/default.nix expression exposes
`buildArmTrustedFirmware` and its `version?"2.7"` field to
`top-level/all-packages.nix`.  Unfortunately it doesn't work.
Changing the version field doesn't change what version of the ATF
source code is used.  Attempting to "lock" an installation to a
specific version by overriding this field (e.g. version="2.7") won't
work either; when nixpkgs bumps the version to 2.8 the user will end
up building the 2.8 source code but the resulting expression will be
labeled misleadingly in the store:

```
  /nix/store/eeee...-arm-trusted-firmware-2.7/
```

**using the 2.8 source code**.  So not only does `version` not lock
the version, it will actually *conceal* the fact that the underlying
source code has been upgraded!

Let's just remove the `version` field.  It doesn't work and never did.

#185004 (comment)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
@SuperSandro2000 SuperSandro2000 merged commit d54c213 into NixOS:master Aug 13, 2022
@ghost ghost deleted the pr/atf/prevent-version-mixup branch August 13, 2022 22:24
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.

1 participant