mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
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.
This commit is contained in:
parent
6f09178d2a
commit
310248c621
1 changed files with 19 additions and 1 deletions
|
@ -218,7 +218,25 @@ (define-public libsrtp
|
|||
`(("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),
|
||||
|
|
Loading…
Reference in a new issue