Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

built Hyprland from git failed with apply.sh error #6364

Closed
LeoGitHuber opened this issue Jun 8, 2024 · 4 comments
Closed

built Hyprland from git failed with apply.sh error #6364

LeoGitHuber opened this issue Jun 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@LeoGitHuber
Copy link

System Info and Version

System/Version info
openSUSE Tumbleweed 20240606

Bug or Regression?

Bug

Description

Built Hyprland from git repository failed with following message.

meson.build:83:11: ERROR: Command `/run/media/kunh/Elements/Github/Hyprland/subprojects/wlroots-hyprland/./patches/apply.sh` failed with status 1.

A full log can be found at /run/media/kunh/Elements/Github/Hyprland/subprojects/wlroots-hyprland/build/meson-logs/meson-log.txt
[56/254] Building CXX object hyprpm/CMakeFiles/hyprpm.dir/src/core/PluginManager.cpp.o
/run/media/kunh/Elements/Github/Hyprland/hyprpm/src/core/PluginManager.cpp: In function ‘std::string execAndGet(std::string)’:
/run/media/kunh/Elements/Github/Hyprland/hyprpm/src/core/PluginManager.cpp:45:50: warning: ignoring attributes on template argument ‘int (*)(FILE*)’ [-Wignored-attributes]
   45 |     const std::unique_ptr<FILE, decltype(&pclose)> pipe(popen(cmd.c_str(), "r"), pclose);
      |                                                  ^
[57/254] Building CXX object hyprctl/CMakeFiles/hyprctl.dir/main.cpp.o
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:15: release] Error 1
make[1]: Leaving directory '/run/media/kunh/Elements/Github/Hyprland'
make: *** [Makefile:34: all] Error 2

meson-log.txt

Patches found. Applying...
FAILED: 'patches/backend-drm-add-support-for-libliftoff-v0.5.0.patch' NOT APPLICABLE

How to reproduce

git clone --recursive https://github.com/hyprwm/Hyprland
cd Hyprland
make all

Crash reports, logs, images, videos

No response

@LeoGitHuber LeoGitHuber added the bug Something isn't working label Jun 8, 2024
@vaxerski
Copy link
Member

vaxerski commented Jun 8, 2024

can you apply the patch manually and show the fail log?

@LeoGitHuber
Copy link
Author

command:
patch -p1 --dry-run -R < patches/backend-drm-add-support-for-libliftoff-v0.5.0.patch
output:

patching file backend/drm/libliftoff.c
Hunk 1 FAILED 8/8.
 #include "backend/drm/drm.h"
 #include "backend/drm/fb.h"
 #include "backend/drm/iface.h"
+#include "config.h"
 
 static bool init(struct wlr_drm_backend *drm) {
 	// TODO: lower log level
patching file backend/drm/meson.build
Hunk 1 FAILED 48/48.
 
 if libliftoff.found()
 	wlr_files += files('libliftoff.c')
+	internal_config.set10('HAVE_LIBLIFTOFF_0_5', libliftoff.version().version_compare('>=0.5.0'))
 endif
 
 features += { 'drm-backend': true }

@Drunk3n-P1nky
Copy link

Same issue here

@vaxerski
Copy link
Member

vaxerski commented Jun 9, 2024

odd, because doesn't happen to CI or me, or anyone else. @fufexan, analysis?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants