summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2017-06-26 16:06:08 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2017-06-26 16:35:56 +0200
commit794cced614fd5e0800b478b4a1735f861fa8a5e2 (patch)
tree90f3d247f208ddd397e43f9f23c485f4ac22bcc9
parent07cabcb1562d0f134a1195f1c126f4d60f1dae3d (diff)
downloadguix-794cced614fd5e0800b478b4a1735f861fa8a5e2.tar.gz
gnu: lirc: Fix building on Ubuntu.
* gnu/packages/lirc.scm (lirc)[arguments]: Add ‘disable-kernel-sniffing’
phase.
-rw-r--r--gnu/packages/lirc.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/lirc.scm b/gnu/packages/lirc.scm
index d4c2d18ccc..cd9e06d394 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