From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39607) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzNUU-0001P4-Nj for guix-patches@gnu.org; Tue, 03 Oct 2017 09:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzNUQ-0002if-7W for guix-patches@gnu.org; Tue, 03 Oct 2017 09:44:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36812) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzNUQ-0002iS-2b for guix-patches@gnu.org; Tue, 03 Oct 2017 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dzNUP-0001dr-LN for guix-patches@gnu.org; Tue, 03 Oct 2017 09:44:01 -0400 Subject: [bug#28673] [PATCH 1/6] gnu: Add papi. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20171002204848.23646-1-fx@gnu.org> Date: Tue, 03 Oct 2017 15:43:30 +0200 In-Reply-To: <20171002204848.23646-1-fx@gnu.org> (Dave Love's message of "Mon, 2 Oct 2017 21:48:43 +0100") Message-ID: <87d1645ou5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Dave Love Cc: 28673@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dave Love skribis: > * gnu/packages/profiling.scm: New file. > * gnu/local.mk: Add it. Neat. Applied with the following changes. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm index cd678cfea..6d62aa260 100644 --- a/gnu/packages/profiling.scm +++ b/gnu/packages/profiling.scm @@ -79,7 +79,8 @@ stealtime lmsensors infiniband powercap" (lambda _ (with-directory-excursion "src/components" (substitute* '("lmsensors/configure" "infiniband_umad/configure") - (("/bin/sh") (which "sh")))))) + (("/bin/sh") (which "sh")))) + #t)) (add-after 'configure 'components (lambda* (#:key inputs #:allow-other-keys) (with-directory-excursion "components" @@ -95,16 +96,19 @@ stealtime lmsensors infiniband powercap" "/include/sensors") (string-append "--with-sensors_libdir=" base "/lib"))))))))) (add-after 'install 'extra-doc - (lambda _ - (let ((doc (string-append (assoc-ref %outputs "out") "/share/doc"))) + (lambda* (#:key outputs #:allow-other-keys) + (let ((doc (string-append (assoc-ref outputs "out") + "/share/doc"))) (mkdir-p doc) (chdir "..") ; we went into src above (for-each (lambda (file) (install-file file doc)) - '("README" "RELEASENOTES.txt" "LICENSE.txt")))))))) + '("README" "RELEASENOTES.txt" "LICENSE.txt")) + #t)))))) (home-page "http://icl.cs.utk.edu/papi/") (synopsis "Performance Application Programming Interface") - (description "PAPI provides the tool designer and application engineer with a consistent + (description + "PAPI provides the tool designer and application engineer with a consistent interface and methodology for use of the performance counter hardware found in most major microprocessors. PAPI enables software engineers to see, in near real time, the relation between software performance and processor events. --=-=-=--