]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/log
mirror_ubuntu-zesty-kernel.git
7 years agoUBUNTU: SAUCE: (no-up) version: Implement version_signature proc file.
Andy Whitcroft [Thu, 27 Nov 2008 19:12:07 +0000 (19:12 +0000)]
UBUNTU: SAUCE: (no-up) version: Implement version_signature proc file.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Tim Gardener <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Use src_pkg_name when constructing udeb control files
Tim Gardner [Thu, 8 Sep 2016 19:23:57 +0000 (13:23 -0600)]
UBUNTU: [Debian] Use src_pkg_name when constructing udeb control files

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] avoid duplicate CVE numbers in changelog
Andy Whitcroft [Tue, 19 Jul 2016 15:20:25 +0000 (16:20 +0100)]
UBUNTU: [Debian] avoid duplicate CVE numbers in changelog

BugLink: http://bugs.launchpad.net/bugs/1604344
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
7 years agoUBUNTU: [Debian] use CVE numbers in changelog
Andy Whitcroft [Tue, 19 Jul 2016 10:35:46 +0000 (11:35 +0100)]
UBUNTU: [Debian] use CVE numbers in changelog

BugLink: http://bugs.launchpad.net/bugs/1604344
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Luis Henriques <luis.henriques@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
7 years agoUBUNTU: [debian] getabis: Fix inconsistent compiler versions check
Kamal Mostafa [Mon, 23 May 2016 17:29:57 +0000 (10:29 -0700)]
UBUNTU: [debian] getabis: Fix inconsistent compiler versions check

BugLink: http://bugs.launchpad.net/bugs/1584890
Make the "WARNING: inconsistent compiler versions" check actually do
something useful by restricting it to check just the source package
version number (since the whole version string now contains e.g.
"Ubuntu/Linaro", "Ubuntu/IBM")

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
7 years agoUBUNTU: [debian] getabis: Only git add $abidir if running in local repo
Kamal Mostafa [Mon, 23 May 2016 17:29:56 +0000 (10:29 -0700)]
UBUNTU: [debian] getabis: Only git add $abidir if running in local repo

BugLink: http://bugs.launchpad.net/bugs/1584890
Fixes bogus error when run on a remote host, as via maint-startnewrelease:
    fatal: Not a git repository (or any of the parent directories): .git

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
7 years agoUBUNTU: [Debian] Added tristate.sh
Tim Gardner [Tue, 17 May 2016 20:03:46 +0000 (14:03 -0600)]
UBUNTU: [Debian] Added tristate.sh

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] zfs: transform symlink into referent file/dir
Tim Gardner [Tue, 17 May 2016 17:13:04 +0000 (11:13 -0600)]
UBUNTU: [Debian] zfs: transform symlink into referent file/dir

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] disable zfs module checks when cross-compiling
Andy Whitcroft [Thu, 12 May 2016 16:32:22 +0000 (17:32 +0100)]
UBUNTU: [Debian] disable zfs module checks when cross-compiling

When we cross-compile we have to turn off the inbuilt zfs modules.
When doing this we also need to allow the modules so produced to go
missing in this build while still checking the remainder of the modules.

BugLink: http://bugs.launchpad.net/bugs/1581127
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] kernel-wedge -- switch to explicit versions
Andy Whitcroft [Tue, 22 Mar 2016 17:39:51 +0000 (17:39 +0000)]
UBUNTU: [Debian] kernel-wedge -- switch to explicit versions

Pass the current ABI number to kernel-wedge so that it can
imply the correct versions.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] d-i -- move to current kernel-wedge configuration form
Andy Whitcroft [Tue, 22 Mar 2016 10:51:30 +0000 (10:51 +0000)]
UBUNTU: [Debian] d-i -- move to current kernel-wedge configuration form

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] update source options
Kamal Mostafa [Sun, 24 Apr 2016 19:12:29 +0000 (12:12 -0700)]
UBUNTU: [Debian] update source options

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
7 years agoUBUNTU: [Debian] autoreconstruct -- generate extend-diff-ignore for links
Andy Whitcroft [Sun, 24 Apr 2016 18:52:57 +0000 (19:52 +0100)]
UBUNTU: [Debian] autoreconstruct -- generate extend-diff-ignore for links

BugLink: http://bugs.launchpad.net/bugs/1574362
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] fix linux_tools when cross-compiling
David Leonard [Wed, 30 Mar 2016 01:38:21 +0000 (11:38 +1000)]
UBUNTU: [Debian] fix linux_tools when cross-compiling

