1 |
commit: 13469f866572bd9550a70d22abe1e88593388eef |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 23 04:11:46 2014 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 24 07:49:49 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/releng.git;a=commit;h=13469f86 |
7 |
|
8 |
add autobuild support for s390/s390x |
9 |
|
10 |
--- |
11 |
releases/weekly/specs/s390/s390/stage1.spec | 8 +++++ |
12 |
releases/weekly/specs/s390/s390/stage2.spec | 7 ++++ |
13 |
releases/weekly/specs/s390/s390/stage3.spec | 7 ++++ |
14 |
releases/weekly/specs/s390/s390x/stage1.spec | 8 +++++ |
15 |
releases/weekly/specs/s390/s390x/stage2.spec | 7 ++++ |
16 |
releases/weekly/specs/s390/s390x/stage3.spec | 7 ++++ |
17 |
tools/catalyst-auto-s390.conf | 54 ++++++++++++++++++++++++++++ |
18 |
tools/catalyst-auto-s390x.conf | 54 ++++++++++++++++++++++++++++ |
19 |
8 files changed, 152 insertions(+) |
20 |
|
21 |
diff --git a/releases/weekly/specs/s390/s390/stage1.spec b/releases/weekly/specs/s390/s390/stage1.spec |
22 |
new file mode 100644 |
23 |
index 0000000..8d89acb |
24 |
--- /dev/null |
25 |
+++ b/releases/weekly/specs/s390/s390/stage1.spec |
26 |
@@ -0,0 +1,8 @@ |
27 |
+subarch: s390 |
28 |
+version_stamp: 2008.0 |
29 |
+target: stage1 |
30 |
+rel_type: default |
31 |
+profile: default/linux/s390/13.0 |
32 |
+snapshot: 2008.0 |
33 |
+source_subpath: default/stage3-s390-latest |
34 |
+update_seed: yes |
35 |
|
36 |
diff --git a/releases/weekly/specs/s390/s390/stage2.spec b/releases/weekly/specs/s390/s390/stage2.spec |
37 |
new file mode 100644 |
38 |
index 0000000..b8e475b |
39 |
--- /dev/null |
40 |
+++ b/releases/weekly/specs/s390/s390/stage2.spec |
41 |
@@ -0,0 +1,7 @@ |
42 |
+subarch: s390 |
43 |
+version_stamp: 2008.0 |
44 |
+target: stage2 |
45 |
+rel_type: default |
46 |
+profile: default/linux/s390/13.0 |
47 |
+snapshot: 2008.0 |
48 |
+source_subpath: default/stage1-s390-2008.0 |
49 |
|
50 |
diff --git a/releases/weekly/specs/s390/s390/stage3.spec b/releases/weekly/specs/s390/s390/stage3.spec |
51 |
new file mode 100644 |
52 |
index 0000000..7a129a7 |
53 |
--- /dev/null |
54 |
+++ b/releases/weekly/specs/s390/s390/stage3.spec |
55 |
@@ -0,0 +1,7 @@ |
56 |
+subarch: s390 |
57 |
+version_stamp: 2008.0 |
58 |
+target: stage3 |
59 |
+rel_type: default |
60 |
+profile: default/linux/s390/13.0 |
61 |
+snapshot: 2008.0 |
62 |
+source_subpath: default/stage2-s390-2008.0 |
63 |
|
64 |
diff --git a/releases/weekly/specs/s390/s390x/stage1.spec b/releases/weekly/specs/s390/s390x/stage1.spec |
65 |
new file mode 100644 |
66 |
index 0000000..d57f10e |
67 |
--- /dev/null |
68 |
+++ b/releases/weekly/specs/s390/s390x/stage1.spec |
69 |
@@ -0,0 +1,8 @@ |
70 |
+subarch: s390x |
71 |
+version_stamp: 2008.0 |
72 |
+target: stage1 |
73 |
+rel_type: default |
74 |
+profile: default/linux/s390/13.0/s390x |
75 |
+snapshot: 2008.0 |
76 |
+source_subpath: default/stage3-s390x-latest |
77 |
+update_seed: yes |
78 |
|
79 |
diff --git a/releases/weekly/specs/s390/s390x/stage2.spec b/releases/weekly/specs/s390/s390x/stage2.spec |
80 |
new file mode 100644 |
81 |
index 0000000..d83acc0 |
82 |
--- /dev/null |
83 |
+++ b/releases/weekly/specs/s390/s390x/stage2.spec |
84 |
@@ -0,0 +1,7 @@ |
85 |
+subarch: s390x |
86 |
+version_stamp: 2008.0 |
87 |
+target: stage2 |
88 |
+rel_type: default |
89 |
+profile: default/linux/s390/13.0/s390x |
90 |
+snapshot: 2008.0 |
91 |
+source_subpath: default/stage1-s390x-2008.0 |
92 |
|
93 |
diff --git a/releases/weekly/specs/s390/s390x/stage3.spec b/releases/weekly/specs/s390/s390x/stage3.spec |
94 |
new file mode 100644 |
95 |
index 0000000..1e091bc |
96 |
--- /dev/null |
97 |
+++ b/releases/weekly/specs/s390/s390x/stage3.spec |
98 |
@@ -0,0 +1,7 @@ |
99 |
+subarch: s390x |
100 |
+version_stamp: 2008.0 |
101 |
+target: stage3 |
102 |
+rel_type: default |
103 |
+profile: default/linux/s390/13.0/s390x |
104 |
+snapshot: 2008.0 |
105 |
+source_subpath: default/stage2-s390x-2008.0 |
106 |
|
107 |
diff --git a/tools/catalyst-auto-s390.conf b/tools/catalyst-auto-s390.conf |
108 |
new file mode 100644 |
109 |
index 0000000..d8f975c |
110 |
--- /dev/null |
111 |
+++ b/tools/catalyst-auto-s390.conf |
112 |
@@ -0,0 +1,54 @@ |
113 |
+# This is the config file for the catalyst-auto script. It should be pretty |
114 |
+# self-explanatory. |
115 |
+ |
116 |
+GITDIR=/root/releng/ |
117 |
+ |
118 |
+SPECS_DIR=${GITDIR}/releases/weekly/specs/s390/s390 |
119 |
+SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'` |
120 |
+ |
121 |
+SETS="default" |
122 |
+ |
123 |
+SET_default_SPECS="stage1.spec stage2.spec stage3.spec" |
124 |
+ |
125 |
+#KCONFIG_DIR=${GITDIR}/releases/weekly/kconfig/s390 |
126 |
+ |
127 |
+EMAIL_TO=releng@g.o,gentoo-releng-autobuilds@l.g.o |
128 |
+EMAIL_FROM=catalyst@$(hostname) |
129 |
+EMAIL_SUBJECT_PREPEND="[${SUBARCH}-auto]" |
130 |
+ |
131 |
+ |
132 |
+CATALYST_CONFIG=/etc/catalyst/catalyst.conf |
133 |
+ |
134 |
+BUILD_SRCDIR_BASE=`grep storedir= $CATALYST_CONFIG | cut -d '=' -f2 | sed -e 's/"//g'` |
135 |
+ |
136 |
+give_latest_from_dates() { |
137 |
+ sed 's,-20,~20,g' | \ |
138 |
+ sort -k +1 -n -t '~' |\ |
139 |
+ awk -F\~ \ |
140 |
+ 'BEGIN{i=$1; o=$0}; |
141 |
+ { if($1 != i && i != "") { print o; }; i=$1; o=$0; } |
142 |
+ END { print o; };' | \ |
143 |
+ tr '~' '-' |
144 |
+} |
145 |
+ |
146 |
+ |
147 |
+pre_build() { |
148 |
+ cd ${GITDIR} |
149 |
+ git pull |
150 |
+ |
151 |
+ # Symlink the latest stages3 to build from |
152 |
+ for d in ${BUILD_SRCDIR_BASE}/builds/default ; do |
153 |
+ pushd $d |
154 |
+ for f in $(ls stage3-${SUBARCH}-*bz2 | grep -v latest | give_latest_from_dates ) ; do |
155 |
+ of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff |
156 |
+ of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $ |
157 |
+ ln -sf $f $of |
158 |
+ done |
159 |
+ popd |
160 |
+ done |
161 |
+} |
162 |
+ |
163 |
+ |
164 |
+post_build() { |
165 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-${SUBARCH}-*${DATESTAMP}*.tar.bz2* s390@××××××××××××××.org: |
166 |
+} |
167 |
|
168 |
diff --git a/tools/catalyst-auto-s390x.conf b/tools/catalyst-auto-s390x.conf |
169 |
new file mode 100644 |
170 |
index 0000000..c085330 |
171 |
--- /dev/null |
172 |
+++ b/tools/catalyst-auto-s390x.conf |
173 |
@@ -0,0 +1,54 @@ |
174 |
+# This is the config file for the catalyst-auto script. It should be pretty |
175 |
+# self-explanatory. |
176 |
+ |
177 |
+GITDIR=/root/releng/ |
178 |
+ |
179 |
+SPECS_DIR=${GITDIR}/releases/weekly/specs/s390/s390x |
180 |
+SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'` |
181 |
+ |
182 |
+SETS="default" |
183 |
+ |
184 |
+SET_default_SPECS="stage1.spec stage2.spec stage3.spec" |
185 |
+ |
186 |
+#KCONFIG_DIR=${GITDIR}/releases/weekly/kconfig/s390 |
187 |
+ |
188 |
+EMAIL_TO=releng@g.o,gentoo-releng-autobuilds@l.g.o |
189 |
+EMAIL_FROM=catalyst@$(hostname) |
190 |
+EMAIL_SUBJECT_PREPEND="[${SUBARCH}-auto]" |
191 |
+ |
192 |
+ |
193 |
+CATALYST_CONFIG=/etc/catalyst/catalyst.conf |
194 |
+ |
195 |
+BUILD_SRCDIR_BASE=`grep storedir= $CATALYST_CONFIG | cut -d '=' -f2 | sed -e 's/"//g'` |
196 |
+ |
197 |
+give_latest_from_dates() { |
198 |
+ sed 's,-20,~20,g' | \ |
199 |
+ sort -k +1 -n -t '~' |\ |
200 |
+ awk -F\~ \ |
201 |
+ 'BEGIN{i=$1; o=$0}; |
202 |
+ { if($1 != i && i != "") { print o; }; i=$1; o=$0; } |
203 |
+ END { print o; };' | \ |
204 |
+ tr '~' '-' |
205 |
+} |
206 |
+ |
207 |
+ |
208 |
+pre_build() { |
209 |
+ cd ${GITDIR} |
210 |
+ git pull |
211 |
+ |
212 |
+ # Symlink the latest stages3 to build from |
213 |
+ for d in ${BUILD_SRCDIR_BASE}/builds/default ; do |
214 |
+ pushd $d |
215 |
+ for f in $(ls stage3-${SUBARCH}-*bz2 | grep -v latest | give_latest_from_dates ) ; do |
216 |
+ of=${f/20[0-9][0-9].[0-9]/latest} # for 20XX.Y stuff |
217 |
+ of=${of/20[0-9][0-9][0-1][0-9][0-9][0-9]/latest} # for $ |
218 |
+ ln -sf $f $of |
219 |
+ done |
220 |
+ popd |
221 |
+ done |
222 |
+} |
223 |
+ |
224 |
+ |
225 |
+post_build() { |
226 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa' ${BUILD_SRCDIR_BASE}/builds/default/stage3-${SUBARCH}-*${DATESTAMP}*.tar.bz2* s390@××××××××××××××.org: |
227 |
+} |