]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/log
mirror_ubuntu-zesty-kernel.git
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>
7 years agoUBUNTU: [Debian] Re-sign modules after debug objcopy
Tim Gardner [Tue, 26 Nov 2013 17:35:47 +0000 (10:35 -0700)]
UBUNTU: [Debian] Re-sign modules after debug objcopy

BugLink: http://bugs.launchpad.net/bugs/1253155
Adding a GNU debug link to a module ELF destroys the
module signature, so re-sign the module file after the objcopy.

objcopy --add-gnu-debuglink=$(dbgpkgdir)/usr/lib/debug/$$module $(pkgdir)/$$module;
scripts/sign-file $(CONFIG_MODULE_SIG_HASH) $(MODSECKEY) $(MODPUBKEY) $(pkgdir)/$$module;

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] sort out linux-tools naming
Andy Whitcroft [Fri, 26 Jul 2013 10:48:03 +0000 (11:48 +0100)]
UBUNTU: [Debian] sort out linux-tools naming

BugLink: http://bugs.launchpad.net/bugs/1205284
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] linux-tools: switch to common generic version helper
Andy Whitcroft [Tue, 13 Aug 2013 13:19:05 +0000 (14:19 +0100)]
UBUNTU: [Debian] linux-tools: switch to common generic version helper

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] postinst -- fix unchanged link detection
Andy Whitcroft [Tue, 5 Nov 2013 12:21:19 +0000 (12:21 +0000)]
UBUNTU: [Debian] postinst -- fix unchanged link detection

http://bugs.launchpad.net/bugs/1248053
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] postinst -- improve relative symlink detection with missing files
Andy Whitcroft [Tue, 5 Nov 2013 11:12:07 +0000 (11:12 +0000)]
UBUNTU: [Debian] postinst -- improve relative symlink detection with missing files

When the symlinks are made we attempt to use relative links if that
would work.  However this relies on the file we are making the link to to
actually exist.  When it does not we fall back to absolute.  This impacts
the initrd links which are made before we make the initrd itself.

When the caller has asked us to use a specific handle file and that file
does not yet exist, see if there are any other files we can use in that
directory.  In the common case this will be a version specific file and
highly unique.

BugLink: http://bugs.launchpad.net/bugs/1248053
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] getabis: Commit new ABI directory, remove the old
Tim Gardner [Tue, 10 Sep 2013 14:30:04 +0000 (08:30 -0600)]
UBUNTU: [Debian] getabis: Commit new ABI directory, remove the old

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Add hv_vss_daemon to tools package
Tim Gardner [Mon, 19 Aug 2013 18:29:47 +0000 (12:29 -0600)]
UBUNTU: [Debian] Add hv_vss_daemon to tools package

BugLink: http://bugs.launchpad.net/bugs/1213282
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] tools: ship 'cpupower' in linux-tools
Kamal Mostafa [Fri, 9 Aug 2013 23:03:46 +0000 (16:03 -0700)]
UBUNTU: [debian] tools: ship 'cpupower' in linux-tools

BugLink: http://bugs.launchpad.net/bugs/1158668
New Build-depends: libpci-dev

Adds to binary package "linux-tools-$(abi_version)"
  /usr/bin/cpupower_$(abi_version)
  /usr/lib/libcpupower.so.$(abi_version)

Adds to binary package "linux-tools-common"
  /usr/bin/cpupower
  /usr/share/man/man1/cpupower-set.1.gz
  /usr/share/man/man1/cpupower-frequency-set.1.gz
  /usr/share/man/man1/cpupower-frequency-info.1.gz
  /usr/share/man/man1/cpupower-monitor.1.gz
  /usr/share/man/man1/cpupower-info.1.gz
  /usr/share/man/man1/cpupower-idle-info.1.gz
  /usr/share/man/man1/cpupower.1.gz

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] tools: enable x86 and hyper-v
Andy Whitcroft [Tue, 13 Aug 2013 12:18:47 +0000 (13:18 +0100)]
UBUNTU: [Debian] tools: enable x86 and hyper-v

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] autopkgtest: switch Depends: to build-essential
Andy Whitcroft [Sat, 22 Jun 2013 11:52:29 +0000 (12:52 +0100)]
UBUNTU: [Debian] autopkgtest: switch Depends: to build-essential

autopkgtest control Depends: as empty now seems to be an error, we want
to say 'install nothing' so switch it to depend on packages which by
definition are always installed.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] supply perf with appropriate prefix to ensure use of local config
Andy Whitcroft [Wed, 31 Jul 2013 12:41:32 +0000 (13:41 +0100)]
UBUNTU: [Debian] supply perf with appropriate prefix to ensure use of local config

If we do not supply an installation prefix when we are building perf
it will assume it is designed to run relative to the builders HOME.
This means that as built on a buildd we will check for the system
configuration relative to the buildd users home rather than in /etc.
This implies a local user could use this to compromise other users _if_
there is a buildd user installed on the system and they have access to it.

