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

[NixOS-17.09] Fix graphite crash by upgrading from 0.9.15 -> 1.0.2 #30277

Merged

Conversation

basvandijk
Copy link
Member

This is a cherry-pick of #30166 on release-17.09. The test nix-build nixos/release.nix -A tests.graphite succeeds.

It would be great if both PRs could be merged.

Fixes: NixOS#29961

Also added the option:

  services.graphite.web.extraConfig

for configuring graphite_web.
@peti peti merged commit 4581ac2 into NixOS:release-17.09 Oct 18, 2017
};
propagatedBuildInputs = with self; [ django ];
propagatedBuildInputs = with self; [ django_1_8 ];
Copy link
Member

Choose a reason for hiding this comment

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

@basvandijk this is incorrect; we don't depend on specific versions. Instead, when you need this package with this version of Django the package set needs to be overridden. Can you open a PR with a fix?

Copy link
Member Author

Choose a reason for hiding this comment

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

@FRidh I see your point. I see that we only use django_tagging_0_4_3 inside graphite_web so what about remove that attribute altogether and doing the override locally in graphite_web like: master...LumiGuide:django_tagging-0.4.3_refactor ?

Copy link
Member

Choose a reason for hiding this comment

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

What if I then do python.withPackages(ps: with ps; [ graphite_web django_tagging ]). Then I'll get two versions of django_tagging in a closure. We can't have that!

The only solution to picking the correct versions is overriding the package set, e.g. python.override { packageOverrides = super: self: { }; }

Copy link
Member Author

Choose a reason for hiding this comment

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

@FRidh good point. Will you be at NixCon this weekend? If so, it would be cool if you could explain to me how to accomplish this.

basvandijk pushed a commit to LumiGuide/nixpkgs that referenced this pull request Nov 4, 2017
instead of depending on specific versions in the django_tagging_0_4_3
and graphite_web derivations.

This should fix: NixOS#30277 (comment)

This was joint work of @basvandijk and @layus at NixCon 2017.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants