ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.15k stars 58 forks source link

AUR package seems to be broken #385

Closed cptn-cosmo closed 4 months ago

cptn-cosmo commented 4 months ago

Please read through the README and the Man pages before submitting Please also make sure that there isn't any prior issue describing this bug

Describe the bug The AUR package seems to no longer work. Not sure if this is the correct location to report it, but since the AUR package is mentioned in the Readme it seemed not too wrong - bt if it is just close this issue of course.

To Reproduce Steps to reproduce the behavior: update swaync from the AUR package (1 aur/swaync 0.9.0-2 -> 0.10.0-1)

Expected behavior A clear and concise description of what you expected to happen. The package should build and upgrade.

Please provide logs if you're experiencing notification errors / bugs Attach Gists for swaync logs by running G_MESSAGES_DEBUG=all swaync and (if applicable) application logs.

==> Making package: swaync 0.10.0-1 (Di 13 Feb 2024 16:26:31 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found SwayNotificationCenter-0.10.0.tar.gz
==> Validating source files with sha256sums...
    SwayNotificationCenter-0.10.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting SwayNotificationCenter-0.10.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: swaync 0.10.0-1 (Di 13 Feb 2024 16:26:41 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D python.bytecompile=1 SwayNotificationCenter-0.10.0 build -Dscripting=true
The Meson build system
Version: 1.3.1
Source dir: /home/cosmo/.cache/yay/swaync/src/SwayNotificationCenter-0.10.0
Build dir: /home/cosmo/.cache/yay/swaync/src/build
Build type: native build
Project name: sway-notificaton-center
Project version: 0.10.0

SwayNotificationCenter-0.10.0/meson.build:1:0: ERROR: Compiler cc cannot compile programs.

A full log can be found at /home/cosmo/.cache/yay/swaync/src/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: swaync-exit status 4
[cosmo@prometheus ~]$ cat /home/cosmo/.cache/yay/swaync/src/build/meson-logs/meson-log.txt
Build started at 2024-02-13T16:26:42.391322
Main binary: /usr/bin/python
Build Options: -Db_pie=true -Dpython.bytecompile=1 -Dscripting=true -Dprefix=/usr -Dlibexecdir=lib -Dsbindir=bin -Dauto_features=enabled -Dbuildtype=plain -Dwrap_mode=nodownload
Python system: Linux
The Meson build system
Version: 1.3.1
Source dir: /home/cosmo/.cache/yay/swaync/src/SwayNotificationCenter-0.10.0
Build dir: /home/cosmo/.cache/yay/swaync/src/build
Build type: native build
Project name: sway-notificaton-center
Project version: 0.10.0
-----------
Detecting compiler via: `cc --version` -> 0
stdout:
cc (GCC) 13.2.1 20230801
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------
Running command: cc -E -dM -
-----
-----------
Detecting linker via: `cc -Wl,--version -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now, -fuse-ld=mold -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/cosmo/.cache/yay/swaync/src=/usr/src/debug/swaync -flto=auto` -> 0
stdout:
mold 2.4.0 (3d9b4d5c05250fa7c507b0c74038915929f990f1; compatible with GNU ld)
-----------
stderr:
collect2 version 13.2.1 20230801
/usr/bin/ld.mold -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccej4IOQ.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../.. --version -O1 --sort-common --as-needed -z relro -z now  -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/crtn.o
-----------
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g -ffile-prefix-map=/home/cosmo/.cache/yay/swaync/src=/usr/src/debug/swaync -flto=auto -D_FILE_OFFSET_BITS=64 -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now, -fuse-ld=mold
Sanity check compile stdout:

-----
Sanity check compile stderr:
/usr/include/c++/13.2.1/string_view:258: constexpr const std::basic_string_view<_CharT, _Traits>::value_type& std::basic_string_view<_CharT, _Traits>::operator[](size_type) const [with _CharT = char; _Traits = std::char_traits<char>; const_reference = const char&; size_type = long unsigned int]: Assertion '__pos < this->_M_len' failed.
collect2: fatal error: ld terminated with signal 6 [Aborted], core dumped
compilation terminated.

-----

SwayNotificationCenter-0.10.0/meson.build:1:0: ERROR: Compiler cc cannot compile programs.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information): Archlinux

Additional context Add any other context about the problem here.

Readf0x commented 4 months ago

The AUR package is maintained by someone else, ErikReider (the owner and active maintainer of swaync) has no authority over the PKGBUILD on the AUR. You should move this report over to the AUR package comments, that's the correct place to report something like this.

PS: This is a really easy mistake to make for someone new to Linux or Arch, so don't feel bad. PPS: I don't have perms to close this, so you'll have to do it yourself :P

ErikReider commented 4 months ago

The AUR package is maintained by someone else, ErikReider (the owner and active maintainer of swaync) has no authority over the PKGBUILD on the AUR. You should move this report over to the AUR package comments, that's the correct place to report something like this.

PS: This is a really easy mistake to make for someone new to Linux or Arch, so don't feel bad. PPS: I don't have perms to close this, so you'll have to do it yourself :P

Lol. I'm the owner of that package xD

As a first glance, it doesn't look like a swaync issue. Looks more like a setup issue?

I'll look into this tomorrow if I have any spare time :)

Readf0x commented 4 months ago

Lol. I'm the owner of that package xD

I probably should've checked lmao. Rookie mistake

cptn-cosmo commented 4 months ago

Yes, since the package maintainer seems to have been the same person I assumed this was the correct place for it :D

cptn-cosmo commented 4 months ago

It looks like it might have been an issue with mold (https://github.com/rui314/mold) instead, the package built correctly when i disabled mold. I will see about filing a bug report with mold instead.