-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
notify-osd no longer builds #15074
Comments
This is because
I've seen this several times now; I wonder if we should globally pass cc @vcunat |
I don't think |
So to be clear, the dbus_glib package has:
... so the pkgconfig file would need to refer to The GNU autoconf manual gives this explanation:
which is not very helpful (to me) in describing what it should actually mean; i.e. are the apps that do things like
mis-using the variable (that is what |
I suppose we should patch this single package, unless there are (many) others using |
I think the problem is that autotools uses many more variables (by default) than pkgconfig exposes in most packages (bindir, sbindir, libdir, includedir) When I came across this issue, I was thinking about submitting upstream patches to fix dbus-glib-1.pc to include the other used variables (mainly bindir) Setting exec_prefix to bindir will not fix all problems, because EPREFIX is used as a default for lib and libexec aswell. Another thought I had was to base our splits on the structure that's exposed by it's pkgconfig file (maybe with the exception of documentation..?) |
@dezgeg, @groxxda, I understand there is possibly a bigger issue at play here and it should be solved in a proper way, but I'm wondering if you could tell me the one off changes required to notify-osd specifically working here. I'm not up to speed on all the changes from the closure-size merge and can't seem to wrap my head around what is necessary. |
Without this notify-osd fails to find dbus-binding-tool, since the pkgconfig file would contain e.g.: ```` prefix=/nix/store/hxsbjbjn7g1j1cf60n228yi9wnzrl4yk-dbus-glib-0.104 exec_prefix=${prefix} ```` ... and notify-osd is using `exec_prefix` to locate the binaries. Set it to $dev to match the location of installed binaries (we have `outputBin = "dev";`). Issue #15074.
Heh, indeed too much talk and not enough action ;) I now pushed 367b2aa since it's not (yet) clear that the other alternative(s) would be any better/more. |
I confirm it builds on master. |
👍 thanks @dezgeg! |
Issue description
Compilation of
notify-osd
fails because it can't finddbus-binding-tool
.Steps to reproduce
nix-env -i notify-osd
Technical details
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)16.09pre82105.7465bcd (Flounder)
nix-env --version
)nix-env (Nix) 1.11.2
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)"16.09pre82105.7465bcd"
The text was updated successfully, but these errors were encountered: