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

sonata: fix gsettings schemas #96622

Merged
merged 1 commit into from Aug 30, 2020
Merged

sonata: fix gsettings schemas #96622

merged 1 commit into from Aug 30, 2020

Conversation

gebner
Copy link
Member

@gebner gebner commented Aug 29, 2020

Motivation for this change

Otherwise you get the error

(sonata:13895): GLib-GIO-ERROR **: 18:57:32.491: No GSettings schemas are installed on the system
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 CONTRIBUTING.md.

@@ -16,7 +16,7 @@ in buildPythonApplication rec {

disabled = !isPy3k;

nativeBuildInputs = [ pkgconfig gettext ];
nativeBuildInputs = [ pkgconfig gettext glib ];
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be a buildInputs and a setup hook wrapGAppsHook should never be in buildInputs, but rather nativeBuildInputs.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

actually, the dependencies in here are very strange. gobject-introspection is propagated, but that isn't a python dependency. gobject-introspection should be native and gtk3 should be build.
It also uses pythonPath and propagatedBuildInputs, and for a python package I don't see why we couldn't just use pythonPath. Also note that gobject-introspection's setup-hook isn't working correctly here #56943, so you need to set strictDeps = false. Also reference the issue in a comment above that line.

Copy link
Member Author

Choose a reason for hiding this comment

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

glib is only used for the hooks here, that's why I put it in nativeBuildInputs. I had no idea what was going on. Thanks for pointing me to #56943, adding strictDeps worked!

Copy link
Contributor

Choose a reason for hiding this comment

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

@gebner That issue was for gobject-introspection setup-hook not being run with strictDeps. This probably worked because gtk3 propagates glib. I fixed up the things I noticed in 6de4b96

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.

None yet

3 participants