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
=== modified file 'lib/canonical/buildd/debian/changelog'
--- lib/canonical/buildd/debian/changelog 2010-05-17 15:56:29 +0000
+++ lib/canonical/buildd/debian/changelog 2010-05-21 11:22:28 +0000
@@ -1,8 +1,18 @@
1launchpad-buildd (60.1) lucid-cat; urgency=low1launchpad-buildd (61) UNRELEASED; urgency=high
22
3 * Improve output of build xmplrpc call.3 [William Grant]
44 * Fixed translation templates slave to return files properly. LP#549422
5 -- Henning Eggers <henning@canonical.com> Mon, 17 May 2010 15:58:48 +02005
6 [Danilo Segan]
7 * Added more output to generate-translation-templates. LP#580345
8
9 [Henning Eggers]
10 * Improved output of build xmplrpc call, not returning None now. LP#581746
11 * Added apache2 dependency. LP#557634
12 * Added preinst script to prevent installation when a build is running.
13 LP#557347
14
15 -- Henning Eggers <henning@canonical.com> Wed, 19 May 2010 18:51:38 +0200
616
7launchpad-buildd (60) lucid-cat; urgency=low17launchpad-buildd (60) lucid-cat; urgency=low
818
919
=== modified file 'lib/canonical/buildd/debian/control'
--- lib/canonical/buildd/debian/control 2010-04-23 04:59:16 +0000
+++ lib/canonical/buildd/debian/control 2010-05-21 11:22:28 +0000
@@ -8,7 +8,7 @@
8Package: launchpad-buildd8Package: launchpad-buildd
9Section: misc9Section: misc
10Architecture: all10Architecture: all
11Depends: python-twisted-core, python-twisted-web, debootstrap, dpkg-dev, linux32, file, bzip2, sudo, ntpdate, adduser, apt-transport-https, lsb-release11Depends: python-twisted-core, python-twisted-web, debootstrap, dpkg-dev, linux32, file, bzip2, sudo, ntpdate, adduser, apt-transport-https, lsb-release, apache2
12Description: Launchpad buildd slave12Description: Launchpad buildd slave
13 This is the launchpad buildd slave package. It contains everything needed to13 This is the launchpad buildd slave package. It contains everything needed to
14 get a launchpad buildd going apart from the database manipulation required to14 get a launchpad buildd going apart from the database manipulation required to
1515
=== added file 'lib/canonical/buildd/debian/preinst'
--- lib/canonical/buildd/debian/preinst 1970-01-01 00:00:00 +0000
+++ lib/canonical/buildd/debian/preinst 2010-05-21 11:22:28 +0000
@@ -0,0 +1,27 @@
1#!/bin/sh
2#
3# Copyright 2010 Canonical Ltd. This software is licensed under the
4# GNU Affero General Public License version 3 (see the file LICENSE).
5
6# Pre install script
7
8set -e
9set -u
10
11BUILDLOG=/home/buildd/filecache-default/buildlog
12
13test ! -e $BUILDLOG && exit 0
14
15cat 1>&2 <<EOF
16**************************************************
17Unable to install buildd while a build is running.
18Please set the builder to 'manual' and wait for
19the current build to finish.
20
21If you are certain this is an error, please remove
22/home/buildd/filecache-default/buildlog
23and retry the installation.
24**************************************************
25EOF
26
27exit 1