BuildingWineFromSource
|
Size: 1571
Comment: First draft
|
Size: 1630
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| Line 14: | Line 15: |
| '''deb http://wine.sourceforge.net/apt source''' | {{{deb http://wine.sourceforge.net/apt source}}} |
| Line 22: | Line 23: |
| sudo apt-get build-dep wine | {{{sudo apt-get build-dep wine}}} |
| Line 28: | Line 29: |
| mkdir wine-0.9.12 | {{{mkdir wine-0.9.12 |
| Line 32: | Line 33: |
| apt-get source wine | apt-get source wine}}} |
| Line 36: | Line 37: |
| Sometimes the reason you're building from source is because you need to patch the stock release. | Sometimes the reason you're building from source is because you need to patch the stock release. (eg to apply the WoW patch) |
| Line 38: | Line 39: |
| patch -p0 < wine-patch#1.patch | {{{patch -p0 < wine-patch#1.patch |
| Line 42: | Line 43: |
| etc. | etc.}}} |
| Line 46: | Line 47: |
| apt-get build-package -hfakeroot -cu -b | {{{apt-get build-package -hfakeroot -cu -b}}} |
| Line 56: | Line 57: |
| dpkg --purge wine | {{{dpkg --purge wine |
| Line 60: | Line 61: |
| sudo dpkg -i wine_0.9.12~winehq1-1_i386.deb | sudo dpkg -i wine_0.9.12~winehq1-1_i386.deb}}} |
Reasons why one needs to build from source rather than relying on repos:
1 - One needs a more up to date version of Wine
2 - One needs to apply a patch to the stock Wine release
This guide was written for Breezy, using Wine 0.9.12.
The process for building Wine from source is as follows:
Enable the Sourceforge source repository
If not already done, enable the Sourceforge repo. Using synaptic, add the following custom repo
deb http://wine.sourceforge.net/apt source
(see: https://wiki.ubuntu.com/AddingRepositoriesHowto for more details)
Install the Wine build dependencies
The purpose of this step is to install any dependencies necessary to the build process.
sudo apt-get build-dep wine
Download the Wine source
Create the directory you're going to install Wine into
{{{mkdir wine-0.9.12
cd wine-0.9.12
apt-get source wine}}}
Apply patches, if necessary
Sometimes the reason you're building from source is because you need to patch the stock release. (eg to apply the WoW patch)
{{{patch -p0 < wine-patch#1.patch
patch -p0 < wine-patch#2.patch
etc.}}}
Build Wine
apt-get build-package -hfakeroot -cu -b
The build will take a LONG time, even with a fast machine, around an hour or so on a 2Gig CPU with 1Gig of Ram, so take a break.
Install the new Wine deb
The build process, once it's complete, will create a .deb in the parent directory. This is your new Wine package.
First remove the old Wine package
{{{dpkg --purge wine
cd ..
sudo dpkg -i wine_0.9.12~winehq1-1_i386.deb}}}
BuildingWineFromSource (last edited 2008-08-06 16:41:12 by localhost)