Package Details: gtk4-layer-shell 1.0.2-2

Git Clone URL: https://aur.archlinux.org/gtk4-layer-shell.git (read-only, click to copy)
Package Base: gtk4-layer-shell
Description: A library to create panels and other desktop components for Wayland using the Layer Shell protocol and GTK4
Upstream URL: https://github.com/wmww/gtk4-layer-shell
Licenses: MIT
Submitter: SilverRainZ
Maintainer: SilverRainZ
Last Packager: SilverRainZ
Votes: 6
Popularity: 0.135366
First Submitted: 2023-04-28 16:15 (UTC)
Last Updated: 2023-11-25 04:04 (UTC)

Latest Comments

1 2 Next › Last »

sbrl commented on 2024-05-17 13:44 (UTC)

Artix, runit, trizen, uname -a: Linux DEVICE_NAME 6.8.9-artix1-2 #1 SMP PREEMPT_DYNAMIC Wed, 08 May 2024 17:34:57 +0000 x86_64 GNU/Linux

The build for this package crashes for me with 5 failed tests:

3/33 integration-test-is-layer-window FAIL 0.25s exit status 1

MALLOC_PERTURB_=236 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/python3 /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build/test/test-is-layer-window 8/33 integration-test-get-monitor FAIL 0.20s exit status 1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build MALLOC_PERTURB_=75 /usr/bin/python3 /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build/test/test-get-monitor 22/33 integration-test-create-xdg-toplevel FAIL 0.50s exit status 1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build MALLOC_PERTURB_=3 /usr/bin/python3 /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build/test/test-create-xdg-toplevel

23/33 integration-test-menu-popup FAIL 1.12s exit status 1

UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build MALLOC_PERTURB_=197 /usr/bin/python3 /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build/test/test-menu-popup

24/33 integration-test-init-after-window-created FAIL 0.50s exit status 1

ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build MALLOC_PERTURB_=132 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/python3 /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/sbrl/.cache/trizen/sources/gtk4-layer-shell/src/build/test/test-init-after-window-created

loqusion commented on 2024-03-31 04:46 (UTC) (edited on 2024-03-31 04:48 (UTC) by loqusion)

With paru, you can something like the following to install without the tests:

paru -S --mflags '--nocheck' gtk4-layer-shell

Of course, this is no substitute for rewriting the tests and/or the PKGBUILD so that installing doesn't require this kind of manual intervention.

benz commented on 2024-03-28 06:52 (UTC)

Can you disable running the tests? It's utterly pointless to be not able to build because of failing tests. A lot of people use "incompatible" GTK themes that will lead to test failures, while not having any problems runtime.

Running tests on build that depend on the currently enabled GTK theme is pointless as that's not a constant.

sneakomatic commented on 2024-03-15 10:21 (UTC) (edited on 2024-03-15 10:21 (UTC) by sneakomatic)

installation fails with:


Traceback (most recent call last):
  File "/usr/bin/g-ir-scanner", line 99, in <module>
    from giscanner.utils import dll_dirs
  File "/usr/lib/gobject-introspection/giscanner/utils.py", line 385, in <module>
    import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
[60/134] Compiling C object test/test-auto-exclusive-zon...integration-tests_test-auto-exclusive-zone-no-margin.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: gtk4-layer-shell-exit status 4

guh commented on 2024-03-12 18:40 (UTC) (edited on 2024-03-12 18:51 (UTC) by guh)

@benz, I had the same problem earlier. This seems to be a problem with your theme. (more specifically for me, the "gtkmix" function definition in Catppuccin seems to have been removed) I fixed this by reverting back to Adwaita. Hopefully this helps!

benz commented on 2024-03-12 10:23 (UTC)

Building fails for me.

 4/33 integration-test-menu-popup                                    FAIL            0.26s   exit status 1
>>> MALLOC_PERTURB_=4 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 GTK4_LAYER_SHELL_BUILD=/home/andrej/.cache/yay/gtk4-layer-shell/src/build UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /usr/bin/python3 /home/andrej/.cache/yay/gtk4-layer-shell/src/gtk4-layer-shell-1.0.2/test/run-integration-test.py /home/andrej/.cache/yay/gtk4-layer-shell/src/build/test/test-menu-popup

SilverRainZ commented on 2023-11-24 11:37 (UTC)

@pentamassiv updated

pentamassiv commented on 2023-09-21 21:50 (UTC)

Could you please update the PKGBUILD to the following:

# Maintainer: Shengyu Zhang <la@archlinuxcn.org>
# Contributor: Brett Cornwall <ainola@archlinux.org>
# Contributor: Adrian Perez de Castro <aperez@igalia.com>

pkgdesc='A library to create panels and other desktop components for Wayland using the Layer Shell protocol and GTK4'
pkgname=gtk4-layer-shell
pkgver=1.0.1
pkgrel=1
arch=(x86_64 aarch64)
license=(MIT)
url="https://github.com/wmww/gtk4-layer-shell"
depends=(
    "gtk4"
    "wayland"
)
makedepends=(
    "gtk-doc"
    "gobject-introspection"
    "meson"
    "ninja"
    "valabind"
    "python"
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('f7b8d352065a540d4cb7b0cbfdeb2c2efea55b57cfb717de5c880fde41e65cb1')

build() {
    meson setup \
          --prefix=/usr \
          --wrap-mode=nofallback \
          --buildtype=plain \
          -Dtests=true \
          -Ddocs=true \
          -Dintrospection=true \
          -Dvapi=true \
          -Dexamples=true \
          "$pkgname-$pkgver" \
          build
    ninja -C build
}

# See: https://github.com/wmww/gtk4-layer-shell/issues/12
# check() {
# ninja -C build test
# }

package() {
    DESTDIR="$pkgdir" ninja -C build install
    install -D -m 644 "$pkgname-$pkgver/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

pentamassiv commented on 2023-08-03 22:35 (UTC)

The package also works on my Pinephone (aarch64), so could you please change the line arch=(x86_64) to arch=(any)?

pentamassiv commented on 2023-08-03 17:18 (UTC)

Version 1.0.1 was released, which contains the fix