gnu: otf2: Update to 3.1.1.

* 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 <ludo@gnu.org>
This commit is contained in:
Luca Cirrottola 2025-05-27 22:06:19 +02:00 committed by Ludovic Courtès
parent 258284a93e
commit 6d063d7628
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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)