Package Details: hyprland-git 0.46.0.r115.ga6b26371-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, BSD-2-Clause
Conflicts: hyprland
Provides: hyprland, wayland-compositor
Submitter: hertog
Maintainer: Vaxry (zjeffer, alba4k)
Last Packager: alba4k
Votes: 95
Popularity: 2.37
First Submitted: 2022-04-12 20:26 (UTC)
Last Updated: 2025-01-15 20:42 (UTC)

Required by (63)

Sources (2)

Latest Comments

« First ‹ Previous 1 .. 27 28 29 30 31 32 33 34 35 36 37 Next › Last »

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.

mitch_mg2 commented on 2023-06-14 16:47 (UTC)

Sorry for the github plug, but I've hosted a revised PKGBUILD in my own repo, use at your own risk. Here are the following changes:

Removed the options flags that almost certainly caused the LDFLAGS errors (Section 4.4 in the ArchWiki: https://wiki.archlinux.org/title/makepkg ). Outright copy pasted @eclairevoyant's pkgver line. Removed -j flag Build and Package functions almost entirely copied off official repo package. There was a few discrepancies with file permissions Inserted header files several plugins rely on (such as hy3) that do not exist in the -git PKGBUILD. Also off the official PKGBUILD. Added a quick "prepare" function. Could use some revision but seems to work for now. Changed arch to x86_64 and aaarch64.

Please let me know of any issues with my edited PKGBUILD. Again, use at your own risk, this is experimental. https://github.com/MitchMG2/HyprlandPKGBUILDCustom

rpi2 commented on 2023-05-30 00:30 (UTC)

can build 2947 but not 0.26?

UltimateKyle commented on 2023-05-29 01:02 (UTC)

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hyprland-hidpi-xprop-git#n116

Are there any reasons why this isn't in the PKGBUILD?

eclairevoyant commented on 2023-05-26 05:43 (UTC) (edited on 2023-05-26 06:05 (UTC) by eclairevoyant)

@Brynte builds fine in a clean chroot

@That1Calculator There are some significant issues with this package:

  • Please correct the arch array, any is incorrect due to building C++ code. It should be x86_64 and optionally any other supported architectures.

  • pkgver() should be corrected since upstream does versioned releases, you can use something like the following, which produces a proper version 0.25.0.r60.a2bb95fc:

pkgver() {    
    git -C $_pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'    
}
  • Looks like LDFLAGS are not correctly passed through to the build process:
hyprland-git W: ELF file ('usr/bin/Hyprland') lacks FULL RELRO, check LDFLAGS.
hyprland-git W: ELF file ('usr/bin/hyprctl') lacks FULL RELRO, check LDFLAGS.
hyprland-git W: ELF file ('usr/lib/libwlroots.so.12032') lacks FULL RELRO, check LDFLAGS.
  • Never set -j$(shell nproc) or -j$(nproc) in a PKGBUILD, you should always respect the user's MAKEFLAGS (with the one exception that you can use -j1 if upstream code doesn't support parallelised builds / there are race conditions)

  • As per guidelines, "Try to keep the line length in the PKGBUILD below ~100 characters." - see https://wiki.archlinux.org/title/Arch_package_guidelines#Package_etiquette

    EDIT: you can refer to hyprland in the repos to see how they handle it, they use pushd/popd pairs for readability and all commands go on separate lines.

  • Submodules should be added to sources and init'd in prepare() so that build() can be run entirely offline. you can refer to https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libdxvk for an example of how to do this

Brynte commented on 2023-05-04 11:22 (UTC)

Missing python-cmake-build-extension as make dependency

rpi2 commented on 2023-05-01 02:47 (UTC)

build r2852, no issue.

justinesmithies commented on 2023-04-21 19:29 (UTC) (edited on 2023-04-21 19:43 (UTC) by justinesmithies)

[ Issue Found ] - https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3637

This fails to build as of todays updates.

Error shown below relating to PKGBUILD

Found ninja-1.11.1 at /usr/bin/ninja
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
ninja: Entering directory `build/'
[365/422] Compiling C object libwlroots.so.12032.p/xcursor_xcursor.c.o
FAILED: libwlroots.so.12032.p/xcursor_xcursor.c.o 
cc -Ilibwlroots.so.12032.p -I. -I.. -Iinclude -I../include -Iprotocol -I../protocol -Irender/gles2/shaders -Irender/vulkan/shaders -Ibackend/drm -I/usr/include/libdrm -I/usr/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3 -DWLR_USE_UNSTABLE -DWLR_LITTLE_ENDIAN=1 -DWLR_BIG_ENDIAN=0 -Wundef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wstrict-prototypes -Wimplicit-fallthrough=2 -Wendif-labels -Wstrict-aliasing=2 -Woverflow -Wmissing-prototypes -Walloca -Wno-missing-braces -Wno-missing-field-initializers -Wno-unused-parameter -fmacro-prefix-map=../= -fPIC -MD -MQ libwlroots.so.12032.p/xcursor_xcursor.c.o -MF libwlroots.so.12032.p/xcursor_xcursor.c.o.d -o libwlroots.so.12032.p/xcursor_xcursor.c.o -c ../xcursor/xcursor.c
../xcursor/xcursor.c: In function ‘xcursor_load_theme’:
../xcursor/xcursor.c:597:39: error: ‘%s’ directive output between 7 and 7 bytes may cause result to exceed ‘INT_MAX’ [-Werror=format-truncation=]
  597 |         snprintf(full, full_size, "%s/%s/%s", dir, subdir, file);
      |                                       ^~
......
  765 |                 full = xcursor_build_fullname(dir, "cursors", "");
      |                                                    ~~~~~~~~~
../xcursor/xcursor.c:597:41: error: ‘/’ directive output between 1 and 1 bytes may cause result to exceed ‘INT_MAX’ -Werror=format-truncation=]
  597 |         snprintf(full, full_size, "%s/%s/%s", dir, subdir, file);
      |                                         ^
cc1: all warnings being treated as errors
[382/422] Compiling C object libwlroots.so.12032.p/xwayland_xwm.c.o
ninja: build stopped: subcommand failed.
/home/justine/.cache/paru/clone/hyprland-git/PKGBUILD: line 72: cd: udis86: No such file or directory
make: *** No rule to make target 'protocols'.  Stop.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'hyprland-git-r2580.71ef1bde-3': 
error: packages failed to build: hyprland-git-r2580.71ef1bde-3