From 90aaefb7e6904dc86c183fd9f7c51c1ff4b38721 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Tue, 23 Jun 2026 16:24:02 +0800 Subject: dunst: fix build --- repos/extra/dunst/.files | 21 +++------------------ repos/extra/dunst/.shasum | 1 + repos/extra/dunst/abuild | 8 ++++---- repos/extra/dunst/fix-build.patch | 24 ++++++++++++++++++++++++ 4 files changed, 32 insertions(+), 22 deletions(-) create mode 100644 repos/extra/dunst/fix-build.patch diff --git a/repos/extra/dunst/.files b/repos/extra/dunst/.files index e02ebf04..dc52ffa2 100644 --- a/repos/extra/dunst/.files +++ b/repos/extra/dunst/.files @@ -1,26 +1,16 @@ drwxr-xr-x root/root etc/ drwxr-xr-x root/root etc/xdg/ drwxr-xr-x root/root etc/xdg/dunst/ --rw-r--r-- root/root etc/xdg/dunst/dunstrc.new +-rw-rw-r-- root/root etc/xdg/dunst/dunstrc.new drwxr-xr-x root/root usr/ drwxr-xr-x root/root usr/bin/ -rwxr-xr-x root/root usr/bin/dunst --rwxr-xr-x root/root usr/bin/dunstctl +-rwxrwxr-x root/root usr/bin/dunstctl -rwxr-xr-x root/root usr/bin/dunstify drwxr-xr-x root/root usr/share/ -drwxr-xr-x root/root usr/share/bash-completion/ -drwxr-xr-x root/root usr/share/bash-completion/completions/ --rw-r--r-- root/root usr/share/bash-completion/completions/dunst --rw-r--r-- root/root usr/share/bash-completion/completions/dunstctl --rw-r--r-- root/root usr/share/bash-completion/completions/dunstify drwxr-xr-x root/root usr/share/dbus-1/ drwxr-xr-x root/root usr/share/dbus-1/services/ --rw-r--r-- root/root usr/share/dbus-1/services/dunst.service -drwxr-xr-x root/root usr/share/fish/ -drwxr-xr-x root/root usr/share/fish/vendor_completions.d/ --rw-r--r-- root/root usr/share/fish/vendor_completions.d/dunst.fish --rw-r--r-- root/root usr/share/fish/vendor_completions.d/dunstctl.fish --rw-r--r-- root/root usr/share/fish/vendor_completions.d/dunstify.fish +-rw-rw-r-- root/root usr/share/dbus-1/services/dunst.service drwxr-xr-x root/root usr/share/man/ drwxr-xr-x root/root usr/share/man/man1/ -rw-r--r-- root/root usr/share/man/man1/dunst.1.gz @@ -28,8 +18,3 @@ drwxr-xr-x root/root usr/share/man/man1/ -rw-r--r-- root/root usr/share/man/man1/dunstify.1.gz drwxr-xr-x root/root usr/share/man/man5/ -rw-r--r-- root/root usr/share/man/man5/dunst.5.gz -drwxr-xr-x root/root usr/share/zsh/ -drwxr-xr-x root/root usr/share/zsh/site-functions/ --rw-r--r-- root/root usr/share/zsh/site-functions/_dunst --rw-r--r-- root/root usr/share/zsh/site-functions/_dunstctl --rw-r--r-- root/root usr/share/zsh/site-functions/_dunstify diff --git a/repos/extra/dunst/.shasum b/repos/extra/dunst/.shasum index c04a22ce..f4a4ddf1 100644 --- a/repos/extra/dunst/.shasum +++ b/repos/extra/dunst/.shasum @@ -1 +1,2 @@ 15cac79373386b6ffa8bceb4ef6c89c61a09be27631eea3f6865684a dunst-1.13.2.tar.gz +110f404a6ae1dc65146c21c9996327e765ab9dd945d6faf1a1bf11cf fix-build.patch diff --git a/repos/extra/dunst/abuild b/repos/extra/dunst/abuild index fb02a6d3..a8b659f8 100644 --- a/repos/extra/dunst/abuild +++ b/repos/extra/dunst/abuild @@ -1,6 +1,6 @@ name=dunst version=1.13.2 -release=1 -source="https://github.com/$name-project/$name/archive/v$version/$name-$version.tar.gz" -[ -f $SPM_PKGDB/libx11 ] || export X11=0 -[ -f $SPM_PKGDB/wayland ] || export WAYLAND=0 +release=2 +source="https://github.com/$name-project/$name/archive/v$version/$name-$version.tar.gz + fix-build.patch" +build_opt="-Dcompletions=false" diff --git a/repos/extra/dunst/fix-build.patch b/repos/extra/dunst/fix-build.patch new file mode 100644 index 00000000..9f712c61 --- /dev/null +++ b/repos/extra/dunst/fix-build.patch @@ -0,0 +1,24 @@ +--- a/meson.build ++++ b/meson.build +@@ -51,7 +51,6 @@ + gdk_pixbuf, + pangocairo, + systemd, +- libnotify, + realtime, + math, + ] +--- a/dunstify.c ++++ b/dunstify.c +@@ -9,6 +9,11 @@ + * @license BSD-3-Clause + */ + ++/* System libnotify.pc defines G_LOG_DOMAIN=libnotify without quotes, ++ * which breaks glib assertion macros. Must be fixed before any includes. */ ++#undef G_LOG_DOMAIN ++#define G_LOG_DOMAIN "libnotify" ++ + #include + #include + #include -- cgit v1.2.3