Debian Bug report logs - #865026
libusb.h: __linux usage makes ippusbxd FTBFS on ppc

version graph

Package: libusb-1.0-0-dev; Maintainer for libusb-1.0-0-dev is Aurelien Jarno <aurel32@debian.org>; Source for libusb-1.0-0-dev is src:libusb-1.0 (PTS, buildd, popcon).

Affects: src:ippusbxd

Reported by: Adrian Bunk <bunk@debian.org>

Date: Sun, 18 Jun 2017 19:27:07 UTC

Severity: serious

Tags: buster, patch, sid

Found in version libusb-1.0/2:1.0.21-1

Fixed in version libusb-1.0/2:1.0.21-2

Done: Aurelien Jarno <aurel32@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, odyx@debian.org, Aurelien Jarno <aurel32@debian.org>:
Bug#865026; Package libusb-1.0-0-dev. (Sun, 18 Jun 2017 19:27:09 GMT) (full text, mbox, link).


Acknowledgement sent to Adrian Bunk <bunk@debian.org>:
New Bug report received and forwarded. Copy sent to odyx@debian.org, Aurelien Jarno <aurel32@debian.org>. (Sun, 18 Jun 2017 19:27:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Adrian Bunk <bunk@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libusb.h: __linux usage makes ippusbxd FTBFS on ppc
Date: Sun, 18 Jun 2017 22:25:21 +0300
[Message part 1 (text/plain, inline)]
Package: libusb-1.0-0-dev
Version: 2:1.0.21-1
Severity: serious
Tags: patch buster sid
Control: affects -1 src:ippusbxd

https://buildd.debian.org/status/fetch.php?pkg=ippusbxd&arch=ppc64el&ver=1.30-2&stamp=1497806137&raw=0

...
[ 50%] Building C object CMakeFiles/ippusbxd.dir/usb.c.o
/usr/bin/cc   -I/usr/include/libusb-1.0  -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -o2 -g -std=c99 -Wall -Wextra -pedantic -pedantic-errors   -o CMakeFiles/ippusbxd.dir/usb.c.o   -c /«PKGBUILDDIR»/src/usb.c
In file included from /«PKGBUILDDIR»/src/usb.c:23:0:
/usr/include/libusb-1.0/libusb.h:1815:67: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
 int LIBUSB_CALL libusb_wait_for_event(libusb_context *ctx, struct timeval *tv);
                                                                   ^~~~~~~
/usr/include/libusb-1.0/libusb.h:1818:9: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  struct timeval *tv);
         ^~~~~~~
/usr/include/libusb-1.0/libusb.h:1820:9: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  struct timeval *tv, int *completed);
         ^~~~~~~
/usr/include/libusb-1.0/libusb.h:1824:9: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  struct timeval *tv);
         ^~~~~~~
/usr/include/libusb-1.0/libusb.h:1827:9: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
  struct timeval *tv);
         ^~~~~~~
/«PKGBUILDDIR»/src/usb.c: In function 'usb_pump_events':
/«PKGBUILDDIR»/src/usb.c:519:50: error: passing argument 2 of 'libusb_handle_events_timeout_completed' from incompatible pointer type [-Wincompatible-pointer-types]
     libusb_handle_events_timeout_completed(NULL, &tv, NULL);
                                                  ^
