dunst icon indicating copy to clipboard operation
dunst copied to clipboard

dunst fails to build on OpenIndiana

Open willbprog127 opened this issue 3 years ago • 5 comments

dunst has been my go-to notification system on Linux for a long time now, but I'm also using OpenIndiana, and dunst is painfully Linux-only.

Here is my progress on building on OpenIndiana. I have tried dunst version 1.9.0 and also latest git and same issues:

$ PREFIX=/usr SYSTEMD=0 WAYLAND=0 gmake

sed "s|##SYSCONFDIR##|/usr/etc/xdg|" docs/dunst.1.pod | pod2man --name=dunst -c "Dunst Reference" --section=1 --release="1.9.0 (2022-06-27)" > docs/dunst.1
/bin/sh: pod2man: not found [No such file or directory]
gmake: *** [Makefile:110: docs/dunst.1] Error 127
  • Change pod2man path in config.mk to /usr/perl5/5.34/bin/pod2man

$ PREFIX=/usr SYSTEMD=0 WAYLAND=0 gmake

src/input.c:7:10: fatal error: linux/input-event-codes.h: No such file or directory
 #include <linux/input-event-codes.h>
  • Find input-event-codes.h on net and put into src folder

  • Change input.c to #include "input-event-codes.h"

  • Same error in x11/x.c so changed to #include "../input-event-codes.h"

  • Build appears to finish successfully

$ sudo PREFIX=/usr SYSTEMD=0 WAYLAND=0 gmake install

install -Dm755 dunst /usr/bin/dunst
find: stat() error /usr/bin/dunst: No such file or directory
find: cycle detected for /lib/secure/32/
find: cycle detected for /lib/32/
find: cycle detected for /lib/openssl/default/32/
find: cycle detected for /lib/crypto/32/
find: cycle detected for /usr/lib/lwp/32/
find: cycle detected for /usr/lib/link_audit/32/
find: cycle detected for /usr/lib/32/
find: cycle detected for /usr/lib/secure/32/
find: cycle detected for /usr/lib/elfedit/32/
install: -Dm755 was not found anywhere!
gmake: *** [Makefile:187: install-dunst] Error 2

I give up at this point. Any suggestions?

Thank you! 👍

willbprog127 avatar Jul 22 '22 18:07 willbprog127

It seems like you don't have an 'install' command. Is there an equivalent for openIndiana?

fwsmit avatar Jul 22 '22 21:07 fwsmit

Patches for better OS compatibility are welcome

fwsmit avatar Jul 22 '22 21:07 fwsmit

@fwsmit Thanks for the comment.

$ install
usage: install [options] file [dir1 ...]

Seems to be working...? Maybe the options are different compared to Linux?

https://illumos.org/man/8/install

Patches for better OS compatibility are welcome

Yes, I'm sure they are, but I am no expert on OpenIndiana :-) I will try when I get 'settled', trying to help customers and work out the sharp edges in OI. Thank you! 👍

willbprog127 avatar Jul 22 '22 21:07 willbprog127

recently we merged #1288 which should help in this case

bynect avatar Apr 26 '24 20:04 bynect

recently we merged #1288 which should help in this case

Thank you! I've not used OpenIndiana in a long time but it's good to know things are moving in the right direction. :+1:

willbprog127 avatar Apr 26 '24 22:04 willbprog127