-
Notifications
You must be signed in to change notification settings - Fork 15
/
builds.txt
executable file
·371 lines (298 loc) · 14 KB
/
builds.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
builds.txt
Last update: 2024-10-13
Copyright: None
Author: Peter Gulutzan
This file has notes about building ocelotgui on some Linux platforms.
It may appear on GitHub (due to git add) but not in releases.
It will not interest ordinary users.
For ocelotgui version 2.5.0. When making a new version, change 2.5.0 to whatever the new version number is.
Download github cli
-------------------
Download via https://github.com/cli/cli/blob/trunk/docs/install_linux.md
Later, wherever you see the phrase "Upload to internet"
gh release upload <tag> <files>... [flags]
... but the upload is actually for the tag of an earlier version, since 2.5.0 doesn't fully exist till all is built.
... I think you have to run this from an ocelotgui repository.
ocelotgui_2.5.0.orig.tar.gz
---------------------------
Machine: ubuntu_24_64 i.e. Ubuntu version 24 64-bit. This is the machine used for ordinary pushes.
Contains: source.
!!!! PLACE THE FOLLOWING STATEMENTS IN A FILE howtobuild.sh AND SAY howtobuild.sh -- COPY/PASTE TO SHELL CAN FAIL!
!!!! (as far as the ocelotgui-2.5.0.orig.tar.gz copy)
!!!! Do not worry about errors mentioning debian/files but do worry about any other error messages.
cd /tmp
rm -r -f ocelotgui
mkdir -p ocelotgui
chmod a+rx ocelotgui
mkdir -p ocelotgui/debian
mkdir -p ocelotgui/debian/patches
mkdir -p ocelotgui/debian/source
cd /tmp
cp -p -v ~/ocelotgui/README.md ~/ocelotgui/README.txt
cp -p -v ~/ocelotgui/README.md ~/ocelotgui/README.htm
#cp ~/ocelotgui/copyright ocelotgui/debian/copyright
#cp ~/ocelotgui/changelog ocelotgui/debian/changelog
chmod +x ~/ocelotgui/rpm_build.sh
chmod +x ~/ocelotgui/deb_build.sh
cp -p -v ~/ocelotgui/ocelotgui.pro ocelotgui/ocelotgui.pro
cp -p -v ~/ocelotgui/ocelotgui.h ocelotgui/ocelotgui.h
cp -p -v ~/ocelotgui/ocelotgui.cpp ocelotgui/ocelotgui.cpp
cp -p -v ~/ocelotgui/install_sql.cpp ocelotgui/install_sql.cpp
cp -p -v ~/ocelotgui/codeeditor.h ocelotgui/codeeditor.h
cp -p -v ~/ocelotgui/hparse.h ocelotgui/hparse.h
cp -p -v ~/ocelotgui/ostrings.h ocelotgui/ostrings.h
cp -p -v ~/ocelotgui/ocelotgui.ui ocelotgui/ocelotgui.ui
cp -p -v ~/ocelotgui/LICENSE.GPL ocelotgui/LICENSE.GPL
cp -p -v ~/ocelotgui/manual.htm ocelotgui/manual.htm
cp -p -v ~/ocelotgui/README.txt ocelotgui/README.txt
cp -p -v ~/ocelotgui/README.md ocelotgui/README.md
cp -p -v ~/ocelotgui/README.htm ocelotgui/README.htm
cp -p -v ~/ocelotgui/debugger_reference.txt ocelotgui/debugger_reference.txt
cp -p -v ~/ocelotgui/windows.txt ocelotgui/windows.txt
cp -p -v ~/ocelotgui/example.cnf ocelotgui/example.cnf
cp -p -v ~/ocelotgui/PKGBUILD ocelotgui/PKGBUILD
cp -p -v ~/ocelotgui/readmylogin.c ocelotgui/readmylogin.c
cp -p -v ~/ocelotgui/options.txt ocelotgui/options.txt
cp -p -v ~/ocelotgui/completer_1.png ocelotgui/completer_1.png
cp -p -v ~/ocelotgui/completer_2.png ocelotgui/completer_2.png
cp -p -v ~/ocelotgui/completer_3.png ocelotgui/completer_3.png
cp -p -v ~/ocelotgui/conditional.png ocelotgui/conditional.png
cp -p -v ~/ocelotgui/starting-dialog.png ocelotgui/starting-dialog.png
cp -p -v ~/ocelotgui/starting.png ocelotgui/starting.png
cp -p -v ~/ocelotgui/statement-widget-example.png ocelotgui/statement-widget-example.png
cp -p -v ~/ocelotgui/result-widget-example.png ocelotgui/result-widget-example.png
cp -p -v ~/ocelotgui/menu-file.png ocelotgui/menu-file.png
cp -p -v ~/ocelotgui/menu-edit.png ocelotgui/menu-edit.png
cp -p -v ~/ocelotgui/menu-run.png ocelotgui/menu-run.png
cp -p -v ~/ocelotgui/menu-settings.png ocelotgui/menu-settings.png
cp -p -v ~/ocelotgui/menu-options.png ocelotgui/menu-options.png
cp -p -v ~/ocelotgui/menu-debug.png ocelotgui/menu-debug.png
cp -p -v ~/ocelotgui/menu-help.png ocelotgui/menu-help.png
cp -p -v ~/ocelotgui/debugger.png ocelotgui/debugger.png
cp -p -v ~/ocelotgui/special-vertical.png ocelotgui/special-vertical.png
cp -p -v ~/ocelotgui/special-images.png ocelotgui/special-images.png
cp -p -v ~/ocelotgui/special-settings.png ocelotgui/special-settings.png
cp -p -v ~/ocelotgui/special-detach.png ocelotgui/special-detach.png
cp -p -v ~/ocelotgui/shot1.jpg ocelotgui/shot1.jpg
cp -p -v ~/ocelotgui/shot2.jpg ocelotgui/shot2.jpg
cp -p -v ~/ocelotgui/shot3.png ocelotgui/shot3.png
cp -p -v ~/ocelotgui/shot4.jpg ocelotgui/shot4.jpg
cp -p -v ~/ocelotgui/shot5.jpg ocelotgui/shot5.jpg
cp -p -v ~/ocelotgui/shot6.jpg ocelotgui/shot6.jpg
cp -p -v ~/ocelotgui/shot7.jpg ocelotgui/shot7.jpg
cp -p -v ~/ocelotgui/shot8.jpg ocelotgui/shot8.jpg
cp -p -v ~/ocelotgui/shot9.jpg ocelotgui/shot9.jpg
cp -p -v ~/ocelotgui/shot10.jpg ocelotgui/shot10.jpg
cp -p -v ~/ocelotgui/shot11.png ocelotgui/shot11.png
cp -p -v ~/ocelotgui/explorer1.png ocelotgui/explorer1.png
cp -p -v ~/ocelotgui/explorer2.png ocelotgui/explorer2.png
cp -p -v ~/ocelotgui/explorer3.png ocelotgui/explorer3.png
cp -p -v ~/ocelotgui/explorer4.png ocelotgui/explorer4.png
cp -p -v ~/ocelotgui/explorer5.png ocelotgui/explorer5.png
cp -p -v ~/ocelotgui/explorer6.png ocelotgui/explorer6.png
cp -p -v ~/ocelotgui/explorer7.png ocelotgui/explorer7.png
cp -p -v ~/ocelotgui/explorer8.png ocelotgui/explorer8.png
cp -p -v ~/ocelotgui/explorer9.png ocelotgui/explorer9.png
cp -p -v ~/ocelotgui/ocelotgui-logo.png ocelotgui/ocelotgui-logo.png
cp -p -v ~/ocelotgui/ocelotgui_logo.png ocelotgui/ocelotgui_logo.png
cp -p -v ~/ocelotgui/CMakeLists.txt ocelotgui/CMakeLists.txt
cp -p -v ~/ocelotgui/COPYING ocelotgui/COPYING
cp -p -v ~/ocelotgui/COPYING.thirdparty ocelotgui/COPYING.thirdparty
cp -p -v ~/ocelotgui/ocelotgui.1 ocelotgui/ocelotgui.1
cp -p -v ~/ocelotgui/copyright ocelotgui/copyright
cp -p -v ~/ocelotgui/changelog ocelotgui/changelog
cp -p -v ~/ocelotgui/rpmchangelog ocelotgui/rpmchangelog
cp -p -v ~/ocelotgui/ocelotgui.desktop ocelotgui/ocelotgui.desktop
cp -p -v ~/ocelotgui/ocelotgui.spec ocelotgui/ocelotgui.spec
cp -p -v ~/ocelotgui/rpm_build.sh ocelotgui/rpm_build.sh
cp -p -v ~/ocelotgui/deb_build.sh ocelotgui/deb_build.sh
cp -p -v ~/ocelotgui/tarantool.txt ocelotgui/tarantool.txt
cp -p -v ~/ocelotgui/third_party.h ocelotgui/third_party.h
cp -p -v ~/ocelotgui/debian/README.Debian ocelotgui/debian/README.Debian
cp -p -v ~/ocelotgui/debian/changelog ocelotgui/debian/changelog
cp -p -v ~/ocelotgui/debian/compat ocelotgui/debian/compat
cp -p -v ~/ocelotgui/debian/control ocelotgui/debian/control
cp -p -v ~/ocelotgui/debian/copyright ocelotgui/debian/copyright
cp -p -v ~/ocelotgui/debian/files ocelotgui/debian/files
cp -p -v ~/ocelotgui/debian/rules ocelotgui/debian/rules
cp -p -v ~/ocelotgui/debian/watch ocelotgui/debian/watch
cp -p -v ~/ocelotgui/debian/patches/series ocelotgui/debian/patches/series
cp -p -v ~/ocelotgui/debian/source/format ocelotgui/debian/source/format
cp -p -v ~/ocelotgui/menunew.png ocelotgui/menunew.png
cp -p -v ~/ocelotgui/plugin.c ocelotgui/plugin.c
chmod -R a+r ocelotgui
cd /tmp
tar -zcvf /tmp/ocelotgui-2.5.0.orig.tar.gz ocelotgui
Upload ocelotgui-2.5.0.orig.tar.gz to internet.
gh release upload 2.4.0 ocelotgui-2.5.0.orig.tar.gz
ocelotgui_u16.tar.gz
--------------------
Machine: Ubuntu 16_64, old Ubuntu so it has old versions of Qt build-essential etc. Qt 5.5.1
Make ocelotgui-qt4, which only goes in the tar.gz not the orig.tar.gz.
Add it to ocelotgui.
So ocelotgui_u16.tar.gz is the same as ocelotgui-2.5.0.orig.tar.gz, plus one file: ocelotgui-qt4
Download :
wget https://github.com/ocelot-inc/ocelotgui/releases/download/2.4.0/ocelotgui-2.5.0.orig.tar.gz
cd /tmp
rm -r -f ocelotgui
tar -xzf ocelotgui-2.5.0.orig.tar.gz
cd ocelotgui
To eliminate warnings about c++11 requirements, in ocelotgui.pro change
in ocelotgui.pro: change
QMAKE_CXXFLAGS_WARN_ON = -Wall -Wextra
to
QMAKE_CXXFLAGS_WARN_ON = -Wall -Wextra -std=c++11
or (path not taken) in CMakeLists.txt add
set (CMAKE_CXX_STANDARD 11)
/usr/bin/qmake-qt4 -config release
make
cp -p -v ocelotgui /tmp/ocelotgui-qt4
cd /tmp
rm -r -f ocelotgui
tar -xzf ocelotgui-2.5.0.orig.tar.gz
cp -p -v ocelotgui-qt4 ./ocelotgui/ocelotgui-qt4
chmod -R a+r ocelotgui
cd /tmp
tar -zcvf /tmp/ocelotgui_u16.tar.gz ocelotgui
Upload ocelotgui_u16.tar.gz to internet.
gh release upload 2.4.0 ocelotgui_u16.tar.gz
ocelotgui_2.5.0-1_amd64.deb
---------------------------
Machine: ubuntu_16_64 (64-bit 16.04 xenial)
Once again I use ubuntu_16_64, not ubuntu_16_64_tmp, ubuntu_16_64_tmp lacks some qt5 files
Source: ocelotgui_2.5.0.orig.tar.gz (produced by Step 1 on Ubuntu 18.04)
Result: ocelotgui_2.5.0-1_amd64.deb, which is uploadable for release
WARNING: This contains rm -r -f ocelotgui, so if there was a git clone to ocelotgui it's wiped out.
deb_build.sh is very slow but is the preferred way. Look at what piuparts info says at the end.
debuild is faster but could pick up files that are not supposed to be in an official package.
Preferred way: with deb_build.sh
cd /tmp
Download :
wget https://github.com/ocelot-inc/ocelotgui/releases/download/2.4.0/ocelotgui-2.5.0.orig.tar.gz
# Just to make sure sudo works
sudo ls a
export OCELOT_VERSION=2.5.0
cd ~
rm -r -f ocelotgui-2.5.0
#rm -r -f ocelotgui
tar -xzf ocelotgui_$OCELOT_VERSION.orig.tar.gz
mv ocelotgui-$OCELOT_VERSION ocelotgui
cd ocelotgui
#chmod +x ./deb_build.sh
./deb_build.sh
cp -p /tmp/debian3/ocelotgui_$OCELOT_VERSION-1_amd64.deb tmp/ocelotgui_$OCELOT_VERSION-1_amd64.deb
lintian -I /tmp/debian3/ocelotgui_$OCELOT_VERSION-1_amd64.changes
lintian -I /tmp/debian3/ocelotgui_$OCELOT_VERSION-1_amd64.deb
Not preferred but quicker way: debuild
export OCELOT_VERSION=2.5.0
cd /tmp
rm -r -f /tmp/debian3
mkdir /tmp/debian3
cd /tmp/debian3
cp -p ~/ocelotgui_$OCELOT_VERSION.orig.tar.gz ocelotgui_$OCELOT_VERSION.orig.tar.gz
tar -xf ocelotgui_$OCELOT_VERSION.orig.tar.gz
cd ocelotgui-$OCELOT_VERSION/debian
debuild
cd /tmp/debian3
lintian -I ocelotgui_$OCELOT_VERSION-1_amd64.changes
lintian -I ocelotgui_$OCELOT_VERSION-1_amd64.deb
#In final lines of output:
#piuparts should say PASS: All tests.
#lintian -I should say nothing. (Actually it is not working, I don't know why.)
# You can expect:
# pgulutzan@pgulutzan-VirtualBox:~/ocelotgui$ lintian -I /tmp/debian3/ocelotgui_$OCELOT_VERSION-1_amd64.changes
# I: ocelotgui source: ored-build-depends-on-obsolete-package build-depends: libmysqlclient-dev => default-libmysqlclient-dev
# I: ocelotgui source: out-of-date-standards-version 3.9.7 (released 2016-02-01) (current is 4.1.4)
# I: ocelotgui source: testsuite-autopkgtest-missing
cp -p /tmp/debian3/ocelotgui_$OCELOT_VERSION-1_amd64.deb tmp/ocelotgui_$OCELOT_VERSION-1_amd64.deb
Upload ocelotgui_2.5.0-1_amd64.deb to internet.
gh release upload 2.4.0 ocelotgui-2.50-1_amd64.deb
ocelotgui-2.5.0.tar.gz
----------------------
About the same as ocelotgui_u16.tar.gz but done with Ubuntu 18 and adds ocelotgui-qt5.
Make ocelotgui-qt5, which only goes in the tar.gz not the orig.tar.gz.
Add it to ocelotgui.
So ocelotgui-2.5.0.tar.gz is the same as ocelotgui-2.5.0.orig.tar.gz, plus two files: ocelotgui-qt4 + ocelotgui-qt5.
Download :
wget https://github.com/ocelot-inc/ocelotgui/releases/download/2.4.0/ocelotgui_u16.tar.gz
cd /tmp
rm -r -f ocelotgui
tar -xzf ocelotgui_u16.tar.gz
cd ocelotgui
#/usr/bin/qmake -config release
cmake .
make
cp -p -v ocelotgui /tmp/ocelotgui-qt5
cd /tmp
rm -r -f ocelotgui
tar -xzf ocelotgui_u16.tar.gz
cp -p -v ocelotgui-qt5 ./ocelotgui/ocelotgui-qt5
chmod -R a+r ocelotgui
cd /tmp
tar -zcvf /tmp/ocelotgui-2.5.0.tar.gz ocelotgui
Upload ocelotgui-2.5.0.tar.gz to internet.
gh release upload 2.4.0 ocelotgui-2.5.0.tar.gz
Remove ocelotgui_u16.tar.gz from internet.
ocelotgui_2.5.0-1_i386.deb
--------------------------
Machine: ubuntu_16_32 (32-bit 16.04 xenial)
Source: ocelotgui_2.5.0.orig.tar.gz (produced by Step 1 on Ubuntu 18.04)
Result: ocelotgui_2.5.0-1_i386.deb, which is uploadable for release
Todo: probably next time I should use deb_build.sh not debuild, as I did for the 64-bit .deb.
Download : to ~
wget https://github.com/ocelot-inc/ocelotgui/releases/download/2.4.0/ocelotgui-2.5.0.orig.tar.gz
export OCELOT_VERSION=2.5.0
cd /tmp
rm -r -f /tmp/debian3
mkdir /tmp/debian3
cd /tmp/debian3
cp -p ~/ocelotgui_$OCELOT_VERSION.orig.tar.gz ocelotgui_$OCELOT_VERSION.orig.tar.gz
tar -xf ocelotgui_$OCELOT_VERSION.orig.tar.gz
cd ocelotgui-$OCELOT_VERSION/debian
debuild
cd /tmp/debian3
lintian -I ocelotgui_$OCELOT_VERSION-1_i386.changes
lintian -I ocelotgui_$OCELOT_VERSION-1_i386.deb
#You can expect: (but for some reason on this machine not all of these things appear):
#running debsign failed (happens before lintian errors)
#ored-build-depends-on-obsolete-package
#out-of-date-standards-version
#testsuite-autopkgtest-missing
cp -p ocelotgui_$OCELOT_VERSION-1_i386.deb tmp/ocelotgui_$OCELOT_VERSION-1_i386.deb
Upload ocelotgui_2.5.0-1_i386.deb to internet.
gh release upload 2.4.0 ocelotgui-2.5.-1+i386.deb
ocelotgui-2.5.0-1.x86_64.rpm
----------------------------
Machine: Fedora (64-bit Fedora 24) Not Fedora 28, which I guess has a too-recent Qt version (Fedora 24 has Qt 5.6.2)
Source: ocelotgui_2.5.0.orig.tar.gz (produced by Step 1 on Ubuntu 18.04)
Result: ocelotgui-2.5.0-1.x86_64.rpm, which is uploadable for release
! This somewhat contradicts what's in ocelotgui.spec
Download: to ~
wget https://github.com/ocelot-inc/ocelotgui/releases/download/2.4.0/ocelotgui-2.5.0.orig.tar.gz
#Why tar.gz not orig.tar.gz?
export OCELOT_VERSION=2.5.0
cd ~
rm rpm_build.sh
rm -r -f ~/ocelotgui_rpm
rm ocelotgui-$OCELOT_VERSION.tar.gz
rm -r -f ocelotgui-$OCELOT_VERSION
cp -p ~/ocelotgui-$OCELOT_VERSION.tar.gz ocelotgui-$OCELOT_VERSION.tar.gz
tar -xf ocelotgui-$OCELOT_VERSION.tar.gz
#No chmod needed
cp -p ~/ocelotgui/rpm_build.sh rpm_build.sh
chmod +x ./rpm_build.sh
./rpm_build.sh
cp -p ~/ocelotgui_rpm//rp/rpmbuild/RPMS/x86_64/ocelotgui-$OCELOT_VERSION-1.x86_64.rpm ocelotgui-$OCELOT_VERSION-1.x86_64.rpm
The assumption is that you got a GitHub personal access token
by looking at your profile on github.com and then going to
github.com/tokens
and then using the generated token with
export GH_TOKEN=<token>
When you upload you probably need to be on a GitHub repository so cd and cp
Upload ocelotgui-2.5.0-1.x86_64.rpm to internet.
gh release upload 2.4.0 ocelotgui-2.5.0-1.x86_64.rpm
ocelotgui-2.5.0-1.ocelotgui.zip
-------------------------------
Machine: Windows 10.
Done in a different way.
But the upload of the zip should use gh too.