What should I do with this patch?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
IWK
Level 1
Level 1
Posts: 6
Joined: Mon Dec 29, 2008 3:11 pm

What should I do with this patch?

Post by IWK »

Hi.

I'm trying to run Spore, and I noticed that this patch is supposed to solve the problem where the server can't be found:

http://www.winehq.org/pipermail/wine-pa ... 61125.html

Pardon my ignorance, but how do I use it? I have searched for information about this, but to no avail.
Also, which version of GIT should I use? Found a lot of different packages here:

http://www.kernel.org/pub/software/scm/git/debian/
(I use Debian Lenny)

Thanks in advance,

Ike
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

What should I do with this patch?

Post by austin987 »

On Mon, Dec 29, 2008 at 2:23 PM, IWK <[email protected]> wrote:
Hi.

I'm trying to run Spore, and I noticed that this patch is supposed to solve the problem where the server can't be found:

http://www.winehq.org/pipermail/wine-pa ... 61125.html

Pardon my ignorance, but how do I use it? I have searched for information about this, but to no avail.
Also, which version of GIT should I use? Found a lot of different packages here:

http://www.kernel.org/pub/software/scm/git/debian/
(I use Debian Lenny)

Thanks in advance,

Ike





http://wiki.winehq.org/Patching

--
-Austin
IWK
Level 1
Level 1
Posts: 6
Joined: Mon Dec 29, 2008 3:11 pm

Post by IWK »

Thanks. I wonder why I missed that, as I am positive I searched the entire WineHQ site...

Anyway, that helped me a bit on my way, but I still can't figure out what I'm supposed to do. Since the patch in question wasn't distributed as a file, but as text in a mail, should I create a file, copy the text to that file, and run

Code: Select all

patch -p1 < (name of file)
?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

What should I do with this patch?

Post by austin987 »

On Mon, Dec 29, 2008 at 4:03 PM, IWK <[email protected]> wrote:
Thanks. I wonder why I missed that, as I am positive I searched the entire WineHQ site...

Anyway, that helped me a bit on my way, but I still can't figure out what I'm supposed to do. Since the patch in question wasn't distributed as a file, but as text in a mail, should I create a file, copy the text to that file, and run
Code:
patch -p1 < (name of file)

?





Yep

--
-Austin
IWK
Level 1
Level 1
Posts: 6
Joined: Mon Dec 29, 2008 3:11 pm

Eh?

Post by IWK »

Code: Select all

patch -p1 < sporepatch.diff 
patching file dlls/winhttp/net.c
Hunk #1 FAILED at 464.
1 out of 1 hunk FAILED -- saving rejects to file dlls/winhttp/net.c.rej
patching file dlls/winhttp/request.c
Reversed (or previously applied) patch detected!  Assume -R? [n]
What now?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

What should I do with this patch?

Post by austin987 »

On Tue, Dec 30, 2008 at 3:17 AM, IWK <[email protected]> wrote:
Code:
patch -p1 < sporepatch.diff
patching file dlls/winhttp/net.c
Hunk #1 FAILED at 464.
1 out of 1 hunk FAILED -- saving rejects to file dlls/winhttp/net.c.rej
patching file dlls/winhttp/request.c
Reversed (or previously applied) patch detected! Assume -R? [n]



What now?





It's already patched, apparently.

--
-Austin
IWK
Level 1
Level 1
Posts: 6
Joined: Mon Dec 29, 2008 3:11 pm

Post by IWK »

Yeah. I haven't checked if it works, but I will when I get home. I just got a tad suspicious, 'cause I don't know why it's patched. Oh well, I don't have to know. Just hope it works. :P
IWK
Level 1
Level 1
Posts: 6
Joined: Mon Dec 29, 2008 3:11 pm

Post by IWK »

Still doesn't work. I tried patching, and this is what I got:

Code: Select all

patching file dlls/winhttp/net.c
Hunk #1 FAILED at 464.
1 out of 1 hunk FAILED -- saving rejects to file dlls/winhttp/net.c.rej
patching file dlls/winhttp/request.c
Reversed (or previously applied) patch detected!  Assume -R? [n] 
Apply anyway? [n] y
Hunk #1 FAILED at 1415.
1 out of 1 hunk FAILED -- saving rejects to file dlls/winhttp/request.c.rej
If I choose to "Assume -R", I get this instead of "...FAILED at 1415":

Code: Select all

Hunk #1 succeeded at 1415 (offset 177 lines).
But no matter what, I still get the same old error if I launch the game. Any ideas?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

What should I do with this patch?

Post by austin987 »

On Tue, Dec 30, 2008 at 2:51 PM, IWK <[email protected]> wrote:
Still doesn't work. I tried patching, and this is what I got:


Code:
patching file dlls/winhttp/net.c
Hunk #1 FAILED at 464.
1 out of 1 hunk FAILED -- saving rejects to file dlls/winhttp/net.c.rej
patching file dlls/winhttp/request.c
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 1415.
1 out of 1 hunk FAILED -- saving rejects to file dlls/winhttp/request.c.rej



If I choose to "Assume -R", I get this instead of "...FAILED at 1415":


Code:
Hunk #1 succeeded at 1415 (offset 177 lines).



But no matter what, I still get the same old error if I launch the game. Any ideas?





That patch IS ALREADY APPLIED. It won't do any good to apply it again.
'-R' reverts (reverses) it.

Maybe try native wininet/winhttp?
--
-Austin
IWK
Level 1
Level 1
Posts: 6
Joined: Mon Dec 29, 2008 3:11 pm

Re: What should I do with this patch?

Post by IWK »

austin987 wrote: Maybe try native wininet/winhttp?
I've tried that now; didn't work. The problem persists. This is the terminal output I get:

Lots of messages like this one:

Code: Select all

fixme:ntdll:RtlInitializeCriticalSectionEx (0x70dae3b0,4000,0x04000000) semi-stub
and then

Code: Select all

fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (9800012c)
fixme:winsock:WSAIoctl unsupported WS_IOCTL cmd (9800012c)
err:listview:LISTVIEW_WindowProc unknown msg 108a wp=00000000 lp=0290f7a8
Locked