Skip to content

Instantly share code, notes, and snippets.

@etnperlong
Forked from tytydraco/fakeroot-tcp.sh
Last active March 31, 2022 19:26
Show Gist options
  • Save etnperlong/a71a1c1c27fa3973943efb4d22c72200 to your computer and use it in GitHub Desktop.
Save etnperlong/a71a1c1c27fa3973943efb4d22c72200 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.25.3.orig.tar.gz
tar xvf fakeroot_1.25.3.orig.tar.gz
cd fakeroot-1.25.3/
./bootstrap
./configure --prefix=/opt/fakeroot \
--libdir=/opt/fakeroot/libs \
--disable-static \
--with-ipc=tcp
make
cd doc
po4a -k 0 --rm-backups --variable "srcdir=../doc/" po4a/po4a.cfg
cd ..
sudo make install
OLDPATH="$PATH"
export PATH="/opt/fakeroot/bin:$PATH"
cd /tmp
rm fakeroot_1.25.3.orig.tar.gz
rm -rf fakeroot-1.25.3/
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"
@alkis05
Copy link

alkis05 commented Dec 18, 2021

Thanks for the updated fork, since 1.24 is not available anymore. I would like to report that I had trouble compiling version 1.25.3, so I tried using 1.26 and it worked, even though the fakeroot-tcp is version 1.25.3
So if anyone else is trying to use this script and having trouble compiling version 1.25.3, here is a possible solution.

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