Skip to content

Instantly share code, notes, and snippets.

@dlintw
Created October 6, 2018 15:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dlintw/10da0d331d7fccee77c2a9062a2617dc to your computer and use it in GitHub Desktop.
Save dlintw/10da0d331d7fccee77c2a9062a2617dc to your computer and use it in GitHub Desktop.
#!/bin/bash
set -ex
cd /tmp
#pacman -S --needed --noconfirm base-devel
#git clone https://aur.archlinux.org/nosudo
#cd nosudo
#makepkg -o
#cp nosudo /bin/sudo
#chmod +x /bin/sudo
#cd ..
if false; then
rm -rf fakeroot-tcp
git clone https://aur.archlinux.org/fakeroot-tcp /tmp/fakeroot-tcp
fi
cd fakeroot-tcp
sed -e 's:\(patch -p.*\):\1||true:' PKGBUILD > PKGBUILD.2
sed -e 's:\(patch -p.*\):\1||true:' \
-e 's:prefix=/usr:prefix=/tmp/fakeroot:' \
-e 's:/usr/lib/libfakeroot:/tmp/fakeroot/libs:' \
PKGBUILD > PKGBUILD.1
cat >> PKGBUILD.1 <<END
set -ex
cd src
build
sudo make install
END
makepkg -Asop PKGBUILD.2
bash PKGBUILD.1
PATH=/tmp/fakeroot/bin:$PATH makepkg -Aip PKGBUILD.2
ls -l *xz
echo Done
# vim:et sw=2 ts=2 ai nocp sta
@sobaee
Copy link

sobaee commented Aug 12, 2020

When I reached to this:
PATH=/tmp/fakeroot/bin:$PATH makepkg -Aip PKGBUILD.2

It gave me this at the end of building:
Entering fakeroot environment...
fakeroot, while creating message channels: Function not implemented
This may be due to a lack of SYSV IPC support.
fakeroot: error while starting the `faked' daemon.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

The same issue when I tried with other methods?

Do you have any solution please?

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