diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2016-12-13 10:36:50 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2016-12-13 11:15:49 +0200 |
commit | 310248c62118df02b5184d0a63f3186f5b11b482 (patch) | |
tree | 36d0261c95cd9040dfadee13772cd2e5b5f2de3c /gnu/packages/telephony.scm | |
parent | 6f09178d2a33e121a99cd52a38ca751adb836ee6 (diff) | |
download | guix-310248c62118df02b5184d0a63f3186f5b11b482.tar guix-310248c62118df02b5184d0a63f3186f5b11b482.tar.gz |
gnu: libsrtp: Fix building on mips.
* gnu/packages/telephony.scm (libsrtp)[arguments]: Add substitution
changing variable name from 'mips' to 'mips_value'. Also substitute
dictionary location in test suite.
Diffstat (limited to 'gnu/packages/telephony.scm')
-rw-r--r-- | gnu/packages/telephony.scm | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 6a68ece47b..62efcfd5c2 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -218,7 +218,25 @@ internet.") `(("procps" ,procps))) (build-system gnu-build-system) (arguments - `(#:test-target "runtest")) + '(#:test-target "runtest" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-mips-variable-in-testsuite + ;; This comes from https://github.com/cisco/libsrtp/pull/151 + (lambda _ + (substitute* "test/srtp_driver.c" + (("mips ") "mips_est ") + (("mips\\)") "mips_est)")) + #t)) + (add-after 'unpack 'patch-dictionary-location + ;; With the above changes, the rtpw_test.sh test finally runs, and fails + (lambda _ + (substitute* "test/rtpw.c" + (("/usr/share/dict/words") + (string-append (assoc-ref %build-inputs "procps") + "/share/doc/procps-ng")) + (("words.txt") "FAQ")) + #t))))) (synopsis "Secure RTP (SRTP) Reference Implementation") (description "This package provides an implementation of the Secure Real-time Transport Protocol (SRTP), the Universal Security Transform (UST), |