applying a patch (select-dup.diff) to wine to fix TF2

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
RedWagon
Level 2
Level 2
Posts: 18
Joined: Mon Oct 27, 2008 2:02 am

applying a patch (select-dup.diff) to wine to fix TF2

Post by RedWagon »

I really feel like a n00b posting this, but I can't for the life of me find how to apply this patch. http://bugs.winehq.org/attachment.cgi?i ... ction=edit
One of the Steam updates broke TF2, and according to the comments in the bug tracker this should fix it. I just have idea what to do with the file. Also, my wine setup isn't like most peoples. I compile wine from source and run it from the source directory so I can use multiple versions at the same time. I don't need specific instructions for my setup, just generic wine instructions and whether or not I need to apply it to each source directory, or the directory with drive_c and stuff.

verdow@RedWagon ~ $ ls -a | grep wine
.wine-1.1.16
.wine-1.1.17
.wine-1.1.21
.wine_l4d
.wine_nexuiz
.wine_oldTF2
.wine_q3
.wine_ra3
.wine_tf2
.wine_urbanterror
.wine_warsow
verdow@RedWagon ~ $ [/code]
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

applying a patch (select-dup.diff) to wine to fix TF2

Post by austin987 »

On Mon, Jun 15, 2009 at 4:38 PM, RedWagon<[email protected]> wrote:
I really feel like a n00b posting this, but I can't for the life of me find how to apply this patch.  http://bugs.winehq.org/attachment.cgi?i ... ction=edit
One of the Steam updates broke TF2, and according to the comments in the bug tracker this should fix it.  I just have idea what to do with the file.  Also, my wine setup isn't like most peoples.  I compile wine from source and run it from the source directory so I can use multiple versions at the same time.  I don't need specific instructions for my setup, just generic wine instructions and whether or not I need to apply it to each source directory, or the directory with drive_c and stuff.

verdow@RedWagon ~ $ ls -a | grep wine
.wine-1.1.16
.wine-1.1.17
.wine-1.1.21
.wine_l4d
.wine_nexuiz
.wine_oldTF2
.wine_q3
.wine_ra3
.wine_tf2
.wine_urbanterror
.wine_warsow
verdow@RedWagon ~ $ [/code]
patch -p1 < /path/to/source

though you could just upgrade to git where it's fixed...

--
-Austin
RedWagon
Level 2
Level 2
Posts: 18
Joined: Mon Oct 27, 2008 2:02 am

Post by RedWagon »

verdow@RedWagon ~ $ patch -p1 < select-dup.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/server/thread.c b/server/thread.c
|index e931e81..a42365c 100644
|--- a/server/thread.c
|+++ b/server/thread.c
--------------------------
File to patch: ^C
verdow@RedWagon ~ $

What file do I need to patch? Also, wine is not installed on my computer. If I want to run wine I must run

WNIEPREFIX=/home/verdow/.wine_program /home/verdow/.wine-1.1.16/./wine program.exe
though you could just upgrade to git where it's fixed...
Certain programs run better on older versions of wine, also this is a new bug, the steam update that broke tf2 came out only a week ago.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

applying a patch (select-dup.diff) to wine to fix TF2

Post by austin987 »

On Mon, Jun 15, 2009 at 5:05 PM, RedWagon<[email protected]> wrote:
verdow@RedWagon ~ $ patch -p1 < select-dup.diff
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/server/thread.c b/server/thread.c
|index e931e81..a42365c 100644
|--- a/server/thread.c
|+++ b/server/thread.c
--------------------------
File to patch: ^C
verdow@RedWagon ~ $

What file do I need to patch?  Also, wine is not installed on my computer.  If I want to run wine I must run
You need to cd to the source directory first.
though you could just upgrade to git where it's fixed...
Certain programs run better on older versions of wine, also this is a new bug, the steam update that broke tf2 came out only a week ago.
I'm aware. The bug was fixed today.
--
-Austin
RedWagon
Level 2
Level 2
Posts: 18
Joined: Mon Oct 27, 2008 2:02 am

Post by RedWagon »

Code: Select all

verdow@RedWagon ~/.wine-1.1.16 $ patch -p1 < select-dup.diff 
patching file server/thread.c
Hunk #1 succeeded at 637 (offset -15 lines).
Hunk #2 succeeded at 647 (offset -15 lines).
Hunk #3 succeeded at 693 (offset -15 lines).
verdow@RedWagon ~/.wine-1.1.16 $ 
TF2 still doesn't work. Do I need to recompile after the patch is applied? I'm going to try downloading and compiling the latest release.
though you could just upgrade to git where it's fixed...
what is git? Is there something besides the latest source release I should try?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

applying a patch (select-dup.diff) to wine to fix TF2

Post by austin987 »

On Mon, Jun 15, 2009 at 6:24 PM, RedWagon<[email protected]> wrote:
Code:
verdow@RedWagon ~/.wine-1.1.16 $ patch -p1 < select-dup.diff
patching file server/thread.c
Hunk #1 succeeded at 637 (offset -15 lines).
Hunk #2 succeeded at 647 (offset -15 lines).
Hunk #3 succeeded at 693 (offset -15 lines).
verdow@RedWagon ~/.wine-1.1.16 $



TF2 still doesn't work.  Do I need to recompile after the patch is applied?
Of course.
though you could just upgrade to git where it's fixed...
what is git?  Is there something besides the latest source release I should try?
git is the source control mechanism for wine, which is the latest
source for wine.

--
-Austin
RedWagon
Level 2
Level 2
Posts: 18
Joined: Mon Oct 27, 2008 2:02 am

Post by RedWagon »

I recompiled and it worked. Thanks![/quote]
Locked