summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorDavid Elsing <david.elsing@posteo.net>2025-04-30 16:27:07 +0000
committerAndreas Enge <andreas@enge.fr>2025-04-30 19:47:37 +0200
commit352e82847b896d8c44bafed5e3ec49ab843736e1 (patch)
tree19aa5ffb5ad5de345297ac5e3d6053085e2f4c87 /gnu
parent6903d2cc1b62d102208a15182f68c2f3cd4e699c (diff)
gnu: satdump: Fix RUNPATH for a plugin.
* gnu/packages/radio.scm (satdump)[arguments]: Add 'fix-runpath phase. Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/radio.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index 78888dcee5a..54b1f0c3736 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.