[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/05: gnu: lirc: Fix building on Ubuntu.
From: |
Tobias Geerinckx-Rice |
Subject: |
04/05: gnu: lirc: Fix building on Ubuntu. |
Date: |
Mon, 26 Jun 2017 10:39:50 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 794cced614fd5e0800b478b4a1735f861fa8a5e2
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Mon Jun 26 16:06:08 2017 +0200
gnu: lirc: Fix building on Ubuntu.
* gnu/packages/lirc.scm (lirc)[arguments]: Add ‘disable-kernel-sniffing’
phase.
---
gnu/packages/lirc.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/lirc.scm b/gnu/packages/lirc.scm
index d4c2d18..cd9e06d 100644
--- a/gnu/packages/lirc.scm
+++ b/gnu/packages/lirc.scm
@@ -48,6 +48,13 @@
'(#: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