Package Details: hyprcursor-git 0.1.11.r3.g9c5dd1f7-1

Git Clone URL: https://aur.archlinux.org/hyprcursor-git.git (read-only, click to copy)
Package Base: hyprcursor-git
Description: The hyprland cursor format, library and utilities
Upstream URL: https://github.com/hyprwm/hyprcursor
Licenses: BSD-3-Clause
Conflicts: hyprcursor
Provides: hyprcursor, libhyprcursor.so
Submitter: alba4k
Maintainer: alba4k (Vaxry)
Last Packager: alba4k
Votes: 8
Popularity: 0.40
First Submitted: 2024-03-07 18:46 (UTC)
Last Updated: 2025-02-01 18:13 (UTC)

Dependencies (8)

Required by (13)

Sources (1)

Latest Comments

1 2 Next › Last »

abu_bua commented on 2025-02-05 10:46 (UTC) (edited on 2025-02-05 10:47 (UTC) by abu_bua)

@alba4k

I rebuilt the hyprlang-git package, but without a positive outcome.

alba4k commented on 2025-02-04 20:08 (UTC)

rebuild hyprlang

abu_bua commented on 2025-02-03 23:56 (UTC) (edited on 2025-02-04 00:00 (UTC) by abu_bua)

Cannot build package ( 0.1.11.r3.g9c5dd1f7-1 ) since it links to libhyprutils.so.3 but the dependency hyprutils-git (via hyprland-git) provides the newer libhyprutils.so.4.

The error (only relevant part shown) of the command makepkg -s is shown below:

...
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/hyprcursor_test1.dir/build.make:122: hyprcursor_test1] Error 1
make[1]: *** [CMakeFiles/Makefile2:1124: CMakeFiles/hyprcursor_test1.dir/all] Error 2
/usr/bin/ld: warning: libhyprutils.so.3, needed by /usr/lib/libhyprlang.so, not found (try using -rpath or -rpath-link)
...
[100%] Linking CXX executable hyprcursor-util
/usr/bin/ld: warning: libhyprutils.so.3, needed by /usr/lib/libhyprlang.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::CVarList::CVarList(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, char, bool)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::isNumber(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: /usr/lib/libhyprlang.so: undefined reference to `Hyprutils::String::replaceInString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/hyprcursor-util.dir/build.make:122: hyprcursor-util] Error 1
make[1]: *** [CMakeFiles/Makefile2:1056: CMakeFiles/hyprcursor-util.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: hyprcursor-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
hyprcursor-git - exit status 4
Fast Fix

Linking libhyprutils.so.3 with the following command

sudo ln -s /usr/lib/libhyprutils.so.0.5.0 /usr/lib/libhyprutils.so.3

lets the package install and all seems to work fine. However, this is not a clean solution.

Please try building the package. I tried to fix it but I am not common with the nix-flakes system. Thanks

earlybird commented on 2024-12-23 07:46 (UTC)

Can you try building the package?

musta_ruhtinas commented on 2024-07-25 09:30 (UTC) (edited on 2024-07-25 09:30 (UTC) by musta_ruhtinas)

/usr/bin/ld: warning: libhyprutils.so.1, needed by /usr/lib/libhyprlang.so, not found (try using -rpath or -rpath-link)

hyprutils is now required for build

zjeffer commented on 2024-07-17 19:00 (UTC) (edited on 2024-07-17 19:03 (UTC) by zjeffer)

@alba4k Yes, the first time I probably accidentally pressed enter a couple of times before the question even popped up, causing the N option to be selected twice. Like I mentioned in my edit it did work when I tried again. But there is still a problem when passing --noconfirm in scripts because then it won't remove hyprlang. For example my GitHub action that simply installs hyprland-git with --noconfirm fails: error: can not install conflicting packages with --noconfirm.

The bigger problem remains that this package does not use the -git package in the depends list (but hyprland-git now does for every hypr dependency). In the case of hyprcursor-git, the package build will fail in this scenario:

  • The hyprlang repo introduces a breaking change
  • The hyprcursor repo is updated to use the breaking change
  • There is no new hyprlang release yet that contains this breaking change

I remember we've had this kind of scenario happen a couple times with hyprland-git, which is why I updated the AUR package to use the -git versions. I feel this package should do the same.

alba4k commented on 2024-07-17 18:41 (UTC) (edited on 2024-07-17 18:42 (UTC) by alba4k)

@alerque wdym, that is already that way I think? You might have an outdated PKGBUILD?

@asgard that is vaxrys fault and not mine.

@musta_ruhtinas It's already in the depends, outdated PKGBUILD maybe? not sure whether it should be a dep or a makedep tho.

@zjeffer pacman is asking you something you should probably read before just pressing enter ;)

Remove hyprlang? [y/N]

zjeffer commented on 2024-07-17 18:02 (UTC) (edited on 2024-07-17 18:23 (UTC) by zjeffer)

@alba4k I updated hyprland-git's PKGBUILD to use all -git packages, but now I'm getting this issue when installing hyprland-git:

:: Calculating inner conflicts...
:: Inner conflicts found:
    hyprlang: hyprlang-git (hyprlang)  

and

==> Cleaning up...
loading packages...
resolving dependencies...
looking for conflicting packages...
:: hyprlang-git-0.5.2.r5.5df0174-1 and hyprlang-0.5.2-1 are in conflict. Remove hyprlang? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: hyprlang-git-0.5.2.r5.5df0174-1 and hyprlang-0.5.2-1 are in conflict
loading packages...
resolving dependencies...
looking for conflicting packages...
:: hyprlang-git-0.5.2.r5.5df0174-1 and hyprlang-0.5.2-1 are in conflict. Remove hyprlang? [y/N] 
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: hyprlang-git-0.5.2.r5.5df0174-1 and hyprlang-0.5.2-1 are in conflict
error: packages failed to build: hyprland-git-0.41.2.r43.293e6873-1

Can you update the PKGBUILD to also use the -git package for hyprlang?

EDIT: after trying again, I was able to answer 'y' to the above questions and install hyprland. Still, it would be better if every -git package also used -git dependencies.

musta_ruhtinas commented on 2024-04-26 09:12 (UTC) (edited on 2024-04-26 09:13 (UTC) by musta_ruhtinas)

Apparently tomlplusplus is also needed to build.


CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:634 (message):
  The following required packages were not found:

   - tomlplusplus

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:862 (_pkg_check_modules_internal)
  CMakeLists.txt:23 (pkg_check_modules)