andreas pushed a commit to branch hdf5 in repository guix. commit 88bbf416ab0df2b7e55054053a7de99c97868fe3 Author: David Elsing <david.els...@posteo.net> AuthorDate: Wed Apr 30 16:27:07 2025 +0000
gnu: satdump: Fix RUNPATH for a plugin. * gnu/packages/radio.scm (satdump)[arguments]: Add 'fix-runpath phase. Signed-off-by: Andreas Enge <andr...@enge.fr> --- gnu/packages/radio.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index 78888dcee5..54b1f0c373 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -3349,7 +3349,22 @@ Navigation Satellite System.") volk (list zstd "lib"))) (arguments - (list #:tests? #f)) ; No test suite + (list + #:tests? #f ; No test suite + #:phases + #~(modify-phases %standard-phases + ;; The RUNPATH of this shared library is missing the + ;; .../lib/satdump/plugins directory, which fails the + ;; 'validate-runpath' phase. + (add-after 'unpack 'fix-runpath + (lambda _ + (substitute* "plugins/official_products_support/CMakeLists.txt" + (("add_library\\(official_products_loader_support.*" orig) + (string-append + orig "\n" "set_target_properties(" + "official_products_loader_support" + " PROPERTIES INSTALL_RPATH \"" + #$output "/lib:" #$output "/lib/satdump/plugins\")\n")))))))) (home-page "https://www.satdump.org/") (synopsis "Satellite data processing software") (description "SatDump is a generic satellite data processing software.