1 |
commit: 4720572e0dcdf0638d64a59b13816bd73449fb73 |
2 |
Author: Michael Seifert <mseifert <AT> error-reports <DOT> org> |
3 |
AuthorDate: Tue Mar 22 19:03:02 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 12:03:42 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4720572e |
7 |
|
8 |
dev-util/buildbot: Added migration guide and updated setup instructions. |
9 |
|
10 |
buildbot-0.8.12-r2 prints ewarn messages when migrating from a previous |
11 |
version. The messages describe the necessary steps to migrate properly. In |
12 |
addition to this, the user is notified of the support for emerge --config and |
13 |
DOC_CONTENT was updated to point to the possibility of using it. |
14 |
|
15 |
This string of 5 commits merges gentoo/gentoo#1027 and solves bug #570666. |
16 |
|
17 |
Gentoo-Bug: https://bugs.gentoo.org/570666 |
18 |
Acked-By: Markos Chandras hwoarang <AT> gentoo.org> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/1027 |
20 |
|
21 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
22 |
|
23 |
dev-util/buildbot/buildbot-0.8.12-r2.ebuild | 49 ++++++++++++++++++----------- |
24 |
1 file changed, 31 insertions(+), 18 deletions(-) |
25 |
|
26 |
diff --git a/dev-util/buildbot/buildbot-0.8.12-r2.ebuild b/dev-util/buildbot/buildbot-0.8.12-r2.ebuild |
27 |
index 1df4422..b6d42d5 100644 |
28 |
--- a/dev-util/buildbot/buildbot-0.8.12-r2.ebuild |
29 |
+++ b/dev-util/buildbot/buildbot-0.8.12-r2.ebuild |
30 |
@@ -46,11 +46,8 @@ pkg_setup() { |
31 |
|
32 |
DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added |
33 |
to support starting buildbot through Gentoo's init system. To use this, |
34 |
- set up your build master following the documentation, make sure the |
35 |
- resulting directories are owned by the \"buildbot\" user and point |
36 |
- \"${EROOT}etc/conf.d/buildmaster\" at the right location. The scripts can |
37 |
- run as a different user if desired. If you need to run more than one |
38 |
- build master, just copy the scripts." |
39 |
+ execute \"emerge --config =${CATEGORY}/${PF}\" to create a new instance. |
40 |
+ The scripts can run as a different user if desired." |
41 |
} |
42 |
|
43 |
src_compile() { |
44 |
@@ -93,6 +90,20 @@ pkg_postinst() { |
45 |
readme.gentoo_print_elog |
46 |
|
47 |
if [[ -n ${REPLACING_VERSIONS} ]]; then |
48 |
+ ewarn |
49 |
+ ewarn "Starting with buildbot-0.8.12-r2, more than one instance of buildmaster" |
50 |
+ ewarn "can be run simultaneously. Note that \"BASEDIR\" in the buildbot configuration file" |
51 |
+ ewarn "is now the common base directory for all instances. If you are migrating from an older" |
52 |
+ ewarn "version, make sure that you copy the current contents of \"BASEDIR\" to a subdirectory." |
53 |
+ ewarn "The name of the subdirectory corresponds to the name of the buildmaster instance." |
54 |
+ ewarn "In order to start the service running OpenRC-based systems need to link to the init file:" |
55 |
+ ewarn " ln --symbolic --relative /etc/init.d/buildmaster /etc/init.d/buildmaster.myinstance" |
56 |
+ ewarn " rc-update add buildmaster.myinstance default" |
57 |
+ ewarn " /etc/init.d/buildmaster.myinstance start" |
58 |
+ ewarn "Systems using systemd can do the following:" |
59 |
+ ewarn " systemctl enable buildmaster@××××××××××.service" |
60 |
+ ewarn " systemctl enable buildmaster.target" |
61 |
+ ewarn " systemctl start buildmaster.target" |
62 |
elog |
63 |
elog "Upstream recommends the following when upgrading:" |
64 |
elog "Each time you install a new version of Buildbot, you should run the" |
65 |
@@ -100,23 +111,26 @@ pkg_postinst() { |
66 |
elog "This will add files and fix (or at least detect) incompatibilities between" |
67 |
elog "your old config and the new code." |
68 |
fi |
69 |
+ elog |
70 |
+ elog "In order to create a new instance of buildmaster, execute:" |
71 |
+ elog " emerge --config =${CATEGORY}/${PF}" |
72 |
} |
73 |
|
74 |
pkg_config() { |
75 |
local buildmaster_path="/var/lib/buildmaster" |
76 |
- einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
77 |
+ einfo "This will prepare a new buildmaster instance in ${buildmaster_path}." |
78 |
einfo "Press Control-C to abort." |
79 |
|
80 |
- einfo "Enter the name for the new instance: " |
81 |
- read instance_name |
82 |
- [[ -z "${instance_name}" ]] && die "Invalid instance name" |
83 |
+ einfo "Enter the name for the new instance: " |
84 |
+ read instance_name |
85 |
+ [[ -z "${instance_name}" ]] && die "Invalid instance name" |
86 |
|
87 |
- local instance_path="${buildmaster_path}/${instance_name}" |
88 |
- if [[ -e "${instance_path}" ]]; then |
89 |
- eerror "The instance with the specified name already exists:" |
90 |
- eerror "${instance_path}" |
91 |
- die "Instance already exists" |
92 |
- fi |
93 |
+ local instance_path="${buildmaster_path}/${instance_name}" |
94 |
+ if [[ -e "${instance_path}" ]]; then |
95 |
+ eerror "The instance with the specified name already exists:" |
96 |
+ eerror "${instance_path}" |
97 |
+ die "Instance already exists" |
98 |
+ fi |
99 |
|
100 |
local buildbot="/usr/bin/buildbot" |
101 |
if [[ ! -d "${buildmaster_path}" ]]; then |
102 |
@@ -129,7 +143,6 @@ pkg_config() { |
103 |
ln --symbolic --relative "/etc/init.d/buildmaster" "/etc/init.d/buildmaster.${instance_name}" \ |
104 |
|| die "Unable to create link to init file" |
105 |
|
106 |
- einfo "Successfully created a buildmaster instance at ${instance_path}." |
107 |
- einfo "To change the default settings edit the master.cfg file in this directory." |
108 |
+ einfo "Successfully created a buildmaster instance at ${instance_path}." |
109 |
+ einfo "To change the default settings edit the master.cfg file in this directory." |
110 |
} |
111 |
- |