gnu: trealla: Only build with valgrind when supported.
* gnu/packages/prolog.scm (trealla)[native-inputs]: Remove git. Only add valgrind when on supported platforms. [arguments]: When building without valgrind adjust the test-target to run the test suite which doesn't expect valgrind present. Change-Id: Ib2a1a4fd5eace98d4c9eba7e55663fe0ab9daa73
This commit is contained in:
parent
7a70532dd8
commit
78d385a6b4
@ -2,7 +2,7 @@
|
||||
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
|
||||
;;; Copyright © 2013 Mark H Weaver <mhw@netris.org>
|
||||
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
||||
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2021, 2024 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
|
||||
;;; Copyright © 2024 jgart <jgart@dismail.de>
|
||||
;;;
|
||||
@ -193,12 +193,19 @@ it.")
|
||||
(file-name (git-file-name name version))))
|
||||
(build-system gnu-build-system)
|
||||
(native-inputs
|
||||
(list git valgrind xxd))
|
||||
(append
|
||||
(if (supported-package? valgrind)
|
||||
(list valgrind)
|
||||
'())
|
||||
(list xxd)))
|
||||
(inputs
|
||||
(list libffi openssl readline))
|
||||
(arguments
|
||||
(list
|
||||
#:make-flags #~(list (string-append "CC=" #$(cc-for-target)))
|
||||
#:test-target (if (this-package-native-input "valgrind")
|
||||
"check"
|
||||
"test")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; Upstream does not use a configure script.
|
||||
|
Loading…
Reference in New Issue
Block a user