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)

Dependencies (54)

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 .. 23 24 25 26 27 28 29 30 31 32 Next › Last »

kschat commented on 2023-03-10 14:18 (UTC)

libdisplay-info is still required as a dependency. Please update the PKGBUILD to include it.

lwschuch commented on 2023-03-09 12:40 (UTC)

After installing libliftoff and libdisplay-info(AUR) I was able to install the update, as dedguy21 said.

dedguy21 commented on 2023-03-09 03:42 (UTC) (edited on 2023-03-09 03:42 (UTC) by dedguy21)

FYI: If you are a mesa-git user, you will still need to manually add mesa-git to the PKGBUILD as a "depends".

While there is no specific dependency for any version of "mesa" called out, the opengl-driver dep is only giving the "mesa" option as a provider, sorta forcing you to install and removing mesa-git.

That1Calculator commented on 2023-03-09 02:28 (UTC)

All problems have been fixed :)

dedguy21 commented on 2023-03-08 03:25 (UTC) (edited on 2023-03-08 04:00 (UTC) by dedguy21)

Hi I had a couple of issues with this package after the latest update. Per discord:

vaxry — 03/03/2023 4:03 PM @everyone Hyprland's updated its wlroots dep and as such for -git users: we got 2 new deps, on arch they are libliftoff and libdisplay-info(AUR)

So you might want to add the two new deps to the PKGBUILD, because otherwise it fails to build. Also it seems like mesa-git needs to be added to the list of mesa deps, having a hard time building it against it.

Thanks for maitiaing this package

pulsar256 commented on 2023-03-04 11:31 (UTC)

I've tried to simplify the build process to avoid future problems with keeping the build steps in the PKGBUILD and the upstream git repo in sync. This might help for the time being until this aur has been sorted out

https://gist.github.com/pulsar256/76ab2596455dd7aa0e4a64327cb6485f

justinesmithies commented on 2023-03-03 21:51 (UTC) (edited on 2023-03-03 21:51 (UTC) by justinesmithies)

Just a note if the fix below fails to build make sure you also have these deps installed too.

libdisplay-info (AUR)
libliftoff

Youngermaster commented on 2023-03-03 21:12 (UTC) (edited on 2023-03-03 21:14 (UTC) by Youngermaster)

@voidspawn, for now you can make it work downloading the AUR Package and editing the PKGBUILD.

Run this* (this part was edited):

git clone https://aur.archlinux.org/hyprland-git.git
# or (If you have SSH support for AUR)
git clone ssh://aur@aur.archlinux.org/hyprland-git.git

And then edit the PKGBUILD (as @justinesmithies stated before) build section with:

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 ..
}

voidspawn commented on 2023-03-02 15:26 (UTC)

i confirm the problem that justinesmithies is talking about, this packages can't build, i get the same error as him.