From 3ee9d48fff5698bc024a307f01383546025d8f6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Tue, 3 Oct 2017 00:22:55 +0200 Subject: [PATCH] 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 --- sys-devel/gcc/files/fix_libtool_files.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2