Hyprland: AUR: build is broken

I’m getting this when trying to update hyprland-git from the AUR

cmake --build ./build --config Release --target all -j12
ninja: error: '/home/x/.cache/yay/hyprland-git/src/hyprland/subprojects/udis86/build/libudis86/liblibudis86.a', needed by 'Hyprland', missing and no known rule to make it

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 28 (16 by maintainers)

Most upvoted comments

Until it’s fix, change the build() block of the PKGBUILD to

build() {
	cd "${srcdir}/${_pkgname}"
	git submodule update --init
	make fixwlr
	cd "./subprojects/wlroots/" && meson build/ --prefix="${srcdir}/tmpwlr" --buildtype=release && ninja -C build/ && mkdir -p "${srcdir}/tmpwlr" && ninja -C build/ install && cd ../
	cd udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja && cmake --build ./build --config Release --target all -j$(shell nproc) && cd ../..
	make protocols
    make release
	cd ./hyprctl && make all && cd ..
}

PKGBUILD needs no change to build, but you need those two.

Even with these two packages installed, it won’t compile

sudo pacman -Qk libliftoff libdisplay-info
libliftoff: 16 total files, 0 missing files
libdisplay-info: 18 total files, 0 missing files
cmake --build ./build --config Release --target all -j16
ninja: error: '/home/haru02w/.cache/yay/hyprland-git/src/hyprland/subprojects/udis86/build/libudis86/liblibudis86.a', needed by 'Hyprland', missing and no known rule to make it
make: *** [Makefile:144: release] Error 1

It builds just fine for me with those two installed and changing the PKGBUILD using this:

build() {
	cd "${srcdir}/${_pkgname}"
	git submodule update --init
	make fixwlr
	cd "./subprojects/wlroots/" && meson build/ --prefix="${srcdir}/tmpwlr" --buildtype=release && ninja -C build/ && mkdir -p "${srcdir}/tmpwlr" && ninja -C build/ install && cd ../
	cd udis86 && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja && cmake --build ./build --config Release --target all -j$(shell nproc) && cd ../..
	make protocols
    make release
	cd ./hyprctl && make all && cd ..
}

fixed

This bug is relevant for me on hyprland aur package (not hyprland-git)

@vaxerski Could you also bump pkgrel in https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hyprland as you did for the .SRCINFO please? Bumping pkgrel on the latter while not doing on the former means that AUR helpers are seeing a -2 revision available, but are still building a -1 if user don’t manually edit the PKGBUILD, resulting in the AUR helper wanting to update hyprland on every run.

Also, I randomly bumped into https://github.com/hyprwm/aur which seemed to be a good idea considering there’s no way for non-maintainers to submit patches on AUR, but I guess it was too painful to maintain this on different places at the same time?

PSA: The -git package got broken another time (wlroots dep update) and now it has a hard depend on libdisplay-info (AUR) and libliftoff. PKGBUILD needs no change to build, but you need those two.

Everybody seems to have more than 10 cores these days, i’m still seeing -j4

Atleast it aint a Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz, idk why i still have this relic

Everybody seems to have more than 10 cores these days, i’m still seeing -j4