LINUX.ORG.RU

История изменений

Исправление dissident, (текущая версия) :

Можно наверное еще вот это попробовать ревертнуть:

https://www.mail-archive.com/pacman-dev@archlinux.org/msg00541.html

(see http://allanmcrae.com/2015/01/replacing-makepkg-asroot/)

AFAIU самое главное это как заметил anonymous ревертнуть вот это:

 if [ "$INFAKEROOT" = "0" ]; then
-	if [ $EUID -eq 0 -a "$ASROOT" = "0" ]; then
+	if [ $EUID -eq 0 ]; then
+		ASROOT="0"
 		# Warn those who like to live dangerously.
-		error "$(gettext "Running makepkg as root is a BAD idea and can cause")"
-		plain "$(gettext "permanent, catastrophic damage to your system. If you")"
-		plain "$(gettext "wish to run as root, please use the --asroot option.")"
-		exit 1 # $E_USER_ABORT
-	elif [ $EUID -gt 0 -a "$ASROOT" = "1" ]; then
-		# Warn those who try to use the --asroot option when they are not root
-		error "$(gettext "The --asroot option is meant for the root user only.")"
-		plain "$(gettext "Please rerun makepkg without the --asroot flag.")"
-		exit 1 # $E_USER_ABORT
+		warning "$(gettext "Running makepkg as root is a BAD idea and can cause")"
+		plain "$(gettext "serious damage to your system.")"
 	elif [ "$(check_buildenv fakeroot)" = "y" -a $EUID -gt 0 ]; then
 		if [ ! $(type -p fakeroot) ]; then

и не проверять ASROOT вовсе.

Исправление dissident, :

Можно наверное еще вот это попробовать ревертнуть:

https://www.mail-archive.com/pacman-dev@archlinux.org/msg00541.html

(see http://allanmcrae.com/2015/01/replacing-makepkg-asroot/)

AFAIR самое главное это как заметил anonymous ревертнуть вот это:

 if [ "$INFAKEROOT" = "0" ]; then
-	if [ $EUID -eq 0 -a "$ASROOT" = "0" ]; then
+	if [ $EUID -eq 0 ]; then
+		ASROOT="0"
 		# Warn those who like to live dangerously.
-		error "$(gettext "Running makepkg as root is a BAD idea and can cause")"
-		plain "$(gettext "permanent, catastrophic damage to your system. If you")"
-		plain "$(gettext "wish to run as root, please use the --asroot option.")"
-		exit 1 # $E_USER_ABORT
-	elif [ $EUID -gt 0 -a "$ASROOT" = "1" ]; then
-		# Warn those who try to use the --asroot option when they are not root
-		error "$(gettext "The --asroot option is meant for the root user only.")"
-		plain "$(gettext "Please rerun makepkg without the --asroot flag.")"
-		exit 1 # $E_USER_ABORT
+		warning "$(gettext "Running makepkg as root is a BAD idea and can cause")"
+		plain "$(gettext "serious damage to your system.")"
 	elif [ "$(check_buildenv fakeroot)" = "y" -a $EUID -gt 0 ]; then
 		if [ ! $(type -p fakeroot) ]; then

и не проверять ASROOT вовсе.

Исходная версия dissident, :

Можно наверное еще вот это попробовать ревертнуть:

https://www.mail-archive.com/pacman-dev@archlinux.org/msg00541.html

See http://allanmcrae.com/2015/01/replacing-makepkg-asroot/