Package Details: looking-glass-rc 1:B7rc1-5

Git Clone URL: https://aur.archlinux.org/looking-glass-rc.git (read-only, click to copy)
Package Base: looking-glass-rc
Description: A client application for accessing the LookingGlass IVSHMEM device of a VM
Upstream URL: https://looking-glass.io/
Licenses: GPL-2.0-or-later
Conflicts: looking-glass
Provides: looking-glass
Submitter: ston
Maintainer: merrkry (lilac)
Last Packager: lilac
Votes: 1
Popularity: 0.040168
First Submitted: 2022-10-24 03:49 (UTC)
Last Updated: 2024-11-02 16:08 (UTC)

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.

Latest Comments

ambershark commented on 2024-07-28 23:25 (UTC) (edited on 2024-07-28 23:46 (UTC) by ambershark)

@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.

jeevithakannan commented on 2024-07-26 03:24 (UTC) (edited on 2024-07-26 03:26 (UTC) by jeevithakannan)

Can confirm dkms now compiles on 6.10 kernel.

Thank you for quick response ..!!

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.

jeevithakannan commented on 2024-07-25 03:42 (UTC) (edited on 2024-07-25 03:45 (UTC) by jeevithakannan)

dkms is failing to compile in kernel linux 6.10


DKMS make.log for looking-glass-B7-rc1 for kernel 6.10.0-zen1-2-zen (x86_64)
Thu Jul 25 09:11:38 AM IST 2024
make -C /usr/lib/modules/6.10.0-zen1-2-zen/build M=/var/lib/dkms/looking-glass-B7/rc1/build modules
make[1]: Entering directory '/usr/lib/modules/6.10.0-zen1-2-zen/build'
  CC [M]  /var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.o
