Browse code

Updating open-vm-tools to 10.1.0

Change-Id: I5c059c0cb88eca5d024520d40bd1d60645daa531
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1736
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: suezzelur <anishs@vmware.com>

Kumar Kaushik authored on 2016/11/23 04:26:08
Showing 3 changed files
... ...
@@ -1,7 +1,7 @@
1
-diff -ru open-vm-tools-10.0.5/libDeployPkg/linuxDeployment.c open-vm-tools-modified/libDeployPkg/linuxDeployment.c
2
-+++ open-vm-tools-modified/libDeployPkg/linuxDeployment.c	2016-04-19 16:51:28.434617505 -0700
3
-@@ -549,13 +549,17 @@
1
+diff -ru open-vm-tools-stable-10.1.0/open-vm-tools/libDeployPkg/linuxDeployment.c open-vm-tools-stable-10.1.0-modified/open-vm-tools/libDeployPkg/linuxDeployment.c
2
+--- open-vm-tools-stable-10.1.0/open-vm-tools/libDeployPkg/linuxDeployment.c	2016-11-14 15:36:30.000000000 -0800
3
+@@ -558,13 +558,17 @@
4 4
     close(fd);
5 5
  
6 6
     // Create space and copy the command
... ...
@@ -11,41 +11,32 @@ diff -ru open-vm-tools-10.0.5/libDeployPkg/linuxDeployment.c open-vm-tools-modif
11 11
        SetDeployError("Error allocating memory.");
12 12
        return FALSE;
13 13
     }
14
-+   
14
+ 
15
+-   memcpy(*command, hdr.command, VMWAREDEPLOYPKG_CMD_LENGTH);
15 16
 +   // will pad with '\0' if necessary
16 17
 +   strncpy(*command, hdr.command, VMWAREDEPLOYPKG_CMD_LENGTH);
17 18
 +   // hdr.command is a structure of fixed length VMWAREDEPLOYPKG_CMD_LENGTH
18
-+   (*command)[VMWAREDEPLOYPKG_CMD_LENGTH] = '\0'; 
19
- 
20
--   memcpy(*command, hdr.command, VMWAREDEPLOYPKG_CMD_LENGTH);
19
++   (*command)[VMWAREDEPLOYPKG_CMD_LENGTH] = '\0';
20
++
21 21
     *archiveType = hdr.payloadType;
22
+    *flags = hdr.reserved;
22 23
  
23
-    return TRUE;
24
-@@ -907,6 +911,18 @@
25
-          return DEPLOY_ERROR;
26
-       }
27
-    }
28
-+   if ((strstr(command, "scripts/Customize.pl") != NULL) || (strstr(command, "scripts/customize.sh") != NULL)) {
29
-+      free (command);
30
-+      const char* PHOTON_OS_LAUNCH_COMMAND = "/bin/bash /usr/share/open-vm-tools/GOSC/gosc-scripts/imc-shell/imgcust-scripts/customize.sh /tmp/.vmware/linux/deploy/cust.cfg";
24
+@@ -1042,6 +1046,18 @@
25
+       free(command);
26
+       deployStatus =  CloudInitSetup(EXTRACTPATH);
27
+    } else {
28
++      if ((strstr(command, "scripts/Customize.pl") != NULL) || (strstr(command, "scripts/customize.sh") != NULL)) {
29
++          free (command);
30
++          const char* PHOTON_OS_LAUNCH_COMMAND = "/bin/bash /usr/share/open-vm-tools/GOSC/gosc-scripts/imc-shell/imgcust-scripts/customize.sh /tmp/.vmware/linux/deploy/cust.cfg";
31 31
 +
32
-+       // The command will be parsed alter and can be of arbitrary length
33
-+       command = strdup(PHOTON_OS_LAUNCH_COMMAND);
34
-+       if (!command) {
35
-+          SetDeployError("Error allocating memory.");
36
-+          return DEPLOY_ERROR;
37
-+       }
38
-+       _DeployPkg_SkipReboot(true);
39
-+   }
40
- 
41
-    // Run the deployment command
42
-    sLog(log_info, "Launching deployment %s. \n", command);
43
-@@ -988,7 +1004,7 @@
44
-       //TODO: What should be done if cleanup fails ??
45
-    }
46
-    free (cleanupCommand);
47
--
48
-+   
49
-    //Reset the guest OS
50
-    if (!sSkipReboot && !deploymentResult) {
51
-       // Reboot the Vm
32
++          // The command will be parsed alter and can be of arbitrary length
33
++          command = strdup(PHOTON_OS_LAUNCH_COMMAND);
34
++          if (!command) {
35
++             SetDeployError("Error allocating memory.");
36
++             return DEPLOY_ERROR;
37
++          }
38
++          _DeployPkg_SkipReboot(true);
39
++      }
40
+       // Run the deployment command
41
+       sLog(log_info, "Launching deployment %s.  \n", command);
42
+       deploymentResult = ForkExecAndWaitCommand(command);
... ...
@@ -1,9 +1,10 @@
1
-+++ open-vm-tools-9.10.0/vgauth/service/Makefile.in_	2015-05-12 16:01:37.695680243 -0700
2
-@@ -322,7 +322,7 @@
3
- 	../lib/libvgauth.la @XERCES_LIBS@ @XMLSECURITY_LIBS@ \
4
- 	@SSL_LIBS@ -lxerces-c -lxml-security-c -lssl -lcrypto \
5
- 	$(am__append_1)
1
+diff -ru open-vm-tools-10.1.0/open-vm-tools/vgauth/service/Makefile.in open-vm-tools-10.1.0-mod/open-vm-tools/vgauth/service/Makefile.in
2
+--- open-vm-tools-10.1.0/open-vm-tools/vgauth/service/Makefile.in	2016-09-29 03:21:26.000000000 -0700
3
+@@ -367,7 +367,7 @@
4
+ 	-I$(top_srcdir)/vgauth/serviceImpl
5
+ VGAuthService_LDADD = @GLIB2_LIBS@ @GTHREAD_LIBS@ $(am__append_5) \
6
+ 	$(am__append_6) @SSL_LIBS@ -lssl -lcrypto $(am__append_7)
6 7
 -@HAVE_ICU_FALSE@VGAuthService_LINK = $(LINK)
