Last active
May 19, 2019 18:16
-
-
Save iggyvolz/7f99bfe5f1545bd8869557e0ef4f5d73 to your computer and use it in GitHub Desktop.
League patching wip
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies | |
sudo apt install schroot debootstrap | |
# Setup chroot | |
echo "[ubuntu_i386]"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
echo "description=Ubuntu Release 32-Bit"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
echo "personality=linux32"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
echo "directory=$PWD"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
echo "root-users=$USER"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
echo "type=directory"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
echo "users=$USER"|sudo tee -a /etc/schroot/chroot.d/ubuntu_i386.conf | |
# Install chroot | |
sudo debootstrap --variant=buildd --arch=i386 disco $PWD | |
# Add sources for chroot | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco main restricted"|sudo tee -a etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco-updates main restricted"|sudo tee -a etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco universe"|sudo tee -a etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco-updates universe"|sudo tee -a etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco multiverse"|sudo tee -a etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco-updates multiverse"|sudo tee -a etc/apt/sources.list | |
echo "deb http://archive.ubuntu.com/ubuntu/ disco-backports main restricted universe multiverse"|sudo tee -a etc/apt/sources.list | |
echo "deb http://security.ubuntu.com/ubuntu disco-security main restricted"|sudo tee -a etc/apt/sources.list | |
echo "deb http://security.ubuntu.com/ubuntu disco-security universe"|sudo tee -a etc/apt/sources.list | |
echo "deb http://security.ubuntu.com/ubuntu disco-security multiverse"|sudo tee -a etc/apt/sources.list | |
#Enter chroot | |
sudo chroot . | |
# INSIDE THE CHROOT: | |
# Run updates and install required tools | |
apt update && apt upgrade -y | |
apt install -y build-essential autoconf git curl gawk bison python3 flex libx11-dev:i386 libfreetype6-dev:i386 | |
# Install patched glibc | |
cd / | |
git clone git://sourceware.org/git/glibc.git ./glibc-source | |
cd glibc-source | |
mkdir build | |
cd build | |
../configure --prefix=/glibc --host=i486-pc-linux-gnu | |
make -j8 | |
make install | |
# Install patched wine-staging | |
cd / | |
git clone https://github.com/wine-staging/wine-staging ./wine-staging-source | |
cd wine-staging-source | |
git clone git://source.winehq.org/git/wine.git ./wine-source | |
./patches/patchinstall.sh DESTDIR="./wine-source" --all | |
cd wine-source | |
curl -o poc-wine.diff https://bugs.winehq.org/attachment.cgi?id=64481 | |
git apply poc-wine.diff | |
mkdir build | |
cd build | |
../configure --prefix=/wine --without-freetype |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment