summaryrefslogtreecommitdiff
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:06:19 +0200
commit88bbf416ab0df2b7e55054053a7de99c97868fe3 (patch)
tree9fc0a569e26951529a0d8db3adf03caa3cbdb03c
parente3913408e5e04d39e2d5a3ef8c6ac5a6efa5fe4b (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>
-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 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.