debian/control,debian/rules: Support a 'pkg.linux.notools' build profile

...which does not build tools packages
This commit is contained in:
Ben Hutchings 2016-05-14 20:12:28 +01:00
parent f865a890fd
commit 43640872d9
4 changed files with 38 additions and 33 deletions

2
debian/changelog vendored
View File

@ -99,6 +99,8 @@ linux (4.5.4-1) UNRELEASED; urgency=medium
* gencontrol.py: Fix implementation of [packages]tools config option, * gencontrol.py: Fix implementation of [packages]tools config option,
thanks to Yves-Alexis Perez thanks to Yves-Alexis Perez
* debian/control: Exclude tools from 'stage1' build profile * debian/control: Exclude tools from 'stage1' build profile
* debian/control,debian/rules: Support a 'pkg.linux.notools' build profile
which does not build tools packages
-- Aurelien Jarno <aurel32@debian.org> Tue, 10 May 2016 23:58:07 +0200 -- Aurelien Jarno <aurel32@debian.org> Tue, 10 May 2016 23:58:07 +0200

3
debian/rules vendored
View File

@ -16,6 +16,9 @@ ifdef DEBIAN_KERNEL_JOBS
MAKEFLAGS += -j$(DEBIAN_KERNEL_JOBS) MAKEFLAGS += -j$(DEBIAN_KERNEL_JOBS)
endif endif
BUILD_STAGE1 := $(filter stage1,$(DEB_BUILD_PROFILES)) BUILD_STAGE1 := $(filter stage1,$(DEB_BUILD_PROFILES))
ifneq (,$(filter pkg.linux.notools,$(DEB_BUILD_PROFILES)))
MAKEFLAGS += DO_TOOLS=False
endif
.NOTPARALLEL: .NOTPARALLEL:

View File

@ -23,34 +23,34 @@ Build-Depends:
libssl-dev <!stage1>, libssl-dev <!stage1>,
openssl <!stage1>, openssl <!stage1>,
# used by upstream to build perf documentation # used by upstream to build perf documentation
asciidoc <!stage1>, asciidoc <!stage1 !pkg.linux.notools>,
xmlto <!stage1>, xmlto <!stage1 !pkg.linux.notools>,
# used by upstream to build perf # used by upstream to build perf
bison <!stage1>, bison <!stage1 !pkg.linux.notools>,
flex <!stage1>, flex <!stage1 !pkg.linux.notools>,
gcc-multilib [amd64 ppc64 s390x sparc64] <!stage1>, gcc-multilib [amd64 ppc64 s390x sparc64] <!stage1 !pkg.linux.notools>,
libaudit-dev <!stage1>, libaudit-dev <!stage1 !pkg.linux.notools>,
libdw-dev <!stage1>, libdw-dev <!stage1 !pkg.linux.notools>,
libelf-dev <!stage1>, libelf-dev <!stage1 !pkg.linux.notools>,
libiberty-dev <!stage1> | binutils-dev (<< 2.23.91.20131123-1) <!stage1>, libiberty-dev <!stage1 !pkg.linux.notools> | binutils-dev (<< 2.23.91.20131123-1) <!stage1 !pkg.linux.notools>,
libnewt-dev <!stage1>, libnewt-dev <!stage1 !pkg.linux.notools>,
libnuma-dev [amd64 arm64 hppa i386 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sparc x32] <!stage1>, libnuma-dev [amd64 arm64 hppa i386 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sparc x32] <!stage1 !pkg.linux.notools>,
libperl-dev <!stage1>, libperl-dev <!stage1 !pkg.linux.notools>,
libunwind8-dev [amd64 armel armhf arm64 i386] <!stage1>, libunwind8-dev [amd64 armel armhf arm64 i386] <!stage1 !pkg.linux.notools>,
python-dev <!stage1>, python-dev <!stage1 !pkg.linux.notools>,
# used by upstream to build usbip # used by upstream to build usbip
autoconf <!stage1>, autoconf <!stage1 !pkg.linux.notools>,
automake <!stage1>, automake <!stage1 !pkg.linux.notools>,
libtool <!stage1>, libtool <!stage1 !pkg.linux.notools>,
libglib2.0-dev <!stage1>, libglib2.0-dev <!stage1 !pkg.linux.notools>,
libudev-dev <!stage1>, libudev-dev <!stage1 !pkg.linux.notools>,
libwrap0-dev <!stage1>, libwrap0-dev <!stage1 !pkg.linux.notools>,
# used by upstream to build cpupower # used by upstream to build cpupower
libpci-dev <!stage1>, libpci-dev <!stage1 !pkg.linux.notools>,
# used by debian/rules.real to build linux-perf and linux-support # used by debian/rules.real to build linux-perf and linux-support
dh-python <!stage1>, dh-python <!stage1>,
# used by debian/rules.real to build hyperv-daemons # used by debian/rules.real to build hyperv-daemons
dh-systemd <!stage1>, dh-systemd <!stage1 !pkg.linux.notools>,
Build-Depends-Indep: Build-Depends-Indep:
# used by debian/rules.real to build linux-source # used by debian/rules.real to build linux-source
patchutils <!stage1>, patchutils <!stage1>,

