@ivevix Looks like it builds correctly when running cmake/make manually on the host project. However the failure comes from the CFLAGS in /etc/makepkg.conf
. I tested by adding:
options=(!buildflags)
to the PKGBUILD
and it built properly with makepkg -sri
.
I guess that can be used as a workaround as well.
And if you want to keep your CFLAGS (recommended) and just remove the host package, you can use this patch to the PKGBUILD file. Which is what I did since I do not need the host.
nohost.patch:
--- PKGBUILD.orig 2024-07-28 16:40:55.249637239 -0700
+++ PKGBUILD 2024-07-28 16:41:17.733291765 -0700
@@ -6,7 +6,6 @@
pkgbase=looking-glass-rc
pkgname=("${pkgbase}"
"${pkgbase}-module-dkms"
- "${pkgbase}-host"
"obs-plugin-${pkgbase}")
epoch=1
pkgver=B7rc1
@@ -33,11 +32,11 @@
build() {
cd "${srcdir}/${_lgdir}"
- for b in {client,host,obs}/build; do
+ for b in {client,obs}/build; do
mkdir "${b}"
pushd "${b}"
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
- make
+ make -j
popd
done
}
Apply it with patch PKGBUILD < nohost.patch
and then run makepkg as normal.
Pinned Comments
merrkry commented on 2024-07-25 14:26 (UTC)
The package is now also hosted on archlinuxcn, where you can download binaries especially when you have trouble building them.
A patch is backported to fix dkms failure on 6.10 kernel.