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.70
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-11-21 17:56 (UTC)

Dependencies (54)

Required by (61)

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 .. 19 20 21 22 23 24 25 26 27 28 29 .. 32 Next › Last »

rpi2 commented on 2023-09-29 22:27 (UTC)

aarch64, cmake --build ./build --config Release --target all -jnproc 2>/dev/null || getconf NPROCESSORS_CONF [0/2] Re-checking globbed directories... [17/86] Building CXX object CMakeFiles/Hyprland.dir/cmake_pch.hxx.gch FAILED: CMakeFiles/Hyprland.dir/cmake_pch.hxx.gch ...(more)

<deleted-account> commented on 2023-09-29 00:04 (UTC)

Honestly it shouldn't matter if the man pages are outdated or not, its part of the source and PKGBUILD's should be building the source as close to accuracy as possible.

No, I will wait for upstream to do something about the outdated mnapages and the crippled hyprctl help messages.

No, I'm referring to a file that it meant to be installed in /usr/share/xdg-desktop-portal/hyprland-portals.conf (see L72 of the Makefile in the repo). This file tells xdg-desktop-portal the preferred portal that Hyprland wants to use, fixing an age old bug where other portals would conflict under Hyprland. Your PKGBUILD does not include it at all.

̶D̶o̶n̶e̶ Removed, conflicts with repo.

Frontear commented on 2023-09-28 22:55 (UTC) (edited on 2023-09-28 22:58 (UTC) by Frontear)

Honestly it shouldn't matter if the man pages are outdated or not, its part of the source and PKGBUILD's should be building the source as close to accuracy as possible. On the vein of the repo package, it's also wrong because it also lacks the portal conf file described below.

Doesn't that belong to xdg-desktop-portal-hyprland?

No, I'm referring to a file that it meant to be installed in /usr/share/xdg-desktop-portal/hyprland-portals.conf (see L72 of the Makefile in the repo). This file tells xdg-desktop-portal the preferred portal that Hyprland wants to use, fixing an age old bug where other portals would conflict under Hyprland. Your PKGBUILD does not include it at all.

I just don't understand why both yours and the repos PKGBUILD is so unbelievably complicated. The actual build instructions are simple, but for some reason both your PKGBUILD and the repo one rewrite the entire Makefile instructions manually, creating a hell of a PKGBUILD to maintain.

<deleted-account> commented on 2023-09-27 18:20 (UTC)

does not correctly build the package, missing man pages and xdg-portal preference configuration

Cannot reproduce, can you try cleanbuild?

missing man pages

The upstream man page is very incomplete/outdated (hasn't changed in a year), the hyprland package in the repo doesn't contain them either.

and xdg-portal preference configuration

Doesn't that belong to xdg-desktop-portal-hyprland?

<deleted-account> commented on 2023-09-23 14:16 (UTC)

This is only a build script, such problems should be reported upstream.

n0mm4d commented on 2023-09-23 13:47 (UTC)

The last update broke this package and it doesn't open the session on GDM anymore, I'm using the Nvidia driver, and until now, it has been working correctly.

<deleted-account> commented on 2023-08-19 20:15 (UTC)

I tested with wolfpld/tracy in the source array and prepare(). It seems to build. Here is the patch if you are interested.

From 629b7b214d3ac5e10f1ec9af766f616b27aff949 Mon Sep 17 00:00:00 2001
From: memchr <memchr@proton.me>
Date: Sat, 19 Aug 2023 19:29:25 +0000
Subject: [PATCH] include tracy in submodules

---
 PKGBUILD | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 158f7d3..d31f39a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -57,8 +57,10 @@ conflicts=(hyprland)
 source=("git+https://github.com/hyprwm/Hyprland.git"
         "git+https://gitlab.freedesktop.org/wlroots/wlroots.git"
         "git+https://github.com/hyprwm/hyprland-protocols.git"
-        "git+https://github.com/canihavesomecoffee/udis86.git")
+        "git+https://github.com/canihavesomecoffee/udis86.git"
+        "git+https://github.com/wolfpld/tracy")
 b2sums=('SKIP'
+        'SKIP'
         'SKIP'
         'SKIP'
         'SKIP')
@@ -69,6 +71,7 @@ prepare() {
   git config submodule.wlroots.url                        "$srcdir/wlroots"
   git config submodule.subprojects/hyprland-protocols.url "$srcdir/hyprland-protocols"
   git config submodule.subprojects/udis86.url             "$srcdir/udis86"
+  git config submodule.subprojects/tracy.url              "$srcdir/tracy"
   git -c protocol.file.allow=always submodule update

   make fixwlr
-- 
2.41.0

<deleted-account> commented on 2023-08-19 19:28 (UTC)

wolfpld/tracy has been added as a submodule, should it also be added to the source array in PKGBULD?

FabioLolix commented on 2023-07-08 10:46 (UTC)

I don't take everything namcap says as gospel, in gitui-git that's likely due to mass substitution of ${pkgname} with ${pkgname%-git}

eclairevoyant commented on 2023-07-08 10:42 (UTC)

The wiki says one thing, TUs do another.

namcap says that too

namcap is full of garbage, I've seen it say bash scripts don't need bash, it has a stupid way of checking for RELRO as well, and it can't even detect when the package itself contains a given library (so it complains that the package is missing itself). It's a diaper to prevent users from crapping all over the AUR. It is not the canonical reference for whether a package is correct; generally common sense and also proper analysis of the upstream code is needed.

Btw, if you're taking namcap as gospel, it's a bit ironic that a maintainer for namcap (who has also made most of the commits in the last few years) would also make such a commit as the one I linked below for gitui-git ;)