usbip: Put all autotools-generated files in the build directory

Currently the linux-source-<version> package may or may not include
these files, depending on the order things are built in.

As autotools always modifies the source directory, copy (rsync) the
source to the build directory and build in-place there.
This commit is contained in:
Ben Hutchings 2016-08-25 01:29:57 +01:00
parent 2fddcf7c7f
commit 7231d9e75a
3 changed files with 8 additions and 4 deletions

2
debian/changelog vendored
View File

@ -22,6 +22,8 @@ linux (4.7.2-1) UNRELEASED; urgency=medium
* 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>
* Exclude redundant and unreproducible files from binary packages
- usbip: Put all autotools-generated files in the build directory
[ Martin Michlmayr ]
* [armhf] Enable MMC_SDHCI_IPROC and HW_RANDOM_BCM2835 for BCM2835.

View File

@ -10,8 +10,9 @@ 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
$(srcdir)/configure \
rsync -a $(srcdir)/ .
./autogen.sh
./configure \
--prefix=/usr \
--with-tcp-wrappers \
--with-usbids-dir=/usr/share/misc \
@ -26,5 +27,4 @@ ifneq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
endif
clean:
rm -rf $(addprefix $(srcdir)/,autom4te.cache aclocal.m4 compile config.guess config.h.in config.sub configure depcomp install-sh ltmain.sh missing)
find $(srcdir)/ -name Makefile.in -delete
rm -rf *

View File

@ -46,6 +46,8 @@ Build-Depends:
libglib2.0-dev <!stage1 !pkg.linux.notools>,
libudev-dev <!stage1 !pkg.linux.notools>,
libwrap0-dev <!stage1 !pkg.linux.notools>,
# used by debian/rules.d/tools/usb/usbip to build usbip
rsync <!stage1 !pkg.linux.notools>,
# used by upstream to build cpupower
libpci-dev <!stage1 !pkg.linux.notools>,
# used by debian/rules.real to build linux-perf and linux-support