diff options
author | Vadim Kuznetsov <vadimk@gentoo.org> | 2012-12-09 14:11:50 +0000 |
---|---|---|
committer | Vadim Kuznetsov <vadimk@gentoo.org> | 2012-12-09 14:11:50 +0000 |
commit | 222f727d8b88daad5a8148cbbefe96c2670ce4df (patch) | |
tree | 605b3b9aad4d65ca981314b5ed718c139d59b6b9 /app-emulation | |
parent | Remove old (diff) | |
download | gentoo-2-222f727d8b88daad5a8148cbbefe96c2670ce4df.tar.gz gentoo-2-222f727d8b88daad5a8148cbbefe96c2670ce4df.tar.bz2 gentoo-2-222f727d8b88daad5a8148cbbefe96c2670ce4df.zip |
version bump. bug 438110
(Portage version: 2.1.11.34/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/open-vm-tools-kmod/ChangeLog | 12 | ||||
-rw-r--r-- | app-emulation/open-vm-tools-kmod/files/frozen.patch | 28 | ||||
-rw-r--r-- | app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.10.14.874563.ebuild (renamed from app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.03.13.651368-r1.ebuild) | 5 | ||||
-rw-r--r-- | app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-9.2.2.893683.ebuild | 77 |
4 files changed, 118 insertions, 4 deletions
diff --git a/app-emulation/open-vm-tools-kmod/ChangeLog b/app-emulation/open-vm-tools-kmod/ChangeLog index 9209b744ed3c..9a928f6a03fc 100644 --- a/app-emulation/open-vm-tools-kmod/ChangeLog +++ b/app-emulation/open-vm-tools-kmod/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-emulation/open-vm-tools-kmod # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/ChangeLog,v 1.28 2012/06/02 14:45:23 vadimk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/ChangeLog,v 1.29 2012/12/09 14:11:50 vadimk Exp $ + +*open-vm-tools-kmod-9.2.2.893683 (09 Dec 2012) +*open-vm-tools-kmod-2012.10.14.874563 (09 Dec 2012) + + 09 Dec 2012; Vadim Kuznetsov vadimk@gentoo.org +files/frozen.patch, + +open-vm-tools-kmod-2012.10.14.874563.ebuild, + +open-vm-tools-kmod-9.2.2.893683.ebuild, + -open-vm-tools-kmod-2012.03.13.651368-r1.ebuild: + version bump. bug 438110 *open-vm-tools-kmod-2012.05.21.724730 (02 Jun 2012) @@ -177,4 +186,3 @@ 29 Oct 2009; Vadim Kuznetsov vadimk@gentoo.org +open-vm-tools-kmod-0.0.20091015.201664.ebuild, +metadata.xml: open-vm-tools kernel modules. - diff --git a/app-emulation/open-vm-tools-kmod/files/frozen.patch b/app-emulation/open-vm-tools-kmod/files/frozen.patch new file mode 100644 index 000000000000..8b3fd7f37910 --- /dev/null +++ b/app-emulation/open-vm-tools-kmod/files/frozen.patch @@ -0,0 +1,28 @@ +diff -urpN a/modules/linux/vmsync/sync.c b/modules/linux/vmsync/sync.c +--- a/modules/linux/vmsync/sync.c 2012-08-01 19:02:59.000000000 -0700 ++++ b/modules/linux/vmsync/sync.c 2012-10-14 07:38:18.000000000 -0700 +@@ -162,7 +162,11 @@ VmSyncThawDevices(void *_state) // IN + cancel_delayed_work(&state->thawTask); + list_for_each_safe(cur, tmp, &state->devices) { + dev = list_entry(cur, VmSyncBlockDevice, list); ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) ++ if (dev->sb != NULL && dev->sb->s_writers.frozen != SB_UNFROZEN) { ++#else + if (dev->sb != NULL && dev->sb->s_frozen != SB_UNFROZEN) { ++#endif + thaw_bdev(dev->bdev, dev->sb); + atomic_dec(&gFreezeCount); + } +@@ -237,7 +241,11 @@ VmSyncAddPath(const VmSyncState *state, + * the superblock is already frozen. + */ + if (inode->i_sb->s_bdev == NULL || ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0) ++ inode->i_sb->s_writers.frozen != SB_UNFROZEN) { ++#else + inode->i_sb->s_frozen != SB_UNFROZEN) { ++#endif + result = (inode->i_sb->s_bdev == NULL) ? -EINVAL : -EALREADY; + compat_path_release(&nd); + goto exit; + diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.03.13.651368-r1.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.10.14.874563.ebuild index 11922cc422b3..a9351b7e7c23 100644 --- a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.03.13.651368-r1.ebuild +++ b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.10.14.874563.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.03.13.651368-r1.ebuild,v 1.1 2012/03/26 15:54:37 vadimk Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-2012.10.14.874563.ebuild,v 1.1 2012/12/09 14:11:50 vadimk Exp $ EAPI="4" -inherit linux-info linux-mod versionator +inherit eutils linux-info linux-mod versionator MY_PN="${PN/-kmod}" MY_PV="$(replace_version_separator 3 '-')" @@ -58,6 +58,7 @@ pkg_setup() { src_prepare() { sed -i.bak -e '/\smake\s/s/make/$(MAKE)/g' modules/linux/{vmblock,vmci,vmhgfs,vmsync,vmxnet,vsock}/Makefile\ || die "Sed failed." + epatch "${FILESDIR}/frozen.patch" } src_configure() { diff --git a/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-9.2.2.893683.ebuild b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-9.2.2.893683.ebuild new file mode 100644 index 000000000000..111fdd9445e0 --- /dev/null +++ b/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-9.2.2.893683.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools-kmod/open-vm-tools-kmod-9.2.2.893683.ebuild,v 1.1 2012/12/09 14:11:50 vadimk Exp $ + +EAPI="4" + +inherit eutils linux-info linux-mod versionator + +MY_PN="${PN/-kmod}" +MY_PV="$(replace_version_separator 3 '-')" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Opensourced tools for VMware guests" +HOMEPAGE="http://open-vm-tools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="" + +DEPEND="${RDEPEND} + virtual/linux-sources + " +CONFIG_CHECK=" + ~DRM_VMWGFX + ~VMWARE_BALLOON + ~VMWARE_PVSCSI + ~VMXNET3 + " + +S="${WORKDIR}/${MY_P}" + +pkg_setup() { + linux-mod_pkg_setup + + VMWARE_MOD_DIR="modules/linux" + VMWARE_MODULE_LIST="vmblock vmci vmhgfs vmsync vmxnet vsock" + + MODULE_NAMES="" + BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR} OVT_SOURCE_DIR=${S}" + + for mod in ${VMWARE_MODULE_LIST}; + do + if [ "${mod}" == "vmxnet" ]; + then + MODTARGET="net" + else + MODTARGET="openvmtools" + fi + MODULE_NAMES="${MODULE_NAMES} ${mod}(${MODTARGET}:${S}/${VMWARE_MOD_DIR}/${mod})" + done +} + +src_prepare() { + sed -i.bak -e '/\smake\s/s/make/$(MAKE)/g' modules/linux/{vmblock,vmci,vmhgfs,vmsync,vmxnet,vsock}/Makefile\ + || die "Sed failed." + #kernel_is ge 3 2 0 && epatch "${FILESDIR}/fragsize.patch" + epatch "${FILESDIR}/frozen.patch" +} + +src_configure() { + : # do nothing at all +} + +src_install() { + linux-mod_src_install + + local udevrules="${T}/60-vmware.rules" + cat > "${udevrules}" <<-EOF + KERNEL=="vsock", GROUP="vmware", MODE=660 + EOF + insinto /lib/udev/rules.d/ + doins "${udevrules}" +} |