In file included from /«PKGBUILDDIR»/src/usb.c:23:0:
/usr/include/libusb-1.0/libusb.h:1819:17: note: expected 'struct timeval *' but argument is of type 'struct timeval *'
 int LIBUSB_CALL libusb_handle_events_timeout_completed(libusb_context *ctx,
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMakeFiles/ippusbxd.dir/build.make:134: recipe for target 'CMakeFiles/ippusbxd.dir/usb.c.o' failed
make[4]: *** [CMakeFiles/ippusbxd.dir/usb.c.o] Error 1


__linux is not defined on ppc with -std=c99, the attached patch uses
__linux__ instead for the required #include <sys/time.h>
[timeval-ppc.patch (text/plain, attachment)]

Added indication that 865026 affects src:ippusbxd Request was from Adrian Bunk <bunk@debian.org> to submit@bugs.debian.org. (Sun, 18 Jun 2017 19:27:09 GMT) (full text, mbox, link).


Reply sent to Aurelien Jarno <aurel32@debian.org>:
You have taken responsibility. (Sat, 24 Jun 2017 21:39:10 GMT) (full text, mbox, link).


Notification sent to Adrian Bunk <bunk@debian.org>:
Bug acknowledged by developer. (Sat, 24 Jun 2017 21:39:10 GMT) (full text, mbox, link).


Message #12 received at 865026-close@bugs.debian.org (full text, mbox, reply):

From: Aurelien Jarno <aurel32@debian.org>
To: 865026-close@bugs.debian.org
Subject: Bug#865026: fixed in libusb-1.0 2:1.0.21-2
Date: Sat, 24 Jun 2017 21:34:55 +0000
Source: libusb-1.0
Source-Version: 2:1.0.21-2

We believe that the bug you reported is fixed in the latest version of
libusb-1.0, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 865026@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Aurelien Jarno <aurel32@debian.org> (supplier of updated libusb-1.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 24 Jun 2017 23:12:56 +0200
Source: libusb-1.0
Binary: libusb-1.0-0 libusb-1.0-0-dev libusb-1.0-doc libusb-1.0-0-udeb
Architecture: source
Version: 2:1.0.21-2
Distribution: unstable
Urgency: medium
Maintainer: Aurelien Jarno <aurel32@debian.org>
Changed-By: Aurelien Jarno <aurel32@debian.org>
Description:
 libusb-1.0-0 - userspace USB programming library
 libusb-1.0-0-dev - userspace USB programming library development files
 libusb-1.0-0-udeb - userspace USB programming library (udeb)
 libusb-1.0-doc - documentation for userspace USB programming
Closes: 865026
Changes:
 libusb-1.0 (2:1.0.21-2) unstable; urgency=medium
 .
   * Backport to important fixes from upstream:
     - linux_udev: Retry poll() on EINTR.
     - Fix a race condition with libusb_interrupt_event_handler().
     - Fix wrong __linux usage in libusb.h (closes: #865026).
   * Switch to debhelper 10.
   * Bump Standards-Version to 4.0.0 (no changes).
Checksums-Sha1:
 0fbd65e1dd9f725f511c395b0b8dbb42a95e5d02 2067 libusb-1.0_1.0.21-2.dsc
 ab7caa7fe685e86184a0ce16115ad80300d65036 13712 libusb-1.0_1.0.21-2.debian.tar.xz
 8ea48603ad9a62a6ef3dffe705bb8af5757f63e0 5244 libusb-1.0_1.0.21-2_source.buildinfo
Checksums-Sha256:
 fb8a5cd34d3308652845e054ca97fcd29971cb18659cdb08873d874df1ee8795 2067 libusb-1.0_1.0.21-2.dsc
 96da0c02309cfc80de84bbec84a3f63b0571fae83ae1a4d99b361505b959e1eb 13712 libusb-1.0_1.0.21-2.debian.tar.xz
 8d23cef0a0a231ab066a96b77373fcdd120cddf5110b402e9bdf15df4f32deb2 5244 libusb-1.0_1.0.21-2_source.buildinfo
Files:
 a733414666b6e6166ba13ecc6bddb4f6 2067 libs optional libusb-1.0_1.0.21-2.dsc
 c0f37134ebe5cbc0ad7b0c7e87b167f9 13712 libs optional libusb-1.0_1.0.21-2.debian.tar.xz
 0e7fb2fb315d89a8ca3aab1b9b6cb265 5244 libs optional libusb-1.0_1.0.21-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEd0YmQqnvlP0Pdxltupx4Bh3djJsFAllO1+sACgkQupx4Bh3d
jJuLyhAAt0KpbGqCfwc9xFk7iX+viOzOsd10DeDkKALR3Y+z8xZfkAQOgy/aADqi
zFo/FRW8etRKKiJqF7lqzyzSI931sR8G/iBE/Y0vZSH1ITekSeTtBe74lH/tepQD
KSIsTOJGQBmFQ7AVnYBSbfaOZCU95BZHSbR5C3ipbFN5YpXx2skaqZ6XS00X/qrv
kA1ZHSWY/7EBlf2XUDXfD7988uqJq1ObBJZyMA8KMjP1OmOlVuESLQ7JjIyzKsz9
i4cGVxJGdDkVptQMp/oy8pBwVmmICezRm4vCnysCYnvZD9XXORbni41eXhSzfDYn
3fnLeqt6gQUzu46NLCks+hY8SMVrqv6ZKbDFFiYbTDfzFuZgMrSil9dLRAX+lrhu
bSyu8heuBU0+it7TliHtHUWMKjD+eECrDqg9azAikSN3zVD8XxmvT2nkZl960hur
Y/+UCtnStqC6Ec/I1lwN4OOPcrUyH5ESt/Zr4+oIYkrZ6ZY4P0xFH1slLepsY9yE
x+oAkMzUiaZ/fecVNRQ5UVLIXKh/7kics0lSil9esuvV2nvQUH9cYaFOW6PG821T
l3EyxQxAhNnlPDZlfeB7/etyQImrp+DKg7yMBVtjy966M3x8w3kCzJivN7gKvnF0
BLCpLNdePpCnTRJ7EYbluTGBVTeL3GMJXFCBWIhBBnn6it8WfHc=
=ztXJ
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 28 Jul 2017 07:26:44 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 10 05:20:55 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.