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

http-parser: fix i686 build #172866

Merged
merged 1 commit into from
May 14, 2022
Merged

Conversation

KamilaBorowska
Copy link
Member

@KamilaBorowska KamilaBorowska commented May 13, 2022

Description of changes

The patch that fixed build on aarch32 (#158419) doesn't work on x86 because x86 has 4 byte alignment for 64-bit integers.

ZHF: #172160

@NixOS/nixos-release-managers

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • 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.

but this means that the patch will rot over time because i686/aarch32 is usually not tested when updating packages.

pkgs/development/libraries/http-parser/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/http-parser/default.nix Outdated Show resolved Hide resolved
@willcohen
Copy link
Contributor

I'm not sure what the right solution is here. It seems like that patch is already rotting a little over time: nodejs/http-parser#526.

There is a case to be made that, given the general lack of upstream development, the "cleanest" path is to just only enable it when it's needed, since there's no clear upstream resolution for how to address the patch's own edge cases and failures on other architectures.

@KamilaBorowska
Copy link
Member Author

KamilaBorowska commented May 13, 2022

but this means that the patch will rot over time because i686/aarch32 is usually not tested when updating packages.

It's worth noting that in this case I updated the package because https://zh.fail/ listed it as having 28 dependents. Also, I doubt that this patch would break with later updates of http-parser package because it's officially deprecated and unlikely to have updates (nodejs/http-parser#522).

@ofborg build pkgsi686Linux.http-parser

@SuperSandro2000
Copy link
Member

We probably want to target staging-next here.

@KamilaBorowska KamilaBorowska changed the base branch from master to staging-next May 13, 2022 21:14
@KamilaBorowska
Copy link
Member Author

@ofborg build pkgsi686Linux.http-parser

@ofborg ofborg bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild 10.rebuild-linux-stdenv This PR causes stdenv to rebuild 8.has: clean-up 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 5001+ labels May 13, 2022
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.

4 participants