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 B12FE138334 for ; Wed, 13 Mar 2019 14:14:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA54CE088D; Wed, 13 Mar 2019 14:14:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 90BBEE088D for ; Wed, 13 Mar 2019 14:14:40 +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 2BE13335C8E for ; Wed, 13 Mar 2019 14:14:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C1EE8581 for ; Wed, 13 Mar 2019 14:14:37 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1551966183.3dba87d0ba4def5d4306baed53ef5341ad7f314e.grobian@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: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 3dba87d0ba4def5d4306baed53ef5341ad7f314e X-VCS-Branch: master Date: Wed, 13 Mar 2019 14:14:37 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d135e853-5bf2-450d-b821-c7706884e755 X-Archives-Hash: 84c3088923c0f7a9a44e215970f1c51f commit: 3dba87d0ba4def5d4306baed53ef5341ad7f314e Author: Fabian Groffen gentoo org> AuthorDate: Thu Mar 7 13:41:28 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Mar 7 13:43:03 2019 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3dba87d0 scripts/bootstrap-prefix: avoid errors for every emerge etc/portage may not exist, so ensure it is created, and don't assume make.conf exists in it Signed-off-by: Fabian Groffen gentoo.org> scripts/bootstrap-prefix.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh index da6017f1bd..d014d9dbb2 100755 --- a/scripts/bootstrap-prefix.sh +++ b/scripts/bootstrap-prefix.sh @@ -1489,7 +1489,9 @@ do_emerge_pkgs() { ;; esac done - sed -i -e '/#stage3_temp#/d' "${EPREFIX}"/tmp/etc/portage/make.conf + mkdir -p "${EPREFIX}"/tmp/etc/portage + [[ -e "${EPREFIX}"/tmp/etc/portage/make.conf ]] && \ + sed -i -e '/#stage3_temp#/d' "${EPREFIX}"/tmp/etc/portage/make.conf { echo "CFLAGS=\"\${CFLAGS} ${OVERRIDE_CFLAGS}\" #stage3_temp#" echo "CXXFLAGS=\"\${CXXFLAGS} ${OVERRIDE_CXXFLAGS}\" #stage3_temp#"