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.47
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 .. 16 17 18 19 20 21 22 23 24 25 26 .. 32 Next › Last »

xiota commented on 2023-10-18 21:42 (UTC) (edited on 2023-10-18 21:48 (UTC) by xiota)

hyprland-git-0.31.0.r7.a0b675ec-1-x86_64.pkg.tar.zst, built yesterday, clean chroot.

$ tar tf hyprland-git-0.31.0.r7.a0b675ec-1-x86_64.pkg.tar.zst | grep xml
usr/share/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml
usr/share/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml

<deleted-account> commented on 2023-10-18 21:14 (UTC)

@grappas

$ pacman -Ql hyprland-git | grep 'hyprland-toplevel-export-v1.xml'

Nope, hyprland-git does not install these files, your packages are out of date.

grappas commented on 2023-10-18 20:32 (UTC)

error: failed to commit transaction (conflicting files)
xdg-desktop-portal-hyprland-git: /usr/share/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml exists in filesystem (owned by hyprland-git)
xdg-desktop-portal-hyprland-git: /usr/share/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml exists in filesystem (owned by hyprland-git)
xdg-desktop-portal-hyprland-git: /usr/share/pkgconfig/hyprland-protocols.pc exists in filesystem (owned by hyprland-git)
Errors occurred, no packages were upgraded.
 -> error installing repo packages

<deleted-account> commented on 2023-10-18 03:00 (UTC)

Thanks, fixed.

therafal commented on 2023-10-16 23:29 (UTC) (edited on 2023-10-16 23:37 (UTC) by therafal)

@memchr I use Artix with s6 as init. ~Seems like it still gives the same error.~

Edit: My bad, didn't clear the cache of paru. It works now. Thanks a lot

<deleted-account> commented on 2023-10-16 23:13 (UTC)

@therafal Fixed, please try again. Apparently the cause of the error is that the arch-meson script uses auto_features=enabled.

<deleted-account> commented on 2023-10-16 22:41 (UTC)

What is your system? systemd is a hard dependency of base (archlinux), required by virtually all packages, including pacman.

therafal commented on 2023-10-16 22:30 (UTC) (edited on 2023-10-16 22:31 (UTC) by therafal)

@memchr

paru -S hyprland-git

Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)

meson.build:54:14: ERROR: Dependency "libsystemd" not found, tried pkgconfig and cmake

meson-log.txt

...
1451   Called: `/usr/bin/pkg-config --modversion libsystemd` -> 1
1452   stderr:
1453   Package libsystemd was not found in the pkg-config search path.
1454   Perhaps you should add the directory containing `libsystemd.pc'
1455   to the PKG_CONFIG_PATH environment variable
1456   Package 'libsystemd', required by 'virtual:world', not found
1457   -----------
...
1481   Try CMake generator: auto
1482   Calling CMake (['/usr/bin/cmake']) in /home/foo/.cache/paru/clone/hyprland-git/src/Hyprland/build/meson-private/cmake_libsystemd
        with:
1483     - "--trace-expand"
1484     - "--trace-format=json-v1"
1485     - "--no-warn-unused-cli"
1486     - "--trace-redirect=cmake_trace.txt"
1487     - "-DCMAKE_TOOLCHAIN_FILE=/home/foo/.cache/paru/clone/hyprland-git/src/Hyprland/build/meson-private/cmake_libsystemd/CMakeMeso
       nToolchainFile.cmake"
1488     - "."
1489     -- Module search paths:    ['/', '/opt', '/usr', '/usr/local']
1490     -- CMake root:             /usr/share/cmake
1491     -- CMake architectures:    ['libpyldb-util.cpython-311-x86-64-linux-gnu.so', 'libpyldb-util.cpython-311-x86-64-linux-gnu.so.2', 
       'libpyldb-util.cpython-311-x86-64-linux-gnu.so.2.8.0', 'libpytalloc-util.cpython-311-x86-64-linux-gnu.so', 'libpytalloc-util.cpyth
       on-311-x86-64-linux-gnu.so.2', 'libpytalloc-util.cpython-311-x86-64-linux-gnu.so.2.4.1', 'libsamba-policy.cpython-311-x86-64-linux
       -gnu.so', 'libsamba-policy.cpython-311-x86-64-linux-gnu.so.0', 'libsamba-policy.cpython-311-x86-64-linux-gnu.so.0.0.1']
1492     -- CMake lib search paths: ['lib', 'lib32', 'lib64', 'libx32', 'share', 'lib/libpyldb-util.cpython-311-x86-64-linux-gnu.so', 'li
       b/libpyldb-util.cpython-311-x86-64-linux-gnu.so.2', 'lib/libpyldb-util.cpython-311-x86-64-linux-gnu.so.2.8.0', 'lib/libpytalloc-ut
       il.cpython-311-x86-64-linux-gnu.so', 'lib/libpytalloc-util.cpython-311-x86-64-linux-gnu.so.2', 'lib/libpytalloc-util.cpython-311-x
       86-64-linux-gnu.so.2.4.1', 'lib/libsamba-policy.cpython-311-x86-64-linux-gnu.so', 'lib/libsamba-policy.cpython-311-x86-64-linux-gn
       u.so.0', 'lib/libsamba-policy.cpython-311-x86-64-linux-gnu.so.0.0.1']
1493   Preliminary CMake check failed. Aborting.
1494   Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)
1495   
1496   meson.build:54:14: ERROR: Dependency "libsystemd" not found, tried pkgconfig and cmake