Fixed invocation of dh_shlibdeps when cross-compiling with
do_linux_tools=true.
Without being told where to find the crossdev libs, dh_shlibdeps
will emit these warnings and fail the linux-tools package:

  Debug: binary-acm7xxx
  ...
  dh_shlibdeps -plinux-headers-4.4.0-15-generic
  arm-linux-gnueabihf-objdump: .../asn1_compiler: File format not recognized
  arm-linux-gnueabihf-objdump: .../extract-cert: File format not recognized
  ...

For example:

archtriple=arm-linux-gnueabihf
         flavour=generic
         dpkg-architecture -t $archtriple -c fakeroot \
                debian/rules \
                binary-$flavour binary-perarch \
                AUTOBUILD=true \
                abi_suffix= \
                do_linux_tools=true \
                do_tools=true \
                do_tools_usbip=false \
                do_tools_cpupower=false \
                do_tools_perf=true \
                do_tools_x86=false

Signed-off-by: David Leonard <david.leonard@opengear.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] cpupower uses non-standard CROSS
Tim Gardner [Thu, 31 Mar 2016 12:43:53 +0000 (06:43 -0600)]
UBUNTU: [Debian] cpupower uses non-standard CROSS

BugLink: http://bugs.launchpad.net/bugs/1564206
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] zfs -- handle rprovides via dpkg-gencontrol
Andy Whitcroft [Thu, 10 Mar 2016 16:07:35 +0000 (16:07 +0000)]
UBUNTU: [Debian] zfs -- handle rprovides via dpkg-gencontrol

BugLink: http://bugs.launchpad.net/bugs/1558871
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Remove generated intermediate files on clean
Tim Gardner [Tue, 22 Mar 2016 13:04:20 +0000 (07:04 -0600)]
UBUNTU: [Debian] Remove generated intermediate files on clean

BugLink: http://bugs.launchpad.net/bugs/1560445
Remove these files on clean so they do not get included in the
source package.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Silence the reconstruct script
Tim Gardner [Tue, 22 Mar 2016 12:58:35 +0000 (06:58 -0600)]
UBUNTU: [Debian] Silence the reconstruct script

The reconstruct script is long enough that it overwhelms
any other output from a clean operation (and is largely noise
anyway).

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- git log output is UTF-8
Andy Whitcroft [Fri, 18 Mar 2016 14:20:56 +0000 (14:20 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- git log output is UTF-8

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- prevent bug references being split
Andy Whitcroft [Fri, 18 Mar 2016 02:24:41 +0000 (02:24 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- prevent bug references being split

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] reconstruct -- update when inserting final changes
Andy Whitcroft [Thu, 10 Mar 2016 10:32:46 +0000 (10:32 +0000)]
UBUNTU: [Debian] reconstruct -- update when inserting final changes

BugLink: http://bugs.launchpad.net/bugs/1555543
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] reconstruct -- automatically reconstruct against base tag
Andy Whitcroft [Thu, 10 Mar 2016 10:26:37 +0000 (10:26 +0000)]
UBUNTU: [Debian] reconstruct -- automatically reconstruct against base tag

BugLink: http://bugs.launchpad.net/bugs/1555543
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] supply zfs dkms Provides: based on do_zfs
Andy Whitcroft [Fri, 26 Feb 2016 20:38:49 +0000 (20:38 +0000)]
UBUNTU: [Debian] supply zfs dkms Provides: based on do_zfs

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] perf -- build in the context of the full generated local headers
Andy Whitcroft [Sat, 27 Feb 2016 11:28:02 +0000 (11:28 +0000)]
UBUNTU: [Debian] perf -- build in the context of the full generated local headers

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- ensure we get the last commit
Andy Whitcroft [Fri, 26 Feb 2016 10:53:48 +0000 (10:53 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- ensure we get the last commit

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- wrap long bug and commit titles
Andy Whitcroft [Wed, 24 Feb 2016 22:25:23 +0000 (22:25 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- wrap long bug and commit titles

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- handle invalid or private bugs
Andy Whitcroft [Mon, 22 Feb 2016 19:47:02 +0000 (19:47 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- handle invalid or private bugs

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- output should be utf-8
Andy Whitcroft [Mon, 22 Feb 2016 19:44:47 +0000 (19:44 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- output should be utf-8

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] postinst -- handle recreating symlinks when a real file is present
Andy Whitcroft [Mon, 22 Feb 2016 19:18:02 +0000 (19:18 +0000)]
UBUNTU: [Debian] postinst -- handle recreating symlinks when a real file is present

BugLink: http://bugs.launchpad.net/bugs/1536810
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] hv: hv_set_ifconfig -- fix numerous parameter handling issues
Andy Whitcroft [Tue, 9 Feb 2016 14:07:06 +0000 (14:07 +0000)]
UBUNTU: [Debian] hv: hv_set_ifconfig -- fix numerous parameter handling issues

Fix a number of KVP parameter parsing issues:

1) we should not be separating the prefix and instance numbers with an '_',
2) IPADDR/NETMASK instance 0 does have a suffix which we do not provide,
3) GATEWAY instance 0 is inconsistant,
4) IPv6 should be configured whether IPv4 is DHCP or not, and
5) DHCP mode is selected via BOOTPROTO=dhcp not DHCP=yes.

BugLink: http://bugs.launchpad.net/bugs/1540586
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] hv: hv_set_ifconfig -- switch to approved indentation
Andy Whitcroft [Tue, 9 Feb 2016 14:03:05 +0000 (14:03 +0000)]
UBUNTU: [Debian] hv: hv_set_ifconfig -- switch to approved indentation

