Summary: | wine-20040408 uses different way of handeling debugging | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Christoph Brill (egore) (RESIGNED) <egore> |
Component: | New packages | Assignee: | Wine Maintainers <wine> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | moixa, steeeeeveee |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
changed wrapper script
updated wrapper script app-emulation/wine-20040408-r1.ebuild |
Description
Christoph Brill (egore) (RESIGNED)
2004-04-11 03:57:54 UTC
this is not the only bug with the 20040408 wine. another bug is, that winedefault.reg does not exist anymore in the wine package. now you need to use wine.inf to generate the default.reg. probably the gentoo wrapper in /usr/bin/wine needs to change the line where the script uses regedit-wine to something like this: echo "!! Setting up default registry." WINEDEBUG=-all "$RUNWINE" rundll32 setupapi.dll,InstallHinfSection DefaultInstall 128 wine.inf 1>/dev/null 2>&1 of course the wine.inf needs to be installed in the .data directory. i don't know if it is enought to add it to the windows and/or system direcotry or if we need to add it to the inf directory as well. but since rundll32 can handle the file to be win the path (windows and system directory) it could be enought only to add it to windows or system directory: # copying the wine.inf into .data (used to be winedefault.reg) cd ${S} dodir /usr/lib/wine/.data insinto /usr/lib/wine/.data doins tools/wine.inf insinto /usr/lib/wine/.data/fake_windows/Windows/System doins tools/wine.inf insinto /usr/lib/wine/.data/fake_windows/Windows/Inf doins tools/wine.inf the debug problem can be solved by replacing the last line in /usr/bin/wine to: if [ "${WINEDEBUG}" == "" ] ; then WINEDEBUG=-all "$RUNWINE" "$@" else "$RUNWINE" "$@" fi another thing i miss is an env.d file for wine. in an old release of wine, i had /etc/env.d/30wine. now i have manually added that file with the following content: PATH=/usr/lib/wine/bin ROOTPATH=/usr/lib/wine/bin LDPATH=/usr/lib/wine/lib another thing is, that documentation/samples/system.ini does not exist anymore in the wine package. how about changing that in the ebuild as well to something like this: # Set up this dynamic data cd ${S} dodir /usr/lib/wine/.data/fake_windows/Windows insinto /usr/lib/wine/.data/fake_windows/Windows [[ -f ${S}/documentation/samples/system.ini ]] && doins documentation/samples/system.ini || { cat <<EOF >>${D}/usr/lib/wine/.data/fake_windows/Windows/system.ini [mci] MPEGVideo=mciqtz.drv MPEGVideo2=mciqtz.drv avivideo=mciavi.drv cdaudio=mcicda.drv sequencer=mciseq.drv vcr=mcivisca.drv ; videodisc=mcipionr.drv waveaudio=mciwave.drv [drivers32] MSACM.imaadpcm=imaadp32.acm MSACM.msadpcm=msadp32.acm VIDC.MRLE=msrle32.dll ; VIDC.IV50=ir50_32.dll ; VIDC.CVID=iccvid.dll ; VIDC.IV31=ir32_32.dll ; VIDC.IV32=ir32_32.dll ; VIDC.MSVC=msvidc32.dll EOF } doins dlls/wineps/generic.ppd || doins documentation/samples/generic.ppd ## Setup of .data complete i have created for my own needs an wine ebuild to get wine from cvs and in that ebuild i don't use the ...-fake_windows.tar.bz2 anymore. instead i build the fake_windows directory directly in the ebuild. maybe this is not an good way, because the ebuild gets bigger (wich would use more time to rsync), but i wanted to be more flexible: ### Creation of /usr/lib/wine/.data # Setting up fake_windows dodir /usr/lib/wine/.data cd ${D}/usr/lib/wine/.data dodir /usr/lib/wine/.data/fake_windows keepdir /usr/lib/wine/.data/fake_windows dodir /usr/lib/wine/.data/fake_windows/{Program\ Files,My\ Documents,Recycled,Temp,Windows} keepdir /usr/lib/wine/.data/fake_windows/{Program\ Files,My\ Documents,Recycled,Temp,Windows} dodir /usr/lib/wine/.data/fake_windows/My\ Documents/My\ eBooks keepdir /usr/lib/wine/.data/fake_windows/My\ Documents/My\ eBooks dodir /usr/lib/wine/.data/fake_windows/Program\ Files/{Accessories,Common\ Files} keepdir /usr/lib/wine/.data/fake_windows/Program\ Files/{Accessories,Common\ Files} dodir /usr/lib/wine/.data/fake_windows/Windows/{All\ Users,Application\ Data,Cookies,Command,Desktop,Favorites,Fonts,History,Inf,Profiles,Recent,SendTo,ShellNew,Start\ Menu,System,Temp,Temporary\ Internet\ Files} keepdir /usr/lib/wine/.data/fake_windows/Windows/{All\ Users,Application\ Data,Cookies,Command,Desktop,Favorites,Fonts,History,Inf,Profiles,SendTo,ShellNew,Recent,Start\ Menu,System,Temp,Temporary\ Internet\ Files} dodir /usr/lib/wine/.data/fake_windows/Windows/All\ Users/{Desktop,Start\ Menu} keepdir /usr/lib/wine/.data/fake_windows/Windows/All\ Users/{Desktop,Start\ Menu} dodir /usr/lib/wine/.data/fake_windows/Windows/All\ Users/Start\ Menu/Programs keepdir /usr/lib/wine/.data/fake_windows/Windows/All\ Users/Start\ Menu/Programs dodir /usr/lib/wine/.data/fake_windows/Windows/Profiles/Administrator keepdir /usr/lib/wine/.data/fake_windows/Windows/Profiles/Administrator dodir /usr/lib/wine/.data/fake_windows/Windows/Start\ Menu/Programs keepdir /usr/lib/wine/.data/fake_windows/Windows/Start\ Menu/Programs dodir /usr/lib/wine/.data/fake_windows/Windows/Start\ Menu/Programs/Startup keepdir /usr/lib/wine/.data/fake_windows/Windows/Start\ Menu/Programs/Startup okay... now i have written to much. i hope no one get's mad at me "rantig" so much about the wine ebuild? cheers SteveB Created attachment 29967 [details]
changed wrapper script
I changed the wrapper script to work with the new debug-handeling.
This does NOT fix the missing winereg.
Created attachment 29971 [details]
updated wrapper script
the way of setting the debug handling listed here is better than mine was
Created attachment 29973 [details]
app-emulation/wine-20040408-r1.ebuild
the ebuild to fix the winereg problems (simply added the lines listed here)
Tested eGore's fixes and found to work... Hope they get incorporated into May release and -r1 supercedes current April release when marked as stable :s in cvs thx |