Merge lp:unity-system-compositor/0.9 into lp:unity-system-compositor/ubuntu

Proposed by Stephen M. Webb
Status: Needs review
Proposed branch: lp:unity-system-compositor/0.9
Merge into: lp:unity-system-compositor/ubuntu
Diff against target: 518 lines (+312/-24)
16 files modified
debian/changelog (+14/-0)
debian/control (+25/-10)
debian/source_unity-system-compositor.py (+16/-6)
debian/tests/control (+2/-0)
debian/tests/mir (+3/-0)
debian/unity-system-compositor-spinner.1 (+45/-0)
debian/unity-system-compositor-tests.install (+2/-0)
debian/unity-system-compositor.1 (+170/-0)
debian/unity-system-compositor.install (+1/-1)
debian/unity-system-compositor.manpages (+3/-0)
debian/watch (+2/-0)
src/com.canonical.Unity.conf (+0/-7)
tests/include/usc/test/mock_display.h (+5/-0)
tests/integration-tests/CMakeLists.txt (+3/-0)
tests/unit-tests/test_mir_input_configuration.cpp (+10/-0)
tests/unit-tests/test_session_switcher.cpp (+11/-0)
To merge this branch: bzr merge lp:unity-system-compositor/0.9
Reviewer Review Type Date Requested Status
Unity System Compositor Development Team Pending
Review via email: mp+322012@code.launchpad.net

Description of the change

release 0.9.2

To post a comment you must log in.

Unmerged revisions

317. By Stephen M. Webb

debian/changelog: update for 0.9.2

316. By Stephen M. Webb

added autopkgtest (DEP-8) support and some tests

315. By Stephen M. Webb

added manpages for binaries

314. By Stephen M. Webb

added the lightdm log files to the apport dump for error reporting

313. By Stephen M. Webb

fix assorted lintian warnings in Deb packaging

312. By Stephen M. Webb

src/com.canonical.Unity.conf: remove at_console policy stanza

311. By Alan Griffiths

Fix build against lp:mir (and Mir 0.26!).

310. By Stephen M. Webb

