Diese Anleitung richtet sich an alle die ein 32 Bit Wine für ihr 64 bit Debian selber kompilieren wollen.
Schritt 1: Debian Installation in der Chroot Umgebung
sudo apt-get install debootstrap
mkdir ~/wine-chroot -p
cd ~/
sudo debootstrap --arch i386 wheezy ~/wine-chroot http://ftp.de.debian.org/debian/
sudo mount -o bind /proc wine-chroot/proc
sudo cp /etc/resolv.conf wine-chroot/etc/resolv.conf
sudo chroot wine-chroot
Schritt 2: Grundlegende Konfiguration Debians innerhalb der Chroot Umgebung
apt-get update
apt-get install locales sudo vim libx11-dev:i386 libfreetype6-dev:i386 libxcursor-dev:i386 libxi-dev:i386 libxxf86vm-dev:i386 libxrandr-dev:i386 libxinerama-dev:i386 libxcomposite-dev:i386 libglu-dev:i386 libosmesa-dev:i386 libglu-dev:i386 libosmesa-dev:i386 libdbus-1-dev:i386 libgnutls-dev:i386 libncurses-dev:i386 libsane-dev:i386 libv4l-dev:i386 libgphoto2-2-dev:i386 liblcms2-dev:i386 libgstreamer-plugins-base0.10-dev:i386 libcapi20-dev:i386 libcups2-dev:i386 libfontconfig-dev:i386 libgsm1-dev:i386 libtiff-dev:i386 libpng-dev:i386 libjpeg-dev:i386 libmpg123-dev:i386 libopenal-dev:i386 libldap-dev:i386 libxrender-dev:i386 libxml2-dev:i386 libxslt-dev:i386 libhal-dev:i386 gettext:i386 prelink:i386 bzip2:i386 bison:i386 flex:i386 oss4-dev:i386 checkinstall:i386 ocl-icd-libopencl1:i386 opencl-headers:i386 libasound2-dev:i386 build-essential
echo 'export LC_ALL="C"'>>/etc/bash.bashrc
echo 'export LANG="C"'>>/etc/bash.bashrc
source /etc/bash.bashrc
adduser sandbox
usermod -g sudo sandbox
echo 'Defaults !tty_tickets' >> /etc/sudoers
su - sandbox
Schritt 3: Wine herunterladen, kompilieren und als .deb packen
Zuerst wird Wine heruntergeladen und gebaut:
wget http://prdownloads.sourceforge.net/wine/wine-1.7.20.tar.bz2
tar xvfj wine-1.7.20.tar.bz2
cd wine-1.7.20
./configure
make
Nun wird mit der Hilfe des Programms checkinstall ein .deb Paket erzeugt:
sudo checkinstall --install=no --fstrans=no
Der obengenannte Aufruf erzeugt einen Dialog der ein paar Fragen stellt, diese einfach mit Enter bestätigen:
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]:
Preparing package documentation...OK
Please write a description for the package.
End your description with an empty line or EOF.
>> wine 1.7.29
>>
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ root@localhost ]
1 - Summary: [ wine 1.7.20]
2 - Name: [ wine ]
3 - Version: [ 1.7.20]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ wine-1.7.20 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ wine ]
12 - Conflicts: [ ]
13 - Replaces: [ ]
Checkinstall takes a little while (In particular this step: 'Copying files to the
temporary directory...').
**********************************************************************
Done. The new package has been saved to /home/sandbox/tmp/wine-1.7.0/wine_1.7.0-1_i386.deb
You can install it in your system anytime using:
dpkg -i wine_1.7.0-1_i386.deb
**********************************************************************
4. Installation auf dem 64 Bit Debian
Zuerst muss Multiarch aktiviert und die benötigten Bibliotheken installiert werden:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install ia32-libs libgstreamer-plugins-base0.10-0
Nun kann das erzeugte Paket installiert werden:
sudo dpkg -i ~/wine-chroot/home/sandbox/wine-1.7.20/wine_1.7.0-1_i386.deb