From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3BE25139083 for ; Wed, 20 Dec 2017 08:04:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 861CBE0E85; Wed, 20 Dec 2017 08:04:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 63073E0E85 for ; Wed, 20 Dec 2017 08:04:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5ECF033BF01 for ; Wed, 20 Dec 2017 08:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 21E85A6AE for ; Wed, 20 Dec 2017 08:04:27 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1513757060.c79d9272b631eadd79b5e81b0f3aef887d30eb63.heroxbd@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/bootstrap-prefix.sh X-VCS-Directories: scripts/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: c79d9272b631eadd79b5e81b0f3aef887d30eb63 X-VCS-Branch: master Date: Wed, 20 Dec 2017 08:04:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e220b596-cba1-4b7f-8137-570b10c24462 X-Archives-Hash: e139c4d765a3997f0c75523b03d9788d commit: c79d9272b631eadd79b5e81b0f3aef887d30eb63 Author: Benda Xu gentoo org> AuthorDate: Wed Dec 20 08:03:13 2017 +0000 Commit: Benda XU gentoo org> CommitDate: Wed Dec 20 08:04:20 2017 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=c79d9272 bootstrap-prefix.sh: enable RAP on any linux-based installations. This can be disabled by setting envvar PREFIX_DISABLE_RAP=yes. scripts/bootstrap-prefix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index 1b15a7add2..5c7ec7bd45 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -7,8 +7,8 @@ trap 'exit 1' TERM KILL INT QUIT ABRT # some basic output functions eerror() { echo "!!! $*" 1>&2; } einfo() { echo "* $*"; } -# RAP (libc) mode is triggered if the script is renamed to bootstrap-rap.sh. -is-rap() { [[ ${BASH_SOURCE} = *rap.sh ]]; } +# RAP (libc) mode is triggered on Linux kernel and glibc. +is-rap() { [[ ${PREFIX_DISABLE_RAP} != "yes" && ${CHOST} = *linux-gnu* ]]; } rapx() { is-rap && echo $1 || echo $2; } # prefer gtar over tar