Quick HOW-TO, compile a patched Wine:
Revision 0.3 - 2007/06/06
- Get the Wine source, click on this link and select the last Wine version: the patches are known to succesfully apply on top of 0.9.37 and 0.9.38.
- To prepare the source tree, you will have to unpack the source tar bundle: the standard way for Debian and Debian-based distros (as Ubuntu), is to unpack the source in /usr/src.
You can unpack to other directories as well; acceptable choices are /tmp and your home directory (~ or /home/joeuser). If you use /tmp, be aware that the system will automatically erase its contents after some time; in that case, it's better if you don't mv the tar bundle to tmp, or it will be deleted, too. Even if you don't need super-user privileges to build in those directories, you will still need them to install the binaries.If you copy/paste the commands, remember to replace XX with the correct version number!
- Now grab the patches; click on the links below then select Files -> Save Page As for both the patches, this way they should be correctly named.
- Apply the patches; the following assumes you have downloaded the patches in your home directory (if not, change the commands accordingly):
- And build Wine:
make depend; make
- If you have an old version of wine installed, then remove it using the package management tools provided by your distro. On Debian you simply issue the following command:
sudo apt-get remove wine
- Finally you can install your brand-new, fixed Wine:
When you think you're done tinkering, you can make clean
the wine tree. But keep it in place in case you want to make uninstall
If you prefer to use your distro's package management tools, you can obtain a Debian .deb bundle or an RPM using checkinstall
. This takes a little longer than just using make install/uninstall but is cleaner; you should also be aware that checkinstall isn't perfect and you might encounter problems that the 'make install' method does not have.
This should work fine on Debian etch and lenny. Different distros might need different commands. If you don't have sudo
installed on your system you might have to install and set it up, or resort to use su
. This quick how-to was quickly written and without a unix shell in front of me, so it might contain errors.
0.1 - original post
0.1.1 - fixed non working links.
0.1.2 - fixed non working patch commands.
0.2, added a short paragraph on using package management via the checkinstall hack.
0.3, added more places to extract the source bundle, known version to work with the patches, several little fixes.
This post has been edited by Keg of Beer: 06 June 2007 - 01:32 PM