Merge ~3v1n0/ubuntu/+source/gnome-session:ubuntu/master-fix-install into ~ubuntu-desktop/ubuntu/+source/gnome-session:ubuntu/master

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Sebastien Bacher
Approved revision: b75f58d22f68fded1e3ce289de166874272df924
Merged at revision: dcff4959e0df54e04836c657e75d1f626049a582
Proposed branch: ~3v1n0/ubuntu/+source/gnome-session:ubuntu/master-fix-install
Merge into: ~ubuntu-desktop/ubuntu/+source/gnome-session:ubuntu/master
Diff against target: 454 lines (+152/-130)
14 files modified
debian/changelog (+33/-0)
debian/control (+7/-3)
debian/control.in (+8/-4)
debian/gnome-session.install (+3/-3)
debian/patches/revert_remove_gnome_session_properties.patch (+2/-2)
debian/patches/series (+7/-6)
debian/patches/ubuntu/add_sessionmigration.patch (+1/-1)
debian/patches/ubuntu/dbus_request_shutdown.patch (+0/-0)
debian/patches/ubuntu/ignore_gsettings_region.patch (+0/-0)
debian/patches/ubuntu/kill_the_fail_whale.patch (+1/-1)
debian/patches/ubuntu/post_install-install-gnome.desktop-session-in-wayland-ses.patch (+38/-0)
debian/patches/ubuntu/remove_session_saving_from_gui.patch (+1/-1)
debian/patches/ubuntu/support_autostart_delay.patch (+0/-0)
debian/patches/ubuntu/ubuntu-sessions.patch (+51/-109)
Reviewer Review Type Date Requested Status
Sebastien Bacher Approve
Review via email: mp+353513@code.launchpad.net

Description of the change

Fixed main issue, plus removed the --list-missing check as it's too fragile.

Done some patches cleanup as said here:
 - https://code.launchpad.net/~3v1n0/ubuntu/+source/gnome-session/+git/gnome-session/+merge/353283/comments/919437