synch with lp:unity-systems-compositor/ubuntu

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2017-02-16 16:37:33 +0000
3+++ debian/changelog 2017-04-05 15:09:16 +0000
4@@ -1,3 +1,17 @@
5+unity-system-compositor (0.9.2-0ubuntu1) UNRELEASED; urgency=medium
6+
7+ [ Alan Griffiths ]
8+ * changes for Mir 0.26
9+
10+ [ Stephen M. Webb ]
11+ * removed at_console stanza from D-Bus policy (lp: #1677743)
12+ * fixed assorted lintian warnings in Deb package (lp: #1677734)
13+ * added additional log files to apport dump (lp: #1676931)
14+ * added manpages for binaries (lp: #1677721)
15+ * added autopkgtest (DEP-8) support and some tests (lp: #1678202)
16+
17+ -- Stephen M. Webb <stephen.webb@canonical.com> Wed, 05 Apr 2017 10:52:04 -0400
18+
19 unity-system-compositor (0.9.1+17.04.20170216-0ubuntu1) zesty; urgency=medium
20
21 [ Alexandros Frantzis ]
22
23=== modified file 'debian/control'
24--- debian/control 2017-01-17 21:10:21 +0000
25+++ debian/control 2017-04-05 15:09:16 +0000
26@@ -13,30 +13,30 @@
27 libboost-system-dev,
28 libdbus-1-dev,
29 libgdk-pixbuf2.0-dev,
30+ libgles2-mesa-dev,
31 libglib2.0-dev,
32- libgles2-mesa-dev,
33 libglm-dev,
34 libmirclient-dev (>= 0.26.0),
35 libmirserver-dev (>= 0.26.0),
36 pkg-config,
37 python3,
38+ python3-pil:native,
39 python3-setuptools,
40- python3-pil:native,
41-Standards-Version: 3.9.7
42+Standards-Version: 3.9.8
43 Homepage: https://launchpad.net/unity-system-compositor
44 # if you don't have have commit access to this branch but would like to upload
45 # directly to Ubuntu, don't worry: your changes will be merged back into the
46 # upstream branch
47-Vcs-Bzr: lp:unity-system-compositor
48+Vcs-Bzr: https://bazaar.launchpad.net/+branch/unity-system-compositor/
49
50 Package: unity-system-compositor
51 Architecture: any
52-Depends: ${misc:Depends},
53+Depends: ubuntu-wallpapers,
54+ ${misc:Depends},
55 ${shlibs:Depends},
56- ubuntu-wallpapers,
57 Suggests: repowerd,
58-Description: System compositor for Ubuntu
59- System compositor used by the Mir display server in Ubuntu. If the Unity
60+Description: Mir System Compositor
61+ This is the system compositor using the Mir display server. If the Unity
62 System Compositor can't start, LightDM will fallback to plain Xorg display
63 server.
64
65@@ -46,5 +46,20 @@
66 unity-system-compositor (>= ${source:Version}),
67 ${misc:Depends},
68 ${python3:Depends},
69-Description: Test package for Unity System Compositor
70- Autopilots tests for Unity System Compositor
71+Description: Mir System Compositor autopilot integration tests
72+ This is the system compositor using the Mir display server.
73+ .
74+ This package contains the Autopilots integration tests for the Unity System
75+ Compositor.
76+
77+Package: unity-system-compositor-tests
78+Architecture: any
79+Depends: unity-system-compositor (>= ${source:Version}),
80+ ${misc:Depends},
81+ ${shlibs:Depends},
82+Description: Mir System Compositor unit tests
83+ This is the system compositor using the Mir display server.
84+ .
85+ General tests for Unity System Compositor targeted at autopkgtest runs when a
86+ dependency has changed.
87+
88
89=== modified file 'debian/source_unity-system-compositor.py'
90--- debian/source_unity-system-compositor.py 2013-09-06 03:07:18 +0000
91+++ debian/source_unity-system-compositor.py 2017-04-05 15:09:16 +0000
92@@ -1,3 +1,6 @@
93+#!/usr/bin/python3
94+
95+import os
96 from apport.hookutils import *
97
98 def attach_graphic_card_pci_info(report, ui=None):
99@@ -26,10 +29,18 @@
100
101 def add_info(report, ui=None):
102 attach_file_if_exists(report, '/var/log/boot.log', 'BootLog')
103- attach_root_command_outputs(report, { 'LightDMLog': 'cat /var/log/lightdm/lightdm.log',
104- 'LightDMLogOld': 'cat /var/log/lightdm/lightdm.log.old',
105- 'UnitySystemCompositorLog': 'cat /var/log/lightdm/unity-system-compositor.log',
106- 'UnitySystemCompositorLogOld': 'cat /var/log/lightdm/unity-system-compositor.log.old' })
107+
108+ display_manager_files = {}
109+ if os.path.lexists('/var/log/lightdm'):
110+ display_manager_files['LightDMLog'] = \
111+ 'test -f /var/log/lightdm/lightdm.log && cat /var/log/lightdm/lightdm.log'
112+ display_manager_files['LightDMLogOld'] = \
113+ 'test -f /var/log/lightdm/lightdm.log.1.gz && zcat /var/log/lightdm/lightdm.log.1.gz'
114+ display_manager_files['USCLog'] = \
115+ 'test -f /var/log/lightdm/unity-system-compositor.log && cat /var/log/lightdm/unity-system-compositor.log'
116+ display_manager_files['USCLogOld'] = \
117+ 'test -f /var/log/lightdm/unity-system-compositor.log.1.gz && zcat /var/log/lightdm/unity-system-compositor.log.1.gz'
118+ attach_root_command_outputs(report, display_manager_files)
119
120 report['version.libdrm'] = package_versions('libdrm2')
121 report['version.lightdm'] = package_versions('lightdm')
122@@ -45,7 +56,6 @@
123 if not add_info(report, None):
124 print("Unreportable")
125 sys.exit(1)
126- keys = report.keys()
127- keys.sort()
128+ keys = sorted(report.keys())
129 for key in keys:
130 print("[%s]\n%s\n" %(key, report[key]))
131
132=== added directory 'debian/tests'
133=== added file 'debian/tests/control'
134--- debian/tests/control 1970-01-01 00:00:00 +0000
135+++ debian/tests/control 2017-04-05 15:09:16 +0000
136@@ -0,0 +1,2 @@
137+Tests: mir
138+Depends: unity-system-compositor-tests
139
140=== added file 'debian/tests/mir'
141--- debian/tests/mir 1970-01-01 00:00:00 +0000
142+++ debian/tests/mir 2017-04-05 15:09:16 +0000
143@@ -0,0 +1,3 @@
144+#!/bin/sh -e
145+/usr/bin/usc_integration_tests
146+exit 0
147
148=== added file 'debian/unity-system-compositor-spinner.1'
149--- debian/unity-system-compositor-spinner.1 1970-01-01 00:00:00 +0000
150+++ debian/unity-system-compositor-spinner.1 2017-04-05 15:09:16 +0000
151@@ -0,0 +1,45 @@
152+.TH unity-system-compositor-spinner 1 "March 2017" unity-system-compositor-spinner "User Commands"
153+
154+.SH NAME
155+unity-system-compositor-spinner \- animate the Ubuntu logo at boot
156+
157+.SH SYNOPSIS
158+.B unity-system-compositor-spinner
159+[
160+.I <options>
161+]
162+
163+.SH DESCRIPTION
164+
165+Animates the spinning Ubuntu logo. Provides a soothing and relaxing visual
166+experience during the boot sequence of a Ubuntu device between initial kernel
167+loading and the presentation of a greeter screen.
168+
169+.SH OPTIONS
170+.TP
171+.BI -b " opacity"
172+Set the background opacity (0.0 \- 1.0).
173+.TP
174+.B -h
175+Output a usage message and exit.
176+.TP
177+.BI -o " id"
178+Force placement on output monitor
179+.IR id .
180+.TP
181+.B -n
182+Don't sync to vblank.
183+.TP
184+.BI -m " socket"
185+Set Mir server socket.
186+.TP
187+.BI "-s " WIDTH x HEIGHT
188+Force surface size to
189+.I WIDTH
190+x
191+.I HEIGHT.
192+.TP
193+.B -q
194+Quiet mode (no messages output).
195+No surfaces are created.
196+
197
198=== added file 'debian/unity-system-compositor-tests.install'
199--- debian/unity-system-compositor-tests.install 1970-01-01 00:00:00 +0000
200+++ debian/unity-system-compositor-tests.install 2017-04-05 15:09:16 +0000
201@@ -0,0 +1,2 @@
202+usr/bin/usc_integration_tests
203+usr/bin/usc_test_helper_wait_for_signal
204
205=== added file 'debian/unity-system-compositor.1'
206--- debian/unity-system-compositor.1 1970-01-01 00:00:00 +0000
207+++ debian/unity-system-compositor.1 2017-04-05 15:09:16 +0000
208@@ -0,0 +1,170 @@
209+'\" t
210+.TH unity-system-compositor 1 "March 2017" "unity-system-compositor" "User Commands"
211+
212+.SH NAME
213+unity-system-compositor \- a systemwide compositing display manager built on Mir
214+
215+.SH SYNOPSIS
216+.B unity-system-compositor [
217+.B options
218+.B ]
219+
220+.SH DESCRIPTION
221+.B unity-system-compositor
222+is the compositing display manager run on a single seat to provide a graphical
223+environment in the Unity desktop envirionment.
224+
225+.SH OPTIONS
226+.PP
227+The following options are supported.
228+.TP
229+.BI --host-socket " path"
230+Specifies the host socket path.
231+.TP
232+.BI "-f, --file" " path"
233+Specifies the client socket path. The default is
234+.IR $XDG_RUNTIME_DIR /mir_socket
235+or /tmp/mir_socket.
236+.TP
237+.B --no-file
238+Do not provide a socket filename for client connections.
239+.TP
240+.B --arw-file
241+Makes socket filename globally readable and writable (equivalent to chmod a=rw).
242+.TP
243+.B -p, --prompt-file
244+Provides a "..._trusted" filename for prompt helper connections.
245+.TP
246+.BI --platform-graphics-lib " path"
247+Specifies the library to use for platform graphics support (default: autodetect).
248+.TP
249+.BI --platform-input-lib " filepath"
250+Specifies the library to use for platform input support (default: input-stub.so).
251+.TP
252+.BI --platform-path " directory"
253+Specifies the directory to look for platform libraries
254+(default: /usr/lib/x86_64-linux-gnu/mir/server-platform).
255+.TP
256+.BI "-i, --enable-input" " bool"
257+Enables input.
258+.TP
259+.BI --compositor-report " {log|lttng|off}"
260+Specifies the compositor report log setting.
261+.TP
262+.BI --connector-report " {log|lttng|off}"
263+Specifies the connector report log setting.
264+.TP
265+.BI --display-report " {log|lttng|off}"
266+Specifies the display report log setting.
267+.TP
268+.BI --input-report " {log|lttng|off}"
269+Specifies the input report log setting.
270+.TP
271+.BI --legacy-input-report " {log|off}"
272+Specifies the legacy Input report log setting.
273+.TP
274+.BI --seat-report " {log|off}"
275+Specifies the seat report log setting.
276+.TP
277+.BI --session-mediator-report " {log|lttng|off}"
278+Specifies the session Mediator report log setting.
279+.TP
280+.BI --msg-processor-report " {log|lttng|off}"
281+Specifies the message processor report log setting.
282+.TP
283+.BI --scene-report " {log|lttng|off}"
284+Specifies the scene report log setting.
285+.TP
286+.BI --shared-library-prober-report " {log|lttng|off}"
287+Specifies the shared library prober report log setting.
288+.TP
289+.BI --shell-report " {log|off}"
290+Specifies the shell report log setting.
291+.TP
292+.BI --composite-delay " milliseconds"
293+Tells the compositor how long to wait for new frames from clients before compositing.
294+Higher values result in lower latency but risk causing frame skipping.
295+A negative value indicates the value should be decided automatically.
296+Default: decide automatically.
297+.TP
298+.BI --name " string"
299+The name Mir uses when registering with the host as a nested server.
300+.TP
301+.BI --nested-passthrough " arg"
302+Attempt to pass a client's graphics content directly to the host to avoid a
303+composition pass as a nested server.
304+.TP
305+.B --enable-touchspots
306+Enables the visualization of touchspots (e.g. for screencasting).
307+.TP
308+.BI --enable-key-repeat " arg"
309+Enables server\-generated key repeat.
310+.TP
311+.B --on-fatal-error-except
312+Throws an exception on "fatal error" conditions (e.g. drivers behaving in unexpected ways)
313+instead of a dumping core.
314+.TP
315+.B --debug
316+Enables extra development debugging. This is only interesting for people doing Mir server or client development.
317+.TP
318+.BI --x11-displays " WIDTHxHEIGHT"
319+[mir-on-X specific] Sets the size of the "display" window.
320+.TP
321+.BI --from-dm-fd " fd"
322+Passes the file descriptor for the read end of the pipe from display manager.
323+.TP
324+.BI --to-dm-fd " fd"
325+Passes the file descriptor for the write end of the pipe to display manager.
326+.TP
327+.B --debug-without-dm
328+Run without a display manager (only useful when debugging).
329+.TP
330+.BI --debug-active-session-name " arg"
331+Expected connection when run without a display manager (only useful when
332+debugging).
333+.TP
334+.BI --blacklist " arg"
335+Indicates the video blacklist regex to use.
336+.TP
337+.B --version
338+Outputs the version information and exits.
339+.TP
340+.BI --spinner " filepath"
341+Sets the path of the spinner executable.
342+.TP
343+.BI --public-socket " bool"
344+Makes the socket file publicly writable.
345+.TP
346+.BI --enable-hardware-cursor " arg"
347+Enables the hardware cursor (disabled by default).
348+.TP
349+.BI --display-config " {clone|sidebyside|single}"
350+Sets the display configuration.
351+.TP
352+.B -h, --help
353+Outputs the usage message and exits.
354+
355+.SH ENVIRONMENT
356+.PP
357+The following environment variable can control the diagnostics reported.
358+See the equivalent
359+.IR xxx \-report
360+option above.
361+.PP
362+.B Table 1: Component Report Environment Variables
363+.TS
364+tab(;);
365+l ; l .
366+Environment Variable ; Values
367+=
368+MIR_SERVER_CONNECTION_REPORT ; log,lttng
369+MIR_SERVER_COMPOSITOR_REPORT ; log,lttng
370+MIR_SERVER_DISPLAY_REPORT ; log,lttng
371+MIR_SERVER_INPUT_REPORT ; log,lttng
372+MIR_SERVER_LEGACY_INPUT_REPORT ; log
373+MIR_SERVER_SEAT_REPORT ; log
374+MIR_SERVER_MSG_PROCESSOR_REPORT ; log,lttng
375+MIR_SERVER_SESSION_MEDIATOR_REPORT ; log,lttng
376+MIR_SERVER_SCENE_REPORT ; log,lttng
377+MIR_SERVER_SHARED_LIBRARY_PROBER_REPORT ; log,lttng
378+.TE
379
380=== modified file 'debian/unity-system-compositor.install'
381--- debian/unity-system-compositor.install 2016-05-24 13:56:28 +0000
382+++ debian/unity-system-compositor.install 2017-04-05 15:09:16 +0000
383@@ -3,7 +3,7 @@
384 etc/dbus-1/system.d/com.canonical.Unity.conf
385 usr/bin/unity-system-compositor-spinner
386 usr/sbin/unity-system-compositor
387-usr/share/dbus-1/interfaces/com.canonical.Unity.PowerButton.xml
388 usr/share/dbus-1/interfaces/com.canonical.Unity.Display.xml
389 usr/share/dbus-1/interfaces/com.canonical.Unity.Input.xml
390+usr/share/dbus-1/interfaces/com.canonical.Unity.PowerButton.xml
391 usr/share/dbus-1/interfaces/com.canonical.Unity.UserActivity.xml
392
393=== added file 'debian/unity-system-compositor.manpages'
394--- debian/unity-system-compositor.manpages 1970-01-01 00:00:00 +0000
395+++ debian/unity-system-compositor.manpages 2017-04-05 15:09:16 +0000
396@@ -0,0 +1,3 @@
397+debian/unity-system-compositor.1
398+debian/unity-system-compositor-spinner.1
399+
400
401=== added file 'debian/watch'
402--- debian/watch 1970-01-01 00:00:00 +0000
403+++ debian/watch 2017-04-05 15:09:16 +0000
404@@ -0,0 +1,2 @@
405+version=3
406+https://launchpad.net/unity-system-compositor/+download .*/unity-system-compositor[-_]([0-9.]+)\.tar\.xz
407
408=== modified file 'src/com.canonical.Unity.conf'
409--- src/com.canonical.Unity.conf 2016-05-24 13:56:28 +0000
410+++ src/com.canonical.Unity.conf 2017-04-05 15:09:16 +0000
411@@ -30,11 +30,4 @@
412 send_interface="org.freedesktop.DBus.Introspectable"/>
413 </policy>
414
415- <policy at_console="true">
416- <allow send_destination="com.canonical.Unity.Display"/>
417- <allow send_destination="com.canonical.Unity.Input"/>
418- <allow send_destination="com.canonical.Unity.PowerButton"/>
419- <allow send_destination="com.canonical.Unity.UserActivity"/>
420- </policy>
421-
422 </busconfig>
423
424=== modified file 'tests/include/usc/test/mock_display.h'
425--- tests/include/usc/test/mock_display.h 2016-11-09 18:13:05 +0000
426+++ tests/include/usc/test/mock_display.h 2017-04-05 15:09:16 +0000
427@@ -21,6 +21,7 @@
428
429 #include <mir/graphics/display.h>
430 #include <mir/graphics/virtual_output.h>
431+#include <mir/version.h>
432 #include <gmock/gmock.h>
433
434 namespace usc
435@@ -53,11 +54,15 @@
436
437 void resume() override {};
438
439+#if MIR_SERVER_VERSION < MIR_VERSION_NUMBER(0, 27, 0)
440 std::shared_ptr<mir::graphics::Cursor> create_hardware_cursor(
441 std::shared_ptr<mir::graphics::CursorImage> const&) override
442 {
443 return {};
444 };
445+#else
446+ std::shared_ptr<mir::graphics::Cursor> create_hardware_cursor() override { return {}; }
447+#endif
448
449 std::unique_ptr<mir::graphics::VirtualOutput> create_virtual_output(int, int) override
450 { return std::unique_ptr<mir::graphics::VirtualOutput>{}; }
451
452=== modified file 'tests/integration-tests/CMakeLists.txt'
453--- tests/integration-tests/CMakeLists.txt 2016-04-18 14:58:36 +0000
454+++ tests/integration-tests/CMakeLists.txt 2017-04-05 15:09:16 +0000
455@@ -57,3 +57,6 @@
456
457 add_dependencies(usc_integration_tests GMock)
458 add_dependencies(usc_integration_tests usc_test_helper_wait_for_signal)
459+
460+install(TARGETS usc_integration_tests usc_test_helper_wait_for_signal
461+ RUNTIME DESTINATION bin)
462
463=== modified file 'tests/unit-tests/test_mir_input_configuration.cpp'
464--- tests/unit-tests/test_mir_input_configuration.cpp 2017-01-19 19:49:44 +0000
465+++ tests/unit-tests/test_mir_input_configuration.cpp 2017-04-05 15:09:16 +0000
466@@ -25,6 +25,11 @@
467 #include "mir/input/mir_keyboard_config.h"
468 #include "mir/input/mir_pointer_config.h"
469 #include "mir/input/mir_touchpad_config.h"
470+#include <mir/version.h>
471+
472+#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
473+#include <mir/input/mir_touchscreen_config.h>
474+#endif
475
476 #include <gtest/gtest.h>
477 #include <gmock/gmock.h>
478@@ -54,6 +59,11 @@
479 ON_CALL(*this, capabilities()).WillByDefault(Return(this->caps));
480 }
481
482+#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
483+ mir::optional_value<MirTouchscreenConfig> touchscreen_configuration() const { return {}; }
484+ void apply_touchscreen_configuration(MirTouchscreenConfig const&) {}
485+#endif
486+
487 mi::DeviceCapabilities caps;
488 };
489
490
491=== modified file 'tests/unit-tests/test_session_switcher.cpp'
492--- tests/unit-tests/test_session_switcher.cpp 2017-01-19 19:49:44 +0000
493+++ tests/unit-tests/test_session_switcher.cpp 2017-04-05 15:09:16 +0000
494@@ -20,6 +20,7 @@
495 #include "src/spinner.h"
496
497 #include "mir/frontend/session.h"
498+#include <mir/version.h>
499
500 #include <gtest/gtest.h>
501 #include <gmock/gmock.h>
502@@ -105,6 +106,16 @@
503 {
504 return {};
505 }
506+#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
507+ mir::graphics::BufferID create_buffer(mir::geometry::Size, MirPixelFormat) override
508+ {
509+ return {};
510+ }
511+ mir::graphics::BufferID create_buffer(mir::geometry::Size, uint32_t, uint32_t) override
512+ {
513+ return {};
514+ }
515+#endif
516 void destroy_buffer(mir::graphics::BufferID) override
517 {
518 }

Subscribers

People subscribed via source and target branches