aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <benh@debian.org>2012-06-28 03:45:03 +0000
committerBen Hutchings <benh@debian.org>2012-06-28 03:45:03 +0000
commit4a2ff091e9e2ee2fd891dbdbb9f4bbce7090b71b (patch)
tree27226c8bfcdcc0e6d0c7a6c674de983bee93ee41
parentb31cabb10b38764324d0f2b3c03a0cbb010084e7 (diff)
downloadkernel_replicant_linux-4a2ff091e9e2ee2fd891dbdbb9f4bbce7090b71b.tar.gz
kernel_replicant_linux-4a2ff091e9e2ee2fd891dbdbb9f4bbce7090b71b.tar.bz2
kernel_replicant_linux-4a2ff091e9e2ee2fd891dbdbb9f4bbce7090b71b.zip
linux-{doc,manual,source,support}: Mark as capable of satisfying relations from foreign packages (Multi-Arch: foreign) (Closes: #679202)
svn path=/dists/sid/linux/; revision=19223
-rw-r--r--debian/changelog2
-rw-r--r--debian/rules.real20
-rw-r--r--debian/templates/control.libc-dev.in2
-rw-r--r--debian/templates/control.main.in4
4 files changed, 19 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index 27a81288880b..e389206df9d7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ linux (3.2.21-3) UNRELEASED; urgency=low
* apparmor: remove advertising the support of network rules from
compat iface (Closes: #676515)
* xen/netfront: teardown the device before unregistering it (Closes: #675190)
+ * linux-{doc,manual,source,support}: Mark as capable of satisfying
+ relations from foreign packages (Multi-Arch: foreign) (Closes: #679202)
-- Ben Hutchings <ben@decadent.org.uk> Wed, 27 Jun 2012 02:56:49 +0100
diff --git a/debian/rules.real b/debian/rules.real
index a49ae06c3a28..69961881824a 100644
--- a/debian/rules.real
+++ b/debian/rules.real
@@ -21,6 +21,13 @@ ifneq (,$(filter experimental UNRELEASED,$(DISTRIBUTION)))
export KW_CHECK_NONFATAL = y
endif
+# Set Multi-Arch fields only when built in a suite that supports it
+ifneq (,$(DEB_HOST_MULTIARCH))
+DEFINE_MULTIARCH = -Vlinux:Multi-Arch=$(1)
+else
+DEFINE_MULTIARCH = -Vlinux:Multi-Arch=
+endif
+
include debian/rules.defs
stamp = [ -d $(dir $@) ] || mkdir $(dir $@); touch $@
@@ -191,7 +198,7 @@ install-doc: $(STAMPS_DIR)/build-doc
| \
cpio -pd --preserve-modification-time '$(CURDIR)/$(OUT_DIR)/html'
gzip -9qfr $(OUT_DIR)/Documentation
- +$(MAKE_SELF) install-base
+ +$(MAKE_SELF) install-base GENCONTROL_ARGS='$(call DEFINE_MULTIARCH,foreign)'
install-manual: PACKAGE_NAME = linux-manual-$(VERSION)
install-manual: DIR=$(BUILD_DIR)/build-doc
@@ -199,7 +206,7 @@ install-manual: DH_OPTIONS = -p$(PACKAGE_NAME)
install-manual: $(STAMPS_DIR)/build-doc
dh_prep
find $(DIR)/Documentation/DocBook/man/ -name '*.9' | xargs dh_installman
- +$(MAKE_SELF) install-base
+ +$(MAKE_SELF) install-base GENCONTROL_ARGS='$(call DEFINE_MULTIARCH,foreign)'
install-headers_$(ARCH): PACKAGE_NAMES = linux-headers-$(ABINAME)-all linux-headers-$(ABINAME)-all-$(ARCH)
install-headers_$(ARCH): DH_OPTIONS = $(foreach p, $(PACKAGE_NAMES), -p$(p))
@@ -311,12 +318,9 @@ ifneq (,$(DEB_HOST_MULTIARCH))
# Move include/asm to arch-specific directory
mkdir -p $(OUT_DIR)/include/$(DEB_HOST_MULTIARCH)
mv $(OUT_DIR)/include/asm $(OUT_DIR)/include/$(DEB_HOST_MULTIARCH)/
- echo linux-libc-dev:Multi-Arch=same >>debian/$(PACKAGE_NAME).substvars
-else
- echo linux-libc-dev:Multi-Arch= >>debian/$(PACKAGE_NAME).substvars
endif
- +$(MAKE_SELF) install-base
+ +$(MAKE_SELF) install-base GENCONTROL_ARGS='$(call DEFINE_MULTIARCH,same)'
install-support: PACKAGE_NAME = linux-support-$(ABINAME)
install-support: DH_OPTIONS = -p$(PACKAGE_NAME)
@@ -331,7 +335,7 @@ install-support:
cp debian/lib/python/debian_linux/*.py $(PACKAGE_DIR)$(PACKAGE_ROOT)/lib/python/debian_linux
dh_python2
dh_link $(PACKAGE_ROOT) /usr/src/$(PACKAGE_NAME)
- +$(MAKE_SELF) install-base
+ +$(MAKE_SELF) install-base GENCONTROL_ARGS='$(call DEFINE_MULTIARCH,foreign)'
install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_$(TYPE): REAL_VERSION = $(ABINAME)$(LOCALVERSION)
install-image_$(ARCH)_$(FEATURESET)_$(FLAVOUR)_$(TYPE): PACKAGE_NAME = linux-image-$(REAL_VERSION)
@@ -501,6 +505,6 @@ install-source: $(BUILD_DIR)/linux-source-$(UPSTREAMVERSION).tar.bz2 $(foreach F
dh_testdir
dh_testroot
dh_install '$^' /usr/src
- +$(MAKE_SELF) install-base
+ +$(MAKE_SELF) install-base GENCONTROL_ARGS='$(call DEFINE_MULTIARCH,foreign)'
# vim: filetype=make
diff --git a/debian/templates/control.libc-dev.in b/debian/templates/control.libc-dev.in
index 542f9f03bb10..2564a3e8e37c 100644
--- a/debian/templates/control.libc-dev.in
+++ b/debian/templates/control.libc-dev.in
@@ -4,7 +4,7 @@ Depends: ${misc:Depends}
Provides: linux-kernel-headers
Replaces: linux-kernel-headers
Conflicts: linux-kernel-headers
-Multi-Arch: ${linux-libc-dev:Multi-Arch}
+Multi-Arch: ${linux:Multi-Arch}
Description: Linux support headers for userspace development
This package provides userspaces headers from the Linux kernel. These headers
are used by the installed headers for GNU glibc and other system libraries.
diff --git a/debian/templates/control.main.in b/debian/templates/control.main.in
index aa5328200712..6a2308406d19 100644
--- a/debian/templates/control.main.in
+++ b/debian/templates/control.main.in
@@ -5,6 +5,7 @@ Provides: linux-source
Depends: binutils, bzip2, ${misc:Depends}
Recommends: libc6-dev | libc-dev, gcc, make
Suggests: libncurses-dev | ncurses-dev, libqt4-dev
+Multi-Arch: ${linux:Multi-Arch}
Description: Linux kernel source for version @version@ with Debian patches
This package provides source code for the Linux kernel version @version@.
This source closely tracks official Linux kernel releases. Debian's
@@ -16,6 +17,7 @@ Package: linux-doc-@version@
Architecture: all
Depends: ${misc:Depends}
Section: doc
+Multi-Arch: ${linux:Multi-Arch}
Description: Linux kernel specific documentation for version @version@
This package provides the various README files and HTML documentation for
the Linux kernel version @version@. Plenty of information, including the
@@ -31,6 +33,7 @@ Section: doc
Provides: linux-manual
Conflicts: linux-manual
Replaces: linux-manual
+Multi-Arch: ${linux:Multi-Arch}
Description: Linux kernel API manual pages for version @version@
This package provides the Kernel Hacker's Guide in the form of
manual pages, describing the kernel API functions. They
@@ -45,6 +48,7 @@ Package: linux-support-@abiname@
Architecture: all
Section: devel
Depends: ${python:Depends}, ${misc:Depends}
+Multi-Arch: ${linux:Multi-Arch}
Description: Support files for Linux @upstreamversion@
This package provides support files for the Linux kernel build,
e.g. scripts to handle ABI information and for generation of