CVE-2013-1060
BugLink: http://bugs.launchpad.net/bugs/1206200
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Explicitly reference gawk in build rules awk in all and arch
Andy Whitcroft [Fri, 26 Jul 2013 16:55:44 +0000 (17:55 +0100)]
UBUNTU: [Debian] Explicitly reference gawk in build rules awk in all and arch

Explicitly reference gawk in all rules files. Fixes FTBS on the buildds.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] fix SRCPKGNAME-udebs-FLAVOUR handling for complex flavours
Andy Whitcroft [Thu, 25 Jul 2013 14:24:34 +0000 (15:24 +0100)]
UBUNTU: [Debian] fix SRCPKGNAME-udebs-FLAVOUR handling for complex flavours

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [Debian] Supply PKG_ABI in kmake
Tim Gardner [Wed, 24 Jul 2013 18:46:43 +0000 (12:46 -0600)]
UBUNTU: [Debian] Supply PKG_ABI in kmake

BugLink: http://bugs.launchpad.net/bugs/1193172
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] reduce udeb rules spew
Tim Gardner [Wed, 24 Jul 2013 15:50:34 +0000 (09:50 -0600)]
UBUNTU: [Debian] reduce udeb rules spew

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] Prepare to build using arch specific compiler
Tim Gardner [Wed, 10 Jul 2013 19:51:09 +0000 (13:51 -0600)]
UBUNTU: [Debian] Prepare to build using arch specific compiler

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] do_tools=false when cross compiling
Tim Gardner [Thu, 20 Jun 2013 16:13:57 +0000 (16:13 +0000)]
UBUNTU: [Debian] do_tools=false when cross compiling

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [Debian] generate a SRCPKGNAME-udebs-FLAVOUR-di depending on all built udebs
Andy Whitcroft [Thu, 18 Jul 2013 13:11:26 +0000 (14:11 +0100)]
UBUNTU: [Debian] generate a SRCPKGNAME-udebs-FLAVOUR-di depending on all built udebs

Build a nice little meta package for use in the seeds.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] Use dh_strip
Tim Gardner [Thu, 20 Jun 2013 14:06:04 +0000 (08:06 -0600)]
UBUNTU: [debian] Use dh_strip

BugLink: http://bugs.launchpad.net/bugs/1192759
Rely on dh_strip to strip any binaries for the
host arch instead of using install -s

Signed-off-by: Steve Langasek <steve.langasek@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: (debian) get-firmware: Be more selective about copies
Tim Gardner [Wed, 10 Apr 2013 19:19:02 +0000 (13:19 -0600)]
UBUNTU: (debian) get-firmware: Be more selective about copies

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: (debian) fix internal linkage for separated header packages
Andy Whitcroft [Wed, 10 Apr 2013 11:53:26 +0000 (12:53 +0100)]
UBUNTU: (debian) fix internal linkage for separated header packages

BugLink: http://bugs.launchpad.net/bugs/1165259
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: (debian) Abort build on unresolved symbols
Stefan Bader [Tue, 9 Apr 2013 17:18:46 +0000 (19:18 +0200)]
UBUNTU: (debian) Abort build on unresolved symbols

When splitting the flavours of a module into the extras and base
package, we already run depmod. Unfortunately this only produces
warnings when modules in the base package have unresolved depen-
dencies.
This change will abort the build in that case, so we can fix things.

BugLink: http://bugs.launchpad.net/bugs/1166197
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
7 years agoUBUNTU: [debian] Specify python2.7 for perf tools build
Tim Gardner [Fri, 5 Apr 2013 15:06:41 +0000 (09:06 -0600)]
UBUNTU: [debian] Specify python2.7 for perf tools build

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] do not use ../.$(series)-env file
Kamal Mostafa [Wed, 13 Mar 2013 22:20:04 +0000 (15:20 -0700)]
UBUNTU: [debian] do not use ../.$(series)-env file

Trying to use a file from ../ outside the tree seems like a bad idea, and
the series="oneiric" value here is stale by three releases now.  Kill this
apparently unused "feature".

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] perf: NO_LIBPERL=1
Tim Gardner [Mon, 11 Feb 2013 17:54:27 +0000 (10:54 -0700)]
UBUNTU: [debian] perf: NO_LIBPERL=1

Disable building perl libraries until such time as they are
actually packaged.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] perf: NO_LIBPYTHON=1
Tim Gardner [Mon, 11 Feb 2013 15:07:31 +0000 (08:07 -0700)]
UBUNTU: [debian] perf: NO_LIBPYTHON=1

Avoid a build dependency on python. Don't build python
support libraries since they aren't actually packaged.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Build extras package only for specific arches
Tim Gardner [Fri, 22 Mar 2013 12:53:48 +0000 (06:53 -0600)]
UBUNTU: [debian] Build extras package only for specific arches

An unwanted side effect of renaming arm omap4 to generic is that
the default rule is to create an extras package for flavours named 'generic'.
Furthermore, We stupidly tied the extras package logic to the flavour name 'generic'.

