Merge ~paelzer/ubuntu/+source/open-vm-tools:backport-xenial-lp1741390 into ubuntu/+source/open-vm-tools:debian/sid

Proposed by Christian Ehrhardt 
Status: Merged
Merge reported by: Christian Ehrhardt 
Merged at revision: 0428a9bbd144ccb387b074830d342004a51e8b20
Proposed branch: ~paelzer/ubuntu/+source/open-vm-tools:backport-xenial-lp1741390
Merge into: ubuntu/+source/open-vm-tools:debian/sid
Diff against target: 290 lines (+164/-8)
8 files modified
debian/changelog (+101/-0)
debian/compat (+1/-1)
debian/control (+5/-2)
debian/open-vm-tools-desktop.postinst (+18/-0)
debian/open-vm-tools-desktop.postrm (+13/-0)
debian/open-vm-tools-desktop.prerm (+9/-0)
debian/open-vm-tools.service (+1/-0)
debian/rules (+16/-5)
Reviewer Review Type Date Requested Status
Andreas Hasenack Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+341797@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
testing for this is mostly done by VMWare related to bug 1741390
But if one wants to give it a try there are trial VMWare versions and ppa [1] is available.

This is a slightly uncommon MP, so let me explain.
1. it is against debian/sid as we want to merge the latest version we have as SRU to Xenial
2. Bionic has a slightly newer version now, but it consists of adding and removing a change, so it is essentially the same (except changelog noise that isn't needed/wanted here)
3. This package seems to hit quite a lot backporting issues due to debhelper behaving different back then, this was what most of the tests and backport-delta is about

[1]: https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3152

0428a9b... by Christian Ehrhardt 

changelog: account for recent xenial upload in merged changelog

Signed-off-by: Christian Ehrhardt <email address hidden>

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Scary stuff :)

I just have two simple comments inline, apply them if you wish.

Did some testing:
- upgrade from previous version, including dev and desktop subpackages
- used an ESXi xenial vm for testing
- some actions in the vsphere GUI failed with the previous version, worked out-of-the box with the new one ("view guest user mappings"). Well, that's the only one I managed to try actually, but it's progress.
- removal and purging of the packages
- vmblock fuse mounted after install

+1

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks both look good to be done on upload

c4f095e... by Christian Ehrhardt 

debian/open-vm-tools-desktop.postinst: minor fixups due to review feedback