BugLink: http://bugs.launchpad.net/bugs/1540586
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- fix empty section formatting
Andy Whitcroft [Fri, 5 Feb 2016 17:39:13 +0000 (17:39 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- fix empty section formatting

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] git-ubuntu-log -- switch to bug order
Andy Whitcroft [Fri, 5 Feb 2016 17:39:13 +0000 (17:39 +0000)]
UBUNTU: [Debian] git-ubuntu-log -- switch to bug order

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] update spl/zfs version
Tim Gardner [Thu, 4 Feb 2016 14:24:12 +0000 (07:24 -0700)]
UBUNTU: [Debian] update spl/zfs version

BugLink: http://bugs.launchpad.net/bugs/1542296
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] postinst -- detect symlinks correctly
Andy Whitcroft [Sun, 31 Jan 2016 14:30:07 +0000 (14:30 +0000)]
UBUNTU: [Debian] postinst -- detect symlinks correctly

BugLink: http://bugs.launchpad.net/bugs/1536810
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] hv: hv_set_ifconfig -- convert to python3
Andy Whitcroft [Thu, 28 Jan 2016 12:03:00 +0000 (12:03 +0000)]
UBUNTU: [Debian] hv: hv_set_ifconfig -- convert to python3

From 15.10 onwards python2 is no longer the default python and is no longer
installed by default.  Switch to python3 which is.  This delta is much
larger than the nominal changes as inconsistent spacing is now an error.
I have also corrected the use of loose strings as comments.

BugLink: http://bugs.launchpad.net/bugs/1506521
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Install spl/zfs under the kernel modules directory
Tim Gardner [Fri, 15 Jan 2016 20:43:32 +0000 (13:43 -0700)]
UBUNTU: [Debian] Install spl/zfs under the kernel modules directory

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] gcc-multilib does not exist on ppc64el
Andy Whitcroft [Thu, 12 Nov 2015 10:13:07 +0000 (10:13 +0000)]
UBUNTU: [Debian] gcc-multilib does not exist on ppc64el

We have a hard dependency on gcc-multilib which is not available on
ppc64el.  Drop this dependancy by making it arch conditional.

BugLink: http://bugs.launchpad.net/bugs/1515541
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Ignore spl/zfs symlinks
Tim Gardner [Mon, 11 Jan 2016 13:52:11 +0000 (06:52 -0700)]
UBUNTU: [Debian] Ignore spl/zfs symlinks

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] config-check and prepare using ${DEBIAN}/config/annotations
Tim Gardner [Tue, 6 Oct 2015 16:07:03 +0000 (10:07 -0600)]
UBUNTU: [Debian] config-check and prepare using ${DEBIAN}/config/annotations

Annotations are unique to the derivative. Therefore, use annotations
found in the derivative config directory.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
(cherry picked from commit 4f92f80963c358c9716e70d912449a7c2a5808aa)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
7 years agoUBUNTU: [Debian] Disable udebs when cross compiling
Tim Gardner [Sun, 29 Nov 2015 03:38:57 +0000 (20:38 -0700)]
UBUNTU: [Debian] Disable udebs when cross compiling

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Disable SPL/ZFS for cross compiling -- redux
Andy Whitcroft [Wed, 25 Nov 2015 11:23:31 +0000 (11:23 +0000)]
UBUNTU: [Debian] Disable SPL/ZFS for cross compiling -- redux

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Disable SPL/ZFS for cross compiling
Tim Gardner [Thu, 12 Nov 2015 23:37:17 +0000 (16:37 -0700)]
UBUNTU: [Debian] Disable SPL/ZFS for cross compiling

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] s390x -- add architecture to kernelconfig
Andy Whitcroft [Mon, 24 Aug 2015 15:52:25 +0000 (16:52 +0100)]
UBUNTU: [Debian] s390x -- add architecture to kernelconfig

