http://bugs.winehq.org/show_bug.cgi?id=14134
Summary: NetBSD fixes for Wine 1.0 Product: Wine Version: 1.0.0 Platform: PC OS/Version: NetBSD Status: UNCONFIRMED Severity: enhancement Priority: P1 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jmcneill@netbsd.org
Created an attachment (id=14382) --> (http://bugs.winehq.org/attachment.cgi?id=14382) Use wine-kthread by default on NetBSD
The attached patches are required for Wine 1.0 to work properly on NetBSD.
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #1 from Jared D. McNeill jmcneill@netbsd.org 2008-06-26 22:28:29 --- Created an attachment (id=14383) --> (http://bugs.winehq.org/attachment.cgi?id=14383) __errno is already defined in errno.h
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #2 from Jared D. McNeill jmcneill@netbsd.org 2008-06-26 22:28:48 --- Created an attachment (id=14384) --> (http://bugs.winehq.org/attachment.cgi?id=14384) Use /dev/sound instead of /dev/dsp on NetBSD
http://bugs.winehq.org/show_bug.cgi?id=14134
Jared D. McNeill jmcneill@netbsd.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jmcneill@netbsd.org Difficulty|--- |Minutes
http://bugs.winehq.org/show_bug.cgi?id=14134
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #3 from Austin English austinenglish@gmail.com 2008-06-27 01:08:11 --- Please send patches in git diff format to wine-patches@winehq.org (if you don't have time for that, leave a note here and I'll submit them for you).
http://bugs.winehq.org/show_bug.cgi?id=14134
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|jmcneill@netbsd.org | Difficulty|Minutes |---
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #4 from Dmitry Timoshkov dmitry@codeweavers.com 2008-06-27 01:46:23 --- 1. You need to patch configure.ac instead of configure 2. errno related patch is wrong.
http://bugs.winehq.org/show_bug.cgi?id=14134
Jared D. McNeill jmcneill@netbsd.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #14382|0 |1 is obsolete| |
--- Comment #5 from Jared D. McNeill jmcneill@netbsd.org 2008-06-27 05:33:09 --- Created an attachment (id=14387) --> (http://bugs.winehq.org/attachment.cgi?id=14387) Use wine-kthread by default on NetBSD
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #6 from Jared D. McNeill jmcneill@netbsd.org 2008-06-27 05:33:54 --- (In reply to comment #4)
- errno related patch is wrong.
Care to elaborate?
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #7 from Dmitry Timoshkov dmitry@codeweavers.com 2008-06-27 06:06:30 --- (In reply to comment #6)
Care to elaborate?
All the details are in the code you have #ifdef'ed, that overrides must exist.
http://bugs.winehq.org/show_bug.cgi?id=14134
Jared D. McNeill jmcneill@netbsd.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #14383|0 |1 is obsolete| |
--- Comment #8 from Jared D. McNeill jmcneill@netbsd.org 2008-06-27 06:38:36 --- Created an attachment (id=14388) --> (http://bugs.winehq.org/attachment.cgi?id=14388) __errno and ___errno are already defined in errno.h on NetBSD
Thanks Dmitry, here is an updated patch.
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #9 from Juan Lang juan_lang@yahoo.com 2008-06-27 14:06:39 --- (In reply to comment #8)
Thanks Dmitry, here is an updated patch.
Again, email patches to wine-patches@winehq.org, they're ignored here.
http://bugs.winehq.org/show_bug.cgi?id=14134
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #10 from Austin English austinenglish@gmail.com 2009-06-30 11:10:20 --- Most of these are fixed, last I checked. Still doesn't run, and the build breaks in dlls/inetcomm...
Jared, do you know more about current wine on NetBSD? I haven't tried in a while..
http://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #11 from Jared D. McNeill jmcneill@netbsd.org 2009-06-30 12:07:46 --- (In reply to comment #10)
Most of these are fixed, last I checked. Still doesn't run, and the build breaks in dlls/inetcomm...
Jared, do you know more about current wine on NetBSD? I haven't tried in a while..
I haven't tried it but there is a series of patches here for wine 1.0.1 and 1.1.16:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/emulators/wine/patches/ http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/emulators/wine-devel/patches/
adam@NetBSD.org is the maintainer for NetBSD's wine packages, and will be able to provide you with more details.
Cheers, Jared
http://bugs.winehq.org/show_bug.cgi?id=14134
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #12 from Austin English austinenglish@gmail.com 2009-12-31 13:13:16 --- Definitely still has problems.
http://bugs.winehq.org/show_bug.cgi?id=14134
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de
--- Comment #13 from André H. nerv@dawncrow.de 2011-07-03 07:55:19 CDT --- wine-kthread doesn't exist anymore, so the only valid patch might be the oss stuff.
http://bugs.winehq.org/show_bug.cgi?id=14134
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #14384|0 |1 is obsolete| | Attachment #14387|0 |1 is obsolete| | Attachment #14388|0 |1 is obsolete| |
--- Comment #14 from André H. nerv@dawncrow.de 2012-06-12 13:39:32 CDT --- Created attachment 40519 --> http://bugs.winehq.org/attachment.cgi?id=40519 /dev/sound patch
I'd suggest this patch, but it's untested. Anyone?
http://bugs.winehq.org/show_bug.cgi?id=14134
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |20907
http://bugs.winehq.org/show_bug.cgi?id=14134
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|NetBSD fixes for Wine 1.0 |Wrong OSS device is tried | |on NetBSD
http://bugs.winehq.org/show_bug.cgi?id=14134
Bug 14134 depends on bug 20907, which changed state.
Bug 20907 Summary: $ORIGIN is undefined on NetBSD, breaking compile http://bugs.winehq.org/show_bug.cgi?id=20907
What |Old Value |New Value ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |UPSTREAM
https://bugs.winehq.org/show_bug.cgi?id=14134
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source Severity|enhancement |normal
--- Comment #15 from Ken Sharp imwellcushtymelike@gmail.com --- I don't think anything has been done with the upstream bug report, so assuming still an issue.
https://bugs.winehq.org/show_bug.cgi?id=14134
Adrien Fernandes adrien_fernandes2@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adrien_fernandes2@hotmail.c | |om
--- Comment #16 from Adrien Fernandes adrien_fernandes2@hotmail.com --- It is still an issue, I am on NetBSD and I don't have audio supported on OSS
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #17 from Adrien Fernandes adrien_fernandes2@hotmail.com --- By the way, I quickly come to speak about NetBSD audio. NetBSD sound server will be locked as soon as one source is using it. For example, if I use VLC to watch a video, my audio device will be busy so I won't have sound anymore on other applications until I free the device by closing VLC. Is it a problem for Wine ?
https://bugs.winehq.org/show_bug.cgi?id=14134
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |wineoss.drv CC| |aeikum@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #18 from Andrew Eikum aeikum@codeweavers.com --- A patch like Andre's from comment 14 seems reasonable. Can someone test it?
(In reply to Adrien Fernandes from comment #17)
By the way, I quickly come to speak about NetBSD audio. NetBSD sound server will be locked as soon as one source is using it. For example, if I use VLC to watch a video, my audio device will be busy so I won't have sound anymore on other applications until I free the device by closing VLC. Is it a problem for Wine ?
Depending on the application, it can be a problem. Some applications expect to be able to open the same device twice and will fail or be silent if it can't. However, many applications only use one audio device, so it may not be a problem for whatever applications you use.
I'd recommend finding a way around this limitation. For example, pulseaudio might be supported on your platform.
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #19 from Adrien Fernandes adrien_fernandes2@hotmail.com --- Yes, PulseAudio is a solution on NetBSD for the moment, until we have a kernel audio mixer (tested by me and working) :)
I'll try the patch as soon as I can.
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #20 from Adrien Fernandes adrien_fernandes2@hotmail.com --- It doesn't work with the patch. the "test" button in winecfg is returning any audio.
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #21 from Adrien Fernandes adrien_fernandes2@hotmail.com --- isn't returning any audio (sorry for the mistake)
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #22 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Adrien Fernandes from comment #20)
It doesn't work with the patch. the "test" button in winecfg is returning any audio.
Thanks for testing. Do you know what the correct path to the OSSv4 sound device on NetBSD is? Do you have a /dev/sound? What about a /dev/dsp? Finally, can you attach a log with the channels from https://wiki.winehq.org/Sound with the patch applied?
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #23 from Adrien Fernandes adrien_fernandes2@hotmail.com --- We have OSSv3 We do have /dev/audio and /dev/sound (both can be used) but no /dev/dsp What do you exactly want ? a +tid,+seh,+mmdevapi,+winmm,+driver,+msacm,+midi,+dsound,+dsound3d,+xaudio2,+xapofx,+dmusic,+mci,+pulse,+oss,+alsa,+coreaudio,+timestamp debug file ?
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #24 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Adrien Fernandes from comment #23)
We have OSSv3
Oh, that might be the problem. Wine won't build the OSS driver without OSSv4. What does winecfg report for the selected driver?
The patches here look like they add OSSv3 support, but I haven't reviewed them:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/emulators/wine-devel/patches/
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #25 from Adrien Fernandes adrien_fernandes2@hotmail.com --- I'll try it
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #26 from Adrien Fernandes adrien_fernandes2@hotmail.com --- When using it, no more game is working, they ALL crash before starting BUT winecfg has sound when pressing "test" button.
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #27 from André H. nerv@dawncrow.de --- Sounds like a perfect OSSv3 patch :D Maybe that's the way to go: https://wiki.netbsd.org/opensoundsystem/
https://bugs.winehq.org/show_bug.cgi?id=14134
--- Comment #28 from Adrien Fernandes adrien_fernandes2@hotmail.com --- So maybe it crashes because of locked device. I didn't try OSSv4 on NetBSD (maybe I should try and see). I know that a Nathanial Sloss is working on a kernel audio mixer for NetBSD (https://mail-index.netbsd.org/tech-kern/2016/05/15/msg020572.html) that could fix the audio issue but actually, this patch causes every softwares to crash.