From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3CD781395E2 for ; Fri, 25 Nov 2016 23:29:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 780F9E0B73; Fri, 25 Nov 2016 23:29:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5B224E0B73 for ; Fri, 25 Nov 2016 23:29:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 154CA340C9F for ; Fri, 25 Nov 2016 23:29:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4BCC1487 for ; Fri, 25 Nov 2016 23:29:14 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1480116553.fb89d0263a9b10f4467d892d785e3b55b527c6d5.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/open-vm-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild X-VCS-Directories: app-emulation/open-vm-tools/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: fb89d0263a9b10f4467d892d785e3b55b527c6d5 X-VCS-Branch: master Date: Fri, 25 Nov 2016 23:29:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c59cba9d-c6a8-4bb5-b915-ab8c78bf3d68 X-Archives-Hash: 05c44e1486b4e54cbc72088f851e4989 commit: fb89d0263a9b10f4467d892d785e3b55b527c6d5 Author: Mike Gilbert gentoo org> AuthorDate: Fri Nov 25 23:25:50 2016 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Fri Nov 25 23:29:13 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb89d026 app-emulation/open-vm-tools: optionally build kernel modules The build system does some crazy stuff that is difficult to replicate in open-vm-tools-kmod. Package-Manager: portage-2.3.2_p8 app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild index 2c653a5..11dd15e 100644 --- a/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild +++ b/app-emulation/open-vm-tools/open-vm-tools-10.1.0.ebuild @@ -3,8 +3,9 @@ # $Id$ EAPI=6 +MODULES_OPTIONAL_USE="modules" -inherit autotools flag-o-matic pam systemd toolchain-funcs user +inherit autotools linux-mod pam systemd toolchain-funcs user DESCRIPTION="Opensourced tools for VMware guests" HOMEPAGE="https://github.com/vmware/open-vm-tools" @@ -71,7 +72,6 @@ src_configure() { --disable-tests --with-procps --with-dnet - --without-kernel-modules $(use_enable doc docs) $(use_enable grabbitmqproxy) $(use_enable vgauth) @@ -84,6 +84,10 @@ src_configure() { $(use_with X gtk3) $(use_with X gtkmm3) $(use_with X x) + + $(use_with modules kernel-modules) + --without-root-privileges + --with-kernel-release="${KV_FULL}" ) econf "${myeconfargs[@]}" @@ -92,6 +96,11 @@ src_configure() { find . -name Makefile -exec sed -i -e 's/-Werror//g' '{}' + || die "sed out Werror failed" } +src_compile() { + use modules && set_arch_to_kernel + default +} + src_install() { default prune_libtool_files --modules @@ -117,4 +126,5 @@ src_install() { pkg_postinst() { enewgroup vmware + linux-mod_pkg_postinst }