Skip to content

Instantly share code, notes, and snippets.

@krmanik
Last active February 2, 2022 18:10
Show Gist options
  • Save krmanik/ff2aa651835f1b63a0b954f406013158 to your computer and use it in GitHub Desktop.
Save krmanik/ff2aa651835f1b63a0b954f406013158 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.27.orig.tar.gz
tar xvf fakeroot_1.27.orig.tar.gz
cd fakeroot-1.27/
./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.27.orig.tar.gz
rm -rf fakeroot-1.27/
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"
@krmanik
Copy link
Author

krmanik commented Feb 2, 2022

To build fakeroot-tcp in manjaro proot (arch).
To install yay it requires fakeroot.

Build fakeroot-tcp

  1. Edit manjaro.sh file and add --sysvipc
nano manjaro.sh

image

  1. Proot into manjaro
./manjaro.sh

Build and install fakeroot-tcp

  1. Install required packages
sudo pacman -S base-devel git
  1. Git clone fakeroot-tcp package
git clone https://aur.archlinux.org/fakeroot-tcp.git
  1. Change directory to fakeroot-tcp
cd fakeroot-tcp
  1. Remove prepare() from PKGBUILD
sed -ir '/prepare()/,+6d' PKGBUILD
  1. Now build it
makepkg -irs

Build yay

sudo pacman -Sy git base-devel -y
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

krmanik/Manjaro-Linux-on-Android#15 (comment)

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