BugLink: http://bugs.launchpad.net/bugs/1488653
Signed-off-by: Andy Whitcroft <apw@canonical.com>
(cherry picked from commit 019499429e25c5845a9ff9019819dc91010374fd)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] config-check -- handle V2 annotations format
Andy Whitcroft [Mon, 28 Sep 2015 15:21:49 +0000 (16:21 +0100)]
UBUNTU: [Debian] config-check -- handle V2 annotations format

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] config-check -- accumulate multi-line annotations correctly
Andy Whitcroft [Fri, 25 Sep 2015 20:09:07 +0000 (21:09 +0100)]
UBUNTU: [Debian] config-check -- accumulate multi-line annotations correctly

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] module-inclusion -- add dependency inclusion for a list
Andy Whitcroft [Thu, 26 Mar 2015 15:54:05 +0000 (15:54 +0000)]
UBUNTU: [Debian] module-inclusion -- add dependency inclusion for a list

When adding a module via an inclusion list, add any specific dependencies
it lists.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] config-check -- improve syntax diagnostics
Andy Whitcroft [Mon, 7 Sep 2015 17:14:39 +0000 (18:14 +0100)]
UBUNTU: [Debian] config-check -- improve syntax diagnostics

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] add feature interlock with mainline builds
Andy Whitcroft [Mon, 26 Oct 2015 09:09:23 +0000 (09:09 +0000)]
UBUNTU: [Debian] add feature interlock with mainline builds

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] update-zfs.sh: Allow environment variable overrides
Tim Gardner [Wed, 28 Oct 2015 14:39:16 +0000 (08:39 -0600)]
UBUNTU: [Debian] update-zfs.sh: Allow environment variable overrides

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Added script to update SPL/ZFS module from archive package
Tim Gardner [Sat, 24 Oct 2015 14:23:27 +0000 (08:23 -0600)]
UBUNTU: [Debian] Added script to update SPL/ZFS module from archive package

BugLink: http://bugs.launchpad.net/bugs/1509881
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Added SPL/ZFS build rules
Tim Gardner [Sat, 24 Oct 2015 14:31:31 +0000 (08:31 -0600)]
UBUNTU: [Debian] Added SPL/ZFS build rules

BugLink: http://bugs.launchpad.net/bugs/1509881
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Update to new signing key type and location
Tim Gardner [Wed, 21 Oct 2015 17:14:28 +0000 (11:14 -0600)]
UBUNTU: [Debian] Update to new signing key type and location

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] sign-file is now compiled
Tim Gardner [Wed, 21 Oct 2015 15:24:46 +0000 (09:24 -0600)]
UBUNTU: [Debian] sign-file is now compiled

Since sign-file was originally a script, the reference to it never failed. Now that
it is compiled, the executable lives in the build directory.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] rebuild should only trigger for non-linux packages
Andy Whitcroft [Wed, 23 Sep 2015 10:54:24 +0000 (11:54 +0100)]
UBUNTU: [Debian] rebuild should only trigger for non-linux packages

BugLink: http://bugs.launchpad.net/bugs/1498862
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] ubuntu: vbox -- elide the new symlinks and reconstruct on clean
Andy Whitcroft [Mon, 2 Mar 2015 19:02:07 +0000 (19:02 +0000)]
UBUNTU: [Debian] ubuntu: vbox -- elide the new symlinks and reconstruct on clean

BugLink: http://bugs.launchpad.net/bugs/1426113
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] aufs: fix update script to allow local mirror
Andy Whitcroft [Thu, 30 Jul 2015 15:46:47 +0000 (16:46 +0100)]
UBUNTU: [Debian] aufs: fix update script to allow local mirror

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] control -- prepare for new kernel-wedge semantics
Andy Whitcroft [Thu, 3 Sep 2015 21:44:08 +0000 (22:44 +0100)]
UBUNTU: [Debian] control -- prepare for new kernel-wedge semantics

