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

python3Packages.pyelftools: 0.26 -> unstable-09-23 #99202

merged 1 commit into from Oct 1, 2020


Copy link

@Pamplemousse Pamplemousse commented Sep 30, 2020

Motivation for this change

Last tagged version (dating from 12/2019) lack of several patches produced recently.
And run the tests!

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits
Copy link

@jonringer jonringer commented Oct 1, 2020

@GrahamcOfBorg build esphome

Copy link
Member Author

@Pamplemousse Pamplemousse commented Oct 1, 2020

Mmmh, I thought you proposition fixed it, but nixpkgs-review still shows failures for platformio and esphome...
Investigating it.

Copy link

@jonringer jonringer commented Oct 1, 2020

the whole explanation, platformio passes our packages to mutliPkgs for buildFHSUserEnv, which means that a 32bit version is being built. However, the 32 vs 64 bit difference is causing it to fail in the scenario

And fix the tests.

Signed-off-by: Pamplemousse <>
Copy link

@jonringer jonringer left a comment


Result of nixpkgs-review pr 99202 1

9 packages built:
  • esphome
  • platformio
  • pwndbg
  • pwntools (python38Packages.pwntools)
  • python27Packages.pwntools
  • python27Packages.pyelftools
  • python37Packages.pwntools
  • python37Packages.pyelftools
  • python38Packages.pyelftools

@jonringer jonringer merged commit af27072 into NixOS:master Oct 1, 2020
2 of 3 checks passed
Copy link
Member Author

@Pamplemousse Pamplemousse commented Oct 1, 2020

@jonringer Thanks!

For the record, I considered using the readelf from nixpkgs but here is a comment in the test file upstream:

Set the path for calling readelf. We carry our own version of readelf around, because binutils tend to change its output even between daily builds of the same minor release and keeping track is a headache.

So in the end, using a different version than their "hardcoded" one will probably trigger a lot of test failures.

@Pamplemousse Pamplemousse deleted the pyelftools branch Oct 1, 2020
Pamplemousse added a commit to angr/nixpkgs that referenced this issue Oct 1, 2020
Because a latest version has been added to `nixpkgs`;
See NixOS/nixpkgs#99202.

Signed-off-by: Pamplemousse <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants