Patching wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
User avatar
salemus
Level 2
Level 2
Posts: 16
Joined: Thu Oct 01, 2009 11:40 am

Patching wine

Post by salemus »

Hi

I'm not newbie at using wine but now I have to patch it but I've never do it before :/
I have to apply this patch:
http://bugs2.winehq.org/attachment.cgi?id=24812
To wine version 1.1.38
I hope someone can help me.
r2rX
Level 3
Level 3
Posts: 69
Joined: Thu Apr 29, 2010 4:28 pm

Post by r2rX »

Why not give 1.2 rc6 a go?

r2rX :)
User avatar
salemus
Level 2
Level 2
Posts: 16
Joined: Thu Oct 01, 2009 11:40 am

Post by salemus »

Because this newest wersion working for me much slower than 1.1.38
James Mckenzie

Patching wine

Post by James Mckenzie »

salemus <[email protected]> wrote:
Hi

I'm not newbie at using wine but now I have to patch it but I've never do it before :/
I have to apply this patch:
http://bugs2.winehq.org/attachment.cgi?id=24812
To wine version 1.1.38
First, Wine 1.1.38 is old, about 3 months old. You might want to try the current release candidate first and then look into the patch. Apologies if you have already tried this.

I'll try to look at this patch and see if it can be updated to apply to the latest version.

Lastly, why are you trying to patch Wine in first place?

James McKenzie
User avatar
dimesio
Moderator
Moderator
Posts: 13371
Joined: Tue Mar 25, 2008 10:30 pm

Re: Patching wine

Post by dimesio »

salemus wrote:I'm not newbie at using wine but now I have to patch it but I've never do it before :/
I have to apply this patch:
http://bugs2.winehq.org/attachment.cgi?id=24812
To wine version 1.1.38
http://wiki.winehq.org/FAQ#head-7ed3c31 ... 53dc41817b
User avatar
salemus
Level 2
Level 2
Posts: 16
Joined: Thu Oct 01, 2009 11:40 am

Post by salemus »

Ok i tried the newest wine and for now it gives me the same fps as 1.1.38

I need this patch to increase fps in l4d2
http://appdb.winehq.org/objectManager.p ... ngId=54153 << How To
Of course i don't belive this "50~50 fps more" but i hope ot will run the game(s?) a little faster.

I tried

Code: Select all

patch -p1 < NoSRGBTextureBounce.diff  
But it didn't help:

Code: Select all

salemus@salemus-laptop:~/.winesteam$ env WINEPREFIX="/home/salemus/.winesteam" patch -p1 < NoSRGBTextureBounce.diff 
patching file dlls/wined3d/surface.c
Hunk #1 FAILED at 4937.
patch: **** Can't create file dlls/wined3d/surface.c.orig : Permission denied
BTW: Does anyone know how to make games on newest ubuntu 10.04 run faster? Because it rly decreased :(
John Drescher

Patching wine

Post by John Drescher »

On Tue, Jul 6, 2010 at 7:00 PM, salemus <[email protected]> wrote:
Ok i tried the newest wine and for now it gives me the same fps as 1.1.38

I need this patch to increase fps in l4d2
http://appdb.winehq.org/objectManager.p ... ngId=54153 << How To
Of course i don't belive this "50~50 fps more" but i hope ot will run the game(s?) a little faster.

I tried

Code:
patch -p1 < NoSRGBTextureBounce.diff


But it didn't help:

Code:
salemus@salemus-laptop:~/.winesteam$ env WINEPREFIX="/home/salemus/.winesteam" patch -p1 < NoSRGBTextureBounce.diff
patching file dlls/wined3d/surface.c
Hunk #1 FAILED at 4937.
patch: **** Can't create file dlls/wined3d/surface.c.orig : Permission denied

Did you do any of the unpacking steps as root, su, sudo? The
permission denied is because the current user can not write the
patched file.

John
User avatar
salemus
Level 2
Level 2
Posts: 16
Joined: Thu Oct 01, 2009 11:40 am

Post by salemus »

Step by step what I did:
1. Downloaded newest wine source
2. Applied patch upacking wine source and patch it in wine's folder using command:

Code: Select all

salemus@salemus-laptop:~/Pobrane/wine-1.2-rc6$ patch -p1 < NoSRGBTextureBounce.diff 
3. Tried to compile it but there was some problem with missing libraries so..
4. I installed evry needed library for Ubuntu using this command:

Code: Select all

sudo apt-get build-dep wine1.2
5. Then I started compiling and installing wine:

Code: Select all

#sudo sh configure
#sudo make
#sudo make install
and... it really gives me more fps :shock:
Of course not so much as How To says but it gives me 5~10 fps more! :D
Thanks for help
eps
Level 3
Level 3
Posts: 87
Joined: Tue Mar 18, 2008 11:44 pm

Patching wine

Post by eps »

On Wed, Jul 7, 2010 at 6:59 AM, James Mckenzie
<[email protected]> wrote:
Lastly, why are you trying to patch Wine in first place?
This is the patch to improve performance in games like L4D. It's
sketchy at best and only works some of the time. Who knows how it
will affect various versions of wine!

Edward
Locked