RE: editing header files- gentoo - vmware


Subject: RE: editing header files- gentoo - vmware
From: Troy Melhase (tmelhase@gci.com)
Date: Fri Feb 06 2004 - 13:50:10 AKST


Tim:

You might try this approach:

$ cd /usr/portage/app-emulation/vmware-workstation
$ ebuild unpack vmware-workstation-4.0.2.5592-r1.ebuild ## or whatever
ebuild you're using
$ cd /var/tmp/portage/vmware-workstation-NNN

## locate your header file, tweak it (again)

$ cd /usr/portage/app-emulation/vmware-workstation
$ ebuild merge vmware-workstation-4.0.2.5592-r1.ebuild ## or whatever
ebuild you're using

I've used this technique to build patched versions of packages. It sounds
much more complicated than it is.

Good luck!

-----Original Message-----
From: Tim Jordan [mailto:timothy_jordan@labor.state.ak.us]
Sent: Friday, February 06, 2004 4:23 AM
To: aklug@aklug.org
Subject: editing header files- gentoo - vmware

I'm having a problem with installing an ebuild for Gentoo. I found how
to fix the bug but it included editing one of the header files which is
in a vmmon.tar.

Problem: When I edit the header file (as directed below) and then tar it
back as vmmon.tar - then I try to run the vmware install script it dies
when trying to build the vmmon module or it won't untar vmmon.tar.

Can anybody advise me on a correct approach to handling this problem?

Thanks,
TJ

http://bugs.gentoo.org/show_bug.cgi?id=37774

> I guess, I found what causes this problem.
>
> The poll_initwait interface has been changed in the new kernel, but VMware
still thinks it should use the old interface.
>
> I made the following changes in /opt/vmware/lib/modules/source/vmmon.tar
in vmmon-only/include/compat_wait.h:
>
> I replaced line #38 with the following two lines:
> (defined(WE_ARE_WOLK) && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 20))
|| \
> LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4 ,22)
>
> Original line #38:
> (defined(WE_ARE_WOLK) && LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 20))

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Fri Feb 06 2004 - 13:50:14 AKST