























vulkan-headers should be added as makedepends for kwin-6.7
Ah, that worked. I wasn't fully aware -git packages worked that way, thanks!
An MR to fix Plasma 6.7 compatibility was merged upstream earlier today, try an explicit re-install! As this is a -git package you always get the latest from the github repo irrespective of the version displayed on the AUR.
Would it be possible to update this package to the newest release for plasma 6.7 compatibility?
Thank you @mazix! Updated the PKGBUILD to follow these guidelines.
Build fails on pkgver(): ${startdir}/src/kwin-effects-glass does not exist
The PKGBUILD uses ${startdir} to reference the extracted sources and build directory:
pkgver() {
cd "${startdir}/src/kwin-effects-glass"
...
}
build() {
local _build="${startdir}/build"
cmake -B "$_build" -S "${startdir}/src/kwin-effects-glass" ...
}
package() {
DESTDIR="${pkgdir}" cmake --install "${startdir}/build"
}
This breaks whenever BUILDDIR is set in makepkg.conf (or via env), which is the default on many setups (e.g. BUILDDIR=/tmp/makepkg). In that case $srcdir points to $BUILDDIR/$pkgname/src, not $startdir/src, so the cd in pkgver() fails immediately with:
PKGBUILD: line 18: cd: /path/to/aur/dir/src/kwin-effects-glass: No such file or directory ==> ERROR: pkgver() failed.
Per the https://wiki.archlinux.org/title/PKGBUILD#Package_functions, $startdir is deprecated and should not be used inside
pkgver()/build()/package(). Use $srcdir and $pkgdir instead.
Suggested fix:
pkgver() {
cd "$srcdir/kwin-effects-glass"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cmake -B "$srcdir/build" -S "$srcdir/kwin-effects-glass" \
-W no-dev \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr
cmake --build "$srcdir/build"
}
package() {
DESTDIR="$pkgdir" cmake --install "$srcdir/build"
}
This builds cleanly regardless of whether BUILDDIR is set.
@leo_sk
I switched the PKGBUILD to build Wayland only by default (GLASS_X11=OFF). This avoids the current X11 build failure on Arch/CachyOS.
The X11 target pulls headers from /usr/include/kwin-x11, which still expose the older effects API (QRegion, no RenderView). The code expects the newer Region/RenderView API, so the X11 build errors out with “Region/RenderView not declared” and signature mismatches.
This is an AUR-side workaround so the effect builds on current Plasma. Once upstream resolves X11 compatibility, we can drop the flag. If you still see issues, please include your KWin version and the tail of the build log or report upstream, thank you!
EDIT: Upstream is fixed (X11 disabled, no longer supported), PKGBUILD was reverted
Thanks for the report!
Seems to be broken upstream in the last 24hs sadly, we can work-around this for now by building against the last known-good commit locally, if it remains broken I can pin the pkgbuild, but ideally this package tracks the latest from main.
source=("$pkgname::git+${url}.git")
source=("$pkgname::git+${url}.git#commit=0394fb5be94b36d83618b413358c2fc89442776e")
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Thank you @JimMoen, updated the PKGBUILD.