patch installed wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

patch installed wine

Post by syron »

Hey guys,

I'm pretty new to this stuff, like wine and linux, I'm actually running Ubuntu 10.04 on my machine and I'm wondering, since I love the game League of legends, if there is a possibility to patch an existing installation of wine.

I found this link: http://appdb.winehq.org/objectManager.p ... &iId=19141

where it says, that I have to patch 2 files and then compile wine. Well... I don't really know much about it. What do I have to do to make it patch my existing wine installation or do I really have to uninstall wine, install all the necessary packages and then compile wine?
James_Huk
Level 2
Level 2
Posts: 45
Joined: Tue Feb 23, 2010 4:59 pm

Post by James_Huk »

You can't patch your existing wine installation - wine recompilation is required for that. So if you want to apply some patches you must download wine source, unpack it, copy .patch files to the source dir, apply them with patch -p1 <patchname.patch, and compile wine. although this sounds complicated, it is not - assuming you got all the requirements for wine compilation - i think that on Ubuntu you can get them the same way like on Debian - that is:

sudo apt-get update && sudo apt-get build-dep wine
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

Post by syron »

Thanks,

yeah it sounds complicated, but I will give it a try, thanks for the reply :)
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

Post by syron »

What does that command do?

Code: Select all

sudo apt-get build-dep wine
Does it download & install all required packages to make the compilation of wine possible?
Evil Jay

patch installed wine

Post by Evil Jay »

On 06/25/2010 03:40 AM, syron wrote:
Hey guys,

I'm pretty new to this stuff, like wine and linux, I'm actually running Ubuntu 10.04 on my machine and I'm wondering, since I love the game League of legends, if there is a possibility to patch an existing installation of wine.

I found this link: http://appdb.winehq.org/objectManager.p ... &iId=19141

where it says, that I have to patch 2 files and then compile wine. Well... I don't really know much about it. What do I have to do to make it patch my existing wine installation or do I really have to uninstall wine, install all the necessary packages and then compile wine?
Yes, you really have to uninstall, patch and compile. Patch files
contain changes for the source, not the binary.
James_Huk
Level 2
Level 2
Posts: 45
Joined: Tue Feb 23, 2010 4:59 pm

Post by James_Huk »

What does that command do? Code:
sudo apt-get build-dep wine



Does it download & install all required packages to make the compilation of wine possible?
Yes, I use it on Debian - but it should work with Ubuntu as well.
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

Post by syron »

Thanks.

so basically I just have to put the patches into the source folder, patch them with patch p1 < name.patch
one by one and then just compile the source? Or is there any special command to make the compilation with the patches in it? or does the patch command know where to put those patches in? (sorry I'm really new to this, I'm trying to understand it)
Frédéric Delanoy

patch installed wine

Post by Frédéric Delanoy »

On Fri, Jun 25, 2010 at 14:38, syron <[email protected]> wrote:
Thanks.

so basically I just have to put the patches into the source folder, patch
them with patch p1 < name.patch
one by one and then just compile the source? Or is there any special
command to make the compilation with the patches in it? or does the patch
command know where to put those patches in? (sorry I'm really new to this,
I'm trying to understand it)
A patch indicates the files that were modified, as well as which change to
apply (read one to get an example).
Patched code is just modified code; it's completely orthogonal to the
compilation process.

Frédéric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-us ... chment.htm>
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

Post by syron »

Thanks,

it worked perfectly. But I'm having a new question.

I've successfully installed wine via source and I can run wine software by running ./wine program.exe in the source folder, but I cannot rune wine program.exe outside the folder, how can I fix that?
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

Post by syron »

ops, I'm sorry for making a new reply. I forgot to add a question.

when I was running a program in debug mode and in this case it was league of legends, which successfully started and I was able to be ingame, it seemed like I had no graphic drivers installed for wine. Do I have to add something?
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

syron wrote:Thanks,

it worked perfectly. But I'm having a new question.

I've successfully installed wine via source and I can run wine software by running ./wine program.exe in the source folder, but I cannot rune wine program.exe outside the folder, how can I fix that?
First, uninstall the wine package from the package manager, to prevent any conflicting global files with your compiled version. Then run "sudo make install" (no quotes).

Graphics drivers are installed and taken from your distro, not Wine. Check if you have any proper (Linux) 3D graphics drivers installed (the best test is to just install and run an OpenGL game like Armagetron or Sauerbraten and see how well it runs - if framerate is horrible, you lack proper 3D graphics drivers).
syron
Level 1
Level 1
Posts: 7
Joined: Fri Jun 18, 2010 9:53 am

Post by syron »

ok thanks DaVince, I'll try that.

To the graphic driver options, I found out, that the game needs d3dx9 and stuff like that, but that can be fixed with winetricks.

Thanks for the help
Locked