View File

@ -1,5 +1,5 @@
Package: linux-kbuild-@version@ Package: linux-kbuild-@version@
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: linux-any Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
Multi-Arch: foreign Multi-Arch: foreign
@ -7,7 +7,7 @@ Description: Kbuild infrastructure for Linux @version@
This package provides the kbuild infrastructure for the headers packages for Linux kernel version @version@. This package provides the kbuild infrastructure for the headers packages for Linux kernel version @version@.
Package: linux-cpupower Package: linux-cpupower
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Section: admin Section: admin
Architecture: linux-any Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
@ -20,7 +20,7 @@ Description: CPU frequency and voltage scaling tools for Linux
cpufrequtils. cpufrequtils.
Package: libcpupower0 Package: libcpupower0
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Section: libs Section: libs
Architecture: linux-any Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
@ -28,7 +28,7 @@ Description: CPU frequency and voltage scaling tools for Linux (libraries)
This package contains the shared library. This package contains the shared library.
Package: libcpupower-dev Package: libcpupower-dev
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Section: libdevel Section: libdevel
Architecture: linux-any Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
@ -39,7 +39,7 @@ Description: CPU frequency and voltage scaling tools for Linux (development file
This package contains the 'power/cpupower' headers and library shared objects. This package contains the 'power/cpupower' headers and library shared objects.
Package: linux-perf-@version@ Package: linux-perf-@version@
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Section: devel Section: devel
Architecture: alpha amd64 arm64 armel armhf hppa i386 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sh4 sparc sparc64 Architecture: alpha amd64 arm64 armel armhf hppa i386 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390 s390x sh4 sparc sparc64
Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, ${python:Depends}
@ -56,7 +56,7 @@ Description: Performance analysis tools for Linux @version@
appropriate version for the running kernel. appropriate version for the running kernel.
Package: libusbip-dev Package: libusbip-dev
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: linux-any Architecture: linux-any
Depends: ${misc:Depends} Depends: ${misc:Depends}
Section: libdevel Section: libdevel
@ -67,7 +67,7 @@ Description: USB device sharing system over IP network (development files)
the library itself for static linking. the library itself for static linking.
Package: usbip Package: usbip
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: linux-any Architecture: linux-any
Depends: usbutils, ${shlibs:Depends}, ${misc:Depends} Depends: usbutils, ${shlibs:Depends}, ${misc:Depends}
Section: admin Section: admin
@ -90,7 +90,7 @@ Description: USB device sharing system over IP network
client tool 'usbip'. client tool 'usbip'.
Package: hyperv-daemons Package: hyperv-daemons
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: i386 amd64 x32 Architecture: i386 amd64 x32
Depends: lsb-base (>= 3.2-14), ${shlibs:Depends}, ${misc:Depends} Depends: lsb-base (>= 3.2-14), ${shlibs:Depends}, ${misc:Depends}
Section: admin Section: admin
@ -109,7 +109,7 @@ Description: Support daemons for Linux running on Hyper-V
the host to freeze the guest filesystems while taking a snapshot. the host to freeze the guest filesystems while taking a snapshot.
Package: lockdep Package: lockdep
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: all Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, liblockdep@version@ Depends: ${shlibs:Depends}, ${misc:Depends}, liblockdep@version@
Recommends: liblockdep-dev Recommends: liblockdep-dev
@ -120,7 +120,7 @@ Description: Runtime locking correctness validator
actual and potential deadlocks and other locking bugs. actual and potential deadlocks and other locking bugs.
Package: liblockdep@version@ Package: liblockdep@version@
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: linux-any Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
Section: libs Section: libs
@ -130,7 +130,7 @@ Description: Runtime locking correctness validator (shared library)
be used to detect actual and potential deadlocks and other locking bugs. be used to detect actual and potential deadlocks and other locking bugs.
Package: liblockdep-dev Package: liblockdep-dev
Build-Profiles: <!stage1> Build-Profiles: <!stage1 !pkg.linux.notools>
Architecture: linux-any Architecture: linux-any
Depends: ${shlibs:Depends}, ${misc:Depends} Depends: ${shlibs:Depends}, ${misc:Depends}
Section: libdevel Section: libdevel