/var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.c: In function ‘mmap_kvmfrbuf’:
/var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.c:167:14: error: implicit declaration of function ‘remap_vmalloc_range’; did you mean ‘ida_alloc_range’? [-Wimplicit-function-declaration]
  167 |       return remap_vmalloc_range(vma, kbuf->kdev->addr + kbuf->offset,
      |              ^~~~~~~~~~~~~~~~~~~
      |              ida_alloc_range
/var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.c: In function ‘create_static_device_unlocked’:
/var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.c:508:16: error: implicit declaration of function ‘vmalloc_user’ [-Wimplicit-function-declaration]
  508 |   kdev->addr = vmalloc_user(kdev->size);
      |                ^~~~~~~~~~~~
/var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.c:508:14: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  508 |   kdev->addr = vmalloc_user(kdev->size);
      |              ^
/var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.c:533:3: error: implicit declaration of function ‘vfree’; did you mean ‘kvfree’? [-Wimplicit-function-declaration]
  533 |   vfree(kdev->addr);
      |   ^~~~~
      |   kvfree
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/looking-glass-B7/rc1/build/kvmfr.o] Error 1
make[2]: *** [/usr/lib/modules/6.10.0-zen1-2-zen/build/Makefile:1932: /var/lib/dkms/looking-glass-B7/rc1/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.10.0-zen1-2-zen/build'
make: *** [Makefile:7: all] Error 2 

ixevix commented on 2024-05-18 12:04 (UTC)

I mean I can't install looking-glass-rc without it also pulling in looking-glass-rc-host can I?

ixevix commented on 2024-05-18 11:47 (UTC)

Because it doesn't build. Or fix the build. I'm getting the following

[100%] Built target looking-glass-client
~/.cache/yay/looking-glass-rc/src/looking-glass-B7-rc1
~/.cache/yay/looking-glass-rc/src/looking-glass-B7-rc1/host/build ~/.cache/yay/looking-glass-rc/src/looking-glass-B7-rc1
-- The C compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test COMPILER_SUPPORTS_MARCH_X86_64_V2
-- Performing Test COMPILER_SUPPORTS_MARCH_X86_64_V2 - Success
-- BFD libs: /usr/lib/libbfd.so
-- Found BFD: /usr/lib/libbfd.so
-- BFD libs: /usr/lib/libbfd.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Checking for modules 'gio-2.0;gio-unix-2.0;libpipewire-0.3;libspa-0.2'
--   Found gio-2.0, version 2.80.2
--   Found gio-unix-2.0, version 2.80.2
--   Found libpipewire-0.3, version 1.0.6
--   Found libspa-0.2, version 0.2
-- The following features have been enabled:

 * ENABLE_BACKTRACE, Backtrace support.
 * USE_XCB, XCB/XSHM capture backend.
 * USE_PIPEWIRE, Pipewire Screencast capture backend.

-- The following features have been disabled:

 * OPTIMIZE_FOR_NATIVE, Optimized for x86-64-v2
 * ENABLE_ASAN, AddressSanitizer support.
 * ENABLE_UBSAN, UndefinedBehaviorSanitizer support.

-- Configuring done (0.3s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ixevix/.cache/yay/looking-glass-rc/src/looking-glass-B7-rc1/host/build
[  4%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/debug.c.o
[  4%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/thread.c.o
[  6%] Building C object lgmp/CMakeFiles/lgmp.dir/src/client.c.o
[ 13%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/sysinfo.c.o
[ 13%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/crash.c.o
[ 13%] Building C object lgmp/CMakeFiles/lgmp.dir/src/host.c.o
[ 15%] Building C object lgmp/CMakeFiles/lgmp.dir/src/status.c.o
[ 20%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/event.c.o
[ 20%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/ivshmem.c.o
[ 22%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/paths.c.o
[ 25%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/time.c.o
[ 27%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/open.c.o
[ 29%] Building C object common/src/platform/linux/CMakeFiles/lg_common_platform_code.dir/cpuinfo.c.o
[ 31%] Linking C static library liblg_common_platform_code.a
[ 34%] Linking C static library liblgmp.a
[ 34%] Built target lg_common_platform_code
[ 36%] Building C object common/CMakeFiles/lg_common.dir/src/stringutils.c.o
[ 43%] Building C object common/CMakeFiles/lg_common.dir/src/option.c.o
[ 43%] Building C object common/CMakeFiles/lg_common.dir/src/framebuffer.c.o
[ 43%] Building C object common/CMakeFiles/lg_common.dir/src/stringlist.c.o
[ 45%] Building C object common/CMakeFiles/lg_common.dir/src/KVMFR.c.o
[ 47%] Building C object common/CMakeFiles/lg_common.dir/src/countedbuffer.c.o
[ 50%] Building C object common/CMakeFiles/lg_common.dir/src/rects.c.o
[ 52%] Building C object common/CMakeFiles/lg_common.dir/src/ringbuffer.c.o
[ 54%] Building C object common/CMakeFiles/lg_common.dir/src/ll.c.o
[ 59%] Building C object common/CMakeFiles/lg_common.dir/src/vector.c.o
[ 59%] Building C object common/CMakeFiles/lg_common.dir/src/runningavg.c.o
[ 61%] Building C object common/CMakeFiles/lg_common.dir/src/cpuinfo.c.o
[ 63%] Building C object common/CMakeFiles/lg_common.dir/src/debug.c.o
[ 65%] Building C object common/CMakeFiles/lg_common.dir/src/appstrings.c.o
[ 65%] Built target lgmp
[ 68%] Linking C static library liblg_common.a
[ 68%] Built target lg_common
[ 72%] Building C object platform/Linux/capture/pipewire/CMakeFiles/capture_pipewire.dir/src/portal.c.o
[ 72%] Building C object platform/Linux/capture/XCB/CMakeFiles/capture_XCB.dir/src/xcb.c.o
[ 75%] Building C object platform/Linux/capture/pipewire/CMakeFiles/capture_pipewire.dir/src/pipewire.c.o
[ 77%] Linking C static library libcapture_XCB.a
[ 77%] Built target capture_XCB
In file included from /usr/lib/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/include/glib-2.0/glib/galloca.h:34,
                 from /usr/include/glib-2.0/glib.h:32,
                 from /usr/include/glib-2.0/gobject/gbinding.h:30,
                 from /usr/include/glib-2.0/glib-object.h:24,
                 from /usr/include/glib-2.0/gio/gioenums.h:30,
                 from /usr/include/glib-2.0/gio/giotypes.h:30,
                 from /usr/include/glib-2.0/gio/gio.h:28,
                 from /home/ixevix/.cache/yay/looking-glass-rc/src/looking-glass-B7-rc1/host/platform/Linux/capture/pipewire/src/portal.c:27:
In function ‘glib_autoptr_clear_GVariant’,
    inlined from ‘glib_autoptr_cleanup_GVariant’ at /usr/include/glib-2.0/glib/glib-autocleanups.h:96:1,
    inlined from ‘portal_createScreenCastSession’ at /home/ixevix/.cache/yay/looking-glass-rc/src/looking-glass-B7-rc1/host/platform/Linux/capture/pipewire/src/portal.c:201:23:
/usr/include/glib-2.0/glib/glib-autocleanups.h:96:1: error: ‘response’ may be used uninitialized [-Werror=maybe-uninitialized]
   96 | G_DEFINE_AUTOPTR_CLEANUP_FUNC(GVariant, g_variant_unref)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
make[2]: *** [platform/Linux/capture/pipewire/CMakeFiles/capture_pipewire.dir/build.make:90: platform/Linux/capture/pipewire/CMakeFiles/capture_pipewire.dir/src/portal.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:454: platform/Linux/capture/pipewire/CMakeFiles/capture_pipewire.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

merrkry commented on 2024-05-18 09:06 (UTC)

@ixevix what do you mean by "remove the -host dependency"? iirc nothing depends on it. It should be ok to use official binary for looking-glass-host binary together with the other packges here.

This pkgbuild is basically a port of aur/looking-glass, which is not a -bin packge. Also build instructions for -host are still available on B7-rc1's documentation. If no additional problem is introduced i'd prefer let it be.

ixevix commented on 2024-05-18 08:21 (UTC)

Would it be possible to remove the -host dependency as building it is not supported upstream? Folks on the looking-glass Discord server are running into issues building it.

ston commented on 2022-11-14 12:26 (UTC)

Dear aur users, I'm sorry, but I'm no longer using archlinux and need someone to help maintain this pkgbuild, I'll drop this package.