Package Details: incus-ui 6.9-1

Git Clone URL: https://aur.archlinux.org/incus-ui.git (read-only, click to copy)
Package Base: incus-ui
Description: Incus web interface based on lxd-ui (canonical)
Upstream URL: https://github.com/zabbly/incus-ui-canonical
Licenses: GPL
Submitter: Levitating
Maintainer: Levitating
Last Packager: Levitating
Votes: 0
Popularity: 0.000000
First Submitted: 2024-08-20 22:07 (UTC)
Last Updated: 2025-02-03 23:13 (UTC)

Latest Comments

Zentropivity commented on 2025-01-28 19:39 (UTC) (edited on 2025-01-28 19:42 (UTC) by Zentropivity)

Fails to build for me with:
($HOME being the absolute path)

❯ makepkg -si
==> Making package: incus-ui 0.14-1 (2025. jan. 28., tuesday, 20:30:55 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning incus git repo...
Cloning into bare repository '$HOME/incus-ui/incus'...
remote: Enumerating objects: 2975, done.
remote: Counting objects: 100% (254/254), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 2975 (delta 243), reused 224 (delta 224), pack-reused 2721 (from 1)
Receiving objects: 100% (2975/2975), 1.98 MiB | 4.56 MiB/s, done.
Resolving deltas: 100% (1455/1455), done.
  -> Downloading lxd-ui-0.14.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 1562k    0 1562k    0     0  2050k      0 --:--:-- --:--:-- --:--:-- 2050k
  -> Found incus-ui.conf
==> Validating source files with sha256sums...
    incus ... Skipped
    lxd-ui-0.14.tar.gz ... Passed
    incus-ui.conf ... Passed
==> Extracting sources...
  -> Creating working copy of incus git repo...
Cloning into 'incus'...
done.
  -> Extracting lxd-ui-0.14.tar.gz with bsdtar
==> Starting prepare()...
Initialized empty Git repository in $HOME/incus-ui/src/lxd-ui-0.14/.git/
Applying $HOME/incus-ui/src/incus/patches/ui-canonical-*.patch
error: can't open patch '$HOME/incus-ui/src/incus/patches/ui-canonical-*.patch': No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

Doing ls src/incus results in:

src/incus/patches/edk2-0001-force-DUID-LLT.patch
src/incus/patches/edk2-0002-logo.bmp
src/incus/patches/edk2-0003-boot-delay.patch
src/incus/patches/edk2-0004-gcc-errors.patch
src/incus/patches/edk2-0005-Revert-ArmVirtPkg-make-EFI_LOADER_DATA-non-executabl.patch
src/incus/patches/edk2-0006-disable-EFI-memory-attributes-protocol.patch
src/incus/patches/lxcfs-0001-hook.patch
src/incus/patches/nasm-0000-disable-manpages.patch
src/incus/patches/nvidia-0001-Fix-for-22.04-build.patch
src/incus/patches/nvidia-0002-pre-load-libdl.patch
src/incus/patches/ui-canonical-renames.sed

Which shows that the file in question is not there indeed.

Levitating commented on 2025-01-11 16:32 (UTC)

Hey commiebstrd, they did indeed start maintaning a fork of lxd-ui but the description states:

"Internal fork of LXD UI used to generate the patches in zabbly/incus"

So they main goal of the fork is just to generate the patches used within the debian packaging. I am still going to use those patches, as they are tied to specific versions of incus.

commiebstrd commented on 2025-01-11 16:29 (UTC)

It seems that the Incus group have created a separate incus-ui-cannonical repo for their patched version of lxd-ui. Rather than shoehorning in patches that they have removed, simply swap to using that repo and it works great!

# Maintainer: Levitating <me@levitati.ng>
pkgname=incus-ui
pkgver=0.14
pkgrel=1
epoch=
pkgdesc="LXD-UI patched for Incus"
arch=(any)
url="https://github.com/canonical/lxd-ui"
license=('GPL')
makedepends=('yarn' 'git' 'npm')
source=("git+https://github.com/zabbly/incus.git"
        "${srcdir}/incus-ui-cannonical::git+https://github.com/zabbly/incus-ui-canonical.git"
        #       "lxd-ui-$pkgver.tar.gz::https://github.com/canonical/lxd-ui/archive/refs/tags/${pkgver}.tar.gz"
                "incus-ui.conf"
)
sha256sums=('SKIP'
            'SKIP'
         #   'e54e681d1ae40b90a57df00b126deaf085b1697154db442d9eaa1980a26e091e'
            'f6f1a4669e7ac2c733544c6ee96ae739f77981184603d36fc8ae906481177bee')

prepare() {
        cd "$srcdir/incus-ui-cannonical"
        git init # helps git apply
        yarn install
}

build() {
        cd "$srcdir/incus-ui-cannonical"
        yarn build
}

package() {
        mkdir -p "$pkgdir/usr/share/incus-ui"
        cp -r "$srcdir/incus-ui-cannonical/build/ui/"* "$pkgdir/usr/share/incus-ui"
        install -Dvm 644 "$srcdir/incus-ui.conf" "$pkgdir/usr/lib/systemd/system/incus.service.d/incus-ui.conf"
}

zarac commented on 2024-10-14 06:27 (UTC)

Levitating,

Not sure they'll ever be ready. Seems the new way is to NOT apply the patches. (not quite suire if i understood this correctly, though, as "current" doesn't necessarily mean "not futrue"). . https://github.com/zabbly/incus/issues/60

Levitating commented on 2024-10-13 16:06 (UTC)

I solved the build issue. I also had to downgade the package back to 0.12 because zabbly's patches aren't ready for 0.13 yet.

RealGecko commented on 2024-10-12 06:13 (UTC)

/home/realgecko/.cache/yay/incus-ui/PKGBUILD: line 19: cd: /home/realgecko/.cache/yay/incus-ui/src/lxd-ui-0.13: No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...
-> error making: incus-ui-exit status 4
-> Failed to install the following packages. Manual intervention is required:
incus-ui - exit status 4

bluebucket commented on 2024-10-04 07:38 (UTC)

Thanks.

bluebucket commented on 2024-10-03 14:53 (UTC)

Can you add yarn, git and npm as makedepends, please.