updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / srcman / makepkg-asroot.patch
blobee9e14e20bbca0d76ec7ce27fb5777382d2f5043
1 --- a/srcman
2 +++ b/srcman
3 @@ -388,7 +388,7 @@ build_from_source() {
5 cd "$pkgname"
6 msg "$(_ "Invoking %s")" "$MAKEPKG"
7 - RUN_NAMCAP=1 PACMAN="$0 $asdeps" $MAKEPKG -isr --pkg "$pkgname" || return $?
8 + RUN_NAMCAP=1 PACMAN="$0 $asdeps" /usr/share/srcman/makepkg --asroot -isr --pkg "$pkgname" || return $?
10 cd "$TMPDIR"
11 rm -rf "$TMPDIR/$pkgname"
12 --- a/makepkg
13 +++ b/makepkg
14 @@ -1700,11 +1700,6 @@
15 plain "$(gettext "permanent, catastrophic damage to your system. If you")"
16 plain "$(gettext "wish to run as root, please use the --asroot option.")"
17 exit 1 # $E_USER_ABORT
18 - elif (( EUID > 0 && ASROOT )); then
19 - # Warn those who try to use the --asroot option when they are not root
20 - error "$(gettext "The --asroot option is meant for the root user only.")"
21 - plain "$(gettext "Please rerun makepkg without the --asroot flag.")"
22 - exit 1 # $E_USER_ABORT
23 elif [[ $(check_buildenv fakeroot) = "y" ]] && (( EUID > 0 )); then
24 if [ ! $(type -p fakeroot) ]; then
25 error "$(gettext "Fakeroot must be installed if using the 'fakeroot' option")"