Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47496 - wine-20040408 uses different way of handeling debugging
Summary: wine-20040408 uses different way of handeling debugging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-11 03:57 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2004-06-28 12:13 UTC (History)
2 users (show)

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


Attachments
changed wrapper script (wine,1.28 KB, text/plain)
2004-04-24 12:14 UTC, Christoph Brill (egore) (RESIGNED)
Details
updated wrapper script (wine,1.33 KB, text/plain)
2004-04-24 12:44 UTC, Christoph Brill (egore) (RESIGNED)
Details
app-emulation/wine-20040408-r1.ebuild (wine-20040408-r1.ebuild,3.49 KB, text/plain)
2004-04-24 12:46 UTC, Christoph Brill (egore) (RESIGNED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2004-04-11 03:57:54 UTC
If i run any program with the new wine it get the following message. Iirc gentoo uses a wrapper script for handeling some variables, so i think this wrapper script needs some modifications.

Warning: the --debugmsg option is deprecated. You should use
the WINEDEBUG environment variable instead, like this:

  WINEDEBUG=-all wine ...


Reproducible: Always
Steps to Reproduce:
Comment 1 steveb 2004-04-11 06:22:45 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
Comment 2 Christoph Brill (egore) (RESIGNED) 2004-04-24 12:14:42 UTC
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.
Comment 3 Christoph Brill (egore) (RESIGNED) 2004-04-24 12:44:28 UTC
Created attachment 29971 [details]
updated wrapper script

the way of setting the debug handling listed here is better than mine was
Comment 4 Christoph Brill (egore) (RESIGNED) 2004-04-24 12:46:30 UTC
Created attachment 29973 [details]
app-emulation/wine-20040408-r1.ebuild

the ebuild to fix the winereg problems (simply added the lines listed here)
Comment 5 Forester 2004-05-15 19:24:08 UTC
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
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2004-06-28 12:13:16 UTC
in cvs

thx