Fix missing limits.h and stddef.h wrt #394633 by Alexandre Rostovtsev. This is Debian...
authorSamuli Suominen <ssuominen@gentoo.org>
Wed, 14 Dec 2011 17:21:59 +0000 (17:21 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Wed, 14 Dec 2011 17:21:59 +0000 (17:21 +0000)
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64

sys-apps/usbutils/ChangeLog
sys-apps/usbutils/files/usbutils-005-missing-includes.patch [new file with mode: 0644]
sys-apps/usbutils/usbutils-005.ebuild

index 12340251509fd8c4583d69b1ab667f92d0104346..6db5c2f738b376ee05a3bea3c57ea7dda4eb1b38 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for sys-apps/usbutils
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.126 2011/12/13 18:23:22 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/ChangeLog,v 1.127 2011/12/14 17:21:58 ssuominen Exp $
+
+  14 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> usbutils-005.ebuild,
+  +files/usbutils-005-missing-includes.patch:
+  Fix missing limits.h and stddef.h wrt #394633 by Alexandre Rostovtsev. This
+  is Debian patch 04-missing-includes.diff.
 
   13 Dec 2011; Jeroen Roovers <jer@gentoo.org> usbutils-004.ebuild:
   Stable for HPPA (bug #394577).
diff --git a/sys-apps/usbutils/files/usbutils-005-missing-includes.patch b/sys-apps/usbutils/files/usbutils-005-missing-includes.patch
new file mode 100644 (file)
index 0000000..5d6d762
--- /dev/null
@@ -0,0 +1,22 @@
+This is 04-missing-includes.diff from Debian to resolve http://bugs.gentoo.org/394633
+
+--- usbhid-dump/include/uhd/dev_list.h
++++ usbhid-dump/include/uhd/dev_list.h
+@@ -27,6 +27,7 @@
+ #ifndef __UHD_DEV_LIST_H__
+ #define __UHD_DEV_LIST_H__
++#include <stddef.h>
+ #include "uhd/dev.h"
+ #ifdef __cplusplus
+--- usbhid-dump/src/usbhid-dump.c
++++ usbhid-dump/src/usbhid-dump.c
+@@ -39,6 +39,7 @@
+ #include <getopt.h>
+ #include <stdio.h>
+ #include <libusb-1.0/libusb.h>
++#include <limits.h>
+ #include "config.h"
index 91b489c2257ea96753f436796c5da798702e67f8..523f89c7c88c4d36961ec2d475ae2a407b9bd1ae 100644 (file)
@@ -1,12 +1,12 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-005.ebuild,v 1.1 2011/12/13 17:38:22 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/usbutils/usbutils-005.ebuild,v 1.2 2011/12/14 17:21:59 ssuominen Exp $
 
 EAPI="4"
 
 PYTHON_DEPEND="python? 2:2.6"
 
-inherit autotools python
+inherit autotools eutils python
 
 DESCRIPTION="USB enumeration utilities"
 HOMEPAGE="http://linux-usb.sourceforge.net/"
@@ -31,6 +31,8 @@ pkg_setup() {
 }
 
 src_prepare() {
+       epatch "${FILESDIR}"/${P}-missing-includes.patch
+
        eautoreconf
 
        if use python; then