Defeat this side effect by specifying which architectures get an extras package
split, e.g., x86_64 and i386 in the arch specific make file.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Remove dangling symlink from headers package
Tim Gardner [Tue, 5 Feb 2013 15:42:23 +0000 (08:42 -0700)]
UBUNTU: [debian] Remove dangling symlink from headers package

BugLink: http://bugs.launchpad.net/bugs/1112442
Signed-off-by: Herton Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] DTB: add support for multiple DTBs
Paolo Pisati [Wed, 9 Jan 2013 10:27:47 +0000 (10:27 +0000)]
UBUNTU: [debian] DTB: add support for multiple DTBs

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
7 years agoUBUNTU: [debian] Add macro to selectively disable building perf
Tim Gardner [Thu, 10 Jan 2013 19:41:32 +0000 (12:41 -0700)]
UBUNTU: [debian] Add macro to selectively disable building perf

Fixes FTBS until libaudit-dev is promoted to main.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] insertchanges -- fix to work across major version changes
Andy Whitcroft [Thu, 3 Jan 2013 12:14:33 +0000 (12:14 +0000)]
UBUNTU: [debian] insertchanges -- fix to work across major version changes

Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] Moved scripts/fw-to-ihex.sh to debian/scripts/misc
Tim Gardner [Wed, 28 Nov 2012 15:17:41 +0000 (08:17 -0700)]
UBUNTU: [debian] Moved scripts/fw-to-ihex.sh to debian/scripts/misc

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] find-obsolete-firmware: Use correct path
Tim Gardner [Mon, 3 Dec 2012 16:36:33 +0000 (09:36 -0700)]
UBUNTU: [debian] find-obsolete-firmware: Use correct path

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] get-firmware: Filter new files through fwinfo
Tim Gardner [Wed, 28 Nov 2012 16:41:56 +0000 (09:41 -0700)]
UBUNTU: [debian] get-firmware: Filter new files through fwinfo

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] hmake -j1
Tim Gardner [Tue, 27 Nov 2012 19:56:28 +0000 (12:56 -0700)]
UBUNTU: [debian] hmake -j1

The kernel makefile appears to have parallel dependency
problems for the install_headers target.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] add an autopkgtest rebuild test
Andy Whitcroft [Wed, 21 Nov 2012 11:13:50 +0000 (11:13 +0000)]
UBUNTU: [debian] add an autopkgtest rebuild test

The plan here is for linux, gcc, binutils, and eglibc to all depends on
each other and to all have a rebuild test.  That way the entire set is
rebuild tested for any one in the set being uploaded.

BugLink: http://bugs.launchpad.net/bugs/1081500
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] move build tests out of the way
Andy Whitcroft [Wed, 21 Nov 2012 11:01:09 +0000 (11:01 +0000)]
UBUNTU: [debian] move build tests out of the way

The new Debian autopkgtest system takes ownership of the debian/tests
directory, in such a way that is incompatible with our usage.  Move our
tests to debian/tests-build as they are build tests.

BugLink: http://bugs.launchpad.net/bugs/1081500
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] add rebuild-test support for autopkgtest
Andy Whitcroft [Wed, 21 Nov 2012 10:00:25 +0000 (10:00 +0000)]
UBUNTU: [debian] add rebuild-test support for autopkgtest

Add support for the DEB_BUILD_OPTIONS rebuild-test which indicates this is
not a full build but a quick smoke test.  For us short circuit the build
and only make the first flavour on the assumption it is representative
of the others.

BugLink: http://bugs.launchpad.net/bugs/1081500
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] script to detect obsolete firmware
Tim Gardner [Fri, 16 Nov 2012 16:24:10 +0000 (09:24 -0700)]
UBUNTU: [debian] script to detect obsolete firmware

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Use SRCPKGNAME as prefix for indep linux headers package
Ben Collins [Fri, 9 Nov 2012 19:17:12 +0000 (14:17 -0500)]
UBUNTU: [debian] Use SRCPKGNAME as prefix for indep linux headers package

[apw@canonical.com: forward ported to new cleaned up indep stack.]
Signed-off-by: Ben Collins <ben.c@servergy.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
7 years agoUBUNTU: [debian] Document binary-indep dependency chain
Tim Gardner [Fri, 9 Nov 2012 15:41:35 +0000 (08:41 -0700)]
UBUNTU: [debian] Document binary-indep dependency chain

Move some code around to directly reflect the dependency chain ordering.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
7 years agoUBUNTU: [debian] Use dh_prep instead of 'dh_clean -k'
Tim Gardner [Fri, 9 Nov 2012 15:09:39 +0000 (08:09 -0700)]
UBUNTU: [debian] Use dh_prep instead of 'dh_clean -k'

dh_prep needs to be run only once at the root of the
binary-indep dependency chain, i.e., install-headers.

Similarly, dh_testdir and dh_testroot only need to be run once at
the root of the binary-indep dependency chain.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>