Signed-off-by: Christian Ehrhardt <email address hidden>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI:
Minor cleanups in changelog on this and the otherwise equivalent artful branch due to SRU review feedback (version strings and also addressing artful). After this and clearing a bug in Bionic before it is SRUable by policy I pushed the new tags and the changes to the branches here.

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 ddeb2ac..7aea7a8 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,27 @@
6+open-vm-tools (2:10.2.0-3ubuntu0.16.04.1) xenial; urgency=medium
7+
8+ * backport Bionic open-vm-tools to Xenial (LP: #1741390)
9+ - d/control: B-D for dh-autoreconf and dh-systemd
10+ - d/rules: re-add autoreconf and systemd
11+ - d/control: B-D to debhelper version of xenial supporting compat 10
12+ - d/compat: compat level 10 is latest xenial supported level
13+ - d/rules: go back from override_dh_installsystemd to
14+ override_dh_systemd_enable and override_dh_systemd_start as needed on
15+ xenials debhelper version.
16+ - d/rules: drop --no-restart-after-upgrade which only exists in debhelper
17+ 10, the version 9 behavior defaults to what we need.
18+ - debian/rules: dh_systemd_start in xenial has issues with the escaping of
19+ the run-vmblock\\x2dfuse.mount job, so drop this call
20+ - debian/open-vm-tools-desktop.postinst: add a fixed version of what
21+ dh_systemd_start would have added
22+ - d/open-vm-tools-desktop.prerm, d/open-vm-tools-desktop.postrm: add what
23+ dh_systemd_start would have added (as-is since those sections worked)
24+ - d/control: update maintainers
25+ * d/open-vm-tools.service: Add After=local-fs.target dependency ensuring
26+ filesystems are ready to fix a race on startup (LP: #1750780)
27+
28+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 15 Feb 2018 09:36:20 +0100
29+
30 open-vm-tools (2:10.2.0-3) unstable; urgency=medium
31
32 * [47e50a1] Fix debhelper dep for backports
33@@ -226,6 +250,25 @@ open-vm-tools (2:10.1.0-4449150-1) unstable; urgency=medium
34
35 -- Bernd Zeimetz <bzed@debian.org> Wed, 16 Nov 2016 03:35:44 +0100
36
37+open-vm-tools (2:10.0.7-3227872-5ubuntu1~16.04.2) xenial; urgency=medium
38+
39+ * Make tools.conf template useful. (LP: #1748122)
40+
41+ -- Dariusz Gadomski <dariusz.gadomski@canonical.com> Thu, 15 Feb 2018 11:19:17 +0100
42+
43+open-vm-tools (2:10.0.7-3227872-5ubuntu1~16.04.1) xenial; urgency=low
44+
45+ * Backport to xenial for kernel 4.8 support. (LP: #1662116)
46+
47+ -- Andy Whitcroft <apw@ubuntu.com> Mon, 06 Feb 2017 16:15:40 +0000
48+
49+open-vm-tools (2:10.0.7-3227872-5ubuntu1) yakkety; urgency=low
50+
51+ * Merge with Debian; remaining changes:
52+ - Build without xmlsecurity support and xerces for now (universe).
53+
54+ -- Iain Lane <iain.lane@canonical.com> Fri, 30 Sep 2016 16:03:58 +0100
55+
56 open-vm-tools (2:10.0.7-3227872-5) unstable; urgency=medium
57
58 * [9295c22] Add .travis.yml from http://travis.debian.net.
59@@ -234,6 +277,13 @@ open-vm-tools (2:10.0.7-3227872-5) unstable; urgency=medium
60
61 -- Bernd Zeimetz <bzed@debian.org> Sat, 17 Sep 2016 23:26:58 +0200
62
63+open-vm-tools (2:10.0.7-3227872-4.1ubuntu1) yakkety; urgency=medium
64+
65+ * Merge with Debian; remaining changes:
66+ - Build without xmlsecurity support and xerces for now (universe).
67+
68+ -- Matthias Klose <doko@ubuntu.com> Tue, 02 Aug 2016 14:23:27 +0200
69+
70 open-vm-tools (2:10.0.7-3227872-4.1) unstable; urgency=medium
71
72 * Non-maintainer upload.
73@@ -260,6 +310,32 @@ open-vm-tools (2:10.0.7-3227872-3) unstable; urgency=medium
74
75 -- Bernd Zeimetz <bzed@debian.org> Tue, 31 May 2016 11:15:30 +0200
76
77+open-vm-tools (2:10.0.7-3227872-2ubuntu2) yakkety; urgency=medium
78+
79+ * No-change rebuild for libicu soname change.
80+
81+ -- Matthias Klose <doko@ubuntu.com> Fri, 22 Apr 2016 22:58:57 +0000
82+
83+open-vm-tools (2:10.0.7-3227872-2ubuntu1) xenial; urgency=low
84+
85+ * Merge from Debian unstable (LP: #1558198). Remaining changes:
86+ - Build without xmlsecurity support and xerces for now (universe).
87+
88+ -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 14 Apr 2016 17:06:49 -0700
89+
90+open-vm-tools (2:10.0.7-3227872-4) unstable; urgency=medium
91+
92+ * [007eacb] Better check for availability of vmware-checkvm and -rpctool.
93+
94+ -- Bernd Zeimetz <bzed@debian.org> Sat, 04 Jun 2016 07:31:17 +0200
95+
96+open-vm-tools (2:10.0.7-3227872-3) unstable; urgency=medium
97+
98+ * [5060f42] Notify vmware when removing open-vm-tools.
99+ Thanks to Yanhui He (Closes: #825810)
100+
101+ -- Bernd Zeimetz <bzed@debian.org> Tue, 31 May 2016 11:15:30 +0200
102+
103 open-vm-tools (2:10.0.7-3227872-2) unstable; urgency=medium
104
105 * [f2f4971] Work around wrong dkms versions.
106@@ -296,6 +372,13 @@ open-vm-tools (2:10.0.5-3227872-1) unstable; urgency=medium
107
108 -- Bernd Zeimetz <bzed@debian.org> Sat, 26 Dec 2015 17:26:52 +0100
109
110+open-vm-tools (2:10.0.0-3000743-3ubuntu1) xenial; urgency=low
111+
112+ * Merge from Debian unstable. (LP: #1492429) Remaining changes:
113+ - Build without xmlsecurity support and xerces for now (universe).
114+
115+ -- Robert C Jennings <robert.jennings@ubuntu.com> Sun, 01 Nov 2015 04:41:44 +0000
116+
117 open-vm-tools (2:10.0.0-3000743-3) unstable; urgency=medium
118
119 * [8b49d5b] fix open-vm-tools-dkms description
120@@ -353,6 +436,24 @@ open-vm-tools (2:9.10.2-2822639-2) unstable; urgency=medium
121
122 -- Bernd Zeimetz <bzed@debian.org> Sun, 16 Aug 2015 16:27:27 +0200
123
124+open-vm-tools (2:9.10.2-2822639-1ubuntu3) wily; urgency=medium
125+
126+ * Build without xmlsecurity support and xerces for now (universe).
127+
128+ -- Matthias Klose <doko@ubuntu.com> Mon, 10 Aug 2015 21:01:08 +0000
129+
130+open-vm-tools (2:9.10.2-2822639-1ubuntu2) wily; urgency=medium
131+
132+ * No-change rebuild against new libicu
133+
134+ -- Iain Lane <iain@orangesquash.org.uk> Wed, 05 Aug 2015 17:41:02 +0100
135+
136+open-vm-tools (2:9.10.2-2822639-1ubuntu1) wily; urgency=medium
137+
138+ * Sync from Debian (LP: #1468114).
139+
140+ -- Ben Howard <ben.howard@ubuntu.com> Mon, 20 Jul 2015 10:37:17 -0600
141+
142 open-vm-tools (2:9.10.2-2822639-1) unstable; urgency=medium
143
144 * [a4125bd1] Merge tag 'upstream/9.10.2-2822639'
145diff --git a/debian/compat b/debian/compat
146index b4de394..f599e28 100644
147--- a/debian/compat
148+++ b/debian/compat
149@@ -1 +1 @@
150-11
151+10
152diff --git a/debian/control b/debian/control
153index 2a5b977..433e915 100644
154--- a/debian/control
155+++ b/debian/control
156@@ -1,9 +1,10 @@
157 Source: open-vm-tools
158 Section: admin
159 Priority: extra
160-Maintainer: Bernd Zeimetz <bzed@debian.org>
161+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
162+XSBC-Original-Maintainer: Bernd Zeimetz <bzed@debian.org>
163 Build-Depends:
164- debhelper (>= 11~), autotools-dev, doxygen, libcunit1-dev,
165+ debhelper (>= 9.20160115ubuntu3), autotools-dev, doxygen, libcunit1-dev,
166 libdumbnet-dev, libfuse-dev, libgtkmm-3.0-dev, libgtk-3-dev,
167 libicu-dev, libnotify-dev, libpam0g-dev, libprocps-dev, libx11-dev,
168 libxinerama-dev, libxss-dev, libxtst-dev,
169@@ -12,6 +13,8 @@ Build-Depends:
170 libxmlsec1-dev,
171 libudev-dev,
172 libdrm-dev,
173+ dh-autoreconf,
174+ dh-systemd,
175 Standards-Version: 3.9.6
176 Homepage: https://github.com/vmware/open-vm-tools
177 Vcs-Git: https://github.com/bzed/pkg-open-vm-tools.git
178diff --git a/debian/open-vm-tools-desktop.postinst b/debian/open-vm-tools-desktop.postinst
179index addacbb..003607c 100644
180--- a/debian/open-vm-tools-desktop.postinst
181+++ b/debian/open-vm-tools-desktop.postinst
182@@ -8,3 +8,21 @@ fi
183
184 #DEBHELPER#
185
186+# replaces the deb-systemd-invoke start run-vmblock\\x2dfuse.mount that is
187+# broken on Xenial due to the escaping of the service.
188+# Intentionally AFTER debhelper to have the scripts available and enabled.
189+#
190+# It follows the principle of deb-systemd-invoke start (we don't have to
191+# care about restart here as the original was only called with start here).
192+# So it comes down to: "If the unit is enabled, start it now"
193+if [ -d /run/systemd/system ]; then
194+ systemctl --system daemon-reload >/dev/null || true
195+ enabled="$(systemctl is-enabled -- run-vmblock\\x2dfuse.mount)"
196+ if [ "${enabled}" = "enabled" ]; then
197+ systemctl start run-vmblock\\x2dfuse.mount
198+ else
199+ echo "run-vmblock\\x2dfuse.mount is a disabled or a static unit, not starting it."
200+ fi
201+fi
202+
203+exit 0
204diff --git a/debian/open-vm-tools-desktop.postrm b/debian/open-vm-tools-desktop.postrm
205new file mode 100644
206index 0000000..5e7a861
207--- /dev/null
208+++ b/debian/open-vm-tools-desktop.postrm
209@@ -0,0 +1,13 @@
210+#!/bin/sh
211+set -e
212+
213+# NOT-Automatically added by dh_systemd_start - as it has issues on start
214+# But copied from what it would have added (as stop works fine as-is)
215+if [ -d /run/systemd/system ]; then
216+ systemctl --system daemon-reload >/dev/null || true
217+fi
218+# End NOT-automatically added section
219+
220+#DEBHELPER#
221+
222+exit 0
223diff --git a/debian/open-vm-tools-desktop.prerm b/debian/open-vm-tools-desktop.prerm
224index 71a6f14..efbb74c 100644
225--- a/debian/open-vm-tools-desktop.prerm
226+++ b/debian/open-vm-tools-desktop.prerm
227@@ -10,3 +10,12 @@ fi
228
229 #DEBHELPER#
230
231+# NOT-Automatically added by dh_systemd_start - as it has issues on start
232+# But copied from what it would have added (as stop works fine as-is)
233+# Should be at the Tail of debhelper section
234+if [ -d /run/systemd/system ]; then
235+ deb-systemd-invoke stop run-vmblock\\x2dfuse.mount >/dev/null
236+fi
237+# End NOT-automatically added section
238+
239+exit 0
240diff --git a/debian/open-vm-tools.service b/debian/open-vm-tools.service
241index 8d64880..a66b318 100644
242--- a/debian/open-vm-tools.service
243+++ b/debian/open-vm-tools.service
244@@ -4,6 +4,7 @@ Documentation=http://open-vm-tools.sourceforge.net/about.php
245 ConditionVirtualization=vmware
246 DefaultDependencies=no
247 Before=cloud-init-local.service
248+After=local-fs.target
249
250 [Service]
251 ExecStart=/usr/bin/vmtoolsd
252diff --git a/debian/rules b/debian/rules
253index 2789360..261ba13 100755
254--- a/debian/rules
255+++ b/debian/rules
256@@ -4,7 +4,7 @@ DEBHELPER_VERSION = $(strip $(shell dpkg-query -f '$${Version}' -W debhelper))
257 DEBHELPER_SYSTEMD_OK = $(strip $(shell dpkg --compare-versions $(DEBHELPER_VERSION) ge 10.9.1~; echo $$?))
258
259 %:
260- dh ${@} --sourcedirectory=open-vm-tools
261+ dh ${@} --sourcedirectory=open-vm-tools --with=autotools_dev,autoreconf,systemd
262
263 override_dh_auto_configure:
264 dh_auto_configure --sourcedirectory=open-vm-tools -- \
265@@ -79,10 +79,21 @@ override_dh_fixperms:
266
267 dh_fixperms -Xvmware-user-suid-wrapper
268
269-override_dh_installsystemd:
270- dh_installsystemd -popen-vm-tools
271- dh_installsystemd -popen-vm-tools --name vgauth
272- dh_installsystemd -popen-vm-tools-desktop --restart-after-upgrade --no-stop-on-upgrade run-vmblock\\x2dfuse.mount
273+override_dh_systemd_enable:
274+ dh_systemd_enable -popen-vm-tools
275+ dh_systemd_enable -popen-vm-tools --name vgauth
276+ dh_systemd_enable -popen-vm-tools-desktop run-vmblock\\x2dfuse.mount
277+
278+override_dh_systemd_start:
279+ dh_systemd_start -popen-vm-tools
280+ dh_systemd_start -popen-vm-tools --name vgauth
281+ # "deb-systemd-invoke start" (and only that) as generated by
282+ # dh_systemd_start will fail for run-vmblock\\x2dfuse.mount on xenial.
283+ # A custom section in the Maintainer scripts will take care of it
284+ # Disabled on Backport: dh_systemd_start -popen-vm-tools-desktop -r run-vmblock\\x2dfuse.mount
285+ # The following sed's are needed in Xenial as well to fix dh_installinit and dh_systemd_enable behavior
286+ sed -i 's,run-vmblock\\x2dfuse,run-vmblock\\\\x2dfuse,g' debian/*.debhelper
287+ sed -i 's,run-vmblock-fuse,run-vmblock\\\\x2dfuse,g' debian/*.debhelper
288
289 override_dh_installchangelogs:
290 dh_installchangelogs ReleaseNotes.md

Subscribers

People subscribed via source and target branches