Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97078 - VMWare needs vmwaredsp in order to use sound if arts or esd is used.
Summary: VMWare needs vmwaredsp in order to use sound if arts or esd is used.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo VMWare Bug Squashers [disabled]
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-06-25 16:42 UTC by Jean-Christophe Choisy
Modified: 2008-10-15 05:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
app-emulation/vmwaredsp-1.3.ebuild (vmwaredsp-1.3.ebuild,1.79 KB, text/plain)
2005-10-11 14:03 UTC, Peter Hyman
Details
vmwaredsp-1.3-r1.ebuild (vmwaredsp-1.3-r1.ebuild,1.95 KB, text/plain)
2006-03-16 13:59 UTC, Alessio D'Ascanio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Christophe Choisy 2005-06-25 16:42:56 UTC
This is not really a bug report, more like an ebuild request. Currently, it is 
impossible to use vmware with sound at the same time as arts or esd running. 
This makes it impossible to use vmware fully in neither gnome nor kde. 
 
A solution exists, it's called vmwaredsp, from the same guy who does the 
any-any thingy already included in vmware ebuilds. 
 
I looked at it, and it's very simple, the tarball is only 51kb including 
source and prebuild bins. I suppose it would be really easy to make an ebuild 
out of it, but I'm sadly unable to do so right now, as I know nothing about 
proper ebuild writting. 
 
Is anyone interested? Thanks in advance... 

Reproducible: Always
Steps to Reproduce:
1. Use vmware while running arts or esd 
Actual Results:  
VMWare can't make use of /dev/dsp, hence no sound. 

Expected Results:  
We should be able to have sound inside vmware, even when using arts or esd. 

Here is the url to the latest vmwaredsp : 
http://ftp.cvut.cz/vmware/vmwaredsp-1.3.tar.gz
Comment 1 Peter Hyman 2005-10-11 14:03:01 UTC
Created attachment 70416 [details]
app-emulation/vmwaredsp-1.3.ebuild

Poor man's attempt at recreating the runme.sh script included with the tar
file. While there IS source included, compiling it is a pain, due to a lot of
if's with libraries, architectures, include locations, etc. I tried to limit
the install based on system architecture. If arch is x86 ONLY, the 32 bit
libraries ONLY are installed. If arch is amd64 or ia64, then the 64 bit
libraries ONLY are installed. The maintainers may wish to alter the code for
determining the architecture and decide if they wish to compile the sources.
NOTE: the libvmdsp.so file must be setuid in order to work. I know this is a
gentoo no-no, but I had to do it. You could take it out and add an ewarn in the
post_inst function. Also, even though I set permissions in src_install, the
ebuild script still insists on doing the prepall script. I can't figure out how
NOT to have it duplicated. Anyway, the emerge process wrecks the permissions of
libvmdsp.so to make it unusable, so I had to kludge it back in pkg_postinst. I
hope this works and helps out some people. Feel free to add no ARCHs and let's
see if we can make this work for more people.
Comment 2 Peter Hyman 2005-10-12 09:00:21 UTC
sorry about the earlier typos. "Feel free to add no ARCHs" s/b NEW ARCHs. Ugh.
Also, bug submitter or maintainer may wish to change the KEYWORD to EBUILD since
one has been submitted. As a matter of education, how does one stop the prepall
script from running during the install process? I tried adding it to RESTRICTED,
but it seemed to have no effect. The end part of the emerge is really ugly
changing the perms of libvmdsp.so again to 4444. I look forward to seeing this
improved on and any comments. Thx
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-10-12 10:51:59 UTC
Changed.  You guys don't need to email me.  I get bug emails.
Comment 4 Jan Lange 2005-12-23 15:17:36 UTC
Hi,

i have test vmwaredsp (vmwarearts) with 5.5.1.19175, but it don't work for me.

Error: Could not open /dev/dsp

Greetings Jan
Comment 5 Alessio D'Ascanio 2006-03-16 13:59:25 UTC
Created attachment 82316 [details]
vmwaredsp-1.3-r1.ebuild

* added a rudimental sound server selection (arts and esd IUSE)
Comment 6 Sven 2006-03-20 16:33:17 UTC
no alsa support? or only alsa via esd?
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-28 07:11:47 UTC
I added my own ebuild for this to the tree.  It doesn't use the binaries, at all.
Comment 8 Thomas Juerges 2008-10-15 05:34:32 UTC
Sorry that I stumbled over this bug so late.  Some time ago I wrote the ALSA part for vmwaredsp.  It is available from: https://www.sokrates.homelinux.net/~thomas/Wiki/index.php?n=Thomas.MiscellaneousStuff#toc2  The driver is a bit rudimentary but plays some tunes quite nicely.  It has problems as soons as different sampling rates are involved at the same time.  Anyway, it is a start.  Feel free to add the driver to Gentoo if you think it is worth it.  But be aware that I cannot maintain it anymore because I switched over to Linux on a PowerPC-G4 for that no VmWare is available.

Enjoy,
    Thomas