Package Details: swaync 0.10.1-1

Git Clone URL: https://aur.archlinux.org/swaync.git (read-only, click to copy)
Package Base: swaync
Description: A simple notification daemon with a GTK panel for checking previous notifications like other DEs
Upstream URL: https://github.com/ErikReider/SwayNotificationCenter
Licenses: GPL3
Conflicts: swaync, swaync-client
Provides: notification-daemon, swaync, swaync-client
Submitter: ErikR
Maintainer: ErikR
Last Packager: ErikR
Votes: 28
Popularity: 2.23
First Submitted: 2022-01-08 23:27 (UTC)
Last Updated: 2024-03-09 18:26 (UTC)

Required by (37)

Sources (1)

Latest Comments

1 2 Next › Last »

rory commented on 2024-04-09 08:52 (UTC)

oops, embarassing, I feel like I called customer support before checking if the computer is plugged in ;) thanks a lot, that worked!

sobh commented on 2024-04-04 10:58 (UTC) (edited on 2024-04-04 10:58 (UTC) by sobh)

Run

pacman -Syu

rory commented on 2024-03-26 13:49 (UTC) (edited on 2024-03-26 13:52 (UTC) by rory)

Hi! for me the package doesn't build. this happens for several lines, here is one example:

[8/47] Compiling Vala source ../SwayNotificati...nter-0.10.1/src/client.vala src/constants.val
FAILED: src/swaync-client.p/client.c src/swaync-client.p/constants.c 
valac -C --enable-gobject-tracing --enable-checking -D WANT_SCRIPTING -D HAVE_PULSE_AUDIO --pkg libpulse-mainloop-glib --pkg libpulse --pkg gee-0.8 --pkg posix --pkg gtk-layer-shell-0 --pkg granite --pkg libhandy-1 --pkg json-glib-1.0 --pkg gtk+-3.0 --pkg gio-unix-2.0 --pkg gio-2.0 --color=always --directory src/swaync-client.p --basedir ../SwayNotificationCenter-0.10.1/src --target-glib=2.50 --pkg=GtkLayerShell-0.1 ../SwayNotificationCenter-0.10.1/src/client.vala src/constants.vala
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `Gio-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `GModule-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `Gio-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `Gio-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `GObject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 8 error(s), 0 warning(s)

stas-t commented on 2024-03-09 21:07 (UTC) (edited on 2024-03-09 22:13 (UTC) by stas-t)

Hi ErikR!

Your package was pulled as a dependency of awesome-gnome when I updated my system today. At first I was surprised because (a) I didn't update awesome-gnome recently and (b) swaync requires Wayland session so it won't even start.

After a closer look I realized that swaync was pulled because it provides notification-daemon as a dependency of awesome-gnome.

Do you have any suggestion how to prevent this other than dropping the dependency?

PS: I'm planning to switch to sway some day and swaync looks awesome (pun intended ;)) so I'll be glad to use it!

murlakatamenka commented on 2024-02-24 04:35 (UTC) (edited on 2024-02-24 04:40 (UTC) by murlakatamenka)

It doesn't build with Clang + mold for me, adding

build() {
  export CC=gcc
  export GCC=g++

  # ...
}

= success. Version = 0.10.0.


So maybe GCC should be explicit makedep + CC/CXX override?

slonkazoid commented on 2023-10-15 11:11 (UTC)

Doesn't compile with lld, tried with Clang 16 and GCC 13, in 2 devices, and a clean chroot. Does compile with mold or ld.

Output with GCC:

[10/42] Linking target src/swaync-client
FAILED: src/swaync-client
cc  -o src/swaync-client src/swaync-client.p/meson-generated_client.c.o src/swaync-client.p/meson-generated_constants.c.o -flto -Wl,--as-needed -Wl,--no-undefined -pie -fuse-ld=lld -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wl,--start-group /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libz.so /usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libharfbuzz.so /usr/lib/libatk-1.0.so /usr/lib/libcairo-gobject.so /usr/lib/libcairo.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libjson-glib-1.0.so /usr/lib/libhandy-1.so -lgtk-layer-shell -lm /usr/lib/libgee-0.8.so /usr/lib/libpulse.so -pthread /usr/lib/libpulse-mainloop-glib.so -Wl,--end-group
ld.lld: error: undefined symbol: main
>>> referenced by /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/Scrt1.o:(_start)
collect2: error: ld returned 1 exit status
[11/42] Compiling Vala source ../SwayNotificationCenter-0....ficationCenter-0.9.0/src/functions.vala src/constants.vala
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

Output with Clang:

[20/42] Compiling C object src/swaync.p/meson-generated_configModel_configModel.c.o
FAILED: src/swaync.p/meson-generated_configModel_configModel.c.o
cc -Isrc/swaync.p -Isrc -I../SwayNotificationCenter-0.9.0/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/json-glib-1.0 -I/usr/include/libhandy-1 -I/usr/include/gee-0.8 -flto -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -w -Wno-error=int-conversion -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIE -pthread -D_REENTRANT -MD -MQ src/swaync.p/meson-generated_configModel_configModel.c.o -MF src/swaync.p/meson-generated_configModel_configModel.c.o.d -o src/swaync.p/meson-generated_configModel_configModel.c.o -c src/swaync.p/configModel/configModel.c
src/swaync.p/configModel/configModel.c:2109:28: error: incompatible function pointer types assigning to 'JsonNode *(*)(JsonSerializable *, const gchar *, const GValue *, GParamSpec *)' (aka 'struct _JsonNode *(*)(struct _JsonSerializable *, const char *, const struct _GValue *, struct _GParamSpec *)') from 'JsonNode *(*)(JsonSerializable *, const gchar *, GValue *, GParamSpec *)' (aka 'struct _JsonNode *(*)(struct _JsonSerializable *, const char *, struct _GValue *, struct _GParamSpec *)') [-Wincompatible-function-pointer-types]
        iface->serialize_property = (JsonNode* (*) (JsonSerializable*, const gchar*, GValue*, GParamSpec*)) sway_notification_center_notification_matching_real_serialize_property;
                                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/swaync.p/configModel/configModel.c:6111:28: error: incompatible function pointer types assigning to 'JsonNode *(*)(JsonSerializable *, const gchar *, const GValue *, GParamSpec *)' (aka 'struct _JsonNode *(*)(struct _JsonSerializable *, const char *, const struct _GValue *, struct _GParamSpec *)') from 'JsonNode *(*)(JsonSerializable *, const gchar *, GValue *, GParamSpec *)' (aka 'struct _JsonNode *(*)(struct _JsonSerializable *, const char *, struct _GValue *, struct _GParamSpec *)') [-Wincompatible-function-pointer-types]
        iface->serialize_property = (JsonNode* (*) (JsonSerializable*, const gchar*, GValue*, GParamSpec*)) sway_notification_center_config_model_real_serialize_property;
                                  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[26/42] Compiling C object src/swaync.p/meson-generated_controlCenter_widgets_volume_pulseDaemon.c.o
FAILED: src/swaync.p/meson-generated_controlCenter_widgets_volume_pulseDaemon.c.o
cc -Isrc/swaync.p -Isrc -I../SwayNotificationCenter-0.9.0/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/json-glib-1.0 -I/usr/include/libhandy-1 -I/usr/include/gee-0.8 -flto -fcolor-diagnostics -D_FILE_OFFSET_BITS=64 -w -Wno-error=int-conversion -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIE -pthread -D_REENTRANT -MD -MQ src/swaync.p/meson-generated_controlCenter_widgets_volume_pulseDaemon.c.o -MF src/swaync.p/meson-generated_controlCenter_widgets_volume_pulseDaemon.c.o.d -o src/swaync.p/meson-generated_controlCenter_widgets_volume_pulseDaemon.c.o -c src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:831:46: error: incompatible function pointer types passing 'void (pa_context *, pa_server_info *, gpointer)' (aka 'void (struct pa_context *, struct pa_server_info *, void *)') to parameter of type 'pa_server_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_server_info *, void *)') [-Wincompatible-function-pointer-types]
                        _tmp3_ = pa_context_get_server_info (ctx, _sway_notification_center_widgets_pulse_daemon_get_server_info_pa_server_info_cb_t, self);
                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:458:77: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_server_info(pa_context *c, pa_server_info_cb_t cb, void *userdata);
                                                                            ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:964:57: error: incompatible function pointer types passing 'void (pa_context *, pa_sink_input_info *, gint, gpointer)' (aka 'void (struct pa_context *, struct pa_sink_input_info *, int, void *)') to parameter of type 'pa_sink_input_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_sink_input_info *, int, void *)') [-Wincompatible-function-pointer-types]
                                        _tmp0_ = pa_context_get_sink_input_info_list (ctx, _sway_notification_center_widgets_pulse_daemon_get_sink_input_info_pa_sink_input_info_cb_t, self);
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:674:90: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_sink_input_info_list(pa_context *c, pa_sink_input_info_cb_t cb, void *userdata);
                                                                                         ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:1022:63: error: incompatible function pointer types passing 'void (pa_context *, pa_sink_info *, gint, gpointer)' (aka 'void (struct pa_context *, struct pa_sink_info *, int, void *)') to parameter of type 'pa_sink_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_sink_info *, int, void *)') [-Wincompatible-function-pointer-types]
                                        _tmp10_ = pa_context_get_sink_info_by_index (ctx, index, _sway_notification_center_widgets_pulse_daemon_get_sink_info_pa_sink_info_cb_t, self);
                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:301:96: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_sink_info_by_index(pa_context *c, uint32_t idx, pa_sink_info_cb_t cb, void *userdata);
                                                                                               ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:1098:63: error: incompatible function pointer types passing 'void (pa_context *, pa_card_info *, gint, gpointer)' (aka 'void (struct pa_context *, struct pa_card_info *, int, void *)') to parameter of type 'pa_card_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_card_info *, int, void *)') [-Wincompatible-function-pointer-types]
                                        _tmp27_ = pa_context_get_card_info_by_index (ctx, index, _sway_notification_center_widgets_pulse_daemon_get_card_info_pa_card_info_cb_t, self);
                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:622:96: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_card_info_by_index(pa_context *c, uint32_t idx, pa_card_info_cb_t cb, void *userdata);
                                                                                               ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:1158:47: error: incompatible function pointer types passing 'void (pa_context *, pa_server_info *, gpointer)' (aka 'void (struct pa_context *, struct pa_server_info *, void *)') to parameter of type 'pa_server_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_server_info *, void *)') [-Wincompatible-function-pointer-types]
                        _tmp41_ = pa_context_get_server_info (ctx, _sway_notification_center_widgets_pulse_daemon_get_server_info_pa_server_info_cb_t, self);
                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:458:77: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_server_info(pa_context *c, pa_server_info_cb_t cb, void *userdata);
                                                                            ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:1206:47: error: incompatible function pointer types passing 'void (pa_context *, pa_card_info *, gint, gpointer)' (aka 'void (struct pa_context *, struct pa_card_info *, int, void *)') to parameter of type 'pa_card_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_card_info *, int, void *)') [-Wincompatible-function-pointer-types]
        _tmp5_ = pa_context_get_card_info_list (ctx, _sway_notification_center_widgets_pulse_daemon_get_card_info_pa_card_info_cb_t, self);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:628:78: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_card_info_list(pa_context *c, pa_card_info_cb_t cb, void *userdata);
                                                                             ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:1209:47: error: incompatible function pointer types passing 'void (pa_context *, pa_sink_info *, gint, gpointer)' (aka 'void (struct pa_context *, struct pa_sink_info *, int, void *)') to parameter of type 'pa_sink_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_sink_info *, int, void *)') [-Wincompatible-function-pointer-types]
        _tmp7_ = pa_context_get_sink_info_list (ctx, _sway_notification_center_widgets_pulse_daemon_get_sink_info_pa_sink_info_cb_t, self);
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:304:78: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_sink_info_list(pa_context *c, pa_sink_info_cb_t cb, void *userdata);
                                                                             ^
src/swaync.p/controlCenter/widgets/volume/pulseDaemon.c:1242:54: error: incompatible function pointer types passing 'void (pa_context *, pa_sink_input_info *, gint, gpointer)' (aka 'void (struct pa_context *, struct pa_sink_input_info *, int, void *)') to parameter of type 'pa_sink_input_info_cb_t' (aka 'void (*)(struct pa_context *, const struct pa_sink_input_info *, int, void *)') [-Wincompatible-function-pointer-types]
        _tmp17_ = pa_context_get_sink_input_info_list (ctx, _sway_notification_center_widgets_pulse_daemon_get_sink_input_info_pa_sink_input_info_cb_t, self);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/pulse/introspect.h:674:90: note: passing argument to parameter 'cb' here
pa_operation* pa_context_get_sink_input_info_list(pa_context *c, pa_sink_input_info_cb_t cb, void *userdata);
                                                                                         ^
8 errors generated.
[33/42] Compiling C object src/swaync.p/meson-generated_controlCenter_widgets_menubar_menubar.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

Should I report this on the GitHub?

setpill commented on 2023-03-03 20:35 (UTC)

Why does this package conflict with itself?

ErikR commented on 2023-02-28 10:36 (UTC)

@jonas-w fixed :)

jonas-w commented on 2023-02-25 11:09 (UTC)

mhm you're right @ErikR, seems to be only blueman-git.

Nevertheless https://archlinux.org/packages/?q=notification-daemon 8 packages do provide notification-daemon e.g. dunst, xfce4-notifyd, mate-notification-daemon, etc. And maybe it would be possible that swaync could add an "provides" for notification-daemon, idk if this is possible, but would be cool.

ErikR commented on 2023-01-14 20:43 (UTC)

@jonas-w you mean as in the arch package named "notification-daemon"? When searching, it looks like blueman doesn't depend on any notification daemons...