Skip to content

Instantly share code, notes, and snippets.

@tytydraco
Created July 24, 2020 23:41
Show Gist options
  • Save tytydraco/df14e4f7af737e7b51ba35842f75342b to your computer and use it in GitHub Desktop.
Save tytydraco/df14e4f7af737e7b51ba35842f75342b to your computer and use it in GitHub Desktop.
Setup fakeroot-tcp without SystemV IPC support.
#!/bin/bash
cd /tmp
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz
tar xvf fakeroot_1.24.orig.tar.gz
cd fakeroot-1.24/
./bootstrap
./configure --prefix=/opt/fakeroot \
--libdir=/opt/fakeroot/libs \
--disable-static \
--with-ipc=tcp
make
sudo make install
OLDPATH="$PATH"
export PATH="/opt/fakeroot/bin:$PATH"
cd /tmp
rm fakeroot_1.24.orig.tar.gz
rm -rf fakeroot-1.24/
git clone https://aur.archlinux.org/fakeroot-tcp.git
cd fakeroot-tcp
makepkg -si
cd /tmp
rm -rf fakeroot-tcp
sudo rm -rf /opt/fakeroot
export PATH="$OLDPATH"
Copy link

ghost commented Nov 25, 2021

Very handy. Thanks!

@Sucharek233
Copy link

Sucharek233 commented Jan 22, 2023

http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz doesn't exist anymore and is replaced by a newer one.
I edited the script to make it work again:

#!/bin/bash

cd /tmp
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.31.orig.tar.gz
tar xvf fakeroot_1.31.orig.tar.gz
cd fakeroot-1.31/
./bootstrap
./configure --prefix=/opt/fakeroot \
        --libdir=/opt/fakeroot/libs \
        --disable-static \
        --with-ipc=tcp
make
sudo make install
OLDPATH="$PATH"
export PATH="/opt/fakeroot/bin:$PATH"

cd /tmp
rm fakeroot_1.31.orig.tar.gz
rm -rf fakeroot-1.31/

git clone https://aur.archlinux.org/fakeroot-tcp.git
cd fakeroot-tcp
makepkg -si

cd /tmp
rm -rf fakeroot-tcp
sudo rm -rf /opt/fakeroot

export PATH="$OLDPATH"

UPDATE: Edited on April 7th 2023, because it got updated again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment