Package Details: hyprland-git 0.44.0.r46.0baf166d-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: 94
Popularity: 8.13
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2024-10-17 15:07 (UTC)

Required by (57)

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 .. 13 14 15 16 17 18 19 20 21 22 23 .. 30 Next › Last »

reeeeeeeeeeelity commented on 2023-10-21 06:28 (UTC) (edited on 2023-10-21 06:29 (UTC) by reeeeeeeeeeelity)

https://github.com/hyprwm/Hyprland/commit/c0082519ae476cf7fb75fcb2016607d193b14c49

I have no idea why it depends on vulkan packages since it does not use the wlroots vulkan backend at all.

the dependency is introduced in 5d9e43565, probably at some point building wlroots requires it. While it is not the case anymore. https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3850

Tested it out and I have not met any problem building or running without.

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

I have no idea why it depends on vulkan packages since it does not use the wlroots vulkan backend at all.

Don't think hyprland depends on vulkan-validation-layers anymore. Should be safe to remove that?

Do you have references?

reeeeeeeeeeelity commented on 2023-10-20 09:45 (UTC)

Don't think hyprland depends on vulkan-validation-layers anymore. Should be safe to remove that?

xiota commented on 2023-10-18 23:49 (UTC) (edited on 2023-10-18 23:58 (UTC) by xiota)

I tried rebuilding the old commit (on chaotic), adding xdg-desktop-portal-hyprland to makedepends also seems to prevent the extra files from being added.

$ tar tf hyprland-git-0.31.0.r7.a0b675ec-3-x86_64.pkg.tar.zst | grep xml || echo nothing
nothing

Thank you for your patience and working on resolving the issue.

chaotic-aur now has hyprland-git-0.31.0.r8.d70cc88d-1 without the extra files. There's also a new build of xdg-desktop-portal-hyprland-git, but the aur package is still broken, so it will go out of date as soon as there's a new commit.

<deleted-account> commented on 2023-10-18 23:39 (UTC)

Definitely this one, I think Meson's default is to install only modified data files. I added --skip-subprojects hyprland-protocols as a workaround.


hyprland-git-0.31.0.r8.d70cc88d-1-x86_64.pkg.tar.zst:

I made this change before d70cc88d.


Logically, I think the files installed by hyprland-protocols belong to the hyprland package.

xiota commented on 2023-10-18 23:29 (UTC) (edited on 2023-10-18 23:42 (UTC) by xiota)

Related? https://github.com/hyprwm/Hyprland/issues/2568

<deleted-account> commented on 2023-10-18 22:43 (UTC)

No, that's for headers. I mean, why do subprojects/hypprotocols behave differently?

xiota commented on 2023-10-18 22:40 (UTC) (edited on 2023-10-18 22:44 (UTC) by xiota)

In protocols/meson.build, there is the following:

protocols = [
  ...
  [hl_protocol_dir, 'protocols/hyprland-toplevel-export-v1.xml'],
  [hl_protocol_dir, 'protocols/hyprland-global-shortcuts-v1.xml']
]
...
foreach p : protocols
        ...
        wl_protos_headers += custom_target(
                ...
                install: true,
                ...
        )
endforeach

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

I just build it in docker, it indeed creates install targets for hyprland-protocols. But I wonder why.

xiota commented on 2023-10-18 22:16 (UTC) (edited on 2023-10-18 22:21 (UTC) by xiota)

@grappas Don't use xdg-desktop-portal-hyprland-git. The package is broken. See the aur comments for complaints about packaging issues. (But if you insist, pacman has an --overwrite option. You're on your own figuring it out.)

@memchr I don't care to waste local computing resources to rebuild this. Doesn't really matter to me if there are a couple extra files. I can provide a chaotic-aur build log if you want to try to figure out why they're being included.