LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do you install patches for wine? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-install-patches-for-wine-507073/)

Ryupower 12-03-2006 07:11 AM

How do you install patches for wine?
 
uhhh....yeah, so I'm kinda new to this, I want to run a program under wine, but for it to work it needs a patch. They are all pages with a .diff code on them , but how do you patch with .diff files, moreso, with ones that aren't even downloadable but a bunch of code on a page? I looked over the winehq site on info how to install a patch, I had no luck.

I'm sorry if this is a stupid question, but I'm new to this. I always thought .diff files were just files that show you a "difference", I didn't know you can use them as a patch....

how does that all work? I really wanna use this program. Thanks

Ygrex 12-03-2006 08:36 AM

firstly, you should download it

say it is "patch.diff"
then 'cd /where/wine/is' and 'cat /that/patch/patch.diff | patch -p1' and you'll be happy

Ryupower 12-03-2006 11:30 AM

what does 'p1' do?
What about those .diff scripts on a page? Like, where you don't "download" it to the H/D, but where it just opens up some page with the script on it. Should I just copy paste it into texteditor and change the ending? thx

Ygrex 12-03-2006 11:54 AM

it'd better that you download the file either with some application (like wget or curl) or using "save as..." in your browser

Ryupower 12-03-2006 12:59 PM

Quote:

Originally Posted by Ygrex
it'd better that you download the file either with some application (like wget or curl) or using "save as..." in your browser

But there is no downloadable file....you click on .diff and it displays the .diff content on a different page...
Wait, I'll show you what I want to get:
The bug report and comments:
http://bugs.winehq.org/show_bug.cgi?id=6078

The patch one of the commenters directs to:
http://www.winehq.org/pipermail/wine...st/030201.html


please help. I must be doing something wrong or clicking the wrong links... :(

Ygrex 12-03-2006 03:19 PM

oh, if you are about the comment 13th, than yes, I can simply copy it to any text editor and save it somewhere on your machine.

but the only modification that patch does is the commenting of the single line
you can do it without any patches - edit dlls/shell32/shell32_main.c , after the 865-th line you should find "SetWindowPos..." - just comment it out

Hope I understand you right, good luck

Ryupower 12-03-2006 04:27 PM

Quote:

Originally Posted by Ygrex
oh, if you are about the comment 13th, than yes, I can simply copy it to any text editor and save it somewhere on your machine.

but the only modification that patch does is the commenting of the single line
you can do it without any patches - edit dlls/shell32/shell32_main.c , after the 865-th line you should find "SetWindowPos..." - just comment it out

Hope I understand you right, good luck


Why thank you. :)

I wanted to comment that out, but there is no dlls/shell32/shell32_main.c anywhere on my box
( tried search )

so yeah, thanks very much. :)
Now I know how these patches work! :)

Ryupower 12-07-2006 01:40 PM

ugh...new question ( NEWBIE!!! ) when patching should I cd to my .wine in my home folder? Or should I cd to the extracted folder the source was downloaded to?

Ygrex 12-07-2006 01:53 PM

the patch is for source, therefore cd to the source directory

Ryupower 12-08-2006 03:42 PM

Thank you very much for your help. :)

Ryupower 12-17-2006 09:15 PM

OK, so anybody know how to patch if you installed wine using a binary?

Ygrex 12-18-2006 02:11 AM

Generally, you cannot. But...
There're special patches for binaries. If you have thus, you can apply it, but not with 'patch', use appropriate program (depends on the patch you have).

Ryupower 12-18-2006 06:07 PM

Quote:

Originally Posted by Ygrex
Generally, you cannot. But...
There're special patches for binaries. If you have thus, you can apply it, but not with 'patch', use appropriate program (depends on the patch you have).


Oh, OK. Thanks again!


All times are GMT -5. The time now is 06:38 AM.