Created
October 6, 2018 15:58
-
-
Save dlintw/10da0d331d7fccee77c2a9062a2617dc to your computer and use it in GitHub Desktop.
This file contains 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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?