Merge lp:~timrchavez/live-build/lb-sg-2.x-add-suppport-for-pxz into lp:~ce-infrastructure/live-build/lb-sg-2.x

Proposed by Timothy R. Chavez
Status: Merged
Merged at revision: 1617
Proposed branch: lp:~timrchavez/live-build/lb-sg-2.x-add-suppport-for-pxz
Merge into: lp:~ce-infrastructure/live-build/lb-sg-2.x
Diff against target: 70 lines (+18/-1)
5 files modified
debian/changelog (+6/-0)
functions/defaults.sh (+2/-0)
scripts/build/lb_binary_tar (+4/-0)
scripts/build/lb_config (+1/-1)
scripts/build/lb_source_tar (+5/-0)
To merge this branch: bzr merge lp:~timrchavez/live-build/lb-sg-2.x-add-suppport-for-pxz
Reviewer Review Type Date Requested Status
David Murphy (community) Approve
Review via email: mp+191550@code.launchpad.net

Description of the change

Add support for pxz compression to live-build. An initial test shows that defaulting to 4 threads (# of cpu cores in our armhf buildds) drops the build time down from ~49 minutes to ~27 minutes which equates to around a 45% reduction in build time.

To post a comment you must log in.
Revision history for this message
David Murphy (schwuk) wrote :

Looks OK.

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-10-11 19:27:22 +0000
3+++ debian/changelog 2013-10-17 03:38:15 +0000
4@@ -1,3 +1,9 @@
5+live-build (2.0.12-2cesg23) precise; urgency=low
6+
7+ * Add support for pxz.
8+
9+ -- Timothy Chavez <timothy.chavez@canonical.com> Wed, 16 Oct 2013 16:15:38 -0500
10+
11 live-build (2.0.12-2cesg22-1) precise; urgency=low
12
13 * Bump to build package for Saucy (via recipe). Added the '-0' to overcome a
14
15=== modified file 'functions/defaults.sh'
16--- functions/defaults.sh 2013-04-02 16:05:28 +0000
17+++ functions/defaults.sh 2013-10-17 03:38:15 +0000
18@@ -83,6 +83,8 @@
19
20 XZ_OPTIONS="${XZ_OPTIONS:--6}"
21
22+ PXZ_OPTIONS="${PXZ_OPTIONS:-$XZ_OPTIONS}"
23+
24 # Setting apt recommends
25 case "${LB_MODE}" in
26 debian|debian-release|ubuntu)
27
28=== modified file 'scripts/build/lb_binary_tar'
29--- scripts/build/lb_binary_tar 2013-01-22 18:30:18 +0000
30+++ scripts/build/lb_binary_tar 2013-10-17 03:38:15 +0000
31@@ -61,6 +61,10 @@
32 xz ${XZ_OPTIONS} binary-tar.tar
33 ;;
34
35+ pxz)
36+ pxz ${PXZ_OPTIONS} binary-tar.tar
37+ ;;
38+
39 none)
40 ;;
41 esac
42
43=== modified file 'scripts/build/lb_config'
44--- scripts/build/lb_config 2013-04-02 16:05:28 +0000
45+++ scripts/build/lb_config 2013-10-17 03:38:15 +0000
46@@ -54,7 +54,7 @@
47 \t [--cache-packages true|false]\n\
48 \t [--cache-stages STAGE|\"STAGES\"]\n\
49 \t [--checksums md5|sha1|sha256|none]\n\
50-\t [--compression bzip2|gzip|xz|none]\n\
51+\t [--compression bzip2|gzip|xz|pxz|none]\n\
52 \t [--zsync true|false]\n\
53 \t [--build-with-chroot true|false]\n\
54 \t [--chroot-filesystem ext2|ext3|ext4|squashfs|plain|jffs2]\n\
55
56=== modified file 'scripts/build/lb_source_tar'
57--- scripts/build/lb_source_tar 2013-01-11 22:57:09 +0000
58+++ scripts/build/lb_source_tar 2013-10-17 03:38:15 +0000
59@@ -72,6 +72,11 @@
60 xz ${XZ_OPTIONS} source.debian-live.tar
61 ;;
62
63+ pxz)
64+ pxz ${PXZ_OPTIONS} source.debian.tar
65+ pxz ${PXZ_OPTIONS} source.debian-live.tar
66+ ;;
67+
68 none)
69 ;;
70 esac

Subscribers

People subscribed via source and target branches