Project

General

Profile

Upgrading eclipse-titan in the Osmocom OBS » History » Version 2

osmith, 03/02/2023 09:27 AM

1 1 osmith
h1. Upgrading eclipse-titan in the Osmocom OBS
2
3
This article explains how maintainers of obs.osmocom.org can upgrade the eclipse-titan package.
4
5
Running the testsuite against new/different versions of eclipse can be done with *-titan-master in docker-playground (see "this patch":https://gerrit.osmocom.org/c/docker-playground/+/31623).
6
7
8
Requirements:
9
* dpkg-buildpackage
10
* dpkg-source
11
* osc
12
* uupdate
13
* wget
14
15
1. Create a test project, e.g. home:username:latest
16
2. Copy the existing package to your test project:
17
18
<pre>
19
$ osc copypac osmocom:latest eclipse-titan home:yourusername:latest
20
Sending meta data...
21
Copying files...
22
<revision rev="1" vrev="1">
23
  <srcmd5>4cdd21667036b92592bc2d5ccdfabdfc</srcmd5>
24
  <version>8.0.0</version>
25
  <time>1677744411</time>
26
  <user>yourusername</user>
27
  <comment>osc copypac from project:osmocom:latest package:eclipse-titan revision:2</comment>
28
  <requestid/>
29
</revision>
30
</pre>
31
32
3. Checkout your package for local modification:
33
34
<pre>
35
$ mkdir /tmp/obs
36
$ cd /tmp/obs
37
$ osc co home:yourusername:latest eclipse-titan
38
A    home:yourusername:latest
39
A    home:yourusername:latest/eclipse-titan
40
A    home:yourusername:latest/eclipse-titan/eclipse-titan_8.0.0-1.debian.tar.xz
41
A    home:yourusername:latest/eclipse-titan/eclipse-titan_8.0.0-1.dsc
42
A    home:yourusername:latest/eclipse-titan/eclipse-titan_8.0.0.orig.tar.bz2
43
A    home:yourusername:latest/eclipse-titan/update.sh
44
At revision 1.
45
</pre>
46
47
4. Run obs-upgrade-eclipse-titan.sh from osmo-ci.git with the new version as argument:
48
49
<pre>
50
$ cd home:yourusername:latest/eclipse-titan
51
$ …/osmo-ci/contrib/obs-upgrade-eclipse-titan.sh 8.3.0
52
:: upgrade from 8.0.0 to 8.3.0
53
:: download titan.core-8.3.0.tar.bz2
54
55
:: now modify eclipse-titan-8.3.0 (e.g. adjust changelog) and press return when done
56
</pre>
57
58
5. Open a new terminal, adjust the debian changelog (make sure there's a proper version at the top, change UNRELEASED to unstable).
59
60
<pre>
61
$ nvim /tmp/obs/home:yourusername:latest/eclipse-titan/eclipse-titan-8.3.0/debian/changelog
62
</pre>
63
64
6. Back in the first terminal, press return. The new source package will be built:
65
66
<pre>
67
:: build new source package
68
dpkg-buildpackage: info: source package eclipse-titan
69
dpkg-buildpackage: info: source version 8.3.0-0
70
dpkg-buildpackage: info: source distribution unstable
71
72
dpkg-buildpackage: info: source-only upload (original source is included)
73
:: clean up extracted dirs
74
:: clean upstream tarball
75
:: done!
76
</pre>
77
78
7. Delete files from the old release:
79
80
<pre>
81
$ osc del *8.0.0*
82
D    eclipse-titan_8.0.0-1.debian.tar.xz
83
D    eclipse-titan_8.0.0-1.dsc
84
D    eclipse-titan_8.0.0.orig.tar.bz2
85
</pre>
86
87
8. Add file from the new release:
88
89
<pre>
90
$ osc add *
91
A    eclipse-titan_8.3.0-0.debian.tar.xz
92
A    eclipse-titan_8.3.0-0.dsc
93
A    eclipse-titan_8.3.0.orig.tar.bz2
94
A    titan.core-8.3.0.tar.bz2
95
</pre>
96
97
9. Upload your changes
98
99
<pre>
100
$ osc commit -m "upgrade to 8.3.0"
101
Deleting    eclipse-titan_8.0.0-1.debian.tar.xz
102
Deleting    eclipse-titan_8.0.0-1.dsc
103
Deleting    eclipse-titan_8.0.0.orig.tar.bz2
104
Sending    eclipse-titan_8.3.0-0.debian.tar.xz
105
Sending    eclipse-titan_8.3.0-0.dsc
106
Sending    eclipse-titan_8.3.0.orig.tar.bz2
107
Sending    titan.core-8.3.0.tar.bz2
108
Transmitting file data ....
109
Committed revision 2.
110
</pre>
111
112 2 osmith
10. Wait until OBS built a binary package from the source package in the test project.
113 1 osmith
114
11. Copy the source package to osmocom:latest:
115
116
<pre>
117
$ osc copypac home:yourusername:latest eclipse-titan osmocom:latest
118
Copying files...
119
<revision rev="3" vrev="1">
120
  <srcmd5>8b70f4ede2181d5c51ebd077a1703044</srcmd5>
121
  <version>8.3.0</version>
122
  <time>1677747907</time>
123
  <user>yourusername</user>
124
  <comment>osc copypac from project:home:yourusername:latest package:eclipse-titan revision:2</comment>
125
  <requestid/>
126
</revision>
127
</pre>
Add picture from clipboard (Maximum size: 48.8 MB)