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

python-cffi: fix test failures when using clang #29471

Merged
merged 1 commit into from Sep 16, 2017
Merged

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Sep 16, 2017

Motivation for this change

Should unblock nixpkgs-unstable, since nox depends on cffi.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • 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 nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@LnL7 LnL7 added 6.topic: darwin Running or building packages on Darwin 9.needs: port to stable A PR needs a backport to the stable release. labels Sep 16, 2017
@LnL7 LnL7 requested a review from FRidh September 16, 2017 14:36
@FRidh
Copy link
Member

FRidh commented Sep 16, 2017

Thanks. Will you backport to stable if needed?

@FRidh FRidh merged commit 8c4f230 into NixOS:master Sep 16, 2017
@LnL7 LnL7 deleted the cffi-clang branch September 16, 2017 14:41
@@ -13,15 +13,14 @@ if isPyPy then null else buildPythonPackage rec {
propagatedBuildInputs = [ libffi pycparser ];
buildInputs = [ pytest ];

patchPhase = ''
substituteInPlace testing/cffi0/test_ownlib.py --replace "gcc" "cc"
Copy link
Member

Choose a reason for hiding this comment

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

ohh, only see just now that this is removed. Not so sure about that. Will also cause quite a rebuild.

Copy link
Member Author

Choose a reason for hiding this comment

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

pretty sure the NIX_CFLAGS_COMPILE attribute also causes a rebuild

Copy link
Member

Choose a reason for hiding this comment

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

even when optional? Hmm, yea I think you're right.

@LnL7 LnL7 added the 8.has: port to stable A PR already has a backport to the stable release. label Sep 16, 2017
@samueldr samueldr removed the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin 8.has: port to stable A PR already has a backport to the stable release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants