LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2006, 07:11 AM   #1
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Rep: Reputation: 16
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
 
Old 12-03-2006, 08:36 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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
 
Old 12-03-2006, 11:30 AM   #3
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
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

Last edited by Ryupower; 12-03-2006 at 11:32 AM.
 
Old 12-03-2006, 11:54 AM   #4
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
it'd better that you download the file either with some application (like wget or curl) or using "save as..." in your browser
 
Old 12-03-2006, 12:59 PM   #5
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
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...

Last edited by Ryupower; 12-03-2006 at 01:04 PM.
 
Old 12-03-2006, 03:19 PM   #6
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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
 
Old 12-03-2006, 04:27 PM   #7
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
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!
 
Old 12-07-2006, 01:40 PM   #8
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
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?
 
Old 12-07-2006, 01:53 PM   #9
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
the patch is for source, therefore cd to the source directory
 
Old 12-08-2006, 03:42 PM   #10
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
Thank you very much for your help.
 
Old 12-17-2006, 09:15 PM   #11
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
OK, so anybody know how to patch if you installed wine using a binary?
 
Old 12-18-2006, 02:11 AM   #12
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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).
 
Old 12-18-2006, 06:07 PM   #13
Ryupower
Member
 
Registered: Oct 2006
Posts: 75

Original Poster
Rep: Reputation: 16
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Google releases Picasa for Linux -- and 100+ Wine patches LXer Syndicated Linux News 0 05-26-2006 09:54 AM
how to install patches in linux phanee Linux - Software 1 12-21-2005 07:17 AM
How to install patches. tchurch SUSE / openSUSE 1 01-20-2005 03:06 AM
RedHat patches vs open source patches paulsh2k4 Linux - Software 1 10-14-2004 03:18 AM
Which Security Patches to install Karen61 Linux - Security 2 11-12-2003 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration