Merge lp:~xnox/ubiquity/parallel into lp:ubiquity

Proposed by Dimitri John Ledkov
Status: Rejected
Rejected by: Dimitri John Ledkov
Proposed branch: lp:~xnox/ubiquity/parallel
Merge into: lp:ubiquity
Diff against target: 116 lines (+22/-24)
5 files modified
d-i/Makefile (+12/-19)
d-i/update-control (+1/-0)
debian/changelog (+6/-0)
debian/control (+1/-1)
debian/rules (+2/-4)
To merge this branch: bzr merge lp:~xnox/ubiquity/parallel
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Needs Resubmitting
Review via email: mp+173730@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

meh

review: Disapprove
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The development of ubiquity has moved to git, still hosted on launchpad. If this merge proposal is still relevant, please resubmit it against the git branches found at https://code.launchpad.net/ubiquity

Sorry for any inconvenience caused.

review: Needs Resubmitting

Unmerged revisions

5953. By Dimitri John Ledkov

Use GNU parallel, to speed up d-i build and checks.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'd-i/Makefile'
--- d-i/Makefile 2010-02-12 20:27:37 +0000
+++ d-i/Makefile 2013-07-09 14:21:27 +0000
@@ -4,6 +4,14 @@
4LISTDIR := lists4LISTDIR := lists
5SOURCEDIR := source5SOURCEDIR := source
66
7ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
8NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
9else
10NUMJOBS = 1
11endif
12
13PARALLEL = parallel --gnu -k -j $(NUMJOBS)
14
7ifndef DEB_HOST_ARCH15ifndef DEB_HOST_ARCH
8DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)16DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
9endif17endif
@@ -36,34 +44,19 @@
36 rm -rf $(SOURCEDIR)44 rm -rf $(SOURCEDIR)
3745
38build:46build:
39 set -e; for package in $(PACKAGES); do \47 $(PARALLEL) make -f debian/rules -C $(SOURCEDIR)/{} build ::: $(PACKAGES)
40 if [ -d "$(SOURCEDIR)/$$package" ]; then \
41 (cd "$(SOURCEDIR)/$$package" && \
42 debian/rules build) || exit 1; \
43 fi; \
44 done
4548
46clean:49clean:
47 rm -rf $(APTDIR)50 rm -rf $(APTDIR)
48 for dir in $(SOURCEDIR)/*; do \51 $(PARALLEL) make -f debian/rules -C {} clean ::: $(filter-out $(SOURCEDIR)/console-setup $(SOURCEDIR)/README, $(wildcard $(SOURCEDIR)/*))
49 if [ "$${dir##*/}" != console-setup ] && [ -d "$$dir" ]; then \
50 (cd "$$dir" && debian/rules clean) || exit 1; \
51 fi; \
52 done
53 $(MAKE) -C $(SOURCEDIR)/console-setup/Keyboard clean52 $(MAKE) -C $(SOURCEDIR)/console-setup/Keyboard clean
54 rm -f $(SOURCEDIR)/*.deb $(SOURCEDIR)/*.udeb53 rm -f $(SOURCEDIR)/*.deb $(SOURCEDIR)/*.udeb
55 rm -f manifest.old54 rm -f manifest.old
56 rm -rf udeb-control templates55 rm -rf udeb-control templates
5756
58install:57install:
59 set -e; for package in $(PACKAGES); do \58 $(PARALLEL) 'export NO_PKG_MANGLE=1 && make -f debian/rules -C $(SOURCEDIR)/{} binary' ::: $(PACKAGES)
60 if [ -d "$(SOURCEDIR)/$$package" ]; then \59 $(PARALLEL) rm -rf $(SOURCEDIR)/{}/debian/*/DEBIAN ::: $(PACKAGES)
61 (export NO_PKG_MANGLE=1; \
62 cd "$(SOURCEDIR)/$$package" && \
63 debian/rules binary && \
64 rm -rf debian/*/DEBIAN) || exit 1; \
65 fi; \
66 done
67 rm -rf udeb-control templates60 rm -rf udeb-control templates
68 mkdir -p udeb-control61 mkdir -p udeb-control
69 set -e; for udeb in $(SOURCEDIR)/*.udeb; do \62 set -e; for udeb in $(SOURCEDIR)/*.udeb; do \
7063
=== modified file 'd-i/update-control'
--- d-i/update-control 2013-07-01 11:32:25 +0000
+++ d-i/update-control 2013-07-09 14:21:27 +0000
@@ -52,6 +52,7 @@
52 'liblocale-gettext-perl',52 'liblocale-gettext-perl',
53 'gobject-introspection',53 'gobject-introspection',
54 'pep8',54 'pep8',
55 'parallel',
55 'pkg-config',56 'pkg-config',
56 'po-debconf (>= 1.0)',57 'po-debconf (>= 1.0)',
57 'pyflakes (>= 0.7.2)',58 'pyflakes (>= 0.7.2)',
5859
=== modified file 'debian/changelog'
--- debian/changelog 2013-07-09 11:22:26 +0000
+++ debian/changelog 2013-07-09 14:21:27 +0000
@@ -1,3 +1,9 @@
1ubiquity (2.15.9ubuntu1) UNRELEASED; urgency=low
2
3 * Use GNU parallel, to speed up d-i build and checks.
4
5 -- Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com> Tue, 09 Jul 2013 15:18:48 +0100
6
1ubiquity (2.15.9) saucy; urgency=low7ubiquity (2.15.9) saucy; urgency=low
28
3 [ Dmitrijs Ledkovs ]9 [ Dmitrijs Ledkovs ]
410
=== modified file 'debian/control'
--- debian/control 2013-07-01 11:32:25 +0000
+++ debian/control 2013-07-09 14:21:27 +0000
@@ -3,7 +3,7 @@
3Priority: optional3Priority: optional
4Maintainer: Ubuntu Installer Team <ubuntu-installer@lists.ubuntu.com>4Maintainer: Ubuntu Installer Team <ubuntu-installer@lists.ubuntu.com>
5Uploaders: Colin Watson <cjwatson@ubuntu.com>, Evan Dandrea <ev@ubuntu.com>5Uploaders: Colin Watson <cjwatson@ubuntu.com>, Evan Dandrea <ev@ubuntu.com>
6Build-Depends: apt, autopoint, bf-utf-source, dctrl-tools, debconf (>= 1.5.43), debconf-utils, debhelper (>= 9), devio, dh-autoreconf, dh-di (>= 3), dpkg-dev (>= 1.15.7), gir1.2-gnomekeyring-1.0, gir1.2-soup-2.4, gir1.2-timezonemap-1.0, gir1.2-webkit-3.0, gir1.2-xkl-1.0, gnome-icon-theme, gobject-introspection, intltool (>= 0.40.0), intltool-debian (>= 0.30+20040212), iso-codes, isoquery, keymapper (>= 0.5.3-7), libbogl-dev, libcairo2-dev, libdebconfclient0-dev (>= 0.68), libdebian-installer4-dev (>= 0.76), libgirepository1.0-dev, libglib2.0-dev, libgtk-3-dev, libindicator3-dev, libiw-dev (>= 27+28pre9), liblocale-gettext-perl, libparted-dev, libparted0-dev (>= 2.2), locales, pep8, pkg-config, po-debconf (>= 1.0), pyflakes (>= 0.7.2), python-gi-dev, python-scour, python3-all (>= 3.1), python3-apt (>= 0.7.100.3~), python3-cairo, python3-dbus, python3-gi, python3-gi-cairo, python3-mock (>= 0.7.0), python3-oauthlib, python3-pyicu (>= 1.0), tzdata, ubuntu-artwork, udev, wget, xkb-data (>= 0.9), xkb-data-i18n, xvfb6Build-Depends: apt, autopoint, bf-utf-source, dctrl-tools, debconf (>= 1.5.43), debconf-utils, debhelper (>= 9), devio, dh-autoreconf, dh-di (>= 3), dpkg-dev (>= 1.15.7), gir1.2-gnomekeyring-1.0, gir1.2-soup-2.4, gir1.2-timezonemap-1.0, gir1.2-webkit-3.0, gir1.2-xkl-1.0, gnome-icon-theme, gobject-introspection, intltool (>= 0.40.0), intltool-debian (>= 0.30+20040212), iso-codes, isoquery, keymapper (>= 0.5.3-7), libbogl-dev, libcairo2-dev, libdebconfclient0-dev (>= 0.68), libdebian-installer4-dev (>= 0.76), libgirepository1.0-dev, libglib2.0-dev, libgtk-3-dev, libindicator3-dev, libiw-dev (>= 27+28pre9), liblocale-gettext-perl, libparted-dev, libparted0-dev (>= 2.2), locales, parallel, pep8, pkg-config, po-debconf (>= 1.0), pyflakes (>= 0.7.2), python-gi-dev, python-scour, python3-all (>= 3.1), python3-apt (>= 0.7.100.3~), python3-cairo, python3-dbus, python3-gi, python3-gi-cairo, python3-mock (>= 0.7.0), python3-oauthlib, python3-pyicu (>= 1.0), tzdata, ubuntu-artwork, udev, wget, xkb-data (>= 0.9), xkb-data-i18n, xvfb
7Standards-Version: 3.9.47Standards-Version: 3.9.4
8X-Python3-Version: >= 3.18X-Python3-Version: >= 3.1
9XS-Testsuite: autopkgtest9XS-Testsuite: autopkgtest
1010
=== modified file 'debian/rules'
--- debian/rules 2013-06-12 16:41:04 +0000
+++ debian/rules 2013-07-09 14:21:27 +0000
@@ -43,13 +43,11 @@
4343
44check:44check:
45 # Sanity-check before upload.45 # Sanity-check before upload.
46 find -name debian -prune -o -name \*.py -print | xargs py3compile46 find -name debian -prune -o -name \*.py -print | parallel --gnu py3compile
47 find -type f \( -name \*.pyc -o -name \*.pyo \) -print0 | xargs -0r rm -f47 find -type f \( -name \*.pyc -o -name \*.pyo \) -print0 | xargs -0r rm -f
48 find -name __pycache__ -print0 | xargs -0r rm -rf48 find -name __pycache__ -print0 | xargs -0r rm -rf
49 # Check the syntax of any shell scripts.49 # Check the syntax of any shell scripts.
50 set -e; for x in $$(find -type f \! -name \*.po \! -name \*.pot -print0 | xargs -0 file -i | grep "text/x-shellscript" | cut -d':' -f1); do \50 find -type f \! -name \*.po \! -name \*.pot -print0 | xargs -0 file -i | grep "text/x-shellscript" | cut -d':' -f1 | parallel --gnu sh -n
51 sh -n $$x; \
52 done
53 # Check the syntax of any Python scripts.51 # Check the syntax of any Python scripts.
54 ./tests/run-pyflakes52 ./tests/run-pyflakes
55 ./tests/run-pep853 ./tests/run-pep8

Subscribers

People subscribed via source and target branches

to status/vote changes: