Added glibc fix to vmware::server on CentOS.

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=23365&start=0#forumpost91494
This commit is contained in:
Timo Mkinen 2010-10-29 16:33:30 +03:00
parent 5b36025d6c
commit 3465159876
3 changed files with 41 additions and 0 deletions

BIN
vmware/files/libc.so.6 Executable file

Binary file not shown.

View file

@ -0,0 +1,9 @@
--- vmware-hostd.orig 2010-10-14 20:18:17.000000000 +0300
+++ vmware-hostd 2010-10-14 20:18:31.000000000 +0300
@@ -370,4 +370,6 @@
export MALLOC_CHECK_=2
fi
+export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libc.so.6:$LD_LIBRARY_PATH
+
eval exec "$DEBUG_CMD" "$binary" "$@"

View file

@ -15,6 +15,38 @@ class vmware::server {
Exec["vmware-config.pl"], ], Exec["vmware-config.pl"], ],
} }
if $operatingsystem == "CentOS" {
file { "/usr/lib/vmware/lib/libc.so.6":
ensure => directory,
mode => 0755,
owner => root,
group => root,
require => Package["VMware-server"],
}
file { "/usr/lib/vmware/lib/libc.so.6/libc.so.6":
ensure => present,
source => "puppet:///vmware/libc.so.6",
mode => 0755,
owner => root,
group => root,
require => File["/usr/lib/vmware/lib/libc.so.6"],
before => Service["vmware"],
}
file { "/usr/local/src/vmware-hostd.patch":
ensure => present,
source => "puppet:///vmware/vmware-hostd.patch",
mode => 0644,
owner => root,
group => root,
require => Package["VMware-server"],
}
util::patch { "/usr/sbin":
source => "/usr/local/src/vmware-hostd.patch",
require => File["/usr/local/src/vmware-hostd.patch"],
before => Service["vmware"],
}
}
# seems that vmware init script fails if pid files are missing for vmnet # seems that vmware init script fails if pid files are missing for vmnet
# processes, so kill them by force first # processes, so kill them by force first
exec { "vmware-config.pl": exec { "vmware-config.pl":