Bug 1218411 - Issue compiling hyprland package due to location of libinput header
Summary: Issue compiling hyprland package due to location of libinput header
Status: RESOLVED DUPLICATE of bug 795968
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jan Engelhardt
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-27 07:33 UTC by John Doe
Modified: 2023-12-27 10:55 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Log file of build attempt (53.68 KB, text/plain)
2023-12-27 07:33 UTC, John Doe
Details
File used to build the package for hyprbars (854 bytes, text/plain)
2023-12-27 07:34 UTC, John Doe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Doe 2023-12-27 07:33:09 UTC
Created attachment 871565 [details]
Log file of build attempt

I am trying to compile the hyprbars plugin for hyprland and package it but I am running into issues because of the location of the header for libinput. The header is installed as one of the build dependencies of the package. The header is confirmed to exist through doing an ls command before make all is run. 

Below is the confirmation of the header file existing. This is copied directly from the log file.

[   13s] + ls /usr/include/libinput/libinput.h
[   13s] /usr/include/libinput/libinput.h

I'm guessing the correct location of the header is /usr/include/libinput.h and not the one above. 

One possible solution is to symlink /usr/include/libinput.h to /usr/include/libinput/libinput.h. Another possible solution is patching the headers in hyprland-dev to properly reference the location of libinput.h.
Comment 1 John Doe 2023-12-27 07:34:22 UTC
Created attachment 871566 [details]
File used to build the package for hyprbars
Comment 2 Jan Engelhardt 2023-12-27 10:55:18 UTC
You have to use pkg-config to obtain compiler flags for libinput. (Just like for the babl library for example.)

*** This bug has been marked as a duplicate of bug 795968 ***