[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50299: [PATCH v4 10/25] gnu: swi-prolog: Correct reference to 'bin/s
From: |
Maxime Devos |
Subject: |
bug#50299: [PATCH v4 10/25] gnu: swi-prolog: Correct reference to 'bin/swi-prolog'. |
Date: |
Fri, 31 Dec 2021 12:14:52 +0000 |
* gnu/packages/prolog.scm
(swi-prolog)[arguments]<#:phases>{fix-cross-references}: New phase.
---
gnu/packages/prolog.scm | 37 ++++++++++++++++++++++++-------------
1 file changed, 24 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm
index 00f09b49cc..86ac2c2bb1 100644
--- a/gnu/packages/prolog.scm
+++ b/gnu/packages/prolog.scm
@@ -120,19 +120,30 @@ manner. It also features an interactive interpreter.")
"-DINSTALL_DOCUMENTATION=ON"
"-DSWIPL_INSTALL_IN_LIB=OFF") ; FIXME: Breaks RUNPATH validation.
#:phases
- (modify-phases %standard-phases
- ;; XXX: Delete the test phase that attempts to write to the
- ;; immutable store.
- (add-after 'unpack 'delete-failing-tests
- (lambda _
- (substitute* "src/CMakeLists.txt"
- ((" save") ""))
- (substitute* "src/test.pl"
- (("testdir\\('Tests/save'\\).") ""))
- (with-directory-excursion "src/Tests"
- (for-each delete-file-recursively
- '("save")))
- #t)))))
+ ,#~(modify-phases %standard-phases
+ ;; XXX: Delete the test phase that attempts to write to the
+ ;; immutable store.
+ (add-after 'unpack 'delete-failing-tests
+ (lambda _
+ (substitute* "src/CMakeLists.txt"
+ ((" save") ""))
+ (substitute* "src/test.pl"
+ (("testdir\\('Tests/save'\\).") ""))
+ (with-directory-excursion "src/Tests"
+ (for-each delete-file-recursively
+ '("save")))
+ #t))
+ #$@(if (%current-target-system)
+ ;; Prevent man_server.pl and swipl-lfr.pl from keeping a
+ ;; reference to the native swi-prolog.
+ ;; FIXME: libswipl.so and swipl-ld keep a reference to the
+ ;; cross-compiler.
+ #~((add-after 'install 'fix-cross-references
+ (lambda _
+ (define bin `(,(string-append #$output "/bin")))
+ (for-each (lambda (file) (patch-shebang file bin))
+ (find-files #$output ".pl$")))))
+ #~()))))
(native-inputs
`(,@(if (%current-target-system)
(begin
--
2.30.2
- bug#50299: [PATCH v4 11/25] gnu: ruby-yard-with-tests: Run tests conditionally., (continued)
- bug#50299: [PATCH v4 11/25] gnu: ruby-yard-with-tests: Run tests conditionally., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 18/25] gnu: python2-empy: Run tests conditionally., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 20/25] gnu: lablgtk: Run tests conditionally., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 19/25] gnu: python2-promise: Run tests conditionally., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 25/25] gnu: ghc-bsb-http-chunked: Don't run tests when cross-compiling., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 24/25] gnu: extra-cmake-modules: Don't run tests when cross-compiling., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 03/25] gnu: lean: Add bash-minimal., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 04/25] gnu: swi-prolog: Move native-inputs to inputs where appropriate., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 08/25] gnu: swi-prolog: Use cross-compiled bash in shebangs., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 23/25] gnu: tdlib: Run tests conditionally., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 10/25] gnu: swi-prolog: Correct reference to 'bin/swi-prolog'.,
Maxime Devos <=
- bug#50299: [PATCH v4 14/25] gnu: go-1.16: Don't run tests when cross-compiling., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 12/25] gnu: ruby-ffi-rzmq: Run tests conditionally., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 02/25] gnu: lean: Don't run tests when cross-compiling., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 06/25] gnu: swi-prolog: Make configuration wok when cross-compiling., Maxime Devos, 2021/12/31
- bug#50299: [PATCH v4 07/25] gnu: swi-prolog: Don't use 'cc'., Maxime Devos, 2021/12/31