guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/05: gnu: usbredir: Build without '-Werror'.


From: Ludovic Courtès
Subject: 01/05: gnu: usbredir: Build without '-Werror'.
Date: Mon, 26 Mar 2018 04:08:39 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 07a049ceb1a394cde2b91c0c73638827834f6f1f
Author: Ludovic Courtès <address@hidden>
Date:   Mon Mar 26 09:38:29 2018 +0200

    gnu: usbredir: Build without '-Werror'.
    
    Fixes build failure introduced in
    58ee8a94a90eb40496b9704d541b5dfbbf1685ba, where compilation would fail
    with:
    
      usbredirhost.c: In function ?usbredirhost_open_full?:
      usbredirhost.c:749:5: error: ?libusb_set_debug? is deprecated: Use 
libusb_set_option instead [-Werror=deprecated-declarations]
           libusb_set_debug(host->ctx, host->verbose);
           ^
      In file included from usbredirhost.h:24:0,
                   from usbredirhost.c:31:
      
/gnu/store/j8hzc465xy33cjfcq3wv39szxia4xrzv-libusb-1.0.22/include/libusb-1.0/libusb.h:1300:18:
 note: declared here
       void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level);
                    ^
      cc1: all warnings being treated as errors
    
    * gnu/packages/spice.scm (usbredir)[arguments]: In 'autogen' phase,
    remove '-Werror' from configure.ac.
---
 gnu/packages/spice.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/spice.scm b/gnu/packages/spice.scm
index fb3b11b..521be54 100644
--- a/gnu/packages/spice.scm
+++ b/gnu/packages/spice.scm
@@ -86,6 +86,10 @@
          (modify-phases %standard-phases
            (add-after 'unpack 'autogen
              (lambda _
+               ;; Build without '-Werror', in particular to avoid errors due
+               ;; to the use of the deprecated 'libusb_set_debug' function.
+               (substitute* "configure.ac"
+                 (("-Werror") ""))
                (zero? (system* "autoreconf" "-vfi")))))))
       (synopsis "Tools for sending USB device traffic over a network")
       (description "Usbredir is a network protocol for sending USB device 
traffic



reply via email to

[Prev in Thread] Current Thread [Next in Thread]