We have been carrying a nastly little patch for kernel-wedge to cope with
the fact we use control.stub.  But it is simpler to just go with the flow
and emit the stub by hand.  Do this in such a way we keep a fake
debian/control.stub such that we will work with either Debian or Ubuntu
kernel-wedge.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] standardise on stage1 for the bootstrap stage in line with debian
Andy Whitcroft [Tue, 1 Sep 2015 15:46:21 +0000 (16:46 +0100)]
UBUNTU: [Debian] standardise on stage1 for the bootstrap stage in line with debian

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] initscripts work around bug in debhelper systemd support
Andy Whitcroft [Fri, 3 Apr 2015 14:01:58 +0000 (15:01 +0100)]
UBUNTU: [Debian] initscripts work around bug in debhelper systemd support

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] initscripts need installing when making the package
Andy Whitcroft [Fri, 3 Apr 2015 13:03:12 +0000 (14:03 +0100)]
UBUNTU: [Debian] initscripts need installing when making the package

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] do_common_tools should always be on
Andy Whitcroft [Thu, 2 Apr 2015 14:51:04 +0000 (15:51 +0100)]
UBUNTU: [Debian] do_common_tools should always be on

do_common_tools is a mode specifier, it is on when we want tools and off
when we do not want tools.  It is intended to be flipped by the bootstrap
modes.  Whether those common tools are actually built is determined by
whether we are calling binary or binary-arch not related to whether we
want those packages to have content.

Enable this unconditionally.  This allows us to build the indep packages
on any arch is needed.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] module blacklists -- add support for manual blacklists
Andy Whitcroft [Mon, 23 Mar 2015 09:39:56 +0000 (09:39 +0000)]
UBUNTU: [Debian] module blacklists -- add support for manual blacklists

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] module-inclusion -- add manual command entries
Andy Whitcroft [Thu, 26 Mar 2015 14:00:16 +0000 (14:00 +0000)]
UBUNTU: [Debian] module-inclusion -- add manual command entries

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] module-inclusion -- commonise copy code and simplify
Andy Whitcroft [Thu, 26 Mar 2015 13:58:39 +0000 (13:58 +0000)]
UBUNTU: [Debian] module-inclusion -- commonise copy code and simplify

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Add aufs update script
Tim Gardner [Tue, 12 May 2015 17:05:09 +0000 (11:05 -0600)]
UBUNTU: [Debian] Add aufs update script

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] generate live watchdog blacklists
Andy Whitcroft [Tue, 17 Mar 2015 11:04:29 +0000 (11:04 +0000)]
UBUNTU: [Debian] generate live watchdog blacklists

BugLink: http://bugs.launchpad.net/bugs/1432837
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] control -- make element ordering deterministic
Andy Whitcroft [Tue, 10 Mar 2015 17:01:14 +0000 (17:01 +0000)]
UBUNTU: [Debian] control -- make element ordering deterministic

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] systemd -- fix hyper-v units to be non-forking
Andy Whitcroft [Tue, 10 Feb 2015 20:48:15 +0000 (20:48 +0000)]
UBUNTU: [Debian] systemd -- fix hyper-v units to be non-forking

BugLink: http://bugs.launchpad.net/bugs/1401525
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] DEP8 test to run our regression tests
Brad Figg [Tue, 10 Feb 2015 17:21:19 +0000 (09:21 -0800)]
UBUNTU: [Debian] DEP8 test to run our regression tests

Signed-off-by: Brad Figg <brad.figg@canonical.com>
7 years agoUBUNTU: [Debian] hyper-v -- fix comment handing in /etc/network/interfaces
Andy Whitcroft [Wed, 21 Jan 2015 12:52:13 +0000 (12:52 +0000)]
UBUNTU: [Debian] hyper-v -- fix comment handing in /etc/network/interfaces

We are duplicating the opening comment marker every time we rebuild the
file, such that we end up with multiple of those comments:

    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).

    # The loopback network interface
    auto lo
    iface lo inet loopback

    # The primary network interface
    # The following stanza(s) added by hv_set_ifconfig
    # The following stanza(s) added by hv_set_ifconfig
    # The following stanza(s) added by hv_set_ifconfig
    auto eth0
    iface eth0 inet static
    address 10.100.20.108
    gateway 10.100.20.1
    dns-nameservers 8.8.4.4

    #End of hv_set_ifconfig stanzas

Fix handling of these such that we only insert new markers if they do
not already exist.  Where they do, simply inject the new stanzas at the
end of the block before the end marker.  At the same time deduplicate
sequential begin and end markers to clean up previously dammaged files.

