Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Script installs wrong version of Hyprland #1041

Open
daUnknownCoder opened this issue Jan 10, 2025 · 2 comments
Open

[Issue]: Script installs wrong version of Hyprland #1041

daUnknownCoder opened this issue Jan 10, 2025 · 2 comments

Comments

@daUnknownCoder
Copy link

daUnknownCoder commented Jan 10, 2025


The issue

the script actually installs wrong version of Hyprland, causing me a great deal of problems...
I actually found this out when i tried to install plugins through hyprpm, and it gave me missing headers, i checked hyprctl version and found it was v0.35.0-16-g927da86e (ofc i definitely installed every single thing using the script provided (install.sh)),
but the package was built by yay through the script and pacman -Q said hyprland-git 0.46.0.r97.ge66eab7b-1 which was quite abnormal, so i decided to use the stable version of hyprland which worked,
but to dive deeper into the problem, i ran the script again and rebuild hyprland, and i did this 2 times and everytime, the same problem, hyprctl said .35 but pacman said .46,
so i went ahead and raised an issue in hyprwm/Hyprland as a hyprpm problem and vaxry told me your hyprland actually is very behind... issue here: hyprwm/Hyprland#9005

i solved it by cloning hyprland and building it from source, but it seems that the script actually has some problems (not to mention, i had some problems with my arch installation (i was sharing my tmate session and got sudo rm -rf / --no-preserve-root > /dev/null well lets not talk about this) so i had to reinstall all my packages and my config), which was a pain (tho i recovered everything because i seemingly didnt lose anything except my /opt, /lib, efi, which were easily recoverable with a live boot), so to get a starting point i installed this dotfiles and there i go with the hyprpm problem...

this is the part of the script:

# Why need cleanbuild? see https://github.com/end-4/dots-hyprland/issues/389#issuecomment-2040671585
# Why install deps by running a seperate command? see pinned comment of https://aur.archlinux.org/packages/hyprland-git
case $SKIP_HYPR_AUR in
true) sleep 0 ;;
*)
  hyprland_installflags="-S"
  $ask || hyprland_installflags="$hyprland_installflags --noconfirm"
  v yay $hyprland_installflags --asdeps hyprutils-git hyprlang-git hyprcursor-git hyprwayland-scanner-git --overwrite "*"
  v yay $hyprland_installflags --answerclean=a hyprland-git --overwrite "*"
  ;;
esac

i guess @clsty is maintaining this
ig #389's error is back

@clsty
Copy link
Collaborator

clsty commented Jan 10, 2025

Well, when you're using this script you're actually using yay to install hyprland-git which means it's related to the PKGBUILD here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hyprland-git

Try clean the cache path ~/.cache/yay/hyprland-git manually should be a workaround.
While maybe we could write this workaround into the script, it's not elegant at all... I prefer #1017 or at least use the stable Hyprland package from official ArchLinux, not from AUR which led to lots of issues in this repo.

I'm still kinda busy so this is what I can tell so far.

@daUnknownCoder
Copy link
Author

╰─❯ cat PKGBUILD 
# Maintainer: FabioLolix
# Maintainer: éclairevoyant
# Maintainer: alba4k <[email protected]>
# Contributor: ThatOneCalculator <kainoa at t1c dot dev>

pkgname=hyprland-git
pkgver=0.46.0.r97.ge66eab7b
pkgrel=1
pkgdesc="Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks"
arch=(x86_64 aarch64)
url="https://github.com/hyprwm/Hyprland"

i checked the pkgbuild yay made during the installation script and it looks ok, but it actually isnt,
a workaround in the install.sh script might be:

#... upper part of script
case $SKIP_HYPR_AUR in
true) sleep 0 ;;
*)
  hyprland_installflags="-S"
  $ask || hyprland_installflags="$hyprland_installflags --noconfirm"
  v yay $hyprland_installflags --asdeps gcc cmake libxcb xcb-proto xcb-util xcb-util-keysyms libxfixes libx11 libxcomposite libxrender pixman wayland-protocols cairo pango seatd libxkbcommon xcb-util-wm xorg-xwayland libinput libliftoff libdisplay-info cpio tomlplusplus hyprlang-git hyprcursor-git hyprwayland-scanner-git xcb-util-errors hyprutils-git glaze hyprgraphics-git aquamarine-git
  git clone --recursive https://github.com/hyprwm/Hyprland arch-packages/illogical-impulse-hyprland
  cd arch-packages/illogical-impulse-hyprland
  make all && sudo make installheaders && sudo make install
  ;;
esac

#... lower part of script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants