From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz7k2-0007vr-QU for guix-patches@gnu.org; Mon, 02 Oct 2017 16:55:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz7k0-0001hX-6n for guix-patches@gnu.org; Mon, 02 Oct 2017 16:55:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:35939) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dz7k0-0001hO-2j for guix-patches@gnu.org; Mon, 02 Oct 2017 16:55:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dz7jy-00060O-GQ for guix-patches@gnu.org; Mon, 02 Oct 2017 16:55:03 -0400 Subject: [bug#28673] [PATCH 2/6] gnu: Add otf2. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz7iz-0007nL-5g for guix-patches@gnu.org; Mon, 02 Oct 2017 16:54:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz7iy-0007te-1Z for guix-patches@gnu.org; Mon, 02 Oct 2017 16:54:01 -0400 From: Dave Love Date: Mon, 2 Oct 2017 21:48:44 +0100 Message-Id: <20171002204848.23646-2-fx@gnu.org> In-Reply-To: <20171002204848.23646-1-fx@gnu.org> References: <20171002204848.23646-1-fx@gnu.org> 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: 28673@debbugs.gnu.org Cc: Dave Love * gnu/packages/profiling.scm (otf2): New variable. --- gnu/packages/profiling.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm index cd678cfea..5eed6ba0d 100644 --- a/gnu/packages/profiling.scm +++ b/gnu/packages/profiling.scm @@ -29,7 +29,8 @@ #:use-module (gnu packages gcc) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) - #:use-module (gnu packages ncurses)) + #:use-module (gnu packages ncurses) + #:use-module (gnu packages python)) ;; Fixme: Separate out lib and fix resulting cycle errors; separate libpfm ;; output(?); build libmsr and add that component. @@ -120,3 +121,38 @@ performance measurement opportunites across the hardware and software stack.") ;; "BSD-like": src/libpfm-3.y/*, src/libpfm4/* ;; lgpl2.1+: src/perfctr-2.*/* )))) + +;; NB. there's a potential name clash with libotf. +(define-public otf2 + (package + (name "otf2") + (version "2.1") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.vi-hps.org/upload/packages/otf2/otf2-" + version ".tar.gz")) + (sha256 (base32 "1lyaqhdfaqm1kd23yk71g71vkscw83s7m57j017y768h8sh8xlwa")))) + (native-inputs `(("python" ,python))) + (outputs '("doc" ; 18MB + "lib" + "out")) + (build-system gnu-build-system) + (arguments + `(#:configure-flags '("--enable-shared" "--disable-static") + #:phases + (modify-phases %standard-phases + (add-after 'install 'licence + (lambda _ + (for-each + (lambda (op) + (let ((doc (string-append (assoc-ref %outputs op) "/share/doc"))) + (mkdir-p doc) + (install-file "COPYING" doc))) + '("lib" "doc")) + #t))))) + (home-page "http://www.vi-hps.org/projects/score-p/") + (synopsis "Open Trace Format 2 library") + (description "The Open Trace Format 2 (OTF2) is a highly scalable, memory efficient event +trace data format plus support library.") + (license license:bsd-3))) -- 2.11.0