BugLink: http://bugs.launchpad.net/bugs/1413020
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] force "dpkg-source -I -i" behavior
Kamal Mostafa [Fri, 16 Jan 2015 19:37:02 +0000 (11:37 -0800)]
UBUNTU: [Debian] force "dpkg-source -I -i" behavior

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
7 years agoUBUNTU: [Debian] hyper-v -- daemons now require -n for non-forking startup
Andy Whitcroft [Wed, 21 Jan 2015 14:23:53 +0000 (14:23 +0000)]
UBUNTU: [Debian] hyper-v -- daemons now require -n for non-forking startup

BugLink: http://bugs.launchpad.net/bugs/1408355
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] config-check -- drop support for enforce file
Andy Whitcroft [Tue, 20 Jan 2015 17:57:34 +0000 (17:57 +0000)]
UBUNTU: [Debian] config-check -- drop support for enforce file

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] config-check -- add support for enforced annotations
Andy Whitcroft [Tue, 20 Jan 2015 14:36:59 +0000 (14:36 +0000)]
UBUNTU: [Debian] config-check -- add support for enforced annotations

Allow annotations to be simply marked as ENFORCED and that to trigger
checking of that option.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] install all dtb files
Andy Whitcroft [Mon, 12 Jan 2015 12:35:20 +0000 (12:35 +0000)]
UBUNTU: [Debian] install all dtb files

BugLink: http://bugs.launchpad.net/bugs/1408002
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] handle dts directories
Andy Whitcroft [Tue, 6 Jan 2015 13:19:30 +0000 (13:19 +0000)]
UBUNTU: [Debian] handle dts directories

Handle the renaming of dts files into vendor directories.  Also build
all DTS files to trigger proper directory construction.

BugLink: http://bugs.launchpad.net/bugs/1408004
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] uploadnum should be the remainder of the version
Andy Whitcroft [Tue, 6 Jan 2015 11:05:22 +0000 (11:05 +0000)]
UBUNTU: [Debian] uploadnum should be the remainder of the version

The uploadnum variable in debian/rules is somewhat confusingly named,
it should be the "remainder of the version after <version>-<abinum>", not
just the uploadnum itself.  This version is only used for identification
in uname -v and there it is completely appropriate for this to be complete
with backport versions etc.

BugLink: http://bugs.launchpad.net/bugs/1407755
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] linux-image-extra postrm is not needed on purge
Andy Whitcroft [Fri, 3 Oct 2014 16:43:13 +0000 (17:43 +0100)]
UBUNTU: [Debian] linux-image-extra postrm is not needed on purge

Signed-off-by: Andy Whitcroft <apw@canonical.com>
(cherry picked from commit 920e8acdb5b860086618e436f572717b631e65ec)
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] linux-image-extra is additive to linux-image
Andy Whitcroft [Thu, 2 Oct 2014 10:00:45 +0000 (11:00 +0100)]
UBUNTU: [Debian] linux-image-extra is additive to linux-image

linux-image-extra is special, it is only additive to linux-image, this
means really cannot use the standard kernel postinst/postrm for this
package.  As it also depends on linux-image we know that linux-image will
have been installed before it, and will be removed after it.  On change
(installation/update/removal) of linux-image-extra we want to run the
kernel postinst to rebuilt the initramfs and update the bootloader
as necessary.  To this end switch to package specific postinst/postrm
which trigger the /etc/kernel/postinst.d hooks.  We need to do it this
way to get the specially parameterised incantations of update-initramfs,
to ensure we trigger the correct build rather than mearly dpkg triggering
a rebuild of the running kernel.

BugLink: http://bugs.launchpad.net/bugs/1375310
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] follow rename of DEB_BUILD_PROFILES
Andy Whitcroft [Wed, 17 Sep 2014 11:43:37 +0000 (12:43 +0100)]
UBUNTU: [Debian] follow rename of DEB_BUILD_PROFILES

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] tools -- only build common tools when enabled
Andy Whitcroft [Wed, 17 Sep 2014 13:51:35 +0000 (14:51 +0100)]
UBUNTU: [Debian] tools -- only build common tools when enabled

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Fix 'printchanges' to work with versions containing '+'
dann frazier [Wed, 30 Jul 2014 16:57:11 +0000 (10:57 -0600)]
UBUNTU: [Debian] Fix 'printchanges' to work with versions containing '+'

I maintain several topic kernel branches/builds where I like to use version
strings that contain a '+' character. Today this means I can't use targets
like printchanges and insertchanges because '+' characters aren't escaped.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] arm64 -- build ubuntu drivers
Andy Whitcroft [Thu, 15 Jan 2015 15:34:37 +0000 (15:34 +0000)]
UBUNTU: [Debian] arm64 -- build ubuntu drivers

