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
diff --git a/debian/changelog b/debian/changelog
index ddeb2ac..7aea7a8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,27 @@
1open-vm-tools (2:10.2.0-3ubuntu0.16.04.1) xenial; urgency=medium
2
3 * backport Bionic open-vm-tools to Xenial (LP: #1741390)
4 - d/control: B-D for dh-autoreconf and dh-systemd
5 - d/rules: re-add autoreconf and systemd
6 - d/control: B-D to debhelper version of xenial supporting compat 10
7 - d/compat: compat level 10 is latest xenial supported level
8 - d/rules: go back from override_dh_installsystemd to
9 override_dh_systemd_enable and override_dh_systemd_start as needed on
10 xenials debhelper version.
11 - d/rules: drop --no-restart-after-upgrade which only exists in debhelper
12 10, the version 9 behavior defaults to what we need.
13 - debian/rules: dh_systemd_start in xenial has issues with the escaping of
14 the run-vmblock\\x2dfuse.mount job, so drop this call
15 - debian/open-vm-tools-desktop.postinst: add a fixed version of what
16 dh_systemd_start would have added
17 - d/open-vm-tools-desktop.prerm, d/open-vm-tools-desktop.postrm: add what
18 dh_systemd_start would have added (as-is since those sections worked)
19 - d/control: update maintainers
20 * d/open-vm-tools.service: Add After=local-fs.target dependency ensuring
21 filesystems are ready to fix a race on startup (LP: #1750780)
22
23 -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Thu, 15 Feb 2018 09:36:20 +0100
24
1open-vm-tools (2:10.2.0-3) unstable; urgency=medium25open-vm-tools (2:10.2.0-3) unstable; urgency=medium
226
3 * [47e50a1] Fix debhelper dep for backports27 * [47e50a1] Fix debhelper dep for backports
@@ -226,6 +250,25 @@ open-vm-tools (2:10.1.0-4449150-1) unstable; urgency=medium
226250
227 -- Bernd Zeimetz <bzed@debian.org> Wed, 16 Nov 2016 03:35:44 +0100251 -- Bernd Zeimetz <bzed@debian.org> Wed, 16 Nov 2016 03:35:44 +0100
228252
253open-vm-tools (2:10.0.7-3227872-5ubuntu1~16.04.2) xenial; urgency=medium
254
255 * Make tools.conf template useful. (LP: #1748122)
256
257 -- Dariusz Gadomski <dariusz.gadomski@canonical.com> Thu, 15 Feb 2018 11:19:17 +0100
258
259open-vm-tools (2:10.0.7-3227872-5ubuntu1~16.04.1) xenial; urgency=low
260
261 * Backport to xenial for kernel 4.8 support. (LP: #1662116)
262
263 -- Andy Whitcroft <apw@ubuntu.com> Mon, 06 Feb 2017 16:15:40 +0000
264
265open-vm-tools (2:10.0.7-3227872-5ubuntu1) yakkety; urgency=low
266
267 * Merge with Debian; remaining changes:
268 - Build without xmlsecurity support and xerces for now (universe).
269
270 -- Iain Lane <iain.lane@canonical.com> Fri, 30 Sep 2016 16:03:58 +0100
271
229open-vm-tools (2:10.0.7-3227872-5) unstable; urgency=medium272open-vm-tools (2:10.0.7-3227872-5) unstable; urgency=medium
230273
231 * [9295c22] Add .travis.yml from http://travis.debian.net.274 * [9295c22] Add .travis.yml from http://travis.debian.net.
@@ -234,6 +277,13 @@ open-vm-tools (2:10.0.7-3227872-5) unstable; urgency=medium
234277
235 -- Bernd Zeimetz <bzed@debian.org> Sat, 17 Sep 2016 23:26:58 +0200278 -- Bernd Zeimetz <bzed@debian.org> Sat, 17 Sep 2016 23:26:58 +0200
236279
280open-vm-tools (2:10.0.7-3227872-4.1ubuntu1) yakkety; urgency=medium
281
282 * Merge with Debian; remaining changes:
283 - Build without xmlsecurity support and xerces for now (universe).
284
285 -- Matthias Klose <doko@ubuntu.com> Tue, 02 Aug 2016 14:23:27 +0200
286
237open-vm-tools (2:10.0.7-3227872-4.1) unstable; urgency=medium287open-vm-tools (2:10.0.7-3227872-4.1) unstable; urgency=medium
238288
239 * Non-maintainer upload.289 * Non-maintainer upload.
@@ -260,6 +310,32 @@ open-vm-tools (2:10.0.7-3227872-3) unstable; urgency=medium
260310
261 -- Bernd Zeimetz <bzed@debian.org> Tue, 31 May 2016 11:15:30 +0200311 -- Bernd Zeimetz <bzed@debian.org> Tue, 31 May 2016 11:15:30 +0200
262312
313open-vm-tools (2:10.0.7-3227872-2ubuntu2) yakkety; urgency=medium
314
315 * No-change rebuild for libicu soname change.
316
317 -- Matthias Klose <doko@ubuntu.com> Fri, 22 Apr 2016 22:58:57 +0000
318
319open-vm-tools (2:10.0.7-3227872-2ubuntu1) xenial; urgency=low
320
321 * Merge from Debian unstable (LP: #1558198). Remaining changes:
322 - Build without xmlsecurity support and xerces for now (universe).
323
324 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 14 Apr 2016 17:06:49 -0700
325
326open-vm-tools (2:10.0.7-3227872-4) unstable; urgency=medium
327
328 * [007eacb] Better check for availability of vmware-checkvm and -rpctool.
329
330 -- Bernd Zeimetz <bzed@debian.org> Sat, 04 Jun 2016 07:31:17 +0200
331
332open-vm-tools (2:10.0.7-3227872-3) unstable; urgency=medium
333
334 * [5060f42] Notify vmware when removing open-vm-tools.
335 Thanks to Yanhui He (Closes: #825810)
336
337 -- Bernd Zeimetz <bzed@debian.org> Tue, 31 May 2016 11:15:30 +0200
338
263open-vm-tools (2:10.0.7-3227872-2) unstable; urgency=medium339open-vm-tools (2:10.0.7-3227872-2) unstable; urgency=medium
264340
265 * [f2f4971] Work around wrong dkms versions.341 * [f2f4971] Work around wrong dkms versions.
@@ -296,6 +372,13 @@ open-vm-tools (2:10.0.5-3227872-1) unstable; urgency=medium
296372
297 -- Bernd Zeimetz <bzed@debian.org> Sat, 26 Dec 2015 17:26:52 +0100373 -- Bernd Zeimetz <bzed@debian.org> Sat, 26 Dec 2015 17:26:52 +0100
298374
375open-vm-tools (2:10.0.0-3000743-3ubuntu1) xenial; urgency=low
376
377 * Merge from Debian unstable. (LP: #1492429) Remaining changes:
378 - Build without xmlsecurity support and xerces for now (universe).
379
380 -- Robert C Jennings <robert.jennings@ubuntu.com> Sun, 01 Nov 2015 04:41:44 +0000
381
299open-vm-tools (2:10.0.0-3000743-3) unstable; urgency=medium382open-vm-tools (2:10.0.0-3000743-3) unstable; urgency=medium
300383
301 * [8b49d5b] fix open-vm-tools-dkms description384 * [8b49d5b] fix open-vm-tools-dkms description
@@ -353,6 +436,24 @@ open-vm-tools (2:9.10.2-2822639-2) unstable; urgency=medium
353436
354 -- Bernd Zeimetz <bzed@debian.org> Sun, 16 Aug 2015 16:27:27 +0200437 -- Bernd Zeimetz <bzed@debian.org> Sun, 16 Aug 2015 16:27:27 +0200
355438
439open-vm-tools (2:9.10.2-2822639-1ubuntu3) wily; urgency=medium
440
441 * Build without xmlsecurity support and xerces for now (universe).
442
443 -- Matthias Klose <doko@ubuntu.com> Mon, 10 Aug 2015 21:01:08 +0000
444
445open-vm-tools (2:9.10.2-2822639-1ubuntu2) wily; urgency=medium
446
447 * No-change rebuild against new libicu
448
449 -- Iain Lane <iain@orangesquash.org.uk> Wed, 05 Aug 2015 17:41:02 +0100
450
451open-vm-tools (2:9.10.2-2822639-1ubuntu1) wily; urgency=medium
452
453 * Sync from Debian (LP: #1468114).
454
455 -- Ben Howard <ben.howard@ubuntu.com> Mon, 20 Jul 2015 10:37:17 -0600
456
356open-vm-tools (2:9.10.2-2822639-1) unstable; urgency=medium457open-vm-tools (2:9.10.2-2822639-1) unstable; urgency=medium
357458
358 * [a4125bd1] Merge tag 'upstream/9.10.2-2822639'459 * [a4125bd1] Merge tag 'upstream/9.10.2-2822639'
diff --git a/debian/compat b/debian/compat
index b4de394..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
111110
diff --git a/debian/control b/debian/control
index 2a5b977..433e915 100644
--- a/debian/control
+++ b/debian/control
@@ -1,9 +1,10 @@
1Source: open-vm-tools1Source: open-vm-tools
2Section: admin2Section: admin
3Priority: extra3Priority: extra
4Maintainer: Bernd Zeimetz <bzed@debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Bernd Zeimetz <bzed@debian.org>
5Build-Depends:6Build-Depends:
6 debhelper (>= 11~), autotools-dev, doxygen, libcunit1-dev,7 debhelper (>= 9.20160115ubuntu3), autotools-dev, doxygen, libcunit1-dev,
7 libdumbnet-dev, libfuse-dev, libgtkmm-3.0-dev, libgtk-3-dev,8 libdumbnet-dev, libfuse-dev, libgtkmm-3.0-dev, libgtk-3-dev,
8 libicu-dev, libnotify-dev, libpam0g-dev, libprocps-dev, libx11-dev,9 libicu-dev, libnotify-dev, libpam0g-dev, libprocps-dev, libx11-dev,
9 libxinerama-dev, libxss-dev, libxtst-dev,10 libxinerama-dev, libxss-dev, libxtst-dev,
@@ -12,6 +13,8 @@ Build-Depends:
12 libxmlsec1-dev,13 libxmlsec1-dev,
13 libudev-dev,14 libudev-dev,
14 libdrm-dev,15 libdrm-dev,
16 dh-autoreconf,
17 dh-systemd,
15Standards-Version: 3.9.618Standards-Version: 3.9.6
16Homepage: https://github.com/vmware/open-vm-tools19Homepage: https://github.com/vmware/open-vm-tools
17Vcs-Git: https://github.com/bzed/pkg-open-vm-tools.git20Vcs-Git: https://github.com/bzed/pkg-open-vm-tools.git
diff --git a/debian/open-vm-tools-desktop.postinst b/debian/open-vm-tools-desktop.postinst
index addacbb..003607c 100644
--- a/debian/open-vm-tools-desktop.postinst
+++ b/debian/open-vm-tools-desktop.postinst
@@ -8,3 +8,21 @@ fi
88
9#DEBHELPER#9#DEBHELPER#
1010
11# replaces the deb-systemd-invoke start run-vmblock\\x2dfuse.mount that is
12# broken on Xenial due to the escaping of the service.
13# Intentionally AFTER debhelper to have the scripts available and enabled.
14#
15# It follows the principle of deb-systemd-invoke start (we don't have to
16# care about restart here as the original was only called with start here).
17# So it comes down to: "If the unit is enabled, start it now"
18if [ -d /run/systemd/system ]; then
19 systemctl --system daemon-reload >/dev/null || true
20 enabled="$(systemctl is-enabled -- run-vmblock\\x2dfuse.mount)"
21 if [ "${enabled}" = "enabled" ]; then
22 systemctl start run-vmblock\\x2dfuse.mount
23 else
24 echo "run-vmblock\\x2dfuse.mount is a disabled or a static unit, not starting it."
25 fi
26fi
27
28exit 0
diff --git a/debian/open-vm-tools-desktop.postrm b/debian/open-vm-tools-desktop.postrm
11new file mode 10064429new file mode 100644
index 0000000..5e7a861
--- /dev/null
+++ b/debian/open-vm-tools-desktop.postrm
@@ -0,0 +1,13 @@
1#!/bin/sh
2set -e
3
4# NOT-Automatically added by dh_systemd_start - as it has issues on start
5# But copied from what it would have added (as stop works fine as-is)
6if [ -d /run/systemd/system ]; then
7 systemctl --system daemon-reload >/dev/null || true
8fi
9# End NOT-automatically added section
10
11#DEBHELPER#
12
13exit 0
diff --git a/debian/open-vm-tools-desktop.prerm b/debian/open-vm-tools-desktop.prerm
index 71a6f14..efbb74c 100644
--- a/debian/open-vm-tools-desktop.prerm
+++ b/debian/open-vm-tools-desktop.prerm
@@ -10,3 +10,12 @@ fi
1010
11#DEBHELPER#11#DEBHELPER#
1212
13# NOT-Automatically added by dh_systemd_start - as it has issues on start
14# But copied from what it would have added (as stop works fine as-is)
15# Should be at the Tail of debhelper section
16if [ -d /run/systemd/system ]; then
17 deb-systemd-invoke stop run-vmblock\\x2dfuse.mount >/dev/null
18fi
19# End NOT-automatically added section
20
21exit 0
diff --git a/debian/open-vm-tools.service b/debian/open-vm-tools.service
index 8d64880..a66b318 100644
--- a/debian/open-vm-tools.service
+++ b/debian/open-vm-tools.service
@@ -4,6 +4,7 @@ Documentation=http://open-vm-tools.sourceforge.net/about.php
4ConditionVirtualization=vmware4ConditionVirtualization=vmware
5DefaultDependencies=no5DefaultDependencies=no
6Before=cloud-init-local.service6Before=cloud-init-local.service
7After=local-fs.target
78
8[Service]9[Service]
9ExecStart=/usr/bin/vmtoolsd10ExecStart=/usr/bin/vmtoolsd
diff --git a/debian/rules b/debian/rules
index 2789360..261ba13 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@ DEBHELPER_VERSION = $(strip $(shell dpkg-query -f '$${Version}' -W debhelper))
4DEBHELPER_SYSTEMD_OK = $(strip $(shell dpkg --compare-versions $(DEBHELPER_VERSION) ge 10.9.1~; echo $$?))4DEBHELPER_SYSTEMD_OK = $(strip $(shell dpkg --compare-versions $(DEBHELPER_VERSION) ge 10.9.1~; echo $$?))
55
6%:6%:
7 dh ${@} --sourcedirectory=open-vm-tools7 dh ${@} --sourcedirectory=open-vm-tools --with=autotools_dev,autoreconf,systemd
88
9override_dh_auto_configure:9override_dh_auto_configure:
10 dh_auto_configure --sourcedirectory=open-vm-tools -- \10 dh_auto_configure --sourcedirectory=open-vm-tools -- \
@@ -79,10 +79,21 @@ override_dh_fixperms:
7979
80 dh_fixperms -Xvmware-user-suid-wrapper80 dh_fixperms -Xvmware-user-suid-wrapper
8181
82override_dh_installsystemd:82override_dh_systemd_enable:
83 dh_installsystemd -popen-vm-tools83 dh_systemd_enable -popen-vm-tools
84 dh_installsystemd -popen-vm-tools --name vgauth84 dh_systemd_enable -popen-vm-tools --name vgauth
85 dh_installsystemd -popen-vm-tools-desktop --restart-after-upgrade --no-stop-on-upgrade run-vmblock\\x2dfuse.mount85 dh_systemd_enable -popen-vm-tools-desktop run-vmblock\\x2dfuse.mount
86
87override_dh_systemd_start:
88 dh_systemd_start -popen-vm-tools
89 dh_systemd_start -popen-vm-tools --name vgauth
90 # "deb-systemd-invoke start" (and only that) as generated by
91 # dh_systemd_start will fail for run-vmblock\\x2dfuse.mount on xenial.
92 # A custom section in the Maintainer scripts will take care of it
93 # Disabled on Backport: dh_systemd_start -popen-vm-tools-desktop -r run-vmblock\\x2dfuse.mount
94 # The following sed's are needed in Xenial as well to fix dh_installinit and dh_systemd_enable behavior
95 sed -i 's,run-vmblock\\x2dfuse,run-vmblock\\\\x2dfuse,g' debian/*.debhelper
96 sed -i 's,run-vmblock-fuse,run-vmblock\\\\x2dfuse,g' debian/*.debhelper
8697
87override_dh_installchangelogs:98override_dh_installchangelogs:
88 dh_installchangelogs ReleaseNotes.md99 dh_installchangelogs ReleaseNotes.md

Subscribers

People subscribed via source and target branches