unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Rouby Pierre-Antoine <pierre-antoine.rouby@inria.fr>
To: 31226@debbugs.gnu.org
Cc: Rouby Pierre-Antoine <pierre-antoine.rouby@inria.fr>
Subject: [bug#31226] [PATCH] gnu: Add libpfm4.
Date: Fri, 20 Apr 2018 17:30:57 +0200	[thread overview]
Message-ID: <20180420153057.14400-1-pierre-antoine.rouby@inria.fr> (raw)

* gnu/packageslinux.scm (libpfm4): 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 c09e0474a..725f90780 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4596,3 +4596,44 @@ emulates the behaviour of Gunnar Monell's older fbgrab utility.")
 restriction, permission handling and more.  This package provides userspace
 interface to this kernel feature.")
     (license license:lgpl2.1)))
+
+(define-public libpfm4
+  (package
+    (name "libpfm4")
+    (version "4.9.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/perfmon2/"
+                                  name "/libpfm-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1qp4g4n6dw42p2w5rkwzdb7ynk8h7g5vg01ybpmvxncgwa7bw3yv"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:modules ((guix build utils)
+                  (guix build gnu-build-system))
+       #:phases (modify-phases %standard-phases
+                  (delete 'configure)
+                  (delete 'check)
+                  (replace 'build
+                    (lambda* (#:key inputs outputs #:allow-other-keys)
+                      (let* ((out (assoc-ref outputs "out")))
+                        (setenv "CC" "gcc")
+                        (invoke "make")
+                        #t)))
+                  (replace 'install
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let* ((out (assoc-ref outputs "out")))
+                        (invoke "make"
+                                (string-append "PREFIX=" out)
+                                "install")
+                        #t))))))
+    (synopsis "Performance events monitoring library for Linux perf_events")
+    (description
+     "This package is a user library called libpfm4 to help setup performance
+events for use with the perf_events Linux kernel interface.
+
+This is a complete rewrite of libpfm3 and it is NOT backward compatible
+with it.")
+    (home-page "http://perfmon2.sourceforge.net/")
+    (license license:expat)))
-- 
2.17.0

             reply	other threads:[~2018-04-20 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-20 15:30 Rouby Pierre-Antoine [this message]
2018-04-26 13:29 ` bug#31226: [PATCH] gnu: Add libpfm4 Ludovic Courtès

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=20180420153057.14400-1-pierre-antoine.rouby@inria.fr \
    --to=pierre-antoine.rouby@inria.fr \
    --cc=31226@debbugs.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).