diff options
author | Rutherther <rutherther@protonmail.com> | 2024-09-08 18:26:15 +0000 |
---|---|---|
committer | John Kehayias <john.kehayias@protonmail.com> | 2024-11-05 11:56:35 -0500 |
commit | 62a9c2d29ba5c682e34ae480fbd3c21ffdf26fb1 (patch) | |
tree | 501d3f2397d745f65a9e0959d9d3e864cfc8f91b /gnu/packages/patches/wlroots-hwdata-fallback.patch | |
parent | 88a6cb6fc85376d19ed3632ba384349b34318069 (diff) | |
download | guix-62a9c2d29ba5c682e34ae480fbd3c21ffdf26fb1.tar.gz guix-62a9c2d29ba5c682e34ae480fbd3c21ffdf26fb1.zip |
gnu: wlroots: Remove unneeded hwdata patch.
* gnu/packages/wm.scm (wlroots)[source]: Remove patch.
* gnu/packages/patches/wlroots-hwdata-fallback.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): De-register it.
Change-Id: I4be3e203b99f1d8e4d837164d55a8c06c8fc71ee
Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
Diffstat (limited to 'gnu/packages/patches/wlroots-hwdata-fallback.patch')
-rw-r--r-- | gnu/packages/patches/wlroots-hwdata-fallback.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gnu/packages/patches/wlroots-hwdata-fallback.patch b/gnu/packages/patches/wlroots-hwdata-fallback.patch deleted file mode 100644 index 6468c7cbf3..0000000000 --- a/gnu/packages/patches/wlroots-hwdata-fallback.patch +++ /dev/null @@ -1,46 +0,0 @@ -backend/drm: add hardcoded hwdata path fallback - -Add hardcoded fallback "/usr/share/hwdata/pnp.ids" as a -temporary solution to get things working in Guix until -hwdata ships with pkg-config file. - -diff --git a/backend/drm/meson.build b/backend/drm/meson.build -index 6fcb2c15..ed95360a 100644 ---- a/backend/drm/meson.build -+++ b/backend/drm/meson.build -@@ -1,8 +1,7 @@ - hwdata = dependency( - 'hwdata', -- required: 'drm' in backends, -+ required: false, - native: true, -- not_found_message: 'Required for the DRM backend.', - ) - - libdisplay_info = dependency( -@@ -19,15 +18,21 @@ libliftoff = dependency( - required: false, - ) - --if not (hwdata.found() and libdisplay_info.found() and features['session']) -+if hwdata.found() -+ hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir') -+ pnp_ids = files(hwdata_dir / 'pnp.ids') -+else -+ pnp_ids = files('/usr/share/hwdata/pnp.ids') -+endif -+ -+if not (libdisplay_info.found() and features['session']) - subdir_done() - endif - --hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir') - pnpids_c = custom_target( - 'pnpids.c', - output: 'pnpids.c', -- input: files(hwdata_dir / 'pnp.ids'), -+ input: pnp_ids, - feed: true, - capture: true, - command: files('gen_pnpids.sh'), - |