gnu: libusb4java: Adjust for building with libusb 1.0.22.

* gnu/packages/libusb.scm (libusb4java)[arguments]: Add phase to remove
"-Werror" flag.
This commit is contained in:
Ricardo Wurmus 2018-03-29 12:25:45 +02:00
parent b0a4b6d957
commit 017bffc1a3
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 7 additions and 0 deletions

View File

@ -133,6 +133,13 @@ version of libusb to run with newer libusb.")
`(#:tests? #f ; there are no tests
#:phases
(modify-phases %standard-phases
;; FIXME: libusb 1.0.22 deprecated libusb_set_debug, so the build
;; fails because libusb4java uses a deprecated procedure.
(add-after 'unpack 'disable-Werror
(lambda _
(substitute* "CMakeLists.txt"
(("-Werror") ""))
#t))
(add-before 'configure 'set-JAVA_HOME
(lambda* (#:key inputs #:allow-other-keys)
(setenv "JAVA_HOME" (assoc-ref inputs "jdk"))