Merge lp:~jibel/ubuntu/trusty/sbuild/lp1247420_add_universe into lp:ubuntu/trusty/sbuild

Proposed by Jean-Baptiste Lallement
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~jibel/ubuntu/trusty/sbuild/lp1247420_add_universe
Merge into: lp:ubuntu/trusty/sbuild
Diff against target: 63 lines (+15/-4)
2 files modified
debian/changelog (+7/-0)
debian/tests/build_procenv (+8/-4)
To merge this branch: bzr merge lp:~jibel/ubuntu/trusty/sbuild/lp1247420_add_universe
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+193685@code.launchpad.net

Description of the change

Add universe on Ubuntu to make procenv buildable (LP:1247420)

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-09-03 09:04:59 +0000
3+++ debian/changelog 2013-11-02 22:05:33 +0000
4@@ -1,3 +1,10 @@
5+sbuild (0.64.0-1ubuntu2) trusty; urgency=low
6+
7+ * debian/tests/build_procenv: Add component universe for Ubuntu to make
8+ procenv buildable (LP: #1247420)
9+
10+ -- Jean-Baptiste Lallement <jean-baptiste.lallement@canonical.com> Sat, 02 Nov 2013 22:45:08 +0100
11+
12 sbuild (0.64.0-1ubuntu1) saucy; urgency=low
13
14 * Merge from Debian unstable. Remaining changes:
15
16=== modified file 'debian/tests/build_procenv'
17--- debian/tests/build_procenv 2013-09-03 09:04:59 +0000
18+++ debian/tests/build_procenv 2013-11-02 22:05:33 +0000
19@@ -1,10 +1,11 @@
20-#!/bin/sh -e
21+#!/bin/sh
22 #---------------------------------------------------------------------
23 # DEP-8 test for sbuild.
24 #
25 # Creates a sbuild chroot, builds a package, installs the resulting
26 # .deb, then runs the command provided by the .deb.
27 #---------------------------------------------------------------------
28+set -e
29
30 die()
31 {
32@@ -21,17 +22,19 @@
33 # exposing the full sbuild environment to those perusing the autopkgtest
34 # logs.
35 pkg=procenv
36+components=""
37
38-distro=$(lsb_release --id|cut -d: -f2-|awk '{print $1}'|tr '[A-Z]' '[a-z]')
39+distro=$(lsb_release -is|tr '[A-Z]' '[a-z]')
40 [ -z "$distro" ] && die "cannot establish distribution"
41
42-host_release=$(lsb_release --codename|cut -d: -f2-|awk '{print $1}')
43+host_release=$(lsb_release -cs)
44 [ -z "$host_release" ] && die "cannot establish release running on host"
45
46 if [ "$distro" = ubuntu ]
47 then
48 # Build chroot for latest release.
49 release=$(distro-info --devel)
50+ components=main,universe
51
52 url=http://archive.ubuntu.com/ubuntu
53 elif [ "$distro" = debian ]
54@@ -88,7 +91,8 @@
55 dsc=$(ls ${pkg}*.dsc)
56
57 echo "INFO: Creating sbuild chroot '$chroot' for release '$release' in directory '$dir' from url '$url'"
58-sbuild-createchroot "$release" "$dir" "$url"
59+[ -n "$components" ] && components="--components=$components"
60+sbuild-createchroot $components "$release" "$dir" "$url"
61
62 echo "INFO: Checking chroot '$chroot' is known"
63 schroot --list --all-chroots|grep "^chroot:${chroot}$"

Subscribers

People subscribed via source and target branches