unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add mcelog.
Date: Wed, 14 Sep 2016 15:20:39 +0200	[thread overview]
Message-ID: <1473859239-8101-1-git-send-email-me@tobias.gr> (raw)

* gnu/packages/linux.scm (mcelog): New variable.
---
 gnu/packages/linux.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 3ec6514..fc4faa4 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -74,6 +74,7 @@
   #:use-module (guix build-system python)
   #:use-module (guix build-system trivial)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils)
@@ -2939,3 +2940,43 @@ the default @code{nsswitch} and the experimental @code{umich_ldap}.")
      "Tools for loading and managing Linux kernel modules, such as `modprobe',
 `insmod', `lsmod', and more.")
     (license license:gpl2+)))
+
+(define-public mcelog
+  (package
+    (name "mcelog")
+    (version "141")
+    (source
+     (let ((commit (string-append "v" version)))
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git")
+               (commit commit)))
+         (sha256
+          (base32
+           "0iqvqiwf3aawmgjcyg2rj427m8nvfbfnmmfv0606nhr59l14h5jr"))
+         (file-name (string-append name "-" version))
+         (modules '((guix build utils)))
+         (snippet
+          ;; Hard-code version to avoid a git (and .git/) build dependency.
+          `(substitute* "Makefile"
+             (("\"unknown\"") (string-append "\"" ,commit "\"")))))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (delete 'configure))  ; no configure script
+                #:make-flags (list "CC=gcc"
+                                   (string-append "DESTDIR="
+                                                  (assoc-ref %outputs "out"))
+                                   "prefix="
+                                   "DOCDIR=/share/doc/mcelog"
+                                   "etcprefix=$(DOCDIR)/examples")
+                #:tests? #f))           ; tests must be run as root
+    (home-page "http://mcelog.org/")
+    (synopsis "Machine check monitor for x86 Linux systems")
+    (description
+     "The mcelog daemon is required by the Linux kernel to log memory, I/O,
+      CPU, and other hardware errors on x86 systems.  It can also perform
+      user-defined tasks, such as bringing bad pages off-line, when
+      configurable error thresholds are exceeded.")
+    (license license:gpl2)))
-- 
2.7.4

             reply	other threads:[~2016-09-14 13:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-14 13:20 Tobias Geerinckx-Rice [this message]
2016-09-14 13:45 ` [PATCH] gnu: Add mcelog Marius Bakke
2016-09-14 15:03   ` Tobias Geerinckx-Rice
2016-09-14 15:19     ` Marius Bakke
2016-09-14 15:27       ` Danny Milosavljevic
2016-09-14 15:32         ` Marius Bakke
2016-09-14 18:46           ` Tobias Geerinckx-Rice
2016-09-14 19:12       ` Tobias Geerinckx-Rice
2016-09-14 19:32         ` Marius Bakke
2016-09-14 15:23     ` Danny Milosavljevic
2016-09-14 15:02 ` Ludovic Courtès
2016-09-14 15:06   ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1473859239-8101-1-git-send-email-me@tobias.gr \
    --to=me@tobias.gr \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).