Package Details: hyprland-git 0.45.0.r18.3fb47372-1

Git Clone URL: https://aur.archlinux.org/hyprland-git.git (read-only, click to copy)
Package Base: hyprland-git
Description: Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks
Upstream URL: https://github.com/hyprwm/Hyprland
Licenses: BSD-3-Clause
Conflicts: hyprland
Provides: hyprland
Submitter: hertog
Maintainer: Vaxry (zjeffer, alba4k)
Last Packager: alba4k
Votes: 97
Popularity: 8.30
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-11-21 17:56 (UTC)

Required by (59)

Sources (2)

Pinned Comments

zjeffer commented on 2024-07-17 16:50 (UTC) (edited on 2024-07-17 16:52 (UTC) by zjeffer)

Tips & tricks, common issues

using ccache/sccache

Precompiled headers (PCH) was enabled by default, this would most likely invalidate the compiler cache if any of the upstream header files change. To disable PCH, add the meson build option -Db_pch=false to build().

build() {
  ...
  meson setup build \
    -D b_pch=false
  ...
}

Build with specific pull requests

Use pick_mr <pull request number> at the end of prepare() to merge pull requests locally. For example, to merge https://github.com/hyprwm/Hyprland/pull/6268, use

prepare() {
    ...

    pick_mr 6268
}

Enable legacy renderer

In the build() function, add -D legacy_renderer=true to meson setup

Compilation errors

If you encounter compilation errors, try the following first:

  • If errors are raised by generated source files under protocols/, such as protocols/linux-dmabuf-v1.hpp, then rebuild or install hyprwayland-scanner-git;
  • Compile with makepkg --cleanbuild.

Symbol not declared

Errors like

  • <symbol> was not declared in this scope
  • <symbol> has not been declared

are usually caused by missing headers. Please consider reporting this upstream or creating a pull request if it has not already been done.

Latest Comments

« First ‹ Previous 1 .. 21 22 23 24 25 26 27 28 29 30 31 32 Next › Last »

rpi2 commented on 2023-06-18 07:46 (UTC)

thanks guys, thought wlroots just building dependency.

eclairevoyant commented on 2023-06-18 02:50 (UTC) (edited on 2023-06-18 02:52 (UTC) by eclairevoyant)

I installed the wlroots header files because a) it's what the [extra] repo package does, b) hyprland includes wlroots with their own patches, and c) any hyprland plugins likely expect these files to be able to build

FabioLolix commented on 2023-06-17 13:36 (UTC)

why is install wlroots for,etc?

Wayland compositor based on wlroots and is used as git submodules instead of using the system version (may not be compatible with system version)

rpi2 commented on 2023-06-17 02:35 (UTC)

why is install wlroots for,etc?

mitch_mg2 commented on 2023-06-15 23:49 (UTC)

@eclairevoyant. Build works! Congrats. Now we wait...

eclairevoyant commented on 2023-06-15 23:38 (UTC) (edited on 2023-06-15 23:39 (UTC) by eclairevoyant)

Fixed PKGBUILD here: https://gist.github.com/eclairevoyant/0007c44a52c715f243452d17362104b3#file-pkgbuild

This also fixes a reference to $srcdir in /usr/include/hyprland/wlroots/config.h

eclairevoyant commented on 2023-06-15 22:40 (UTC)

Anyway I'm working on a PKGBUILD that should fix-fix all the issues below. Maybe I'll file a bug report for the Arch package too since it seems to have the missing-RELRO issue as well...

eclairevoyant commented on 2023-06-15 22:27 (UTC) (edited on 2023-06-15 22:27 (UTC) by eclairevoyant)

@mitch_mg2 your PKGBUILD also doesn't follow the git submodule guidelines as per https://wiki.archlinux.org/title/VCS_package_guidelines#Git_submodules and also doesn't handle LDFLAGS fully because it builds without RELRO - it has fixed it for Hyprland and the so-file but not for hyprctl. namcap also highlights an insecure RUNPATH here which I just noticed (same issue in the AUR PKGBUILD though).

Also I just noticed that gcc is in the makedepends, it should be removed since it's part of base-devel.

But to answer @rpi2's question, it builds fine in a clean chroot. So..... build in a clean chroot lol

mitch_mg2 commented on 2023-06-15 17:58 (UTC)

@rpi2. Raise an issue on the github so we don't litter the comments section with troubleshooting. This original PKGBUILD from 2023-03-20 has built fine for me on 0.26, which you were not able to build either and had to revert to 2947. I tested my custom PKGBUILD on a clean docker instance of arch:base-devel using this script (it uses yay as its aur helper): https://github.com/Stunkymonkey/aur-pkgbuild-tester

I built it successfully just some 15 minutes ago on the latest git commit "[gha] bump flake inputs" Im thinking it might be some sort of configuration error. I can help you over at github issues. @eclairevoyant and @Brynte can you test this as well?

rpi2 commented on 2023-06-15 10:07 (UTC)

@mitch_mg2, wlroots update & PKGBUILD got error.