summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Auty <ikelos@gentoo.org>2006-12-09 14:21:44 +0000
committerMike Auty <ikelos@gentoo.org>2006-12-09 14:21:44 +0000
commitc24d8df3b4d75ce103e5fdd394992021d31e8bf9 (patch)
tree4cb52ffeffd77cce2e48753a7382b81aba673af6 /eclass
parentFix minor regression. (diff)
downloadvmware-c24d8df3b4d75ce103e5fdd394992021d31e8bf9.tar.gz
vmware-c24d8df3b4d75ce103e5fdd394992021d31e8bf9.tar.bz2
vmware-c24d8df3b4d75ce103e5fdd394992021d31e8bf9.zip
Proposed fix for pax issues with vmware-server/workstation/player.
svn path=/trunk/; revision=142
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vmware.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/vmware.eclass b/eclass/vmware.eclass
index a4dceb9..7048f57 100644
--- a/eclass/vmware.eclass
+++ b/eclass/vmware.eclass
@@ -7,7 +7,7 @@
# Only one package per "product" is allowed to be installed at any given time.
-inherit eutils
+inherit pax-utils eutils
EXPORT_FUNCTIONS pkg_preinst pkg_postinst pkg_setup src_install src_unpack pkg_postrm
@@ -141,6 +141,11 @@ vmware_src_unpack() {
fi
fi
+ # Remove PAX MPROTECT flag from all applicable files in /bin, /sbin for
+ # the vmware package only (since modules, tools and console should not
+ # need to generate code on the fly in memory).
+ [[ "${product}" == "vmware" ]] && pax-mark -m $(list-paxables ${S}/{bin,sbin}/{vmware-serverd,vmware-vmx})
+
# Run through any patches that might need to be applied
cd "${S}"
if [[ -d "${FILESDIR}/${PV}" ]]