From 6d063d76284f0cd6b0a4f9e25559abeb73fb14c8 Mon Sep 17 00:00:00 2001 From: Luca Cirrottola Date: Tue, 27 May 2025 22:06:19 +0200 Subject: [PATCH] gnu: otf2: Update to 3.1.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/profiling.scm (otf2): Update to 3.1.1. [source]: Change ‘uri’. [arguments]: Add ‘normalize-pkgconfig-files-location’ phase. Change-Id: I5addfe23a6b57a10bedcc3f9738672b873914c87 Signed-off-by: Ludovic Courtès --- gnu/packages/profiling.scm | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm index c08454521a..c4cfb04fd7 100644 --- a/gnu/packages/profiling.scm +++ b/gnu/packages/profiling.scm @@ -151,15 +151,15 @@ performance measurement opportunities across the hardware and software stack.") (define-public otf2 (package (name "otf2") - (version "2.1.1") + (version "3.1.1") (source (origin (method url-fetch) - (uri (string-append "http://www.vi-hps.org/upload/packages/otf2/otf2-" - version ".tar.gz")) - (sha256 (base32 "1ls7rz6qwnqbkifpafc95bnfh3m9xbs74in8zxlnhfbgwx11nn81")))) + (uri (string-append "https://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-" + version "/otf2-" version ".tar.gz")) + (sha256 (base32 "0vhai3xsb1kbqy2fqcvzv9pk886p1iq5pi9mzsadfkmca4x02kjs")))) (native-inputs (list python)) - (outputs '("doc" ; 18MB + (outputs '("doc" ; 21MB "lib" "out")) (build-system gnu-build-system) @@ -167,6 +167,13 @@ performance measurement opportunities across the hardware and software stack.") `(#:configure-flags '("--enable-shared" "--disable-static") #:phases (modify-phases %standard-phases + (add-after 'unpack 'normalize-pkgconfig-files-location + (lambda _ + ;; Prevent lib/pkgconfig/otf2-backend.pc from referencing the + ;; prefix of output "out" from the "lib" store location. + (substitute* "otf2-build.pc.in" + (("^prefix=.*") "") + (("^exec_prefix=.*") "")))) (add-after 'install 'licence (lambda* (#:key outputs #:allow-other-keys) (for-each (lambda (output)