Dominique Leuenberger 2015-01-05 08:47:03 +00:00 committed by Git OBS Bridge
parent b9d4003153
commit b372710056
5 changed files with 1545 additions and 5 deletions

999
open-vm-tools-KMP.changes Normal file
View File

@ -0,0 +1,999 @@
-------------------------------------------------------------------
Mon Jan 5 08:42:04 UTC 2015 - dimstar@opensuse.org
- Split building of KMPs into own spec file: open-vm-tools-KMP:
the resulting KMP packages keep their existing name, as this is
handled through the kernel_package macros. This split allows to
work around boo#905420.
-------------------------------------------------------------------
Sat Nov 29 19:40:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in vmware-user-autostart-wrapper script
-------------------------------------------------------------------
Wed Nov 12 10:04:48 UTC 2014 - dimstar@opensuse.org
- Add open-vm-tools-linux-3.17.patch: Fix build with Linux 3.17.0.
-------------------------------------------------------------------
Mon Nov 10 16:01:56 UTC 2014 - dimstar@opensuse.org
- Sync up patches with ArchLinux:
+ Added 0001-Remove-unused-DEPRECATED-macro.patch
+ Added 0002-Conditionally-define-g_info-macro.patch
+ Added 0003-Add-kuid_t-kgid_t-compatibility-layer.patch
+ Added 0004-Use-new-link-helpers.patch
+ Added 0005-Update-hgfs-file-operations-for-newer-kernels.patch
+ Added 0006-Fix-vmxnet-module-on-kernels-3.16.patch
+ Added 0007-Fix-vmhgfs-module-on-kernels-3.16.patch
+ Added 0008-Fix-segfault-in-vmhgfs.patch
+ Droped g_info_redefine.patch (now named
0002-Conditionally-define-g_info-macro.patch).
- Enable building of KMP packages.
-------------------------------------------------------------------
Mon Nov 10 01:03:00 UTC 2014 - Led <ledest@gmail.com>
- Fix bashisms in preun script.
-------------------------------------------------------------------
Fri Oct 31 00:34:20 UTC 2014 - crrodriguez@opensuse.org
- Do not generate timestamps in the doxygen docs.
-------------------------------------------------------------------
Mon Oct 20 15:35:41 UTC 2014 - dimstar@opensuse.org
- Add -Wno-cpp to CFLAGS.
-------------------------------------------------------------------
Mon Oct 6 22:25:36 UTC 2014 - boris@steki.net
- Updated to latest release 9.4.6-1770165
+ Release matching the vSphere 5.5p02 release
- "which" as separate package does not exist on older opensuse versions
so removed from Requires for older distributions
- used autoreconf as source package does not provide configure script anymore
- removed vmsync module from OS12.3 build target as it does not compile
-------------------------------------------------------------------
Fri May 16 16:57:16 UTC 2014 - mlatimer@suse.com
- Modify vmware-user-autostart-wrapper to unconditionally start
vmware-user-suid-wrapper, and no longer delay for vmblock-fuse
if under systemd. (bnc#876074)
-------------------------------------------------------------------
Wed May 14 15:40:19 UTC 2014 - meissner@suse.com
- added forgotten %pre snippet for service addition, this made
systemd service not auto-start. bnc#870737
-------------------------------------------------------------------
Thu Apr 28 15:33:55 UTC 2014 - mlatimer@suse.com
- Move 'vm-support' script from /etc/vmware-tools to /usr/bin (bnc#874931).
- Update call to "tools.set.version" RPC during uninstall to match upstream
behavior (bnc#875129).
- Add missing RPM runtime dependencies (net-tools, tar, which).
-------------------------------------------------------------------
Tue Mar 17 21:52:29 UTC 2014 - mlatimer@suse.com
- Update to version 9.4.0:
+ Release of open-vm-tools matching vSphere 5.5.
- Remove build dependency on liburiparser (no longer necessary).
- Removed obsolete --disable-unity configure option.
- Use doxygen to generate devel docs.
- Require libprocps for openSUSE 12.3 and above.
- Added CUSTOM_PROCPS_NAME=procps (required for 9.4.0 build).
- Add g_info_redefine.patch: Fix redefine warnings during build.
- Add vmtoolsd.service for use with systemd.
- Drop open-vm-tools.permissions: No longer required.
- Only build kmp for specified distributions, and only require kernel-source
when kernel modules are being built.
- Rename -gui package to -desktop.
-------------------------------------------------------------------
Sat Nov 2 13:40:15 UTC 2013 - dimstar@opensuse.org
- Supplement the -gui package on xorg-x11-server instead of
xorg-x11 as the latter is only a meta-package, that is not
installed on all machines (bnc#848505).
-------------------------------------------------------------------
Tue Sep 10 18:50:47 UTC 2013 - dimstar@opensuse.org
- Really drop open-vm-tools-kernel-3.8.patch (osc rm).
- Drop open-vm-tools-kernel-3.6.patch: fixed upstream.
- Inject -Wno-unused-local-typedefs into CFLAGS.
- Only build vmsync up to openSUSE 12.3.
- Disable build of vmhgfs (and related tools) on openSUSE > 12.3,
as the module fails and VMWare is unresponsive in providing a
fix. Maybe one day, when there is actual commitment, the module
and the related tools / mount-helpers can be re-enabled (see also
bnc#834369).
- Wrap the KMP Package in a condition to only build when there are
actually modules to be built (vm_modules not empty).
- Do not require vmware-guest-kmp from the main package if we do
not built KMP packages (if there are no modules to be built).
-------------------------------------------------------------------
Mon May 13 15:30:52 UTC 2013 - dimstar@opensuse.org
- Update to version 9.2.3:
+ Fixes for HGFS driver to compile on newer kernels (3.9).
+ Fix for HGFS performance regression..
+ vmci/vsock drivers are disabled on kernels 3.9 and above.
+ vmblock driver is disabled on kernels 3.0+.
+ Fix and re-enable Copy/Paste on Solaris.
+ Configure script will detect procsps-ng library.
+ Suppress deprecated warnings coming form newer glib.
- Drop open-vm-tools-kernel-3.8.patch: fixed upstream.
- No longer build vmci and vsock for openSUSE > 12.3; they have
been included in the mainline kernel.
-------------------------------------------------------------------
Wed Apr 24 19:57:20 UTC 2013 - dimstar@opensuse.org
- Add open-vm-tools-kernel-3.8.patch: Fix build with kernel 3.8.x.
-------------------------------------------------------------------
Wed Apr 3 18:26:54 UTC 2013 - dimstar@opensuse.org
- Update to version 9.2.0:
+ Fixes for HGFS driver to compile on newer kernels (3.6).
+ vmsync driver is disabled on kernels 3.0+ as vmbackup plugin
uses FIFREEZE/FITHAW standard ioctls.
+ Fixes for Copy/Paste (and C&P is temporarily disabled on
Solaris due to C++ library issues).
- Rebase open-vm-tools-kernel-3.6.patch: mostly fixed upstream.
- No longer build vmblock.ko: it's been obsoleted in favor of
vmblock-fuse.
- Change vmtoolsd to use vmware-vmblock-fuse instead of vmblock.ko,
using the new mount point /var/run/vmblock-fuse.
- Add fuse Requires, as we now use vmblock-fuse.
* Fixes bnc#803157.
-------------------------------------------------------------------
Sat Mar 2 08:16:26 UTC 2013 - coolo@suse.com
- update license to new format
-------------------------------------------------------------------
Fri Oct 12 08:19:01 UTC 2012 - dimstar@opensuse.org
- Update to version 9.2.0:
+ Release of open-vm-tools matching Workstation 9.0.
- Drop kernel-3_4.patch: fixed upstream.
- Add open-vm-tools-kernel-3.6.patch: Fix build with kernel 3.6.
- Add pkgconfig(fuse) BuildRequires: Support vmhgfs fuse.
-------------------------------------------------------------------
Sat Aug 4 10:45:41 UTC 2012 - dimstar@opensuse.org
- autostart-wrapper: unset SESSION_MANAGER. This helps newer
gnome-session versions to not try to track this task. Due to the
double fork() it gets it wrong and delays logout (waiting for a
timeout to terminate this user task) (bgo#681904).
-------------------------------------------------------------------
Fri Jun 8 12:04:35 UTC 2012 - jreidinger@suse.com
- Add kernel-3_4.patch: Fix build for kernel-3.4.
-------------------------------------------------------------------
Fri Apr 6 21:18:39 UTC 2012 - dimstar@opensuse.org
- Update to version 8.8.2:
+ Updated code for compatibility with newer Linux kernel
releases.
+ Minor tweaks in Unity and Resolution set plugins
- Drop vmhgfs-2011.12.20.patch: fixed upstream.
-------------------------------------------------------------------
Fri Mar 30 21:02:32 UTC 2012 - dimstar@opensuse.org
- Build vmci as first module and copy Modules.symvers to source of
all subsequent modules to be built. Fixes issues where vmhgfs for
example does not have all symbols available and fails to load
[bnc#703959].
-------------------------------------------------------------------
Fri Mar 30 20:02:49 UTC 2012 - dimstar@opensuse.org
- Add a tools.conf to the package. All settings are left to default
except [guestinfo] / disable-perf-mon=1, which resolves
bnc#698181.
-------------------------------------------------------------------
Thu Mar 15 13:56:41 UTC 2012 - prusnak@opensuse.org
- added call to vmware-rpctool in %preun to unset the installed
version [bnc#748517]
-------------------------------------------------------------------
Sun Feb 5 15:07:36 UTC 2012 - dimstar@opensuse.org
- Add vmhgfs-2011.12.20.patch: Fix build of vmhgfs module with
kernel 3.2.
- Update FSF address part in vmtoolsd header.
-------------------------------------------------------------------
Tue Jan 24 15:53:36 UTC 2012 - prusnak@opensuse.org
- Update to version 8.8.1 (Stable series):
* Updated code for compatibility with newer Linux kernel releases
and with newer NetworkManager releases.
- dropped vmxnet+kernel-3.0 (not needed anymore)
- build with PIE [bnc#743130]
-------------------------------------------------------------------
Wed Sep 21 20:34:59 UTC 2011 - dimstar@opensuse.org
- Update to version 8.8.0 (Stable series):
+ This release of open-vm-tools matches the VMware Tools package
released with Workstation 8.0 and Fusion 4.0.
It's targeted at desktop users who want the latest features in
(VMware's) Unity, HGFS and drag & drop support.
- Add open-vm-tools-vmxnet+kernel-3.0.patch: HAVE_NETDEV_PRIV is
gone in kernel 3.0 and netdev_priv is in kernel since 2.6.6.
- use set_permissions instead of run_permissions on 11.4+
-------------------------------------------------------------------
Thu Jul 21 00:36:27 UTC 2011 - dimstar@opensuse.org
- Update to version 2011.07.19:
+ Fix an issue in the HGFS driver that could lead to a kernel
panic.
+ Update some code to support new compiler and kernel versions.
+ Minor bug fixes and code cleanup.
- Changes from version 2011.06.27:
+ A few enhancements to Unity: XFCE support, better interaction
with "the other" (Ubuntu's) Unity and compositing window
managers, better X error handling, and a few bug fixes.
+ few bug fixes in HGFS, and minor bug fixes in other components.
+ Otherwise, mostly code cleanup.
-------------------------------------------------------------------
Thu Jun 2 13:13:04 UTC 2011 - prusnak@opensuse.org
- updated to 2011.05.27:
+ Mostly cleanups and a few bug fixes.
- fixes [bnc#673267] [bnc#690491]
-------------------------------------------------------------------
Tue May 31 09:56:55 UTC 2011 - prusnak@opensuse.org
- use -Wno-unused-but-set in optflags so it will not fail build
while using -Werror
-------------------------------------------------------------------
Wed May 25 14:30:41 UTC 2011 - prusnak@opensuse.org
- added check in initscript whether VMTOOLSUSER_BIN exists
-------------------------------------------------------------------
Fri Apr 29 16:08:33 UTC 2011 - dimstar@opensuse.org
- Udpate to version 2011.04.25:
+ Mostly cleanups and small bug fixes in this release.
+ Logging is enabled by default in vmtoolsd, writing to syslog.
The default log level is not chatty, so few messages should
make it to syslog during normal operation.
+ The GUI version of the toolbox was removed.
-------------------------------------------------------------------
Wed Apr 27 08:58:46 UTC 2011 - dimstar@opensuse.org
- Extend the init script to detect the name of the balloon driver,
which changed several times in the kernel.
-------------------------------------------------------------------
Thu Apr 14 19:35:44 UTC 2011 - dimstar@opensuse.org
- Update to 2011.03.28:
+ HGFS mounter and vmusr's suid wrapper were changed to avoid
issues with symlink attacks. A new mount utility for vmblock on
Solaris and FreeBSD was added.
+ The VMCI driver was thoroughly reworked so that it can serve as
both the host and guest VMCI driver. This is mostly targeted at
supporting nested VMs.
+ vmusr got better integration with X's session manager,
including proper cleanup during session teardown.
+ Unity has been enhanced to better handle some desktop
environments.
+ Many small bug fixes in other areas, including updates for
newer Linux kernels.
- Changes from 2011.02.23:
+ Some copy & paste issues with KDE were fixed.
+ Mostly cleanups and bug fixes, with a few build enhancements.
- Changes from 2011.01.24:
+ Mostly cleanups and bug fixes.
+ Install code fixed to handle translation catalogs correctly.
- No longer care for missing modules on openSUSE 11.2. It is EOL in
a few weeks. As a consequence, remove the sources (they are in
current kernels):
+ pvscsi.tar.bz2
+ vmxnet3.tar.bz2
+ vmemctl.tar.bz2
- Fix some lint warnings: obsolete only <, not <=, Add PreReq:
permissions to the -gui package.
-------------------------------------------------------------------
Thu Apr 14 16:30:29 UTC 2011 - dimstar@opensuse.org
- Fix build with Factory: verify the list of modules that are not
yet merged into the main kernel.
-------------------------------------------------------------------
Wed Dec 22 08:29:03 UTC 2010 - dimstar@opensuse.org
- Update to version 2010.12.19:
+ New version of DnD code lands in open-vm-tools. The host part
of the new DnD protocol is not available yet in VMware
products, though.
+ vmtoolsd gets some new functionality to support new features
being developed internally.
+ vmxnet driver for FreeBSD fixed to allow changing the MAC
address.
+ lots of bug fixes and other cleanups in various areas.
- Re-enable building of X dependenices (with_X 1)
- Disable unity on openSUSE < 11.4. It requires glib >= 2.24.
-------------------------------------------------------------------
Thu Nov 25 15:11:31 UTC 2010 - dimstar@opensuse.org
- Re-Inject pvscsi for older kernel builds.
-------------------------------------------------------------------
Mon Nov 22 11:51:35 UTC 2010 - dimstar@opensuse.org
- Update to version 2010-11-17:
+ Mostly cleanups and bug fixes.
+ vmxnet3 on Solaris now supports jumbo frames.
- For all older updates, please see NEWS.
- Add an easy way to enable/disable X tools. Those currently fail
to build.
- Drop open-vm-tools-libpng14.patch: upstream fixed.
-------------------------------------------------------------------
Mon Jun 7 08:48:19 UTC 2010 - dimstar@opensuse.org
- Add vmmemctl.tar.bz2, extracted from open-vm-tools 2010.02.23.
-------------------------------------------------------------------
Mon May 31 08:37:32 UTC 2010 - dimstar@opensuse.org
- Better logic to easily disable modules that got inlcluded in the
Linux Kernel, for bnc#605085.
-------------------------------------------------------------------
Thu Apr 22 11:25:39 CEST 2010 - dimstar@opensuse.org
- Re-introduce vmxnet3 on openSUSE <= 11.2. Up to then we have
kernel 2.26.31, which does not bring the vmxnet3 driver yet.
The driver itself is the last one shipped with open-vm-tools,
version 2009.12.16.
-------------------------------------------------------------------
Wed Apr 21 10:36:21 CEST 2010 - dimstar@opensuse.org
- Send SIGUSR1 to vmware-user process when the services are being
stopped. This possibly solves bnc#544400.
-------------------------------------------------------------------
Wed Apr 7 10:44:31 UTC 2010 - dimstar@opensuse.org
- Add open-vm-tools-libpng14.patch to fix build with libpng 1.4.
-------------------------------------------------------------------
Wed Mar 24 09:43:33 UTC 2010 - dimstar@opensuse.org
- Update to 2010.03.20:
+ New i18n support for Tools; it is based on VMware's internal
tools
+ Logging infrastructure has been enhanced and now supports
rotation
+ Bug fixes in several areas (DnD, backup support, thread safety)
+ Updates in Linux kernel modules for compatibility with newer
kernels.
+ New functionality in the Unity support code.
-------------------------------------------------------------------
Tue Mar 23 09:27:23 UTC 2010 - dimstar@opensuse.org
- Disabled vmxnet3 building. this only did not give an error anyhow
as there was a typo, thus having the module already disabled for
quite some time.
- bnc#590329: Re-add lost 50-vmnics.conf file.
-------------------------------------------------------------------
Thu Feb 25 20:42:39 UTC 2010 - dominique.leuenberger@tmf-group.com
- Update to 2010.02.23:
+ Mostly bug fixes, cleanups and code refactoring.
-------------------------------------------------------------------
Wed Feb 10 09:05:51 UTC 2010 - dimstar@opensuse.org
- Update to 2010.01.19:
+ Linux modules have been updated to compile on newer kernels
+ Solaris modules now should compile on OpenSolaris
(tested on 2009.06).
+ Other than those, mostly bug fixes and minor refactoring.
-------------------------------------------------------------------
Wed Jan 6 11:36:07 UTC 2010 - dimstar@opensuse.org
- Update to 2009.12.16:
+ Some improvements to vmtoolsd, base libraries and and the
plugin interface.
+ Some library refactoring: use new lock library, changes to
support compilation of some code on ARM.
+ some fixes in configure.ac to try to correctly support newer
distros.
+ vsock/vmci improvements.
+ bug fixes in the vmxnet / vmxnet3 drivers, and FreeBSD's
vmblock driver.
+ vmxnet3 for Linux is now upstream (as of Linux 2.6.32), and
will be removed from later releases of open-vm-tools.
+ pvscsi will be available upstream starting with Linux 2.6.33
and at that time will be removed from open-vm-tools.
- Disable building of vmxnet3 if kernel is 2.6.32 or newer.
-------------------------------------------------------------------
Mon Nov 23 22:04:39 CET 2009 - dimstar@opensuse.org
- Update to 2009.11.17
+ Lots of refactoring and cleanup in the code, mainly targeting
the definition of a set of public APIs.
+ vmblock-fuse can now replace the vmblock kernel module for DnD
operations.
+ Fix some memory leaks in the guestInfo module.
-------------------------------------------------------------------
Mon Nov 22 19:56:32 CEST 2009 - dimstar@opensuse.org
- Update to 2009.10.15
+ The HGFS module got some performance enhancements.
+ Minor enhancements to vmtoolsd and the logging system.
+ Fix for a few issues reported on the sourceforge bug tracker.
+ Lots of code refactoring, and a few bug fixes.
-------------------------------------------------------------------
Mon Nov 21 13:17:03 CEST 2009 - dimstar@opensuse.org
- Update to 2009.09.18
+ Mostly bug fixes and minor enhancements.
+ The pvscsi code was re-factored in preparation for upstreaming.
The driver has been sent to the LKML for inclusion in the main
Linux tree and might be removed from open-vm-tools once it's
accepted.
-------------------------------------------------------------------
Mon Aug 10 18:37:21 CEST 2009 - dimstar@opensuse.org
- Update to 2009.08.24
+ Remove support for Linux kernels < 2.6.9.
+ The vsock now implements a new notification protocol that has
better performance than the previous.
+ New infrastructure for sending more network config-related
information about the virtual machine to the host.
+ Other bug fixes and minor improvements to the code.
-------------------------------------------------------------------
Sat Aug 8 13:31:49 CEST 2009 - dominique-obs@leuenberger.net
- move libguestlib.so to the devel pakage, which we have since
version 2009.07.22 and remove the rpmlint check for it.
- Remove the autoreconf call. We do not patch any Makefiles anymore.
- Require libvmtools0 from the -devel package.
- Drop the rpmlintrc file. Permissions are correctyl set, devel
package split out.
-------------------------------------------------------------------
Thu Aug 6 16:43:54 CEST 2009 - meissner@suse.de
- Adjust specfile permission handling to match SUSE standard, snippet
moved to permissions package. bnc#474285
-------------------------------------------------------------------
Thu Jul 23 11:35:10 CEST 2009 - dominique-obs@leuenberger.net
- Update to 2009.07.22
* Better support for dkms by means of a script to help create a
dkms tree.
* "make install" now also installs header files for public
libraries, plus a few fixes to incorrect install behavior.
* Lots of improvements to the new DnD code.
* This will be the last release with support for Linux
kernels < 2.6.9.
- fix compatibiliy update script to redirect stderr to /dev/null
(in case the script is not found, do not scare the user)
-------------------------------------------------------------------
Tue Jul 21 12:19:11 CEST 2009 - prusnak@suse.cz
- added || : to modprobe -r and umount calls in vmtoolsd [bnc#523342]
-------------------------------------------------------------------
Fri Jun 19 08:55:36 CEST 2009 - dominique-obs@leuenberger.net
- Updated to 2009.06.18
* Mostly a bug fix release.
* vmhgfs now is able to use vsock as a transport (although
backend support for HGFS over vsock is not yet released in
VMware products).
- Removed patch open-vm-tools-wiperPosix.patch. An alternative
solution was integrated upstream
- Dropped patch open-vm-tools-rpath.patch: merged upstream
-------------------------------------------------------------------
Sat May 23 09:38:07 CEST 2009 - dominique-obs@leuenberger.net
- Updated to 2009.05.22
* Mostly a cleanup and bug fix release.
* Fix a build issue where a symlink attack could cause the
open-vm-tools build to overwrite data (by placing a symlink in
/tmp).
* Second (and last?) batch of changes to clean up duplicate files
in the source tree, including Solaris and FreeBSD kernel
modules andother module-specific shared files.
* Plugins now are properly built using plugins_LTLIBRARIES so
that "-rpath" doesn't need to be used (this would cause an
RPATH entry to be added to the final binary, which some tools
didn't like).
* open-vm-tools now properly detects PAM and enables PAM support
in the code.
- Removed -rpath.patch. Variation of it integrated upstream
- Added patch to consume (-wiperPosix.patch) the result of fgets
- BuildRequires pam-devel
- The pam miss-naming on x86_64 has been fixed upstream
- Add a new -rpath patch. Not everything is solved upstream.
- Delete arch dependent files from /usr/share (not yet needed)
-------------------------------------------------------------------
Sat Apr 25 23:24:33 CEST 2009 - dominique.leuenberger@tmf-group.com
- Upgrade to snapshot 2009.04.23
* Implemented copy & paste support for RTF data and file contents.
* guestd has been removed from open-vm-tools; vmtoolsd is now the only
option for the main tools service.
* Added vmblock and vmmemctl modules for Solaris (under the CDDL).
* vmware-user can now work with both vmblock-fuse and vmblock.
* Linux HGFS now has a stream-based (TCP, vsock) transport, still under
development.
* First batch of changes to cleanup duplicated files in the source tree.
Most duplicated files in the Linux kernel modules have been cleaned up.
- Extensive rewrite of the spec file:
* make use of the now upstream provided make install
* configure --no-root-privileges, to not install mount.vmhgfs as suid
- Add patch open-vm-tools-2009.04.23-rpath.diff: removes the rpath logic
which was introduced for the vmusr and vmsvc plugins. libtools is broken
in this respect. (patch submitted upstream for review)
- Extend preun section with service rename (vmware-guest -> vmtoolsd)
(patch provided by prusnak)
- forcibly activate vmtoolsd service also on update.
- fix up the KMP rename: for this to work we need to provide / obsolete
vmware-kmp and vmware-kmp-<kernelflavor>; otherwise, zypper starts pulling
in other kernels.
-------------------------------------------------------------------
Sat Mar 21 00:03:12 CET 2009 - dominique@leuenberger.net
- rename vmware-KMP to vmware-guest-KMP for easier identification
of the use and to avoid confusion (users installing the KMP on the
vmware hosts) (bnc#481137)
- create subpackage libvmtools0
-------------------------------------------------------------------
Thu Mar 19 13:02:15 CET 2009 - dominique@leuenberger.net
- Upgrade to snapshot 2009.03.18
* Mostly a bug fix release.
* The new DnD V3 protocol is now available in open-vm-tools.
* vmtoolsd is now preferred instead of vmware-guestd
- vmware-guestd will most probably be completely removed in the next release.
-> vmtoolsd is not yet standard enabled in openSUSE packages.
- Obsolete merged patches vmxnet and vmxnet3.patch.
-------------------------------------------------------------------
Mon Mar 9 21:38:17 CET 2009 - mmarek@suse.cz
- renamed modprobe config to /etc/modprobe.d/50-vmnics.conf
(required by new module-init-tools).
-------------------------------------------------------------------
Thu Feb 19 09:40:12 CET 2009 - dominique@leuenberger.net
- Upgrade to snapshot 2009.02.18
* open-vm-tools now depend on glib 2.6.0 as a minimum requirement.
* Added vmxnet module for Solaris, and reworked the HGFS module so it
works without help from vmware-guestd.
* Added implementation of new DnD protocol, which adds a dependency on
a C++ compiler and the gtkmm library to vmware-user.
* The code from the "core services" has been added to open-vm-tools,
including a few tests. vmtoolsd + plugins are now capable of replacing
vmware-guestd (vmware-user still needs to have some features ported
over), but this code is still not to be considered as stable as the
legacy services, so vmware-guestd is still included.
* A few fixes for compatibility with non-GNU toolchains, newer Linux
kernels and old gcc compilers.
- Added patch open-vm-tools-2009.02.18-vmxnet.patch
Allows to compile kernelmodule vmxnet with kernels 2.6.29
And open-vm-tools02009.02.18-vmxnet3.patch
-------------------------------------------------------------------
Mon Feb 16 14:26:13 CET 2009 - dominique@leuenberger.net
- Remove noDisplay=true from vmware-user.desktop, as KDE4
does not autostart the app in this case. Fixes BNC #475627
-------------------------------------------------------------------
Thu Feb 12 10:46:15 CET 2009 - dominique@leuenberger.net
- Added vmware-user-autostart-wrapper to solve bnc #474076
Using simple autostart technique, it can happen that the device
at /proc/fs/vmblock/dev is not ready when vmware-user is started
the autostart-wrapper takes this into account and tries for
several times.
- Fix RPMLint warning with regarding wrong encoding of README file
-------------------------------------------------------------------
Wed Feb 11 20:45:00 CET 2009 - dominique@leuenberger.net
- Revert suid install of vmware-user-suid-wrapper, as rpmlint does
not like it
Instead we package /etc/permissions.d/open-vm-tools which sets
the permission usig SuSEconfig.permissions
- Adjust the vmware-user.desktop file to actually launch
vmware-user-suid-wrapper. Access to the vmblock requires su right.
the suid-wrapper get's the file handle, drops the suid rights
and launches vmware-user (with user privileges)
-------------------------------------------------------------------
Tue Feb 10 11:07:27 CET 2009 - prusnak@suse.cz
- install vmware-user-suid-wrapper with suid bit
-------------------------------------------------------------------
Mon Jan 26 09:34:36 CET 2009 - prusnak@suse.cz
- reviewed changes by Dominique
-------------------------------------------------------------------
Thu Jan 22 09:05:00 CET 2009 - dominique@leuenberger.net
- Update to version 2009.01.21
* First open source release of the HGFS module for Solaris,
under the CDDL. Other modules are expected to be added in
the upcoming releases.
* Added an implementation of vmblock on top of FUSE;
vmware-user still doesn't use this module even if it is
available, though.
* Linux modules now add the "supported" tag used by Novell in
their SLES 10 SP2 release when loading modules.
* Fix compilation of modules in newer Linux kernels which
don't include $(LINUXINCLUDE) in the compiler flags anymore.
- Added Requires: kernel-%1 to preamble, as rpmlint said it would
be policy to require kenrel-$favour from the kmp
- marked config files in /etc as %config (rpmlint)
-------------------------------------------------------------------
Fri Jan 16 14:08:39 CET 2009 - prusnak@suse.cz
- reviewed changes by Dominique
-------------------------------------------------------------------
Thu Dec 25 16:37:00 CEST 2008 - dominique@leuenberger.net
- Update to version 2008.12.23
* Lots of makefile cleanup with the switch to using libtool archives.
* Automatically disable Unity if multimon support is disabled.
* Actually build the pvscsi modules.
* First bits of the "Core Service" project are starting to show up; the
base "vmtools" library was added to the package. It currently is mostly
a collection of the existing libraries already shipped with open-vm-tools,
plus some extra functionality build on top of glib. Currently no other
code in open-vm-tools uses it, so it's optional.
* The HGFS driver was fixed for the Linux 2.6.28 kernel.
-------------------------------------------------------------------
Wed Nov 19 19:04:00 CEST 2008 - dominique@leuenberger.net
- Updated to version 2008.11.19
* The pvscsi Linux kernel module has been added (for kernels >= 2.6.8).
It provides access to VMware's new paravirtualized SCSI device.
* The HGFS driver and user-level code has seen a lot of refactoring to
enable more consistent name escaping. The FreeBSD driver now supports
symlinks.
* The Linux module makefiles now support exporting symbol version files,
allowing modules with dependencies (such as vsock, which depends on vmci)
to correctly build and load on Linux >= 2.6.26 with CONFIG_MODVERSIONS.
* Rudimentary support for dkms.
* Assortment of bug fixes.
-------------------------------------------------------------------
Wed Oct 15 20:41:00 CEST 2008 - dominique@leuenberger.net
- Updated to version 2008.10.10
* The vmxnet3 Linux kernel module has been added. This module provides
better network performance for the guest. The corresponding virtual
hardware is available beginning with Workstation 6.5, though
performance benefits are unlikely to be realized until a later VMware
product release. The module should work for all kernels beginning with
2.6.
* The open-vm-tools no longer depend on libproc-dev. Several people
reported this issue (Sourceforge bug 1960947).
* Added a command line argument to skip privileged operations during
make install (--without-root-privileges).
* Guestd now supports backwards time synchronization, though the
corresponding hypervisor-side changes are not yet part of any shipping
VMware products.
* Assortment of bug fixes.
-------------------------------------------------------------------
Wed Sep 17 10:14:00 CEST 2008 - prusnak@suse.cz
- fixed license problem with region.c by applying patch from upstream
-------------------------------------------------------------------
Mon Sep 8 20:41:00 CEST 2008 - dominique@leuenberger.net
- Removed patch kver.patch, refactored it's function in the
make call, overriding the HEADER_DIR variable inside the
Makefile (Tip sponsored by Adar from VMware Inc.)
-------------------------------------------------------------------
Thu Sep 4 11:15:26 CEST 2008 - prusnak@suse.cz
- reviewed changes by Dominique
-------------------------------------------------------------------
Wed Sep 3 21:16:41 CEST 2008 - dominique@leuenberger.net
- Activated compilation of modules vmci and vsock after fixing the
kver.patch
- dropped obsoleted patch:
* str_c.patch (included in update)
-------------------------------------------------------------------
Wed Sep 3 11:10:15 CEST 2008 - prusnak@suse.cz
- updated to 2008-09-03
* Fixed an issue where open-vm-tools fails to configure when using
--without-icu. Thanks to Timo Gurr for reporting the issue
(Sourceforge bug 2046262).
* Fixed failed build on Ubuntu Intrepid and Fedora 9.
Thanks to Nathan Charles for reporting the issue
(Sourceforge bug 2048423).
* Fixed kernel module build issues on 2.6.27 pre-release kernels.
Thanks to Dominique Leuenberger for reporting the issue
(Sourceforge bug 2071170).
* ...and other bug fixes.
- dropped obsoleted patches:
* 2.6.27-kernel.patch (included in update)
* fix-Werror.patch (included in update)
-------------------------------------------------------------------
Sun Aug 24 19:35:41 CEST 2008 - dominique@leuenberger.net
- Added open-vm-tools-2008-08-08-2.6.27-kernel.patch to compile on
more recent kernels (patch should be merged in next release)
-------------------------------------------------------------------
Fri Aug 22 16:49:41 CEST 2008 - dominique@leuenberger.net
- added packageand(open-vm-tools:xorg-x11) to Supplements
of open-vm-tools-gui sub package
------------------------------------------------------------------
Fri Aug 22 07:30:15 CEST 2008 - dominique@leuenberger.net
- Re-arranged comments for the configure line. Apparently, comments
that appear in a line continuing on the next line, split using '\'
break the flow
-------------------------------------------------------------------
Wed Aug 20 23:02:15 CEST 2008 - dominique@leuenberger.net
- Added --without-kernel-modules to configure, as we take
care of it on ourself using the loop, for the different
kernel variants
-------------------------------------------------------------------
Fri Aug 12 16:17:07 CEST 2008 - prusnak@suse.cz
- updated to 2008.08.08
* Unity for X11 guests has been added. Unity is implemented within
vmware-user and requires no additional setup beyond setting up the
vmware-user application itself. Unity should work with Fusion 1.x
releases as well as with the upcoming Workstation 6.5 release. Our
in-house testing was with Linux guests, and they should mostly work.
There is very little standing in the way of FreeBSD/Solaris support,
though we've never built or tested Unity for those platforms.
* The VMCI Linux kernel module has been added. This module provides
high-speed datagram and socket interfaces for guest<->guest and
host<->guest communication. It should work for all kernels beginning
with 2.4, and for VMware products beginning with Workstation 6.5.
* The VMCI sockets Linux kernel module has been added. It provides
both datagram and stream socket interfaces to userlevel for use with
VMCI. As with VMCI, it should work for kernels 2.4 or later, and for
VMware products beginning with Workstation 6.5.
* The command-line Toolbox has been added. This application provides
the same functionality as the GTK Toolbox, but with a scriptable
command-line interface. It also has some statistic retrieval commands
that aren't found in the GTK Toolbox.
* Fixed compilation of vmsync and vmmemctl Linux kernel modules on
2.6.26. Thanks to Pavol Rusnak for the report (Sourceforge bug 2032683).
* Fixed an issue with guestd's nicInfo updating mechanism. Thanks to
Jason Lunz for the patch (not tracked on Sourceforge).
* Fixed handling of $(DESTDIR) in automake. Thanks to Mike Auty for
the patch (Sourceforge bug 2018802).
* Fixed build of vmware-user using gtk 1.2. Thanks to Stephen Duncan
for the report (Sourceforge bug 2014338).
* Fixed compilation of lib/guestApp when using --without-x. Thanks to
Martin Preishuber for the report (Sourceforge bug 2013568).
* As usual, other bug fixes.
------------------------------------------------------------------
Mon Jul 21 17:02:15 CEST 2008 - prusnak@suse.cz
- updated to 2008.07.01:
* fixed a backwards time synchronization issue
* fixed an issue where open-vm-tools configured via --without-x didn't
compile (not tracked on Sourceforge)
* one can now pass --without-kernel-modules, --with-kernel-release, and
--with-linuxdir to the ./configure script
* other bug fixes.
- branched open-vm-tools-gui subpackage with tools that need X
-------------------------------------------------------------------
Thu Jun 12 15:58:33 CEST 2008 - prusnak@suse.cz
- open-vm-tools now requires vmware-kmp [bnc#397972]
- exclude AMD PCnet32 LANCE pci.id from Supplements list [bnc#397554]
-------------------------------------------------------------------
Mon Jun 9 22:49:17 EEST 2008 - dominique-obs@leuenberger.net
- Updated to version 2008.06.03
adopted spec file to new build structure layout (the binaries
are now named correctly just after build and do not need to
be renamed anymore)
- Replaced -werror patch with -fix-Werror-patch (submitted to
VMware for inclusion)
-------------------------------------------------------------------
Mon Jun 2 11:11:17 CEST 2008 - prusnak@suse.cz
- updated vmware init-script [bnc#394431]:
* check whether /tmp/VMwareDnD exists and create it if necessary
* use modules vmblock, vmmemctl, vmsync for better performance
* mount the virtual system for Drag'n'Drop
-------------------------------------------------------------------
Tue May 27 21:00:00 EST 2008 - dominique-rpm@leuenberger.net
- Excluded the building of KMPs for XEN, probably nobody installs
a vmware host in xen.
-------------------------------------------------------------------
Thu May 22 10:20:14 CEST 2008 - prusnak@suse.cz
- added Recommends: open-vm-tools to KMP preamble [bnc#391434]
- added -y to %fillup_and_insserv macro, so the service starts
automatically [bnc#391434]
-------------------------------------------------------------------
Tue May 20 17:00:00 EET 2008 - dominique-rpm@leuenberger.net
- replaced %build section with the one from openSUSE internal
stable build, for building properly against all buildtargets
-------------------------------------------------------------------
Tue May 20 16:43:00 EET 2008 - dominique-rpm@leuenberger.net
- Added preamble for %suse_kernel_module_package in order to have
a Recommends: open-vm-tools on the kmp.
The KMP is installed by Supplements: the hardware ID, and the KMP
then pulls in the open-vm-tools package by Recommends (if available)
-------------------------------------------------------------------
Tue May 7 07:26:00 EET 2008 - dominique-rpm@leuenberger.net
- Updated to 2008.05.15:
* Removed "blessed app" code for starting vmware-user
* lib/file/filePosix.c: Use new Posix_RealPath implementation.
* Cleanup UTF-8 handling.
-------------------------------------------------------------------
Tue May 7 07:26:00 EET 2008 - dominique-rpm@leuenberger.net
- Added patch open-vm-tools-2008.05.02-str.c that should solve
compilation with FORTIFY_SOURCE enabled
-------------------------------------------------------------------
Tue May 6 10:35:42 CEST 2008 - prusnak@suse.cz
- updated to 2008.05.02:
* continued Unicode support
* open-vm-tools now depends on libicu for codeset conversions
* a few more bug fixes
-------------------------------------------------------------------
Mon Apr 28 15:34:35 CEST 2008 - ro@suse.de
- tweak build section long enough to really build modules
matching to kernel flavour (and not just build all for -default)
(bnc#384192)
-------------------------------------------------------------------
Thu Apr 24 00:59:38 CEST 2008 - ro@suse.de
- added vmware-KMP package and description tags to specfile
- added preable file for kmp packages
-------------------------------------------------------------------
Wed Apr 23 15:38:48 CEST 2008 - prusnak@suse.cz
- fixed %verifyscript
-------------------------------------------------------------------
Tue Apr 22 11:30:37 CEST 2008 - prusnak@suse.cz
- updated to 2008.04.14
* continued Unicode support
* more bug fixes, including a security fix in guestd
- added permissions scripts to %post section
-------------------------------------------------------------------
Tue Mar 25 08:25:00 EET 2008 - dominique-rpm@leuenberger.net
- updated to 2008.03.19
-------------------------------------------------------------------
Thu Mar 20 16:13:09 CET 2008 - prusnak@suse.cz
- add Supplements to automatically install in VMware
-------------------------------------------------------------------
Tue Mar 18 13:36:33 CET 2008 - prusnak@suse.cz
- first autobuild checkin
- turn off -Werror (werror.patch)
- reworked spec file
-------------------------------------------------------------------
Thu Mar 14 09:15:00 EET 2008 - dominique-rpm@leuenberger.net
- updated to 2008.03.11
(developer snapshot to support all modules on 2.6.25 kernels)
-------------------------------------------------------------------
Sun Mar 11 13:44:00 EET 2008 - dominique-rpm@leuenberger.net
- updated to 2008.03.10
(developer snapshot to support kernel version 2.6.25-rc1)
-------------------------------------------------------------------
Sun Mar 9 19:17:00 EET 2008 - dominique-rpm@leuenberger.net
- refactored open-vm-tools-kver.patch to detect the kernel source
correctly
-------------------------------------------------------------------
Sat Mar 8 14:15:26 EET 2008 - dominique-rpm@leuenberger.net
- create link from /sbin/rcvmware to /etc/init.d/vmware-guest
- autostart the service after installation
-------------------------------------------------------------------
Sat Mar 08 03:32:26 EET 2008 - dominique-rpm@leuenberger.net
- initial build of open-vm-tools
- builds kmps and open-vm-tools

512
open-vm-tools-KMP.spec Normal file
View File

@ -0,0 +1,512 @@
#
# spec file for package open-vm-tools-KMP
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define with_systemd 1
%define KMP 1
# The vmhgfs modules is used with all versions
%define vmhgfs vmhgfs
# disable systemd if before 13.1
%if 0%{suse_version} < 1310
%define with_systemd 0
%endif
# exclude AMD PCnet32 LANCE pci.id from Supplements list [bnc#397554]
%define __find_supplements sh -c '/usr/lib/rpm/find-supplements %{name} | grep -v pci:v00001022d00002000'
%if 0%{?suse_version} <= 1230
# Modules to be built up to openSUSE 12.3, possibly not building on newer versions.
%define vm_modules1230 vmci vsock
%endif
%if 0%{?suse_version} <= 1220
# Modules to be built up to openSUSE 12.1, possibly not building on newer versions.
%define vm_modules1220 vmsync
%endif
%if 0%{?suse_version} <= 1210
# Modules to be built up to openSUSE 12.1, possibly not building on newer versions.
%define vm_modules1210 vmxnet
%endif
# Modules that have to be build up to version 12.3 (Last checked on 2012-02-05 with kernel 3.2.0)
%define vm_modules %{?vm_modules1230} %{?vmhgfs} %{?vm_modules1210} %{?vm_modules1220}
# X modules are lower prio upstream and once in a while fail. Offer an easy way to enable/disable them.
%define with_X 1
Name: open-vm-tools-KMP
%define tarname open-vm-tools
Version: 9.4.6
Release: 0
%define svn_rev 1770165
Summary: Open Virtual Machine Tools
License: BSD-3-Clause and GPL-2.0 and LGPL-2.1
Group: System/Emulators/PC
Url: http://open-vm-tools.sourceforge.net/
Source: http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.4.x/%{tarname}-%{version}-%{svn_rev}.tar.gz
Source1: vmtoolsd
Source2: vmtoolsd.service
Source3: vmware-user-autostart.desktop
Source5: vmware-user-autostart-wrapper
Source6: open-vm-tools-modprobe.conf
Source7: tools.conf
Source98: preamble
Patch1: 0001-Remove-unused-DEPRECATED-macro.patch
Patch2: 0002-Conditionally-define-g_info-macro.patch
Patch3: 0003-Add-kuid_t-kgid_t-compatibility-layer.patch
Patch4: 0004-Use-new-link-helpers.patch
Patch5: 0005-Update-hgfs-file-operations-for-newer-kernels.patch
Patch6: 0006-Fix-vmxnet-module-on-kernels-3.16.patch
Patch7: 0007-Fix-vmhgfs-module-on-kernels-3.16.patch
Patch8: 0008-Fix-segfault-in-vmhgfs.patch
Patch10: open-vm-tools-linux-3.17.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
# don't use pkgconfig(gtk+-2.0) so we can build on SLE
BuildRequires: gtk2-devel
BuildRequires: gtkmm2-devel
# Only require kernel packages if kernel modules are being built
%if "%{?vm_modules}" != " " && %{KMP}
BuildRequires: kernel-source
BuildRequires: kernel-syms
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: libdnet-devel
BuildRequires: libicu-devel
BuildRequires: libtool
BuildRequires: module-init-tools
BuildRequires: pam-devel
BuildRequires: pcre-devel
BuildRequires: update-desktop-files
BuildRequires: xorg-x11-devel
BuildRequires: pkgconfig(fuse)
# libprocps is required with 12.3 and above
%if 0%{?suse_version} >= 1230
BuildRequires: procps-devel
%endif
%if "%{?vmhgfs}"
# Fuse is optional and enables vmblock-fuse
BuildRequires: fuse-devel
%endif
Requires: net-tools
Requires: tar
%if 0%{?suse_version} >= 1310
Requires: which
%endif
%if 0%{?suse_version} < 1310
Requires: vmware-guest-kmp
%endif
Supplements: modalias(pci:v000015ADd*sv*sd*bc*sc*i*)
Requires(pre): %fillup_prereq
Requires(pre): %insserv_prereq
ExclusiveArch: %ix86 x86_64
%if %{KMP}
%suse_kernel_module_package -n vmware-guest -p %{SOURCE98} xen um
%endif
%if %{with_systemd}
%systemd_requires
%endif
%description
Open Virtual Machine Tools (open-vm-tools) are the open source
implementation of VMware Tools. They are a set of guest operating
system virtualization components that enhance performance and user
experience of virtual machines. As virtualization technology rapidly
becomes mainstream, each virtualization solution provider implements
their own set of tools and utilities to supplement the guest virtual
machine. However, most of the implementations are proprietary and are
tied to a specific virtualization platform.
With the Open Virtual Machine Tools project, we are hoping to solve
this and other related problems. The tools are currently composed of
kernel modules for Linux and user-space programs for all VMware
supported Unix-like guest operating systems. They provide several
useful functions like:
* File transfer between a host and guest
* Improved memory management and network performance under
virtualization
* General mechanisms and protocols for communication between host and
guests and from guest to guest
%package -n vmware-guest-KMP
Summary: Open Virtual Machine Tools - for VM GUESTS
Group: System/Emulators/PC
%description -n vmware-guest-KMP
Open Virtual Machine Tools (open-vm-tools) are the open source
implementation of VMware Tools. They are a set of guest operating
system virtualization components that enhance performance and user
experience of virtual machines. As virtualization technology rapidly
becomes mainstream, each virtualization solution provider implements
their own set of tools and utilities to supplement the guest virtual
machine. However, most of the implementations are proprietary and are
tied to a specific virtualization platform.
With the Open Virtual Machine Tools project, we are hoping to solve
this and other related problems. The tools are currently composed of
kernel modules for Linux and user-space programs for all VMware
supported Unix-like guest operating systems. They provide several
useful functions like:
* File transfer between a host and guest
* Improved memory management and network performance under
virtualization
* General mechanisms and protocols for communication between host and
guests and from guest to guest
%if %{with_X}
%package desktop
Summary: User experience components for Open Virtual Machine Tools
Group: System/Emulators/PC
Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-gui < %{version}
Provides: %{name}-gui = %{version}
Supplements: packageand(open-vm-tools:xorg-x11-server)
Requires(pre): permissions
%description desktop
This package contains only the user-space programs and libraries of
%{name} that are essential for improved user experience of VMware virtual
machines.
%endif
%package -n libvmtools0
Summary: Open Virtual Machine Tools - shared library
Group: System/Libraries
%description -n libvmtools0
This is a shared library used by several Open VM Tools components,
such as vmware-toolbox-cmd and vmtoolsd (and its plugins).
%package -n libvmtools-devel
Summary: Open Virtual Machine Tools - Development headers
Group: Development
Requires: libvmtools0 = %{version}
%description -n libvmtools-devel
Those are the development headers for libvmtools. They are needed
if you intend to create own plugins for vmtoolsd.
%prep
%setup -q -n %{tarname}-%{version}-%{svn_rev}
chmod -x AUTHORS COPYING ChangeLog NEWS README
# fix for an rpmlint warning regarding wrong line feeds
sed -i -e "s/\r//" README
%patch1 -p2
%patch2 -p2
%patch3 -p2
%patch4 -p2
%patch5 -p2
%patch6 -p2
%patch7 -p2
%patch8 -p2
%patch10 -p1
%build
if ! %{KMP}
# disable warning unused-but-set-variable which will raise error because of -Werror
# disable warning deprecated-declarations which will raise error because of -Werror
# disable warning sizeof-pointer-memaccess which will raise error because of -Werror
# (this is because of 'g_static_mutex_init' usage which is now deprecated)
%if 0%{?suse_version} > 1110
export CFLAGS="%{optflags} -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-sizeof-pointer-memaccess -Wno-cpp -fPIE"
export CXXFLAGS="%{optflags} -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-sizeof-pointer-memaccess -Wno-cpp -fPIE"
%else
export CFLAGS="%{optflags} -Wno-deprecated-declarations -fPIE"
export CXXFLAGS="%{optflags} -Wno-deprecated-declarations -fPIE"
%endif
export LDFLAGS="-pie"
# Required for version 9.4.0
export CUSTOM_PROCPS_NAME=procps
autoreconf -fi
echo 'HTML_TIMESTAMP=NO' >> docs/api/doxygen.conf
%configure \
--without-kernel-modules \
--without-root-privileges \
%if 0%{?suse_version} < 1230
--without-procps \
%endif
%if %{with_X}
--with-x \
%else
--without-x \
%endif
--disable-dependency-tracking \
--disable-static
make
%endif
# If a KMP is not being built, flavors_to_build will be undefined and no modules should be built
%if "%{?flavors_to_build}"
TOPDIR=$PWD
cd ..
mkdir -p obj
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r %{tarname}-%{version}-%{svn_rev} obj/$flavor
pushd obj/$flavor
for module in %{vm_modules}; do
pushd modules/linux/$module
if [ -f ../vmci/Module.symvers ]; then
cp ../vmci/Module.symvers .
fi
make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules M=$PWD VM_CCVER=$(gcc -dumpversion) HEADER_DIR="/usr/src/linux-obj/$(uname -i)/default/include" SRCROOT=$PWD OVT_SOURCE_DIR=$TOPDIR
popd
done
popd
done
%endif
%install
# If a KMP is not being built, flavors_to_build will be undefined and no modules can be installed
%if "%{?flavors_to_build}"
# let's use the kernel's own modules_install routine
export INSTALL_MOD_PATH=%{buildroot}
export INSTALL_MOD_DIR=updates
pushd ..
for flavor in %{flavors_to_build}; do
pushd obj/$flavor
for module in %{vm_modules}; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/modules/linux/$module
done
popd
done
popd
# fix some rights on the kernel modules, to have a complete -debuginfo package; do not fail if there are no modules left.
chmod u+x %{buildroot}/lib/modules/*/updates/* || :
%endif
%if ! %{KMP}
%if 0%{?suse_version} > 1110
%make_install
%else
%makeinstall
%endif
# Remove exec bit from config files
chmod a-x %{buildroot}%{_sysconfdir}/pam.d/*
# Remove unnecessary files from packaging
find %{buildroot}%{_libdir} -name '*.la' -delete
rm -fr %{buildroot}%{_defaultdocdir}
rm -fr %{buildroot}/usr/share/doc/open-vm-tools/api
rm -f docs/api/build/html/FreeSans.ttf
# Move vm-support to /usr/bin (bnc#874931)
mv %{buildroot}%{_sysconfdir}/vmware-tools/vm-support %{buildroot}%{_bindir}
# install systemd/sysvinit init scripts and symlinks
%if %{with_systemd}
install -p -m 644 -D %{SOURCE2} %{buildroot}%{_unitdir}/vmtoolsd.service
ln -sf service %{buildroot}%{_sbindir}/rcvmtoolsd
%else
install -D -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/vmtoolsd
ln -sf ../../etc/init.d/vmtoolsd %{buildroot}%{_sbindir}/rcvmtoolsd
%endif
%if %{with_X}
# vmware-user is started by vmware-user-suid-wrapper by xdg-autostart
# unfortunately, vmware-user-suid-wrapper does not wait for it's block device
# to appear. For this reason we have now a vmware-user-autostart-wrapper
# which checks for /proc/fs/vmblock/dev to appear and then starts vmware-user-suid-wrapper
install -D -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/vmware-user-autostart-wrapper
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/xdg/autostart/vmware-user-autostart.desktop
# Install the default tools.conf
install -D -m 0644 %{S:7} %{buildroot}%{_sysconfdir}/vmware-tools/tools.conf
# Remove the 'disable-perl-mon=1' setting if procps is available
%if 0%{?suse_version} > 1220
sed -i '/openSUSE/,+2d' %{buildroot}%{_sysconfdir}/vmware-tools/tools.conf
%endif
# We have our own 'safe' autostart wrapper, which checks for modules to start in autologin mode...
# Thus we drop the 'original' autostartup
rm %{buildroot}%{_sysconfdir}/xdg/autostart/vmware-user.desktop
# handle the .destop files for translations
%suse_update_desktop_file vmware-user-autostart
%endif
# modprobe configuration for vmnics - only include if before SLE-12
%if 0%{?suse_version} < 1315
install -D -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/modprobe.d/50-vmnics.conf
%endif
%if "%{?vmhgfs}"
# fix a link pointing to the buildroot for mount.vmhgfs
( cd %{buildroot}/sbin; rm mount.vmhgfs; ln -s ..%{_sbindir}/mount.vmhgfs )
%else
find %{buildroot} -name '*vmhgfs*' -delete -print
%endif
%endif
%pre
%if %{with_systemd}
%service_add_pre vmtoolsd.service
%endif
%post
/sbin/ldconfig
%if %{with_systemd}
%service_add_post vmtoolsd.service
%else
%{fillup_and_insserv -Y vmtoolsd}
%endif
%if %{with_X}
%verifyscript desktop
%verify_permissions -e /usr/bin/vmware-user-suid-wrapper
%post desktop
%if 0%{?suse_version} <= 1130
%run_permissions
%else
%set_permissions /usr/bin/vmware-user-suid-wrapper
%endif
%endif
%preun
%if %{with_systemd}
%service_del_preun vmtoolsd.service
%else
# stop service with the old name (if exists) on update (something like %%stop_on_update)
test -n "$FIRST_ARG" || FIRST_ARG=$1
if test "$FIRST_ARG" -ge 1 ; then
test -f /etc/sysconfig/services && . /etc/sysconfig/services
if test "$YAST_IS_RUNNING" != "instsys" ; then
/etc/init.d/vmware-guestd stop > /dev/null 2>&1 || :
fi
fi
%stop_on_removal vmtoolsd
%endif
# Tell VMware that open-vm-tools is being uninstalled
if [ "$1" = "0" -a \
-e %{_bindir}/vmware-checkvm -a \
-e %{_bindir}/vmware-rpctool ] && \
%{_bindir}/vmware-checkvm > /dev/null 2>&1; then
%{_bindir}/vmware-rpctool 'tools.set.version 0' > /dev/null 2>&1 || true
fi
%postun
%if %{with_systemd}
%service_del_postun vmtoolsd.service
%else
%restart_on_update vmtoolsd
%insserv_cleanup
%endif
/sbin/ldconfig
%post -n libvmtools0 -p /sbin/ldconfig
%postun -n libvmtools0 -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%if ! %{KMP}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/vmtoolsd
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_libdir}/%{name}/plugins/common
%dir %{_libdir}/%{name}/plugins/vmsvc
%{_libdir}/%{name}/plugins/vmsvc/libguestInfo.so
%{_libdir}/%{name}/plugins/vmsvc/libpowerOps.so
%{_libdir}/%{name}/plugins/vmsvc/libtimeSync.so
%{_libdir}/%{name}/plugins/vmsvc/libvmbackup.so
%{_libdir}/%{name}/plugins/common/libhgfsServer.so
%{_libdir}/%{name}/plugins/common/libvix.so
%{_bindir}/vmware-checkvm
%{_bindir}/vmware-hgfsclient
%{_bindir}/vmware-rpctool
%{_bindir}/vmware-toolbox-cmd
%{_bindir}/vmware-xferlogs
%{_bindir}/vm-support
%if "%{?vmhgfs}"
%{_sbindir}/mount.vmhgfs
/sbin/mount.vmhgfs
%endif
%config(noreplace) %{_sysconfdir}/pam.d/vmtoolsd
%dir %{_sysconfdir}/vmware-tools
%dir %{_sysconfdir}/vmware-tools/scripts
%dir %{_sysconfdir}/vmware-tools/scripts/vmware
%{_sysconfdir}/vmware-tools/poweroff-vm-default
%{_sysconfdir}/vmware-tools/poweron-vm-default
%{_sysconfdir}/vmware-tools/resume-vm-default
%{_sysconfdir}/vmware-tools/scripts/vmware/network
%{_sysconfdir}/vmware-tools/statechange.subr
%{_sysconfdir}/vmware-tools/suspend-vm-default
%config(noreplace) %{_sysconfdir}/vmware-tools/tools.conf
%if 0%{?suse_version} < 1315
%config %{_sysconfdir}/modprobe.d/50-vmnics.conf
%endif
%{_datadir}/%{name}/
%if %{with_systemd}
%{_unitdir}/vmtoolsd.service
%else
%{_sysconfdir}/init.d/vmtoolsd
%endif
%{_sbindir}/rcvmtoolsd
%exclude %{_libdir}/*.so
%if %{with_X}
%files desktop
%defattr(-, root, root)
%{_sysconfdir}/xdg/autostart/vmware-user-autostart.desktop
%verify(not mode) %attr(0755, root, root) %{_bindir}/vmware-user-suid-wrapper
%{_libdir}/%{name}/plugins/vmusr/
%{_bindir}/vmware-user-autostart-wrapper
%{_bindir}/vmware-vmblock-fuse
%endif
%files -n libvmtools0
%defattr(-, root, root)
%{_libdir}/libvmtools.so.*
%{_libdir}/libguestlib.so.*
%{_libdir}/libhgfs.so.*
%files -n libvmtools-devel
%defattr(-,root,root)
%doc docs/api/build/*
%{_includedir}/vmGuestLib
%{_libdir}/*.so
%{_libdir}/pkgconfig/vmguestlib.pc
%endif
%changelog

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jan 5 08:42:04 UTC 2015 - dimstar@opensuse.org
- Split building of KMPs into own spec file: open-vm-tools-KMP:
the resulting KMP packages keep their existing name, as this is
handled through the kernel_package macros. This split allows to
work around boo#905420.
-------------------------------------------------------------------
Sat Nov 29 19:40:00 UTC 2014 - Led <ledest@gmail.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package open-vm-tools
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
#
# All modifications and additions to the file contributed by third parties
@ -18,6 +18,7 @@
%define with_systemd 1
%define KMP 0
# The vmhgfs modules is used with all versions
%define vmhgfs vmhgfs
@ -52,6 +53,7 @@
%define with_X 1
Name: open-vm-tools
%define tarname open-vm-tools
Version: 9.4.6
Release: 0
%define svn_rev 1770165
@ -59,7 +61,7 @@ Summary: Open Virtual Machine Tools
License: BSD-3-Clause and GPL-2.0 and LGPL-2.1
Group: System/Emulators/PC
Url: http://open-vm-tools.sourceforge.net/
Source: http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.4.x/%{name}-%{version}-%{svn_rev}.tar.gz
Source: http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.4.x/%{tarname}-%{version}-%{svn_rev}.tar.gz
Source1: vmtoolsd
Source2: vmtoolsd.service
Source3: vmware-user-autostart.desktop
@ -82,7 +84,7 @@ BuildRequires: gcc-c++
BuildRequires: gtk2-devel
BuildRequires: gtkmm2-devel
# Only require kernel packages if kernel modules are being built
%if "%{?vm_modules}" != " "
%if "%{?vm_modules}" != " " && %{KMP}
BuildRequires: kernel-source
BuildRequires: kernel-syms
%endif
@ -119,7 +121,9 @@ Requires(pre): %fillup_prereq
Requires(pre): %insserv_prereq
ExclusiveArch: %ix86 x86_64
%if %{KMP}
%suse_kernel_module_package -n vmware-guest -p %{SOURCE98} xen um
%endif
%if %{with_systemd}
%systemd_requires
@ -212,7 +216,7 @@ Those are the development headers for libvmtools. They are needed
if you intend to create own plugins for vmtoolsd.
%prep
%setup -q -n %{name}-%{version}-%{svn_rev}
%setup -q -n %{tarname}-%{version}-%{svn_rev}
chmod -x AUTHORS COPYING ChangeLog NEWS README
# fix for an rpmlint warning regarding wrong line feeds
sed -i -e "s/\r//" README
@ -227,6 +231,7 @@ sed -i -e "s/\r//" README
%patch10 -p1
%build
if ! %{KMP}
# disable warning unused-but-set-variable which will raise error because of -Werror
# disable warning deprecated-declarations which will raise error because of -Werror
# disable warning sizeof-pointer-memaccess which will raise error because of -Werror
@ -258,6 +263,8 @@ echo 'HTML_TIMESTAMP=NO' >> docs/api/doxygen.conf
--disable-static
make
%endif
# If a KMP is not being built, flavors_to_build will be undefined and no modules should be built
%if "%{?flavors_to_build}"
TOPDIR=$PWD
@ -265,7 +272,7 @@ cd ..
mkdir -p obj
for flavor in %{flavors_to_build}; do
rm -rf obj/$flavor
cp -r %{name}-%{version}-%{svn_rev} obj/$flavor
cp -r %{tarname}-%{version}-%{svn_rev} obj/$flavor
pushd obj/$flavor
for module in %{vm_modules}; do
pushd modules/linux/$module
@ -299,6 +306,7 @@ popd
chmod u+x %{buildroot}/lib/modules/*/updates/* || :
%endif
%if ! %{KMP}
%if 0%{?suse_version} > 1110
%make_install
%else
@ -361,6 +369,8 @@ install -D -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/modprobe.d/50-vmnics.co
find %{buildroot} -name '*vmhgfs*' -delete -print
%endif
%endif
%pre
%if %{with_systemd}
%service_add_pre vmtoolsd.service
@ -426,6 +436,7 @@ fi
%clean
rm -rf %{buildroot}
%if ! %{KMP}
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
@ -496,5 +507,6 @@ rm -rf %{buildroot}
%{_includedir}/vmGuestLib
%{_libdir}/*.so
%{_libdir}/pkgconfig/vmguestlib.pc
%endif
%changelog

9
pre_checkin.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
NAME=open-vm-tools
NAMEKMP=open-vm-tools-KMP
sed "s:%define.*KMP.*0:%define KMP 1:" ${NAME}.spec > ${NAMEKMP}.spec
sed -i "s/\(Name:.*\)${NAME}/\1${NAMEKMP}/" ${NAMEKMP}.spec
cp ${NAME}.changes ${NAMEKMP}.changes