To post a comment you must log in.
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Package is building at https://bileto.ubuntu.com/#/ticket/3371 if that's fine to sync, I'll push here also the changelog finalization commit + tag, let me know.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 432151e..3b1a4fc 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,36 @@
6+gnome-session (3.29.90-1ubuntu2) cosmic; urgency=medium
7+
8+ * debian/gnome-session.install:
9+ - Revert change that was wrongly merged from debian, causing
10+ gnome-session and ubuntu-session to have the same files (LP: #1787748)
11+ * debian/control:
12+ - Set Breaks/Replaces on gnome-shell <=> ubuntu-settings for versions
13+ <= 3.29.90-1ubuntu1 (LP: #1787748)
14+ - Build-depends on meson (>= 0.47.0) as per dict usage
15+ * debian/gnome-session.install:
16+ - install all gnome-provided *.session files
17+ * d/p/ubuntu/post_install-install-gnome.desktop-session-in-wayland-ses.patch:
18+ - Do not install gnome.session in xsessions (as defaults to wayland)
19+ * d/p/ubuntu/ubuntu-sessions.patch:
20+ - Install session X and wayland .desktop files only in the relative-type
21+ directories, and cleanup the meson code using a dict.
22+ * debian/rules:
23+ - Use dh_missing --fail-missing
24+ * d/p/53_add_sessionmigration.patch:
25+ - Use Gbp-Pq topic, moved to d/p/ubuntu/add_sessionmigration.patch
26+ * d/p/95_dbus_request_shutdown.patch:
27+ - Use Gbp-Pq topic, moved to d/p/ubuntu/dbus_request_shutdown.patch
28+ * d/p/ignore_gsettings_region.patch:
29+ - Use Gbp-Pq topic, moved to d/p/ubuntu/ignore_gsettings_region.patch
30+ * d/p/103_kill_the_fail_whale.patch:
31+ - Use Gbp-Pq topic, moved to d/p/ubuntu/kill_the_fail_whale.patch
32+ * d/p/51_remove_session_saving_from_gui.patch:
33+ - Use Gbp-Pq topic, moved to d/p/ubuntu/remove_session_saving_from_gui.patch
34+ * d/p/22_support_autostart_delay.patch:
35+ - Use Gbp-Pq topic, moved to d/p/ubuntu/support_autostart_delay.patch
36+
37+ -- Marco Trevisan (Treviño) <marco@ubuntu.com> Tue, 21 Aug 2018 11:07:21 -0500
38+
39 gnome-session (3.29.90-1ubuntu1) cosmic; urgency=medium
40
41 * Merge with debian, remaining changes:
42diff --git a/debian/control b/debian/control
43index 9f1f0a0..dfc7921 100644
44--- a/debian/control
45+++ b/debian/control
46@@ -56,8 +56,10 @@ Suggests: gnome-user-docs,
47 # desktop-base,
48 gnome-keyring
49 Provides: x-session-manager
50-Breaks: gnome-session-wayland (<< 3.22.1)
51-Replaces: gnome-session-wayland (<< 3.22.1)
52+Breaks: gnome-session-wayland (<< 3.22.1),
53+ ubuntu-session (<= 3.29.90-1ubuntu1),
54+Replaces: gnome-session-wayland (<< 3.22.1),
55+ ubuntu-session (<= 3.29.90-1ubuntu1),
56 Description: GNOME Session Manager - GNOME 3 session
57 The GNOME Session Manager is in charge of starting the core components
58 of the GNOME desktop, and applications that should be launched at
59@@ -105,10 +107,12 @@ Depends: ${misc:Depends},
60 Recommends: session-migration,
61 python3,
62 Provides: x-session-manager,
63-Breaks: unity (<< 7.5.0+17.10.20170619),
64+Breaks: gnome-session (<= 3.29.90-1ubuntu1),
65+ unity (<< 7.5.0+17.10.20170619),
66 unity-settings-daemon (<< 15.04.1+17.04.20170619),
67 hud (<< 14.10+17.10.20170619),
68 unity-gtk-module (<< 0.0.0+17.04.20170918),
69+Replaces: gnome-session (<= 3.29.90-1ubuntu1),
70 Description: Ubuntu session with GNOME Shell
71 This package contains the required components for running a GNOME 3 session
72 with default Ubuntu configuration, based on the GNOME Shell.
73diff --git a/debian/control.in b/debian/control.in
74index 3b65c1d..756f405 100644
75--- a/debian/control.in
76+++ b/debian/control.in
77@@ -25,7 +25,7 @@ Build-Depends: debhelper (>= 11.1.3),
78 libgles2-mesa-dev,
79 libxtst-dev,
80 libxrender-dev,
81- meson (>= 0.43.0),
82+ meson (>= 0.47.0),
83 xmlto,
84 xsltproc,
85 xtrans-dev,
86@@ -52,8 +52,10 @@ Suggests: gnome-user-docs,
87 # desktop-base,
88 gnome-keyring
89 Provides: x-session-manager
90-Breaks: gnome-session-wayland (<< 3.22.1)
91-Replaces: gnome-session-wayland (<< 3.22.1)
92+Breaks: gnome-session-wayland (<< 3.22.1),
93+ ubuntu-session (<= 3.29.90-1ubuntu1),
94+Replaces: gnome-session-wayland (<< 3.22.1),
95+ ubuntu-session (<= 3.29.90-1ubuntu1),
96 Description: GNOME Session Manager - GNOME 3 session
97 The GNOME Session Manager is in charge of starting the core components
98 of the GNOME desktop, and applications that should be launched at
99@@ -101,10 +103,12 @@ Depends: ${misc:Depends},
100 Recommends: session-migration,
101 python3,
102 Provides: x-session-manager,
103-Breaks: unity (<< 7.5.0+17.10.20170619),
104+Breaks: gnome-session (<= 3.29.90-1ubuntu1),
105+ unity (<< 7.5.0+17.10.20170619),
106 unity-settings-daemon (<< 15.04.1+17.04.20170619),
107 hud (<< 14.10+17.10.20170619),
108 unity-gtk-module (<< 0.0.0+17.04.20170918),
109+Replaces: gnome-session (<= 3.29.90-1ubuntu1),
110 Description: Ubuntu session with GNOME Shell
111 This package contains the required components for running a GNOME 3 session
112 with default Ubuntu configuration, based on the GNOME Shell.
113diff --git a/debian/gnome-session.install b/debian/gnome-session.install
114index 0f6143c..b33b6d8 100644
115--- a/debian/gnome-session.install
116+++ b/debian/gnome-session.install
117@@ -1,4 +1,4 @@
118 usr/share/doc
119-usr/share/xsessions/*.desktop
120-usr/share/gnome-session/sessions/*.session
121-usr/share/wayland-sessions/*.desktop
122+usr/share/xsessions/gnome-xorg.desktop
123+usr/share/gnome-session/sessions/gnome*.session
124+usr/share/wayland-sessions/gnome.desktop
125diff --git a/debian/patches/revert_remove_gnome_session_properties.patch b/debian/patches/revert_remove_gnome_session_properties.patch
126index 8212cff..59616bf 100644
127--- a/debian/patches/revert_remove_gnome_session_properties.patch
128+++ b/debian/patches/revert_remove_gnome_session_properties.patch
129@@ -5812,10 +5812,10 @@ index 0000000..497fb9d
130 + </g>
131 +</svg>
132 diff --git a/data/meson.build b/data/meson.build
133-index 62cbb75..7f9f2ed 100644
134+index ba0f654..cbf05fa 100644
135 --- a/data/meson.build
136 +++ b/data/meson.build
137-@@ -162,7 +162,30 @@ if enable_session_selector
138+@@ -109,7 +109,30 @@ if enable_session_selector
139 )
140 endif
141
142diff --git a/debian/patches/series b/debian/patches/series
143index f391d3e..d300786 100644
144--- a/debian/patches/series
145+++ b/debian/patches/series
146@@ -1,9 +1,10 @@
147 debian/Revert-main-Remove-GNOME_DESKTOP_SESSION_ID-envvar.patch
148-22_support_autostart_delay.patch
149+ubuntu/support_autostart_delay.patch
150 ubuntu/ubuntu-sessions.patch
151-51_remove_session_saving_from_gui.patch
152-53_add_sessionmigration.patch
153-95_dbus_request_shutdown.patch
154-103_kill_the_fail_whale.patch
155-ignore_gsettings_region.patch
156+ubuntu/post_install-install-gnome.desktop-session-in-wayland-ses.patch
157+ubuntu/remove_session_saving_from_gui.patch
158+ubuntu/add_sessionmigration.patch
159+ubuntu/dbus_request_shutdown.patch
160+ubuntu/kill_the_fail_whale.patch
161+ubuntu/ignore_gsettings_region.patch
162 revert_remove_gnome_session_properties.patch
163diff --git a/debian/patches/53_add_sessionmigration.patch b/debian/patches/ubuntu/add_sessionmigration.patch
164index 9ef4735..1e64cdc 100644
165--- a/debian/patches/53_add_sessionmigration.patch
166+++ b/debian/patches/ubuntu/add_sessionmigration.patch
167@@ -1,6 +1,6 @@
168 From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
169 Date: Wed, 15 Aug 2018 17:13:26 +0200
170-Subject: _add_sessionmigration
171+Subject: gsm-session-fill: Launch session migration
172
173 ===================================================================
174 ---
175diff --git a/debian/patches/95_dbus_request_shutdown.patch b/debian/patches/ubuntu/dbus_request_shutdown.patch
176index 9b26df8..9b26df8 100644
177--- a/debian/patches/95_dbus_request_shutdown.patch
178+++ b/debian/patches/ubuntu/dbus_request_shutdown.patch
179diff --git a/debian/patches/ignore_gsettings_region.patch b/debian/patches/ubuntu/ignore_gsettings_region.patch
180index 8c037c1..8c037c1 100644
181--- a/debian/patches/ignore_gsettings_region.patch
182+++ b/debian/patches/ubuntu/ignore_gsettings_region.patch
183diff --git a/debian/patches/103_kill_the_fail_whale.patch b/debian/patches/ubuntu/kill_the_fail_whale.patch
184index 5843d73..7bf08e5 100644
185--- a/debian/patches/103_kill_the_fail_whale.patch
186+++ b/debian/patches/ubuntu/kill_the_fail_whale.patch
187@@ -1,6 +1,6 @@
188 From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
189 Date: Wed, 15 Aug 2018 17:13:26 +0200
190-Subject: _kill_the_fail_whale
191+Subject: kill the fail whale
192
193 ===================================================================
194 ---
195diff --git a/debian/patches/ubuntu/post_install-install-gnome.desktop-session-in-wayland-ses.patch b/debian/patches/ubuntu/post_install-install-gnome.desktop-session-in-wayland-ses.patch
196new file mode 100644
197index 0000000..d58e740
198--- /dev/null
199+++ b/debian/patches/ubuntu/post_install-install-gnome.desktop-session-in-wayland-ses.patch
200@@ -0,0 +1,38 @@
201+From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
202+Date: Tue, 21 Aug 2018 17:32:13 +0200
203+Subject: post_install: install gnome.desktop session in wayland-sessions only
204+
205+In ubuntu we use a symlink from gnome-xorg.desktop to gnome.desktop, so
206+no need to install this for X sessions.
207+
208+Forwarded: Not needed
209+---
210+ data/meson.build | 2 +-
211+ meson_post_install.py | 4 ----
212+ 2 files changed, 1 insertion(+), 5 deletions(-)
213+
214+diff --git a/data/meson.build b/data/meson.build
215+index d066fa7..ba0f654 100644
216+--- a/data/meson.build
217++++ b/data/meson.build
218+@@ -14,7 +14,7 @@ i18n.merge_file(
219+ # join_paths(session_datadir, 'xsessions'),
220+ # join_paths(session_datadir, 'wayland-sessions')
221+ #]
222+- install_dir: join_paths(session_datadir, 'xsessions')
223++ install_dir: join_paths(session_datadir, 'wayland-sessions')
224+ )
225+
226+ ubuntu_sessions = {
227+diff --git a/meson_post_install.py b/meson_post_install.py
228+index e2e352c..e88375d 100644
229+--- a/meson_post_install.py
230++++ b/meson_post_install.py
231+@@ -20,7 +20,3 @@ if not os.environ.get('DESTDIR'):
232+ dst_dir = os.path.join(install_root, 'wayland-sessions')
233+ if not os.path.exists(dst_dir):
234+ os.makedirs(dst_dir)
235+-
236+-src = os.path.join(install_root, 'xsessions', 'gnome.desktop')
237+-dst = os.path.join(dst_dir, 'gnome.desktop')
238+-shutil.copyfile(src, dst)
239diff --git a/debian/patches/51_remove_session_saving_from_gui.patch b/debian/patches/ubuntu/remove_session_saving_from_gui.patch
240index 8d63a07..c905870 100644
241--- a/debian/patches/51_remove_session_saving_from_gui.patch
242+++ b/debian/patches/ubuntu/remove_session_saving_from_gui.patch
243@@ -1,6 +1,6 @@
244 From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
245 Date: Wed, 15 Aug 2018 17:13:26 +0200
246-Subject: _remove_session_saving_from_gui
247+Subject: Remove session saving from gui
248
249 ===================================================================
250 ---
251diff --git a/debian/patches/22_support_autostart_delay.patch b/debian/patches/ubuntu/support_autostart_delay.patch
252index 310df37..310df37 100644
253--- a/debian/patches/22_support_autostart_delay.patch
254+++ b/debian/patches/ubuntu/support_autostart_delay.patch
255diff --git a/debian/patches/ubuntu/ubuntu-sessions.patch b/debian/patches/ubuntu/ubuntu-sessions.patch
256index f3ed3e2..42d2563 100644
257--- a/debian/patches/ubuntu/ubuntu-sessions.patch
258+++ b/debian/patches/ubuntu/ubuntu-sessions.patch
259@@ -1,33 +1,27 @@
260 From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
261 Date: Wed, 15 Aug 2018 17:13:26 +0200
262-Subject: tweak the session system to make it for ubuntu.
263+Subject: sessions: Tweak the system to make it for ubuntu.
264
265 The session contains:
266 - ubuntu (gnome-shell with ubuntu tweaks) in ubuntu-session package
267 - unity in unity-session package
268 - gnome-shell in the main gnome-session package.
269- (TryExec enables to show them or not depends on the package installed)
270-Forwarded: Not needed
271-The session contains:
272- - ubuntu (gnome-shell with ubuntu tweaks) in ubuntu-session package
273- - unity in unity-session package
274- - gnome-shell in the main gnome-session package.
275+ - ubuntu-communitheme-snap into ubuntu-session package
276 (TryExec enables to show them or not depends on the package installed)
277
278 Forwarded: Not needed
279 ---
280- data/gnome.desktop.in | 4 +-
281- data/meson.build | 72 +++++++++++++++++++++++-
282- data/ubuntu-communitheme-snap-wayland.desktop.in | 7 +++
283- data/ubuntu-communitheme-snap.desktop.in | 7 +++
284- data/ubuntu-wayland.desktop.in | 7 +++
285- data/ubuntu.desktop.in | 7 +++
286- data/ubuntu.session.desktop.in.in | 3 +
287- data/unity.desktop.in | 7 +++
288- data/unity.session.desktop.in.in | 4 ++
289- meson_post_install.py | 7 +++
290- po/POTFILES.in | 7 +++
291- 11 files changed, 129 insertions(+), 3 deletions(-)
292+ data/gnome.desktop.in | 4 +--
293+ data/meson.build | 41 +++++++++++++++++-------
294+ data/ubuntu-communitheme-snap-wayland.desktop.in | 7 ++++
295+ data/ubuntu-communitheme-snap.desktop.in | 7 ++++
296+ data/ubuntu-wayland.desktop.in | 7 ++++
297+ data/ubuntu.desktop.in | 7 ++++
298+ data/ubuntu.session.desktop.in.in | 3 ++
299+ data/unity.desktop.in | 7 ++++
300+ data/unity.session.desktop.in.in | 4 +++
301+ po/POTFILES.in | 7 ++++
302+ 10 files changed, 80 insertions(+), 14 deletions(-)
303 create mode 100644 data/ubuntu-communitheme-snap-wayland.desktop.in
304 create mode 100644 data/ubuntu-communitheme-snap.desktop.in
305 create mode 100644 data/ubuntu-wayland.desktop.in
306@@ -51,88 +45,51 @@ index 7b78e94..bfdc424 100644
307 Type=Application
308 DesktopNames=GNOME
309 diff --git a/data/meson.build b/data/meson.build
310-index 89af98f..62cbb75 100644
311+index 89af98f..d066fa7 100644
312 --- a/data/meson.build
313 +++ b/data/meson.build
314-@@ -17,6 +17,25 @@ i18n.merge_file(
315+@@ -17,21 +17,38 @@ i18n.merge_file(
316 install_dir: join_paths(session_datadir, 'xsessions')
317 )
318
319-+desktop = 'ubuntu-wayland.desktop'
320-+
321-+# FIXME: The same target can not be copied into two directories.
322-+# There is a workaround in meson_post_install.py until proper solution arises:
323-+# https://groups.google.com/forum/#!topic/mesonbuild/3iIoYPrN4P0
324-+i18n.merge_file(
325-+ desktop,
326-+ type: 'desktop',
327-+ input: desktop + '.in',
328-+ output: desktop,
329-+ po_dir: po_dir,
330-+ install: true,
331-+ #install_dir: [
332-+ # join_paths(session_datadir, 'xsessions'),
333-+ # join_paths(session_datadir, 'wayland-sessions')
334-+ #]
335-+ install_dir: join_paths(session_datadir, 'xsessions')
336-+)
337+-desktop = 'gnome-xorg.desktop'
338+-
339+-i18n.merge_file(
340+- desktop,
341+- type: 'desktop',
342+- input: desktop + '.in',
343+- output: desktop,
344+- po_dir: po_dir,
345+- install: true,
346+- install_dir: join_paths(session_datadir, 'xsessions')
347+-)
348++ubuntu_sessions = {
349++ 'xsessions': [
350++ 'gnome-xorg.desktop',
351++ 'ubuntu.desktop',
352++ 'ubuntu-communitheme-snap.desktop',
353++ 'unity.desktop',
354++ ],
355++ 'wayland-sessions': [
356++ 'ubuntu-wayland.desktop',
357++ 'ubuntu-communitheme-snap-wayland.desktop',
358++ ],
359++}
360 +
361- desktop = 'gnome-xorg.desktop'
362-
363- i18n.merge_file(
364-@@ -29,9 +48,60 @@ i18n.merge_file(
365- install_dir: join_paths(session_datadir, 'xsessions')
366- )
367++foreach type, desktop_files : ubuntu_sessions
368++ foreach desktop: desktop_files
369++ i18n.merge_file(
370++ desktop,
371++ type: 'desktop',
372++ input: desktop + '.in',
373++ output: desktop,
374++ po_dir: po_dir,
375++ install: true,
376++ install_dir: join_paths(session_datadir, type)
377++ )
378++ endforeach
379++endforeach
380
381-+desktop = 'ubuntu.desktop'
382-+
383-+i18n.merge_file(
384-+ desktop,
385-+ type: 'desktop',
386-+ input: desktop + '.in',
387-+ output: desktop,
388-+ po_dir: po_dir,
389-+ install: true,
390-+ install_dir: join_paths(session_datadir, 'xsessions')
391-+)
392-+
393-+desktop = 'ubuntu-communitheme-snap.desktop'
394-+
395-+i18n.merge_file(
396-+ desktop,
397-+ type: 'desktop',
398-+ input: desktop + '.in',
399-+ output: desktop,
400-+ po_dir: po_dir,
401-+ install: true,
402-+ install_dir: join_paths(session_datadir, 'xsessions')
403-+)
404-+
405-+desktop = 'ubuntu-communitheme-snap-wayland.desktop'
406-+
407-+i18n.merge_file(
408-+ desktop,
409-+ type: 'desktop',
410-+ input: desktop + '.in',
411-+ output: desktop,
412-+ po_dir: po_dir,
413-+ install: true,
414-+ install_dir: join_paths(session_datadir, 'xsessions')
415-+)
416-+
417-+
418-+desktop = 'unity.desktop'
419-+
420-+i18n.merge_file(
421-+ desktop,
422-+ type: 'desktop',
423-+ input: desktop + '.in',
424-+ output: desktop,
425-+ po_dir: po_dir,
426-+ install: true,
427-+ install_dir: join_paths(session_datadir, 'xsessions')
428-+)
429-+
430 sessions = [
431 'gnome.session',
432 - 'gnome-dummy.session'
433@@ -226,21 +183,6 @@ index 0000000..615b492
434 +Name=Unity
435 +RequiredComponents=unity-settings-daemon;
436 +DesktopName=Unity:Unity7:ubuntu
437-diff --git a/meson_post_install.py b/meson_post_install.py
438-index e2e352c..b8a8b4f 100644
439---- a/meson_post_install.py
440-+++ b/meson_post_install.py
441-@@ -24,3 +24,10 @@ if not os.path.exists(dst_dir):
442- src = os.path.join(install_root, 'xsessions', 'gnome.desktop')
443- dst = os.path.join(dst_dir, 'gnome.desktop')
444- shutil.copyfile(src, dst)
445-+
446-+src = os.path.join(install_root, 'xsessions', 'ubuntu-wayland.desktop')
447-+dst = os.path.join(dst_dir, 'ubuntu-wayland.desktop')
448-+shutil.copyfile(src, dst)
449-+src = os.path.join(install_root, 'xsessions', 'ubuntu-communitheme-snap-wayland.desktop')
450-+dst = os.path.join(dst_dir, 'ubuntu-communitheme-snap-wayland.desktop')
451-+shutil.copyfile(src, dst)
452 diff --git a/po/POTFILES.in b/po/POTFILES.in
453 index 63faf7d..c20c662 100644
454 --- a/po/POTFILES.in

Subscribers

People subscribed via source and target branches