BugLink: http://bugs.launchpad.net/bugs/1411284
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] ensure debian/ is not excluded from git by default
Andy Whitcroft [Mon, 16 Jan 2012 10:17:56 +0000 (10:17 +0000)]
UBUNTU: [debian] ensure debian/ is not excluded from git by default

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Prep for Ubuntu build infrastructure
Leann Ogasawara [Sat, 13 Mar 2010 01:13:25 +0000 (17:13 -0800)]
UBUNTU: [Debian] Prep for Ubuntu build infrastructure

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] basic hook support
Andy Whitcroft [Wed, 5 Nov 2014 10:28:29 +0000 (10:28 +0000)]
UBUNTU: [Debian] basic hook support

Add the infrastructure for Makefile macro overrides. This
is primarily used by LTS backport branches to supersede master
branch settings such as do_tools_common, etc.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] install usbipd
Tim Gardner [Mon, 27 Oct 2014 18:36:04 +0000 (12:36 -0600)]
UBUNTU: [Debian] install usbipd

BugLink: http://bugs.launchpad.net/bugs/898003
https://bugs.launchpad.net/ubuntu/+source/usbip/+bug/898003/comments/28

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
7 years agoUBUNTU: [Debian] Fix linux-doc dangling symlinks
Tim Gardner [Mon, 27 Oct 2014 20:14:08 +0000 (14:14 -0600)]
UBUNTU: [Debian] Fix linux-doc dangling symlinks

BugLink: https://bugs.launchpad.net/bugs/661306
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Chris J Arges <chris.j.arges@canonical.com>
7 years agoUBUNTU: [Debian] Don't fail if a symlink already exists
Tim Gardner [Fri, 26 Sep 2014 19:30:28 +0000 (13:30 -0600)]
UBUNTU: [Debian] Don't fail if a symlink already exists

A restarted build (dpkg-buildpackage -nc) currently fails if the linux-tools
symlinks remain from a previous build. Use ln -sf to allow the build to
continue by overwriting any existing links.

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] usbip tools packaging
Tim Gardner [Mon, 22 Sep 2014 13:46:32 +0000 (07:46 -0600)]
UBUNTU: [Debian] usbip tools packaging

BugLink: http://bugs.launchpad.net/bugs/898003
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] set do_*_tools after stage1 or bootstrap is determined
Tim Gardner [Tue, 16 Sep 2014 19:34:24 +0000 (13:34 -0600)]
UBUNTU: [Debian] set do_*_tools after stage1 or bootstrap is determined

BugLink: http://bugs.launchpad.net/bugs/1370211
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Fix regression with ABI subversions and backport
dann frazier [Fri, 15 Aug 2014 19:40:08 +0000 (13:40 -0600)]
UBUNTU: [debian] Fix regression with ABI subversions and backport

Tim pointed out that 443b5814ee77f8c9083079ce0e6a0806e087630f broke the parsing
of backport versions, such as 8.13~14.10+ppa.1. This should fix it. I used the
following script to validate the regular expressions:

dannf@fluid:~$ cat test.sh

set -e

splitver() {
    local ver="$1"
    local abinum="$(echo $ver | sed -r -e 's/([^\+~]*)\.[^\.]+(~.*)?(\+.*)?$/\1/')"
    local uploadnum="$(echo $ver | sed -r -e 's/[^\+~]*\.([^\.~]+)(~.*)?(\+.*)?$/\1/')"

    echo "$abinum $uploadnum"
}

do_test() {
    local ver="$1"
    local expected="$2"

    local actual="$(splitver $ver)"

    if [ "$actual" = "$expected" ]; then
echo "PASS: $ver"
return 0
    fi
    echo "FAIL: $ver split as $actual"
    return 1
}

do_test "33.58" "33 58"
do_test "33.59.58" "33.59 58"
do_test "8.13~14.10" "8 13"
do_test "8.13~14.10+ppa.1" "8 13"
do_test "8.13.99~14.10+ppa.3" "8.13 99"
dannf@fluid:~$ ./test.sh
PASS: 33.58
PASS: 33.59.58
PASS: 8.13~14.10
PASS: 8.13~14.10+ppa.1
PASS: 8.13.99~14.10+ppa.3

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Allow for package revisions condusive for branching
dann frazier [Mon, 11 Aug 2014 19:50:02 +0000 (13:50 -0600)]
UBUNTU: [debian] Allow for package revisions condusive for branching

TLDR; This changes the way that version strings are parsed in the packaging to
make it easier for me to maintain topic branches/PPA builds. There should
be no changes to how things work today for standard Ubuntu kernels. But,
it allows for topic-branch maintainers to add an optional ".X" in the ABI
name, for reasons described below.

