aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-03-29 12:25:45 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-03-29 12:26:38 +0200
commit017bffc1a352599c5468f10cf4ef9371d4143e24 (patch)
tree379a5d233cafe94b9f81c4f636496c42cb4616b6
parentb0a4b6d9579e009c18583451075a255d56fdbccf (diff)
downloadguix-017bffc1a352599c5468f10cf4ef9371d4143e24.tar.gz
guix-017bffc1a352599c5468f10cf4ef9371d4143e24.zip
gnu: libusb4java: Adjust for building with libusb 1.0.22.
* gnu/packages/libusb.scm (libusb4java)[arguments]: Add phase to remove "-Werror" flag.
-rw-r--r--gnu/packages/libusb.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 4af9cd95bb..bd79972a6e 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -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"))