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

udiskie: fix build #56783

Merged
merged 2 commits into from Mar 4, 2019
Merged

udiskie: fix build #56783

merged 2 commits into from Mar 4, 2019

Conversation

dotlambda
Copy link
Member

Motivation for this change

It was broken by b4acd97.
Fixes #56771.

I'm not sure I know enough about GTK to determine which dependencies belong where. Feedback is welcome.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nox --run "nox-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

cc @teto

It was broken by b4acd97.
Fixes NixOS#56771.
Copy link
Member

@AndersonTorres AndersonTorres left a comment

Choose a reason for hiding this comment

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

LGTM!

librsvg # required for loading svg icons (udiskie uses svg icons)
gobject-introspection
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
gobject-introspection

Copy link
Member Author

Choose a reason for hiding this comment

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

That yields

$ udiskie -t &
Typelib for 'libnotify' is not available. Possible causes include:
	- libnotify is not installed
	- the typelib is provided by a separate package
	- libnotify was built with introspection disabled

Starting udiskie without notifications.
Typelib for 'Gtk 3.0' is not available. Possible causes include:
	- GTK3 is not installed
	- the typelib is provided by a separate package
	- GTK3 was built with introspection disabled
Starting udiskie without tray icon.

That's why I put it in both.

Copy link
Contributor

Choose a reason for hiding this comment

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

Weird, I would expect setup hooks to work front nativeBuildInputs even with strictDeps.

@worldofpeace
Copy link
Contributor

We have python-dbusmock so maybe enable the tests?

@teto
Copy link
Member

teto commented Mar 4, 2019

Binaries seem to work and it builds so fine by me. Thanks !

@xeji xeji merged commit 981ce34 into NixOS:master Mar 4, 2019
@xeji
Copy link
Contributor

xeji commented Mar 4, 2019

@dotlambda It does not seem broken on 19.03: https://hydra.nixos.org/job/nixos/release-19.03/nixpkgs.udiskie.x86_64-linux/all - should we backport anyway?

@dotlambda
Copy link
Member Author

@dotlambda It does not seem broken on 19.03: https://hydra.nixos.org/job/nixos/release-19.03/nixpkgs.udiskie.x86_64-linux/all - should we backport anyway?

It's broken on staging-19.03. I'll do the backport.

@colonelpanic8
Copy link
Contributor

@dotlambda I'm not 100% sure about this, but can you explain why you moved libappindicator-gtk3 out of the propagated build inputs. My recollection is that the appindicator functionality does not work without it being there

@jtojnar
Copy link
Contributor

jtojnar commented Mar 6, 2019

propagatedBuildInputs are not of any use for applications (ignoring Python dependencies). Appindicator is actually used through typelib picked up by gobject-introspection.

@dotlambda
Copy link
Member Author

As stated above,

I'm not sure I know enough about GTK to determine which dependencies belong where.

I simply moved all non-Python dependencies out of propagatedBuildInputs.

@dotlambda dotlambda deleted the udiskie-fix branch March 21, 2019 09:31
@samueldr samueldr removed the 9.needs: port to stable A PR needs a backport to the stable release. label Apr 16, 2019
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.

udiskie doesn't build on nixos-unstable
9 participants