From: Andreas K. Hüttel Date: Mon, 2 Oct 2017 22:22:55 +0000 (+0200) Subject: sys-devel/gcc: fix_libtool_files.sh: do not require to be root on prefix, bug 607900 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=3ee9d48fff5698bc024a307f01383546025d8f6b;p=gentoo.git sys-devel/gcc: fix_libtool_files.sh: do not require to be root on prefix, bug 607900 Closes: https://bugs.gentoo.org/607900 Package-Manager: Portage-2.3.10, Repoman-2.3.3 --- diff --git a/sys-devel/gcc/files/fix_libtool_files.sh b/sys-devel/gcc/files/fix_libtool_files.sh index 2b818ce66d08..ad137a9866fb 100644 --- a/sys-devel/gcc/files/fix_libtool_files.sh +++ b/sys-devel/gcc/files/fix_libtool_files.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 usage() { @@ -39,6 +39,7 @@ ARGV3=$3 . /etc/profile || exit 1 if [ ${EUID:-0} -ne 0 ] ; then +if [ ${EUID:-0} -ne 0 -a "${EPREFIX}" == '' ] ; then echo "${0##*/}: Must be root." exit 1 fi