ErikReider / SwayNotificationCenter

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

Unmet dependencies #5

Closed trbjo closed 3 years ago

trbjo commented 3 years ago

Could you list the needed dependencies more explicitly?

The AUR package fails to build for me.

$ yay -S swaync-git
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  swaync-git-0.1.r70.f344600-1

  1 swaync-git                       (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): swaync-git
  1 swaync-git                       (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: swaync-git
==> Making package: swaync-git 0.1.r70.f344600-1 (Sat 31 Jul 2021 03:30:35 PM CEST)
==> Retrieving sources...
  -> Updating SwayNotificationCenter git repo...
Fetching origin
==> Validating source files with sha256sums...
    SwayNotificationCenter ... Skipped
==> Making package: swaync-git 0.1.r70.f344600-1 (Sat 31 Jul 2021 03:30:37 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating SwayNotificationCenter git repo...
Fetching origin
==> Validating source files with sha256sums...
    SwayNotificationCenter ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of SwayNotificationCenter git repo...
Cloning into 'SwayNotificationCenter'...
done.
==> Starting pkgver()...
==> Updated version: swaync-git 0.1.r76.de55a18-1
==> Sources are ready.
==> Making package: swaync-git 0.1.r76.de55a18-1 (Sat 31 Jul 2021 03:30:39 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> 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_lto=true -D b_pie=true SwayNotificationCenter build
The Meson build system
Version: 0.59.0
Source dir: /user/.cache/yay/swaync-git/src/SwayNotificationCenter
Build dir: /user/.cache/yay/swaync-git/src/build
Build type: native build
Project name: sway-notificaton-center
Project version: 0.1.0
C compiler for the host machine: cc (gcc 11.1.0 "cc (GCC) 11.1.0")
C linker for the host machine: cc ld.bfd 2.36.1
Vala compiler for the host machine: valac (valac 0.52.4)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency gio-2.0 found: YES 2.68.3
Run-time dependency gtk+-3.0 found: YES 3.24.30
Run-time dependency libhandy-1 found: YES 1.2.3
Library gtk-layer-shell found: YES
Library m found: YES
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Build targets in project: 4

Found ninja-1.10.2 at /usr/bin/ninja
ninja: Entering directory `build'
[4/15] Compiling Vala source ../SwayNotificationCenter/src/client.vala ../SwayNotificationCenter/src/constants.vala
FAILED: src/swaync-client.p/client.c src/swaync-client.p/constants.c
valac -C --pkg libhandy-1 --pkg gtk+-3.0 --pkg gio-2.0 --color=always --directory src/swaync-client.p --basedir ../SwayNotificationCenter/src --target-glib=2.50 --pkg=GtkLayerShell-0.1 ../SwayNotificationCenter/src/client.vala ../SwayNotificationCenter/src/constants.vala
error: Package `xlib-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 `cairo-1.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 `cairo-1.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: 9 error(s), 0 warning(s)
[5/15] Compiling Vala source ../SwayNotificationCenter/src/main.vala ../SwayNotificationCenter/src/notiWi...trolCenter.vala ../SwayNotificationCenter/src/constants.vala ../SwayNotificationCenter/src/functions.vala
FAILED: src/swaync.p/main.c src/swaync.p/notiWindow/notiWindow.c src/swaync.p/notification/notification.c src/swaync.p/controlCenter/controlCenter.c src/swaync.p/constants.c src/swaync.p/functions.c
valac -C --pkg libhandy-1 --pkg gtk+-3.0 --pkg gio-2.0 --color=always --directory src/swaync.p --basedir ../SwayNotificationCenter/src --gresources=../SwayNotificationCenter/src/sway_notificaton_center.gresource.xml --target-glib=2.50 --pkg=GtkLayerShell-0.1 ../SwayNotificationCenter/src/main.vala ../SwayNotificationCenter/src/notiWindow/notiWindow.vala ../SwayNotificationCenter/src/notification/notification.vala ../SwayNotificationCenter/src/controlCenter/controlCenter.vala ../SwayNotificationCenter/src/constants.vala ../SwayNotificationCenter/src/functions.vala
error: Package `xlib-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 `cairo-1.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 `cairo-1.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: 9 error(s), 0 warning(s)
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
error making: swaync-git
ErikReider commented 3 years ago

Hm. Does it work if you replace the depends= line in the PKGBUILD with this line?

depends=("gtk3>=3.22" "gtk-layer-shell>=0.1" "dbus" "glib2>=2.50" "vala-dbus-binding-tool-git>=1.0")
ErikReider commented 3 years ago

This is now fixed. Leave a comment if you're still experiencing issues