Package Details: dwl 0.5-1

Git Clone URL: https://aur.archlinux.org/dwl.git (read-only, click to copy)
Package Base: dwl
Description: Simple, hackable dynamic tiling Wayland compositor (dwm for Wayland)
Upstream URL: https://codeberg.org/dwl/dwl
Licenses: GPL
Submitter: djpohly
Maintainer: djpohly
Last Packager: djpohly
Votes: 6
Popularity: 0.112849
First Submitted: 2020-12-25 08:31 (UTC)
Last Updated: 2024-06-15 07:10 (UTC)

Latest Comments

ryuta commented on 2023-11-29 17:22 (UTC) (edited on 2023-11-29 17:22 (UTC) by ryuta)

Despite locate wlr_idle.h /usr/include/wlroots0.16/wlr/types/wlr_idle.h dwl does not compile :


==> Making package: dwl 0.4-2 (Wed Nov 29 18:19:31 2023)
==> Retrieving sources...
  -> Found dwl-0.4.tar.gz
  -> Found config.h
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    dwl-0.4.tar.gz ... Passed
    config.h ... Passed
:: (1/1) Parsing SRCINFO: dwl
==> Making package: dwl 0.4-2 (Wed Nov 29 18:19:31 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found dwl-0.4.tar.gz
  -> Found config.h
==> Validating source files with sha256sums...
    dwl-0.4.tar.gz ... Passed
    config.h ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting dwl-0.4.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
==> Making package: dwl 0.4-2 (Wed Nov 29 18:19:32 2023)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
cp config.def.h config.h
`pkg-config --variable=wayland_scanner wayland-scanner` server-header \
    `pkg-config --variable=pkgdatadir wayland-protocols`/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.h
`pkg-config --variable=wayland_scanner wayland-scanner` server-header \
    protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h
c99  `pkg-config --cflags wlroots wayland-server xkbcommon libinput ` -I. -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -DVERSION=\"`git describe --tags --dirty 2>/dev/null || echo 0.4`\"  -pedantic -Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wno-sign-compare -Wshadow -Wunused-macros -Werror=strict-prototypes -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -c util.c
c99  `pkg-config --cflags wlroots wayland-server xkbcommon libinput ` -I. -DWLR_USE_UNSTABLE -D_POSIX_C_SOURCE=200809L -DVERSION=\"`git describe --tags --dirty 2>/dev/null || echo 0.4`\"  -pedantic -Wall -Wextra -Wdeclaration-after-statement -Wno-unused-parameter -Wno-sign-compare -Wshadow -Wunused-macros -Werror=strict-prototypes -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -c dwl.c
dwl.c:25:10: fatal error: wlr/types/wlr_idle.h: No such file or directory
   25 | #include <wlr/types/wlr_idle.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:60: dwl.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: dwl-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
dwl - exit status 4

Any idea ?

ldev commented on 2023-07-04 20:34 (UTC)

Modification to the PKGBUILD so it automatically applies patches that are in the dwl directory

optdepends=('xorg-xwayland: for XWayland support')
source=("$pkgname-$pkgver.tar.gz::https://github.com/djpohly/$pkgname/archive/v$pkgver.tar.gz"
         config.h
         *.patch)
 sha256sums=('f03a260b169019ebdbfd6db1b19a3dc7861ba33609644581c530be019f22274c'
             'SKIP'
             'SKIP')

 prepare() {
    cd "$srcdir/$pkgname-$pkgver"

    # Apply patches
    patches="$srcdir/*.patch"
    for file in $patches ; do
       echo "Applying patch '$file'"
       patch -d $srcdir/$pkgname-$pkgver < $file
    done

ldev commented on 2023-07-04 20:09 (UTC) (edited on 2023-07-04 20:11 (UTC) by ldev)

Why is there a checksum for the config.h file? Isn't that file supposed to be edited.

source=("$pkgname-$pkgver.tar.gz::https://github.com/djpohly/$pkgname/archive/v$pkgver.tar.gz"
        config.h)
sha256sums=('f03a260b169019ebdbfd6db1b19a3dc7861ba33609644581c530be019f22274c'
            'SKIP') # change this to SKIP

djpohly commented on 2023-04-16 21:52 (UTC)

Fixed, thanks!

eatsaq commented on 2023-04-16 19:06 (UTC)

The PKGBUILD doesn't support XWayland correctly.

# Uncomment to compile with XWayland support
sed -i -e '/-DXWAYLAND/s/^#//' config.mk  # This line is present
sed -i -e '/^#XLIBS/s/^#//' config.mk     # Missing, add me

djpohly commented on 2021-03-10 15:35 (UTC)

Haha, I wrote the README... you'd think I would have noticed that. ;-) Thanks!