gnu: lirc: Fix building on Ubuntu.

* gnu/packages/lirc.scm (lirc)[arguments]: Add ‘disable-kernel-sniffing’
phase.
This commit is contained in:
Tobias Geerinckx-Rice 2017-06-26 16:06:08 +02:00
parent 07cabcb156
commit 794cced614
No known key found for this signature in database
GPG key ID: 91CCDB9B48541B99

View file

@ -48,6 +48,13 @@ (define-public lirc
'(#:configure-flags '("--localstatedir=/var")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'disable-kernel-sniffing
(lambda _
;; Correct the faulty assumption that systemd support should be
;; hard-wired when a build host's /proc/version contains "Ubuntu".
(substitute* "configure"
(("kernelversion=.*") "kernelversion=irrelevant\n"))
#t))
(add-after 'unpack 'patch-lirc-make-devinput
(lambda* (#:key inputs #:allow-other-keys)
;; 'lirc-make-devinput' script assumes that linux headers