Package Details: wlroots-git 0.18.0.r6859.4688a371-1

Git Clone URL: https://aur.archlinux.org/wlroots-git.git (read-only, click to copy)
Package Base: wlroots-git
Description: Modular Wayland compositor library (git development version)
Upstream URL: https://gitlab.freedesktop.org/wlroots/wlroots
Keywords: compositor egl gles2 libdrm libinput library modular opengl vulkan wayland wlroots
Licenses: MIT
Conflicts: wlroots
Provides: libwlroots.so, wlroots
Submitter: aperez
Maintainer: aperez (GreyXor)
Last Packager: GreyXor
Votes: 59
Popularity: 0.94
First Submitted: 2018-02-20 16:48 (UTC)
Last Updated: 2024-01-27 23:56 (UTC)

Required by (100)

Sources (1)

Pinned Comments

aperez commented on 2018-09-28 08:31 (UTC) (edited on 2019-03-07 16:25 (UTC) by aperez)

IMPORTANT

Please do not flag this package as out-of-date if the only change you need is to update to a newer version. It is not needed because it always fetches the sources using Git and uses the most recent version without needing to modify the PKGBUILD — just rebuild the package.

Also, please try building in a clean chroot before assuming that the PKGBUILD is broken.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 11 Next › Last »

Rucikir commented on 2022-05-25 11:34 (UTC)

@q234rty should be fixed now.

q234rty commented on 2022-05-24 17:39 (UTC)

Latest commit seems to break pkgver() again?

yrlf commented on 2022-03-17 11:34 (UTC) (edited on 2022-03-17 11:35 (UTC) by yrlf)

@Calimero: AFAIK, that's not a bug. The /usr/lib/debug/.build-id/ subdirectory contains symlinks pointing to the debug info in the correct location and make it easy to find the correct debugging symbols for a binary given just its build-id.

Also: except when things like the debug prefix map is broken by the PKGBUILD, the exact layout of split -debug packages is not controlled by the PKGBUILD, and done by makepkg on its own.

(for an off-topic example: all go packages (e.g. yay) currently don't have working source directories in debug packages, they end up putting /_/github.com and /tmp/go-build into the package)

Calimero commented on 2022-03-17 11:14 (UTC)

The split package wlroots-git-debug installs /usr/lib/debug/.build-id/ shenanigans, which I'm pretty sure is not conformant to packaging guidelines!

Rucikir commented on 2022-01-29 12:37 (UTC)

I've applied a variation of @yrlf's patch, but I still get warnings when installing the package with yay, but not when installing in a clean chroot. I'll take suggestions ;)

yrlf commented on 2022-01-23 22:16 (UTC) (edited on 2022-01-23 22:19 (UTC) by yrlf)

I found an arguably hacky workaround for getting the debug package to work again:

It seems doing the meson configure call before build () breaks the debug prefix map used for creating the debug pacakges. This is because the CFLAGS variable is only set to contain the DEBUG_CFLAGS during the build () function, but not during the prepare () function.

A simple, but ugly fix would be to configure twice: once just for the version information, and once for the build.

Here is a short patch:

diff --git a/PKGBUILD b/PKGBUILD
index 1535646..100bafa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,18 +34,23 @@ makedepends=(
 source=("${pkgname}::git+${url}.git")
 md5sums=('SKIP')

-prepare () {
+_meson_configure () {
+   local _builddir="$1"
    arch-meson \
        --buildtype=debug \
        -Dwerror=false \
        -Dexamples=false \
-       "${pkgname}" build
+       "${pkgname}" "${_builddir}"
+}
+
+prepare () {
+   _meson_configure build-pkgver
 }

 pkgver () {
    (
        set -o pipefail
-       meson introspect --projectinfo build \
+       meson introspect --projectinfo build-pkgver \
          | awk 'match($0, /"version":\s*"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)"/, ret) {printf "%s",ret[1]}'
    )
    cd "${pkgname}"
@@ -53,6 +58,7 @@ pkgver () {
 }

 build () {
+   _meson_configure build
    meson compile -C build
 }

Scrumplex commented on 2022-01-21 08:27 (UTC)

nparry: certainly not a yay thing. You are probably installing the -debug package as well. Currently the PKGBUILD is broken causing it to put the source code of the debug package where your build directory is.

nperry commented on 2022-01-21 08:21 (UTC)

Not sure if this is a yay thing however only seems to be happening with wlroots, why is src being owned by root after rebuilding?

neil@work ~ master > ls -l .cache/yay/wlroots-git                                                                                                                                                                     
total 1600
-rw-r--r-- 1 neil neil    1473 Jan 21 08:18 PKGBUILD
drwxr-xr-x 1 root root      32 Jan 21 08:18 src
drwxr-xr-x 1 neil neil     140 Jan 21 08:18 wlroots-git
-rw-r--r-- 1 neil neil  435583 Jan 21 08:18 wlroots-git-        0.16.0.r5336.1d1b8454-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 neil neil 1192668 Jan 21 08:18 wlroots-git-debug-0.16.0.r5336.1d1b8454-1-x86_64.pkg.tar.zst

Scrumplex commented on 2022-01-19 09:54 (UTC)

As FreeFull mentioned the -debug package tries to install the source code into the builddir.

I think this occurs, because prepare() doesn't have a value for environment variable DBGSRCDIR. Maybe you can try to meson setup twice. Once for pkgver() and once for the actual build.