Merge lp:~henninge/launchpad/bug-557347-packaging into lp:launchpad

Proposed by Henning Eggers
Status: Merged
Approved by: Henning Eggers
Approved revision: no longer in the source branch.
Merged at revision: 10902
Proposed branch: lp:~henninge/launchpad/bug-557347-packaging
Merge into: lp:launchpad
Prerequisite: lp:~henninge/launchpad/bug-581746-serialization-error
Diff against target: 72 lines (+43/-6)
3 files modified
lib/canonical/buildd/debian/changelog (+15/-5)
lib/canonical/buildd/debian/control (+1/-1)
lib/canonical/buildd/debian/preinst (+27/-0)
To merge this branch: bzr merge lp:~henninge/launchpad/bug-557347-packaging
Reviewer Review Type Date Requested Status
Michael Nelson (community) code Approve
Jelmer Vernooij (community) code* Approve
Canonical Launchpad Engineering code Pending
Review via email: mp+25627@code.launchpad.net

Commit message

Improved buildd installation by adding a preinst script that checks for running builds. Also added apache2 dependency.

Description of the change

Nice additions to keep the admins happy.

Adding the apache2 dependency is trivial.

The new preinst script works on the simple fact that the 'buildlog' file is removed after each build and thus can serve as an indicator for a running build. This was discussed with bigjools.

The changelog also refers to an important change by wgrant that has so far not reached the builders.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Was it intentional to mention the changes from Danilo in the changelog now as well?

Otherwise, seems good.

review: Approve (code*)
Revision history for this message
Henning Eggers (henninge) wrote :

Yes, as they were not mentioned before. Neither were wgrant's. But there seems to be some mix-up with the version numbering anyway, so I might have to change that again.

Revision history for this message
Michael Nelson (michael.nelson) :
review: Approve (code)
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

61 seems like the most appropriate version string.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/buildd/debian/changelog'
2--- lib/canonical/buildd/debian/changelog 2010-05-17 15:56:29 +0000
3+++ lib/canonical/buildd/debian/changelog 2010-05-21 11:22:28 +0000
4@@ -1,8 +1,18 @@
5-launchpad-buildd (60.1) lucid-cat; urgency=low
6-
7- * Improve output of build xmplrpc call.
8-
9- -- Henning Eggers <henning@canonical.com> Mon, 17 May 2010 15:58:48 +0200
10+launchpad-buildd (61) UNRELEASED; urgency=high
11+
12+ [William Grant]
13+ * Fixed translation templates slave to return files properly. LP#549422
14+
15+ [Danilo Segan]
16+ * Added more output to generate-translation-templates. LP#580345
17+
18+ [Henning Eggers]
19+ * Improved output of build xmplrpc call, not returning None now. LP#581746
20+ * Added apache2 dependency. LP#557634
21+ * Added preinst script to prevent installation when a build is running.
22+ LP#557347
23+
24+ -- Henning Eggers <henning@canonical.com> Wed, 19 May 2010 18:51:38 +0200
25
26 launchpad-buildd (60) lucid-cat; urgency=low
27
28
29=== modified file 'lib/canonical/buildd/debian/control'
30--- lib/canonical/buildd/debian/control 2010-04-23 04:59:16 +0000
31+++ lib/canonical/buildd/debian/control 2010-05-21 11:22:28 +0000
32@@ -8,7 +8,7 @@
33 Package: launchpad-buildd
34 Section: misc
35 Architecture: all
36-Depends: python-twisted-core, python-twisted-web, debootstrap, dpkg-dev, linux32, file, bzip2, sudo, ntpdate, adduser, apt-transport-https, lsb-release
37+Depends: python-twisted-core, python-twisted-web, debootstrap, dpkg-dev, linux32, file, bzip2, sudo, ntpdate, adduser, apt-transport-https, lsb-release, apache2
38 Description: Launchpad buildd slave
39 This is the launchpad buildd slave package. It contains everything needed to
40 get a launchpad buildd going apart from the database manipulation required to
41
42=== added file 'lib/canonical/buildd/debian/preinst'
43--- lib/canonical/buildd/debian/preinst 1970-01-01 00:00:00 +0000
44+++ lib/canonical/buildd/debian/preinst 2010-05-21 11:22:28 +0000
45@@ -0,0 +1,27 @@
46+#!/bin/sh
47+#
48+# Copyright 2010 Canonical Ltd. This software is licensed under the
49+# GNU Affero General Public License version 3 (see the file LICENSE).
50+
51+# Pre install script
52+
53+set -e
54+set -u
55+
56+BUILDLOG=/home/buildd/filecache-default/buildlog
57+
58+test ! -e $BUILDLOG && exit 0
59+
60+cat 1>&2 <<EOF
61+**************************************************
62+Unable to install buildd while a build is running.
63+Please set the builder to 'manual' and wait for
64+the current build to finish.
65+
66+If you are certain this is an error, please remove
67+/home/buildd/filecache-default/buildlog
68+and retry the installation.
69+**************************************************
70+EOF
71+
72+exit 1