<Regression Testing>
------------------
Old Parsing:
  = abinum =
  $ echo "33.58" | sed -e 's/\..*//'
  33
  = uploadnum =
  $ echo "33.58" | sed -e 's/.*\.//'
  58
  = abi =
  $ echo "33.58" | gawk -F. '{print $1}'
  33

New Parsing:
  = abinum =
  $ echo "33.58" | sed -r -e 's/([^\+]*)\.[^\.]+(\+.*)?$/\1/'
  33
  = uploadnum =
  $ echo "33.58" | sed -r -e 's/[^\+]*\.([^\.]+(\+.*)?$$)/\1/'
  58
  = abi =
  $ echo "33.58" | sed -r -e 's/([^\+]*)\.[^\.]+(\+.*)?$/\1/'
  33
</Regression Testing>

When maintaining topic customizations that track Ubuntu kernel releases, it
is nice have the following features:

 1) Ability to decipher the base Ubuntu kernel revision used from the topic
    kernel's revision number
 2) Use a version that dpkg sorts > the base Ubuntu version
 3) Use a version that dpkg sorts < the next expected Ubuntu version
 4) Ability to retains the same ABI as the base Ubuntu version when the
    ABI has indeed not changed. This helps with e.g. d-i compatibility.
 5) Make use of ABI tracking facilities (vs. just disabling them)

This is difficult to do with the current version scheme, which encodes the
ABI number in the version string:

  <upstream-version>-<abi>.<rev>

I can tack a "+topic.<N>" to the end of rev, we can solve 1-3, but only as
long as as the ABI is the same. Once the ABI changes, I don't have a good way
to bump it. If I increment the ABI, we'll overlap with the next Ubuntu ABI
(breaking #4). If we jump to a huge ABI number (e.g. x100 to go from 32 to
3200), we'll have a package revision that will never again upgrade to an Ubuntu
version (breaking #3), and never get back to the Ubuntu ABI (again breaking #4).
I can of course use a linux-meta package to e.g. transition from a 3200 ABI back
to a 32 ABI at the packaging level, but the bootloader will still consider
3200 to be newer and therefore the default.

I've therefore started using the following scheme:

  <upstream-version>-<abi>(.topicabi)?.<rev>(+<topic>.<topicrev>)?

Where topicabi must always be >= <rev> (ugly, but necessary).

If I don't break the ABI, I can then branch and return like so:

3.16.0-8.6 -------------------------------------------------> 3.16.0-8.7
   \                                                             ^
    \                                                            |
     \--> 3.16.0-8.6+topic.1 -------> 3.16.0-8.6+topic.2 --------/

If I do need to break the ABI, I can branch and return like so:

3.16.0-8.6 -------------------------------------------------> 3.16.0-9.1
   \                                                             ^
    \       ABI break #1                   ABI break #2          |
     \--> 3.16.0-8.6.6+topic.1 -------> 3.16.0-8.7.6+topic.2 ----/

Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Cloud tools
Tim Gardner [Thu, 24 Jul 2014 13:30:01 +0000 (07:30 -0600)]
UBUNTU: [Debian] Cloud tools

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] add debian/gbp.conf
Kamal Mostafa [Mon, 26 May 2014 10:20:05 +0000 (12:20 +0200)]
UBUNTU: [Debian] add debian/gbp.conf

Defines tag format for 'git buildpackage'.

Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
7 years agoUBUNTU: [Debian] remove the kernel-image firmware list on clean
Andy Whitcroft [Wed, 21 May 2014 14:55:20 +0000 (15:55 +0100)]
UBUNTU: [Debian] remove the kernel-image firmware list on clean

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] Dynamically generate the kernel-image udebs firmware list
Tim Gardner [Tue, 20 May 2014 20:47:14 +0000 (13:47 -0700)]
UBUNTU: [debian] Dynamically generate the kernel-image udebs firmware list

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Fix indep_hdrs_pkg_name
Tim Gardner [Thu, 28 Feb 2013 17:56:19 +0000 (10:56 -0700)]
UBUNTU: [debian] Fix indep_hdrs_pkg_name

BugLink: http://bugs.launchpad.net/bugs/1134441
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Improve tools version message
Andy Whitcroft [Thu, 5 Dec 2013 18:14:04 +0000 (18:14 +0000)]
UBUNTU: [Debian] Improve tools version message

BugLink: http://bugs.launchpad.net/bugs/1257715
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>