Package: open-vm-tools Version: 2:10.0.5-3227872-1 Severity: normal Tags: patch Usertags: usrmerge Tags: patch
The package installs a symbolic link to a file with the same name in both /sbin/ and /usr/sbin/, so it makes impossible to convert a system to the merged /usr directories scheme. mount(8) calls mount.vmhgfs using execve(2) and the explicit /sbin/mount.vmhgfs path, so there is no point in having such a program in /usr/sbin/ . The attached patch moves the binary to /sbin/ where it belongs. The link is broken anyway, so I can't see how the package could work at all: md@attila:/tmp/o$ dpkg-deb -x open-vm-tools_10.0.5-3227872-1_amd64.deb . md@attila:/tmp/o$ ls -l usr/sbin/mount.vmhgfs -rwxr-xr-x 1 md md 68504 Dec 26 18:12 usr/sbin/mount.vmhgfs* md@attila:/tmp/o$ ls -l sbin/mount.vmhgfs lrwxrwxrwx 1 md md 78 Dec 26 18:12 sbin/mount.vmhgfs -> /build/open-vm-tools-10.0.5-3227872/debian/open-vm-tools/usr/sbin/mount.vmhgfs md@attila:/tmp/o$ -- ciao, Marco
diff --git a/debian/rules b/debian/rules index 4f747ca..36cec16 100755 --- a/debian/rules +++ b/debian/rules @@ -76,6 +76,9 @@ override_dh_auto_install: rm -f debian/open-vm-tools/usr/lib/open-vm-tools/plugins/*/*.la rm -rf debian/open-vm-tools/usr/share/open-vm-tools/tests + # mount(8) calls the program as /sbin/mount.vmhgfs + mv debian/open-vm-tools/usr/sbin/mount.vmhgfs debian/open-vm-tools/sbin/ + # moving open-vm-tools-desktop files mkdir -p debian/open-vm-tools-desktop/usr/lib/open-vm-tools/plugins mv debian/open-vm-tools/usr/lib/open-vm-tools/plugins/vmusr debian/open-vm-tools-desktop/usr/lib/open-vm-tools/plugins
signature.asc
Description: PGP signature