7 8
 +@HAVE_ICU_FALSE@VGAuthService_LINK = $(CXXLINK)
8 9
  @HAVE_ICU_TRUE@VGAuthService_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS)     \
... ...
@@ -1,14 +1,14 @@
1 1
 Summary:        Usermode tools for VmWare virts
2 2
 Name:           open-vm-tools
3
-Version:        10.0.5
4
-Release:        14%{?dist}
3
+Version:        10.1.0
4
+Release:        1%{?dist}
5 5
 License:        LGPLv2+
6 6
 URL:            https://github.com/vmware/open-vm-tools
7 7
 Group:          Applications/System
8 8
 Vendor:         VMware, Inc.
9 9
 Distribution:   Photon
10 10
 Source0:        https://github.com/vmware/open-vm-tools/archive/%{name}-%{version}.tar.gz
11
-%define sha1 open-vm-tools=9d29a17cce539b032317d0a8c55977666daa137e
11
+%define sha1 open-vm-tools=6deb5ff09b7033cd4224580e664a608e6b4d1db2
12 12
 Source1:        gosc-scripts-1.0.tar.gz
13 13
 %define sha1 gosc-scripts-1.0=5031dd9b3b0569a40d2ee0caaa55a1cbf782345e
14 14
 Source2:        vmtoolsd.service
... ...
@@ -39,10 +39,10 @@ Requires:       systemd
39 39
 %description
40 40
 VmWare virtualization user mode tools
41 41
 %prep
42
-%setup -q
43
-%setup -a 1
44
-%patch0 -p1
45
-%patch1 -p1
42
+%setup -q -n open-vm-tools
43
+%setup -a 1 -n open-vm-tools
44
+%patch0 -p2
45
+%patch1 -p2
46 46
 %patch2 -p0
47 47
 %patch3 -p0
48 48
 %patch4 -p0
... ...
@@ -62,9 +62,6 @@ install -p -m 644 %{SOURCE3} %{buildroot}/lib/systemd/system
62 62
 
63 63
 make DESTDIR=%{buildroot} install
64 64
 rm -f %{buildroot}/sbin/mount.vmhgfs
65
-mkdir -p %{buildroot}/etc/pam.d
66
-mv %{buildroot}/usr/etc/pam.d/* %{buildroot}/etc/pam.d/
67
-rmdir %{buildroot}/usr/etc/pam.d
68 65
 chmod -x %{buildroot}/etc/pam.d/vmtoolsd
69 66
 # Move vm-support to /usr/bin
70 67
 mv %{buildroot}%{_sysconfdir}/vmware-tools/vm-support %{buildroot}%{_bindir}
... ...
@@ -106,9 +103,11 @@ fi
106 106
 
107 107
 
108 108
 %changelog
109
+*       Mon Nov 21 2016 Kumar Kaushik <kaushikk@vmware.com> 10.1.0-1
110
+-       Updating version to 10.1.0
109 111
 *       Wed Oct 05 2016 Kumar Kaushik <kaushikk@vmware.com> 10.0.5-14
110 112
 -       Adding proper entry to /etc/hosts for IPv6.
111
-*       Mon Oct 04 2016 ChangLee <changLee@vmware.com> 10.0.5-13
113
+*       Tue Oct 04 2016 ChangLee <changLee@vmware.com> 10.0.5-13
112 114
 -       Modified %check
113 115
 *       Thu Jun 23 2016 Kumar Kaushik <kaushikk@vmware.com> 10.0.5-12
114 116
 -       Avoiding recustomization of hostname, bug#1678537.