Wine instalacja patchow

Tutaj można zadać pytanie, jeśli Linuksa widzi się pierwszy raz w życiu ;)
seba413
Piegowaty Guziec
Piegowaty Guziec
Posty: 4
Rejestracja: 19 paź 2012, 16:04
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Xfce
Architektura: x86

Wine instalacja patchow

Post autor: seba413 »

Witam.Proszę o pomoc przy instalacji patchow do WINE.Np. patch nazywa sie patch1.patch więc przechodzę do folderu gdzie owy patch znajduje, w terminalu pisze patch -p1 < patch1.patch nastepnie mam napisać File to patch. Nie mam pojęcia co tam napisać wydaje mi się że plik który trzeba spatchować.

Kod: Zaznacz cały

NOTE: These instructions work for almost any distro EXCEPT for Ubuntu 12.04 64bit. If you are unlucky and have that painful OS, scroll a little down and follow the Ubuntu-specific guide :)

NOTE2: Follow this only if you don't want to use the above script, because the script covers all that is mentioned here and also makes two more scripts to run and optimize LoL threading to increase performance.

NOTE3: You have to patch WINE, to get League of Legends running with WINE. There are two necessary patches and at least 3 patches which are needed to get the Shop running.

NOTE4: This HowTo does not show you, how to install League of Legends. If you really want or have to install League of Legends from scratch, you can see the needed command for this here at this AppDB entry (scroll down).



1. Download the source code from WINE (latest tested working version was 1.5.3) and extract it (or just use git to get the source).


2. When the source is extracted, download this to patches and store them into the wine source folder:
http://uz.sns.it/~ranma42/iLoL/spectator-fix-v2/0001-ntdll-Improve-performace-of-heap-allocation-v2.patch
http://uz.sns.it/~ranma42/iLoL/spectator-fix-v2/0002-imm32-Avoid-deadlock-when-destroying-thread-data.patch

3. To get the shop running with WINE, there are 3 more patches required. Also, download them in store them into the WINE source folder:
http://bugs.winehq.org/attachment.cgi?id=39446
http://bugs.winehq.org/attachment.cgi?id=39447
http://bugs.winehq.org/attachment.cgi?id=39449


NOTE: the uz.sns.it  site is down, so you will not be able to download the patches from there. Instead, download all 5 patches here: http://www.mediafire.com/?xtu26a6szgct46d

patches are renamed to make easier the patching. ergo, u don't have to write too much xD


You can use wget for easy downloading them: "wget http://bugs.winehq.org/attachment.cgi?id=39446 -O lol-store-1.patch" for the first patch "-O lol-store-2.patch" for the next one, and so on. With the mediafire file, you can't do this.


4. Now, we have to gonna patch the source code. Use

    patch -p1 < PATCHFILE

for each patch which you have downloaded the steps before. For example

    patch -p1 < 0001-ntdll-Improve-performace-of-heap-allocation-v2.patch

and so on ...


5. After that you have to use

    ./configure

Don't forget, that you have to install required libs to build WINE. Also you can use another prefix, for e.g.

    ./configure --prefix=/opt/winelol

to install your build of WINE later to another location than the default WINE from the repos. 
Cichy Roman
Sędziwy Jeż
Sędziwy Jeż
Posty: 33
Rejestracja: 08 wrz 2012, 20:31
Płeć: Mężczyzna
Wersja Ubuntu: 14.04
Środowisko graficzne: Unity
Architektura: x86

Re: Wine instalacja patchow

Post autor: Cichy Roman »

Po prostu jak skopiujesz ściągnięte pacze do katalogu w którym masz źródła Wine, wydajesz polecenia:

patch -p1 < nazwa_piewszego_pacza.patch
patch -p1 < nazwa_drugiego_pacza.patch
...itd
seba413
Piegowaty Guziec
Piegowaty Guziec
Posty: 4
Rejestracja: 19 paź 2012, 16:04
Płeć: Mężczyzna
Wersja Ubuntu: 12.04
Środowisko graficzne: Xfce
Architektura: x86

Re: Wine instalacja patchow

Post autor: seba413 »

Dzięki za odpowiedź, temat do zamknięcia.
ODPOWIEDZ

Wróć do „Przedszkole Linuksa”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 8 gości