- 26 Feb, 2016 40 commits
-
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Tim Gardner authored
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1432837Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1401525Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Brad Figg authored
Signed-off-by: Brad Figg <brad.figg@canonical.com>
-
Andy Whitcroft authored
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/1413020Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Kamal Mostafa authored
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1408355Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Allow annotations to be simply marked as ENFORCED and that to trigger checking of that option. Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1408002Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
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/1408004Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
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/1407755Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com> (cherry picked from commit 920e8acdb5b860086618e436f572717b631e65ec) Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
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/1375310Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
dann frazier authored
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>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1411284Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Leann Ogasawara authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
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>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/898003 https://bugs.launchpad.net/ubuntu/+source/usbip/+bug/898003/comments/28Signed-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>
-
Tim Gardner authored
BugLink: https://bugs.launchpad.net/bugs/661306Signed-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>
-
Tim Gardner authored
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>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/898003Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1370211Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
dann frazier authored
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>
-
dann frazier authored
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>
-
Tim Gardner authored
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
Kamal Mostafa authored
Defines tag format for 'git buildpackage'. Acked-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Kamal Mostafa <kamal@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Tim Gardner authored
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
BugLink: http://bugs.launchpad.net/bugs/1134441Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1257715Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-
Tim Gardner authored
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>
-
Andy Whitcroft authored
BugLink: http://bugs.launchpad.net/bugs/1205284Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
Signed-off-by: Andy Whitcroft <apw@canonical.com>
-
Andy Whitcroft authored
http://bugs.launchpad.net/bugs/1248053Signed-off-by: Andy Whitcroft <apw@canonical.com>
-