sys-devel/gcc: fix_libtool_files.sh: do not require to be root on prefix, bug 607900
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 2 Oct 2017 22:22:55 +0000 (00:22 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Mon, 2 Oct 2017 22:23:10 +0000 (00:23 +0200)
Closes: https://bugs.gentoo.org/607900
Package-Manager: Portage-2.3.10, Repoman-2.3.3

sys-devel/gcc/files/fix_libtool_files.sh

index 2b818ce66d08f6907c8e6a83698f97a1740425a0..ad137a9866fbe754ac22317f31c87017a9ba4100 100644 (file)
@@ -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