[linux] 01/04: usbip: Use the locally-installed <linux/usbip.h>
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Thu Aug 25 07:53:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux.
commit 2fddcf7c7f7ff1d4539493a46fa1066b2be8d01f
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Thu Aug 25 01:28:48 2016 +0100
usbip: Use the locally-installed <linux/usbip.h>
Some years back I patched the #include of <linux/usbip.h> to include
the current, uninstalled version through a relative path because the
system-installed version will normally be outdated. We're about to
start copying the source to avoid writing autotools crap into the
source directory, which breaks this relative path.
Since we now install the UAPI headers under debian/build at the start
of the tools build, drop the patch and add that directory to the
include path.
---
debian/changelog | 1 +
.../usbip-include-uninstalled-linux-usbip-h.patch | 28 ----------------------
debian/patches/series | 1 -
debian/rules.d/tools/usb/usbip/Makefile | 6 ++++-
4 files changed, 6 insertions(+), 30 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1c2cc15..536fee3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ linux (4.7.2-1) UNRELEASED; urgency=medium
* [armfh] udeb: Add efi-modules
* linux-kbuild: Include headers_install.sh and unifdef (Closes: #832359)
* udeb: Include cdc_ncm in nic-usb-modules (Closes: #833918)
+ * usbip: Use the locally-installed <linux/usbip.h>
[ Martin Michlmayr ]
* [armhf] Enable MMC_SDHCI_IPROC and HW_RANDOM_BCM2835 for BCM2835.
diff --git a/debian/patches/bugfix/all/usbip-include-uninstalled-linux-usbip-h.patch b/debian/patches/bugfix/all/usbip-include-uninstalled-linux-usbip-h.patch
deleted file mode 100644
index dc6191f..0000000
--- a/debian/patches/bugfix/all/usbip-include-uninstalled-linux-usbip-h.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From: Ben Hutchings <ben at decadent.org.uk>
-Date: Fri, 17 Oct 2014 13:55:16 +0200
-Subject: usbip: Include uninstalled <linux/usbip.h>
-Forwarded: no
-
-We need to include <linux/usbip.h> from the current kernel
-source, not the installed linux-libc-dev. The clean way to
-do this is probably to run 'make headers_install' and then
-add $(top_srcdir)/usr/include to the front of the system
-header list. But I don't have time to implement that right
-now.
-
-The wrong way to do it is to add include/uapi to the header
-path. <linux/types.h> explicitly prevents this from working.
-But we can get away with selectively including UAPI headers
-without unifdef processing, so do that here.
-
---- a/tools/usb/usbip/libsrc/usbip_common.h
-+++ b/tools/usb/usbip/libsrc/usbip_common.h
-@@ -15,7 +15,7 @@
- #include <syslog.h>
- #include <unistd.h>
- #include <linux/usb/ch9.h>
--#include <linux/usbip.h>
-+#include "../../../../include/uapi/linux/usbip.h"
-
- #ifndef USBIDS_FILE
- #define USBIDS_FILE "/usr/share/hwdata/usb.ids"
diff --git a/debian/patches/series b/debian/patches/series
index d730326..b254449 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -111,7 +111,6 @@ debian/i386-686-pae-pci-set-pci-nobios-by-default.patch
# Tools bug fixes
bugfix/all/usbip-document-tcp-wrappers.patch
bugfix/all/kbuild-fix-recordmcount-dependency.patch
-bugfix/all/usbip-include-uninstalled-linux-usbip-h.patch
bugfix/all/tools-perf-man-date.patch
bugfix/all/lockdep-fix-oot-build.patch
bugfix/all/lockdep-fix-soname.patch
diff --git a/debian/rules.d/tools/usb/usbip/Makefile b/debian/rules.d/tools/usb/usbip/Makefile
index 887573b..687812c 100644
--- a/debian/rules.d/tools/usb/usbip/Makefile
+++ b/debian/rules.d/tools/usb/usbip/Makefile
@@ -5,9 +5,13 @@ srcdir := $(top_srcdir)/tools/usb/usbip
# sub-make command line.
unexport MAKEFLAGS
+all: export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+all: export CPPFLAGS := $(shell dpkg-buildflags --get CFLAGS) \
+ -isystem $(top_srcdir)/debian/build/build-tools/include
+all: export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
all:
cd $(srcdir) && ./autogen.sh
- $(shell dpkg-buildflags --export=cmdline) $(srcdir)/configure \
+ $(srcdir)/configure \
--prefix=/usr \
--with-tcp-wrappers \
--with-usbids-dir=/usr/share/misc \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list