mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: lirc: Fix build with GCC 14.
* gnu/packages/lirc.scm (lirc)[arguments]: Add 'fix-gcc14-build phase to include sys/sysmacros.h for major() and minor() macros. Change-Id: I5afcab6ed242e59441ced84d1c498a5f9cba9a50 Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
2987b63d8f
commit
b5ff51a918
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@
|
|||
(let ((headers (assoc-ref inputs "kernel-headers")))
|
||||
(substitute* "tools/lirc-make-devinput"
|
||||
(("/usr/include") (string-append headers "/include"))))))
|
||||
(add-after 'unpack 'fix-gcc14-build
|
||||
(lambda _
|
||||
;; Fix missing sys/sysmacros.h for major() and minor() macros
|
||||
(substitute* "plugins/default.c"
|
||||
(("#include <sys/types.h>" all)
|
||||
(string-append all "\n#include <sys/sysmacros.h>")))))
|
||||
(add-after 'unpack 'patch-doc/Makefile.in
|
||||
(lambda _
|
||||
;; Lirc wants to install several images and a useless html page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue