Merge lp:~ericsnowcurrently/landscape-client/fix-1680875-fix-packaging-conflicts into lp:~landscape/landscape-client/trunk
- fix-1680875-fix-packaging-conflicts
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Eric Snow |
Approved revision: | 1023 |
Merged at revision: | 1014 |
Proposed branch: | lp:~ericsnowcurrently/landscape-client/fix-1680875-fix-packaging-conflicts |
Merge into: | lp:~landscape/landscape-client/trunk |
Prerequisite: | lp:~ericsnowcurrently/landscape-client/sysinfo-package |
Diff against target: |
605 lines (+172/-283) 13 files modified
.bzrignore (+6/-16) debian/changelog (+1/-1) debian/control (+35/-11) debian/landscape-client-common.dirs (+3/-0) debian/landscape-client-common.postinst (+84/-0) debian/landscape-client-common.postrm (+38/-0) debian/landscape-common.dirs (+0/-3) debian/landscape-common.postinst (+0/-84) debian/landscape-common.postrm (+0/-38) debian/landscape-common3.dirs (+0/-3) debian/landscape-common3.postinst (+0/-84) debian/landscape-common3.postrm (+0/-38) debian/rules (+5/-5) |
To merge this branch: | bzr merge lp:~ericsnowcurrently/landscape-client/fix-1680875-fix-packaging-conflicts |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Free Ekanayaka (community) | Approve | ||
Chad Smith | Approve | ||
🤖 Landscape Builder | test results | Approve | |
Review via email:
|
This proposal supersedes a proposal from 2017-04-07.
Commit message
Factor out a common setup package for landscape-client and landscape-sysinfo.
This removes possible conflicts between the Python 2 and Python 3 lib packages.
Note that, as part of this change, the landscape-common packages have been
renamed to pythonX-
Description of the change
Factor out a common setup package for landscape-client and landscape-sysinfo.
This removes possible conflicts between the Python 2 and Python 3 lib packages.
Note that, as part of this change, the landscape-common packages have been
renamed to pythonX-
Testing instructions:
make package DEBUILD_OPTS="-us -uc"
sudo apt-cache policy landscape-client landscape-sysinfo landscape-
sudo apt-get install landscape-
sudo apt-get remove landscape-
sudo apt-get install landscape-client # fails due to missing common, sysinfo, py3 lib
sudo apt-get install landscape-sysinfo # fails due to missing common, py3 lib
sudo apt-get install python-
sudo apt-get install python3-
sudo apt-get install landscape-
sudo apt-get install landscape-sysinfo
sudo apt-get install landscape-client
sudo apt-cache policy landscape-client landscape-sysinfo landscape-
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chad Smith (chad.smith) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Eric Snow (ericsnowcurrently) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
Command: TRIAL_ARGS=-j4 make ci-check
Result: Success
Revno: 1023
Branch: lp:~ericsnowcurrently/landscape-client/fix-1680875-fix-packaging-conflicts
Jenkins: https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chad Smith (chad.smith) wrote : | # |
+1 thanks for the fixes.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Free Ekanayaka (free.ekanayaka) wrote : | # |
+1
I think at some point we want to diverge the packaging. Leave only python3-related packaging in lp:landscape-client, and put python2-related packaging separately, since the python2 version will only be relevant for Landscape server, it can be built by Jenkins or a separate lp recipe and won't be uploaded to the Ubuntu archive.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Eric Snow (ericsnowcurrently) wrote : | # |
@free agreed
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
The attempt to merge lp:~ericsnowcurrently/landscape-client/fix-1680875-fix-packaging-conflicts into lp:landscape-client failed. Below is the output from the failed tests.
sudo apt -y install python-twisted-core python-
Reading package lists...
Building dependency tree...
Reading state information...
python-configobj is already the newest version (5.0.6-2).
python-mock is already the newest version (1.3.0-2.1ubuntu1).
python-passlib is already the newest version (1.6.5-4).
python-twisted-core is already the newest version (16.0.0-1).
python-
The following packages were automatically installed and are no longer required:
golang-
golang-
linux-
linux-
linux-
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
sudo apt -y install python3-twisted python3-
Reading package lists...
Building dependency tree...
Reading state information...
python3-configobj is already the newest version (5.0.6-2).
python3-twisted is already the newest version (16.0.0-1).
python3-
python3-mock is already the newest version (1.3.0-2.1ubuntu1).
python3-passlib is already the newest version (1.6.5-4).
The following packages were automatically installed and are no longer required:
golang-
golang-
linux-
linux-
linux-
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
python2 setup.py build_ext -i
running build_ext
python3 setup.py build_ext -i
running build_ext
LC_ALL=C trial --unclean-warnings -j4 landscape
Running 2187 tests.
landscape.
RemoteBrokerTest
test_
test_fire_event ... [OK]
test_
test_
test_
test_
test_
test_
test_ping ... [OK]
test_
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
🤖 Landscape Builder (landscape-builder) wrote : | # |
No approved revision specified.
Preview Diff
1 | === modified file '.bzrignore' |
2 | --- .bzrignore 2017-04-07 20:08:33 +0000 |
3 | +++ .bzrignore 2017-04-10 20:31:06 +0000 |
4 | @@ -2,26 +2,16 @@ |
5 | docs/api |
6 | build |
7 | build-stamp |
8 | +debian/*.debhelper |
9 | +debian/*.debhelper.log |
10 | +debian/*.substvars |
11 | debian/tmp |
12 | debian/files |
13 | debian/landscape-client |
14 | -debian/landscape-client.postinst.debhelper |
15 | -debian/landscape-client.postrm.debhelper |
16 | -debian/landscape-client.prerm.debhelper |
17 | -debian/landscape-client.substvars |
18 | -debian/landscape-client.debhelper.log |
19 | +debian/landscape-client-common |
20 | debian/landscape-sysinfo |
21 | -debian/landscape-sysinfo.debhelper.log |
22 | -debian/landscape-sysinfo.postinst.debhelper |
23 | -debian/landscape-sysinfo.postrm.debhelper |
24 | -debian/landscape-sysinfo.prerm.debhelper |
25 | -debian/landscape-sysinfo.substvars |
26 | -debian/landscape-common*/ |
27 | -debian/landscape-common*.debhelper.log |
28 | -debian/landscape-common*.postinst.debhelper |
29 | -debian/landscape-common*.postrm.debhelper |
30 | -debian/landscape-common*.prerm.debhelper |
31 | -debian/landscape-common*.substvars |
32 | +debian/python-landscape-lib |
33 | +debian/python3-landscape-lib |
34 | man/landscape-client.1 |
35 | man/landscape-config.1 |
36 | man/landscape-message.1 |
37 | |
38 | === modified file 'debian/changelog' |
39 | --- debian/changelog 2017-04-07 21:10:43 +0000 |
40 | +++ debian/changelog 2017-04-10 20:31:06 +0000 |
41 | @@ -3,7 +3,7 @@ |
42 | [ Steffen Allner ] |
43 | * New local test build |
44 | |
45 | - -- Eric Snow (landscape-dev) <esnow@landscape-dev.lxd> Fri, 07 Apr 2017 21:10:28 +0000 |
46 | + -- Eric Snow (landscape-dev) <esnow@landscape-dev.lxd> Mon, 10 Apr 2017 20:29:34 +0000 |
47 | |
48 | landscape-client (17.04-0ubuntu1) UNRELEASED; urgency=medium |
49 | |
50 | |
51 | === modified file 'debian/control' |
52 | --- debian/control 2017-04-07 21:10:43 +0000 |
53 | +++ debian/control 2017-04-10 20:31:06 +0000 |
54 | @@ -7,7 +7,7 @@ |
55 | Standards-Version: 3.8.2 |
56 | XS-Python-Version: >= 2.4, << 2.8 |
57 | |
58 | -Package: landscape-common |
59 | +Package: python-landscape-lib |
60 | Architecture: any |
61 | Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, |
62 | ${shlibs:Depends}, |
63 | @@ -24,9 +24,12 @@ |
64 | lshw, |
65 | libpam-modules |
66 | Suggests: ${extra:Suggests} |
67 | -Breaks: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
68 | -Replaces: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
69 | -Description: Landscape administration system client - Common files |
70 | +Breaks: landscape-client-ui (<< 16.04), |
71 | + landscape-client-ui-install (<< 16.04) |
72 | +Replaces: landscape-client-ui (<< 16.04), |
73 | + landscape-client-ui-install (<< 16.04), |
74 | + landscape-common |
75 | +Description: Landscape administration system client - Python 2 lib |
76 | Landscape is a web-based tool for managing Ubuntu systems. This |
77 | package is necessary if you want your machine to be managed in a |
78 | Landscape account. |
79 | @@ -34,7 +37,7 @@ |
80 | This package provides the core libraries. |
81 | XB-Python-Version: ${python:Versions} |
82 | |
83 | -Package: landscape-common3 |
84 | +Package: python3-landscape-lib |
85 | Architecture: any |
86 | Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, |
87 | ${shlibs:Depends}, |
88 | @@ -51,9 +54,12 @@ |
89 | lshw, |
90 | libpam-modules |
91 | Suggests: ${extra:Suggests} |
92 | -Breaks: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
93 | -Replaces: landscape-client-ui (<< 16.04), landscape-client-ui-install (<< 16.04) |
94 | -Description: Landscape administration system client - Common files |
95 | +Breaks: landscape-client-ui (<< 16.04), |
96 | + landscape-client-ui-install (<< 16.04) |
97 | +Replaces: landscape-client-ui (<< 16.04), |
98 | + landscape-client-ui-install (<< 16.04), |
99 | + landscape-common3 |
100 | +Description: Landscape administration system client - Python 3 lib |
101 | Landscape is a web-based tool for managing Ubuntu systems. This |
102 | package is necessary if you want your machine to be managed in a |
103 | Landscape account. |
104 | @@ -61,12 +67,29 @@ |
105 | This package provides the core libraries. |
106 | XB-Python-Version: ${python:Versions} |
107 | |
108 | +Package: landscape-client-common |
109 | +Architecture: any |
110 | +Depends: ${misc:Depends}, ${extra:Depends}, ${shlibs:Depends}, |
111 | + adduser, |
112 | + libpam-modules |
113 | +Suggests: ${extra:Suggests} |
114 | +Conflicts: landscape-common, |
115 | + landscape-common3 |
116 | +Description: Landscape administration system client - Common setup |
117 | + Landscape is a web-based tool for managing Ubuntu systems. This |
118 | + package is necessary if you want your machine to be managed in a |
119 | + Landscape account. |
120 | + . |
121 | + This package provides the base setup for other packages related |
122 | + to the Landscape client. |
123 | + |
124 | Package: landscape-sysinfo |
125 | Architecture: any |
126 | Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, |
127 | ${shlibs:Depends}, |
128 | + landscape-client-common (= ${binary:Version}), |
129 | python3-twisted, |
130 | - landscape-common3 (= ${binary:Version}) |
131 | + python3-landscape-lib (= ${binary:Version}) |
132 | Suggests: ${extra:Suggests} |
133 | Description: Landscape administration system client - sysinfo tool |
134 | Landscape is a web-based tool for managing Ubuntu systems. This |
135 | @@ -81,10 +104,11 @@ |
136 | Architecture: any |
137 | Depends: ${python:Depends}, ${misc:Depends}, ${extra:Depends}, |
138 | ${shlibs:Depends}, |
139 | + landscape-client-common (= ${binary:Version}), |
140 | + landscape-sysinfo (= ${binary:Version}), |
141 | python3-twisted, |
142 | python3-pycurl, |
143 | - landscape-sysinfo (= ${binary:Version}), |
144 | - landscape-common3 (= ${binary:Version}) |
145 | + python3-landscape-lib (= ${binary:Version}) |
146 | Suggests: ${extra:Suggests} |
147 | Description: Landscape administration system client |
148 | Landscape is a web-based tool for managing Ubuntu systems. This |
149 | |
150 | === added file 'debian/landscape-client-common.dirs' |
151 | --- debian/landscape-client-common.dirs 1970-01-01 00:00:00 +0000 |
152 | +++ debian/landscape-client-common.dirs 2017-04-10 20:31:06 +0000 |
153 | @@ -0,0 +1,3 @@ |
154 | +etc/landscape |
155 | +var/lib/landscape |
156 | +var/log/landscape |
157 | |
158 | === added file 'debian/landscape-client-common.postinst' |
159 | --- debian/landscape-client-common.postinst 1970-01-01 00:00:00 +0000 |
160 | +++ debian/landscape-client-common.postinst 2017-04-10 20:31:06 +0000 |
161 | @@ -0,0 +1,84 @@ |
162 | +#!/bin/sh |
163 | +set -e |
164 | + |
165 | +# summary of how this script can be called: |
166 | +# * <postinst> `configure' <most-recently-configured-version> |
167 | +# * <old-postinst> `abort-upgrade' <new version> |
168 | +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
169 | +# <new-version> |
170 | +# * <postinst> `abort-remove' |
171 | +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
172 | +# <failed-install-package> <version> `removing' |
173 | +# <conflicting-package> <version> |
174 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
175 | +# the debian-policy package |
176 | + |
177 | +. /usr/share/debconf/confmodule |
178 | +trap "db_stop || true" EXIT HUP INT QUIT TERM |
179 | + |
180 | +PACKAGE=landscape-client-common |
181 | + |
182 | +# Use the default installed Python. Running just "python" might run |
183 | +# something from /usr/local/bin, which doesn't necessarily support |
184 | +# running the landscape client. |
185 | +PYTHON=/usr/bin/python |
186 | + |
187 | +case "$1" in |
188 | + configure) |
189 | + |
190 | + # 0.9.1 introduces non-backwards compatible changes. This detects |
191 | + # whether or not the data is in the current format. If not, all |
192 | + # existing data is removed. |
193 | + DATA_DIR=/var/lib/landscape |
194 | + |
195 | + if [ -d $DATA_DIR/data ]; then |
196 | + rm -rf $DATA_DIR/* |
197 | + elif [ -f $DATA_DIR/client/data.bpickle ]; then |
198 | + LAST_BYTE=`sed -n '$,$s/.*\(.\)/\1/p' $DATA_DIR/client/data.bpickle` |
199 | + if [ "$LAST_BYTE" = e ]; then |
200 | + rm -rf $DATA_DIR/* |
201 | + fi |
202 | + fi |
203 | + |
204 | + # Create landscape system user |
205 | + if ! getent passwd landscape >/dev/null; then |
206 | + adduser --quiet --system --group --disabled-password \ |
207 | + --home /var/lib/landscape --no-create-home landscape |
208 | + fi |
209 | + |
210 | + # Create landscape system group (for <= 1.0.29.1-0ubuntu0.9.04.0) |
211 | + if ! getent group landscape >/dev/null; then |
212 | + addgroup --quiet --system landscape |
213 | + fi |
214 | + |
215 | + # Ensure primary group is landscape (for <= 1.0.29.1-0ubuntu0.9.04.0) |
216 | + if ! usermod -g landscape landscape > /dev/null 2>&1; then |
217 | + echo "ERROR: usermod -g landscape landscape failed." |
218 | + fi |
219 | + |
220 | + # Fix prior ownerships, we exclude the custom-graph-scripts directory |
221 | + # because there might script-generated files that we want to preserve |
222 | + # the ownership of. |
223 | + if [ -d /var/lib/landscape/client ]; then |
224 | + find /var/lib/landscape/client/ -wholename /var/lib/landscape/client/custom-graph-scripts -prune -or -exec chown landscape {} \; > /dev/null 2>&1 |
225 | + fi |
226 | + [ -d /var/lib/landscape/.gnupg ] && chown -R landscape /var/lib/landscape/.gnupg || : |
227 | + chown -R landscape /var/log/landscape |
228 | + |
229 | + ;; |
230 | + |
231 | + abort-upgrade|abort-remove|abort-deconfigure) |
232 | + ;; |
233 | + |
234 | + *) |
235 | + echo "postinst called with unknown argument \`$1'" >&2 |
236 | + exit 1 |
237 | + ;; |
238 | +esac |
239 | + |
240 | +# dh_installdeb will replace this with shell code automatically |
241 | +# generated by other debhelper scripts. |
242 | + |
243 | +#DEBHELPER# |
244 | + |
245 | +exit 0 |
246 | |
247 | === added file 'debian/landscape-client-common.postrm' |
248 | --- debian/landscape-client-common.postrm 1970-01-01 00:00:00 +0000 |
249 | +++ debian/landscape-client-common.postrm 2017-04-10 20:31:06 +0000 |
250 | @@ -0,0 +1,38 @@ |
251 | +#!/bin/sh |
252 | +set -e |
253 | + |
254 | +# summary of how this script can be called: |
255 | +# * <postrm> `remove' |
256 | +# * <postrm> `purge' |
257 | +# * <old-postrm> `upgrade' <new-version> |
258 | +# * <new-postrm> `failed-upgrade' <old-version> |
259 | +# * <new-postrm> `abort-install' |
260 | +# * <new-postrm> `abort-install' <old-version> |
261 | +# * <new-postrm> `abort-upgrade' <old-version> |
262 | +# * <disappearer's-postrm> `disappear' <overwriter> |
263 | +# <overwriter-version> |
264 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
265 | +# the debian-policy package |
266 | + |
267 | +case "$1" in |
268 | + purge) |
269 | + CONFIG_FILE=/etc/landscape/client.conf |
270 | + deluser --quiet --system landscape >/dev/null || true |
271 | + rm -f "${CONFIG_FILE}" |
272 | + ;; |
273 | + |
274 | + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
275 | + ;; |
276 | + |
277 | + *) |
278 | + echo "postrm called with unknown argument \`$1'" >&2 |
279 | + exit 1 |
280 | + ;; |
281 | +esac |
282 | + |
283 | +# dh_installdeb will replace this with shell code automatically |
284 | +# generated by other debhelper scripts. |
285 | + |
286 | +#DEBHELPER# |
287 | + |
288 | +exit 0 |
289 | |
290 | === removed file 'debian/landscape-common.dirs' |
291 | --- debian/landscape-common.dirs 2017-04-07 20:31:35 +0000 |
292 | +++ debian/landscape-common.dirs 1970-01-01 00:00:00 +0000 |
293 | @@ -1,3 +0,0 @@ |
294 | -etc/landscape |
295 | -var/lib/landscape |
296 | -var/log/landscape |
297 | |
298 | === removed file 'debian/landscape-common.postinst' |
299 | --- debian/landscape-common.postinst 2017-04-07 19:58:25 +0000 |
300 | +++ debian/landscape-common.postinst 1970-01-01 00:00:00 +0000 |
301 | @@ -1,84 +0,0 @@ |
302 | -#!/bin/sh |
303 | -set -e |
304 | - |
305 | -# summary of how this script can be called: |
306 | -# * <postinst> `configure' <most-recently-configured-version> |
307 | -# * <old-postinst> `abort-upgrade' <new version> |
308 | -# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
309 | -# <new-version> |
310 | -# * <postinst> `abort-remove' |
311 | -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
312 | -# <failed-install-package> <version> `removing' |
313 | -# <conflicting-package> <version> |
314 | -# for details, see http://www.debian.org/doc/debian-policy/ or |
315 | -# the debian-policy package |
316 | - |
317 | -. /usr/share/debconf/confmodule |
318 | -trap "db_stop || true" EXIT HUP INT QUIT TERM |
319 | - |
320 | -PACKAGE=landscape-common |
321 | - |
322 | -# Use the default installed Python. Running just "python" might run |
323 | -# something from /usr/local/bin, which doesn't necessarily support |
324 | -# running the landscape client. |
325 | -PYTHON=/usr/bin/python |
326 | - |
327 | -case "$1" in |
328 | - configure) |
329 | - |
330 | - # 0.9.1 introduces non-backwards compatible changes. This detects |
331 | - # whether or not the data is in the current format. If not, all |
332 | - # existing data is removed. |
333 | - DATA_DIR=/var/lib/landscape |
334 | - |
335 | - if [ -d $DATA_DIR/data ]; then |
336 | - rm -rf $DATA_DIR/* |
337 | - elif [ -f $DATA_DIR/client/data.bpickle ]; then |
338 | - LAST_BYTE=`sed -n '$,$s/.*\(.\)/\1/p' $DATA_DIR/client/data.bpickle` |
339 | - if [ "$LAST_BYTE" = e ]; then |
340 | - rm -rf $DATA_DIR/* |
341 | - fi |
342 | - fi |
343 | - |
344 | - # Create landscape system user |
345 | - if ! getent passwd landscape >/dev/null; then |
346 | - adduser --quiet --system --group --disabled-password \ |
347 | - --home /var/lib/landscape --no-create-home landscape |
348 | - fi |
349 | - |
350 | - # Create landscape system group (for <= 1.0.29.1-0ubuntu0.9.04.0) |
351 | - if ! getent group landscape >/dev/null; then |
352 | - addgroup --quiet --system landscape |
353 | - fi |
354 | - |
355 | - # Ensure primary group is landscape (for <= 1.0.29.1-0ubuntu0.9.04.0) |
356 | - if ! usermod -g landscape landscape > /dev/null 2>&1; then |
357 | - echo "ERROR: usermod -g landscape landscape failed." |
358 | - fi |
359 | - |
360 | - # Fix prior ownerships, we exclude the custom-graph-scripts directory |
361 | - # because there might script-generated files that we want to preserve |
362 | - # the ownership of. |
363 | - if [ -d /var/lib/landscape/client ]; then |
364 | - find /var/lib/landscape/client/ -wholename /var/lib/landscape/client/custom-graph-scripts -prune -or -exec chown landscape {} \; > /dev/null 2>&1 |
365 | - fi |
366 | - [ -d /var/lib/landscape/.gnupg ] && chown -R landscape /var/lib/landscape/.gnupg || : |
367 | - chown -R landscape /var/log/landscape |
368 | - |
369 | - ;; |
370 | - |
371 | - abort-upgrade|abort-remove|abort-deconfigure) |
372 | - ;; |
373 | - |
374 | - *) |
375 | - echo "postinst called with unknown argument \`$1'" >&2 |
376 | - exit 1 |
377 | - ;; |
378 | -esac |
379 | - |
380 | -# dh_installdeb will replace this with shell code automatically |
381 | -# generated by other debhelper scripts. |
382 | - |
383 | -#DEBHELPER# |
384 | - |
385 | -exit 0 |
386 | |
387 | === removed file 'debian/landscape-common.postrm' |
388 | --- debian/landscape-common.postrm 2017-04-07 19:58:25 +0000 |
389 | +++ debian/landscape-common.postrm 1970-01-01 00:00:00 +0000 |
390 | @@ -1,38 +0,0 @@ |
391 | -#!/bin/sh |
392 | -set -e |
393 | - |
394 | -# summary of how this script can be called: |
395 | -# * <postrm> `remove' |
396 | -# * <postrm> `purge' |
397 | -# * <old-postrm> `upgrade' <new-version> |
398 | -# * <new-postrm> `failed-upgrade' <old-version> |
399 | -# * <new-postrm> `abort-install' |
400 | -# * <new-postrm> `abort-install' <old-version> |
401 | -# * <new-postrm> `abort-upgrade' <old-version> |
402 | -# * <disappearer's-postrm> `disappear' <overwriter> |
403 | -# <overwriter-version> |
404 | -# for details, see http://www.debian.org/doc/debian-policy/ or |
405 | -# the debian-policy package |
406 | - |
407 | -case "$1" in |
408 | - purge) |
409 | - CONFIG_FILE=/etc/landscape/client.conf |
410 | - deluser --quiet --system landscape >/dev/null || true |
411 | - rm -f "${CONFIG_FILE}" |
412 | - ;; |
413 | - |
414 | - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
415 | - ;; |
416 | - |
417 | - *) |
418 | - echo "postrm called with unknown argument \`$1'" >&2 |
419 | - exit 1 |
420 | - ;; |
421 | -esac |
422 | - |
423 | -# dh_installdeb will replace this with shell code automatically |
424 | -# generated by other debhelper scripts. |
425 | - |
426 | -#DEBHELPER# |
427 | - |
428 | -exit 0 |
429 | |
430 | === removed file 'debian/landscape-common3.dirs' |
431 | --- debian/landscape-common3.dirs 2017-04-07 20:31:35 +0000 |
432 | +++ debian/landscape-common3.dirs 1970-01-01 00:00:00 +0000 |
433 | @@ -1,3 +0,0 @@ |
434 | -etc/landscape |
435 | -var/lib/landscape |
436 | -var/log/landscape |
437 | |
438 | === removed file 'debian/landscape-common3.postinst' |
439 | --- debian/landscape-common3.postinst 2017-04-07 19:58:25 +0000 |
440 | +++ debian/landscape-common3.postinst 1970-01-01 00:00:00 +0000 |
441 | @@ -1,84 +0,0 @@ |
442 | -#!/bin/sh |
443 | -set -e |
444 | - |
445 | -# summary of how this script can be called: |
446 | -# * <postinst> `configure' <most-recently-configured-version> |
447 | -# * <old-postinst> `abort-upgrade' <new version> |
448 | -# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
449 | -# <new-version> |
450 | -# * <postinst> `abort-remove' |
451 | -# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
452 | -# <failed-install-package> <version> `removing' |
453 | -# <conflicting-package> <version> |
454 | -# for details, see http://www.debian.org/doc/debian-policy/ or |
455 | -# the debian-policy package |
456 | - |
457 | -. /usr/share/debconf/confmodule |
458 | -trap "db_stop || true" EXIT HUP INT QUIT TERM |
459 | - |
460 | -PACKAGE=landscape-common3 |
461 | - |
462 | -# Use the default installed Python 3. Running just "python" might run |
463 | -# something from /usr/local/bin, which doesn't necessarily support |
464 | -# running the landscape client. |
465 | -PYTHON=/usr/bin/python3 |
466 | - |
467 | -case "$1" in |
468 | - configure) |
469 | - |
470 | - # 0.9.1 introduces non-backwards compatible changes. This detects |
471 | - # whether or not the data is in the current format. If not, all |
472 | - # existing data is removed. |
473 | - DATA_DIR=/var/lib/landscape |
474 | - |
475 | - if [ -d $DATA_DIR/data ]; then |
476 | - rm -rf $DATA_DIR/* |
477 | - elif [ -f $DATA_DIR/client/data.bpickle ]; then |
478 | - LAST_BYTE=`sed -n '$,$s/.*\(.\)/\1/p' $DATA_DIR/client/data.bpickle` |
479 | - if [ "$LAST_BYTE" = e ]; then |
480 | - rm -rf $DATA_DIR/* |
481 | - fi |
482 | - fi |
483 | - |
484 | - # Create landscape system user |
485 | - if ! getent passwd landscape >/dev/null; then |
486 | - adduser --quiet --system --group --disabled-password \ |
487 | - --home /var/lib/landscape --no-create-home landscape |
488 | - fi |
489 | - |
490 | - # Create landscape system group (for <= 1.0.29.1-0ubuntu0.9.04.0) |
491 | - if ! getent group landscape >/dev/null; then |
492 | - addgroup --quiet --system landscape |
493 | - fi |
494 | - |
495 | - # Ensure primary group is landscape (for <= 1.0.29.1-0ubuntu0.9.04.0) |
496 | - if ! usermod -g landscape landscape > /dev/null 2>&1; then |
497 | - echo "ERROR: usermod -g landscape landscape failed." |
498 | - fi |
499 | - |
500 | - # Fix prior ownerships, we exclude the custom-graph-scripts directory |
501 | - # because there might script-generated files that we want to preserve |
502 | - # the ownership of. |
503 | - if [ -d /var/lib/landscape/client ]; then |
504 | - find /var/lib/landscape/client/ -wholename /var/lib/landscape/client/custom-graph-scripts -prune -or -exec chown landscape {} \; > /dev/null 2>&1 |
505 | - fi |
506 | - [ -d /var/lib/landscape/.gnupg ] && chown -R landscape /var/lib/landscape/.gnupg || : |
507 | - chown -R landscape /var/log/landscape |
508 | - |
509 | - ;; |
510 | - |
511 | - abort-upgrade|abort-remove|abort-deconfigure) |
512 | - ;; |
513 | - |
514 | - *) |
515 | - echo "postinst called with unknown argument \`$1'" >&2 |
516 | - exit 1 |
517 | - ;; |
518 | -esac |
519 | - |
520 | -# dh_installdeb will replace this with shell code automatically |
521 | -# generated by other debhelper scripts. |
522 | - |
523 | -#DEBHELPER# |
524 | - |
525 | -exit 0 |
526 | |
527 | === removed file 'debian/landscape-common3.postrm' |
528 | --- debian/landscape-common3.postrm 2017-04-07 19:58:25 +0000 |
529 | +++ debian/landscape-common3.postrm 1970-01-01 00:00:00 +0000 |
530 | @@ -1,38 +0,0 @@ |
531 | -#!/bin/sh |
532 | -set -e |
533 | - |
534 | -# summary of how this script can be called: |
535 | -# * <postrm> `remove' |
536 | -# * <postrm> `purge' |
537 | -# * <old-postrm> `upgrade' <new-version> |
538 | -# * <new-postrm> `failed-upgrade' <old-version> |
539 | -# * <new-postrm> `abort-install' |
540 | -# * <new-postrm> `abort-install' <old-version> |
541 | -# * <new-postrm> `abort-upgrade' <old-version> |
542 | -# * <disappearer's-postrm> `disappear' <overwriter> |
543 | -# <overwriter-version> |
544 | -# for details, see http://www.debian.org/doc/debian-policy/ or |
545 | -# the debian-policy package |
546 | - |
547 | -case "$1" in |
548 | - purge) |
549 | - CONFIG_FILE=/etc/landscape/client.conf |
550 | - deluser --quiet --system landscape >/dev/null || true |
551 | - rm -f "${CONFIG_FILE}" |
552 | - ;; |
553 | - |
554 | - remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
555 | - ;; |
556 | - |
557 | - *) |
558 | - echo "postrm called with unknown argument \`$1'" >&2 |
559 | - exit 1 |
560 | - ;; |
561 | -esac |
562 | - |
563 | -# dh_installdeb will replace this with shell code automatically |
564 | -# generated by other debhelper scripts. |
565 | - |
566 | -#DEBHELPER# |
567 | - |
568 | -exit 0 |
569 | |
570 | === renamed file 'debian/landscape-common.install' => 'debian/python-landscape-lib.install' |
571 | === renamed file 'debian/landscape-common3.install' => 'debian/python3-landscape-lib.install' |
572 | === modified file 'debian/rules' |
573 | --- debian/rules 2017-04-07 20:31:35 +0000 |
574 | +++ debian/rules 2017-04-10 20:31:06 +0000 |
575 | @@ -2,7 +2,7 @@ |
576 | |
577 | dist_release := $(shell lsb_release -cs) |
578 | |
579 | -dh_extra_flags = -plandscape-common -plandscape-common3 -plandscape-client -plandscape-sysinfo |
580 | +dh_extra_flags = -ppython-landscape-lib -ppython3-landscape-lib -plandscape-client-common -plandscape-client -plandscape-sysinfo |
581 | |
582 | -include /usr/share/python/python.mk |
583 | ifeq (,$(py_sitename)) |
584 | @@ -17,8 +17,8 @@ |
585 | |
586 | revision = $(shell dpkg-parsechangelog | grep ^Version | cut -f 2 -d " "| cut -f 2 -d "-") |
587 | |
588 | -landscape_common_substvars = debian/landscape-common.substvars |
589 | -landscape_common3_substvars = debian/landscape-common3.substvars |
590 | +python_landscape_lib_substvars = debian/python-landscape-lib.substvars |
591 | +python3_landscape_lib_substvars = debian/python3-landscape-lib.substvars |
592 | landscape_client_substvars = debian/landscape-client.substvars |
593 | |
594 | build-arch: build |
595 | @@ -77,8 +77,8 @@ |
596 | |
597 | # from quantal onwards, we don't want python-gnupginterface anymore (#1045237) |
598 | ifneq (,$(filter $(dist_release),lucid precise)) |
599 | - echo "extra:Depends=python-gnupginterface" >> $(landscape_common_substvars) |
600 | - echo "extra:Depends=python-gnupginterface" >> $(landscape_common3_substvars) |
601 | + echo "extra:Depends=python-gnupginterface" >> $(python_landscape_lib_substvars) |
602 | + echo "extra:Depends=python-gnupginterface" >> $(python3_landscape_lib_substvars) |
603 | endif |
604 | |
605 | # In xenial the client needs to depend on libpam-systemd (#1590838) |
Command: TRIAL_ARGS=-j4 make ci-check /ci.lscape. net/job/ latch-test- xenial/ 3866/
Result: Success
Revno: 1022
Branch: lp:~ericsnowcurrently/landscape-client/fix-1680875-fix-packaging-conflicts
Jenkins: https:/