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 D8FA81382C5 for ; Wed, 16 Dec 2020 03:01:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9F19AE08A2; Wed, 16 Dec 2020 03:01:47 +0000 (UTC) Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) (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 93D63E08A2 for ; Wed, 16 Dec 2020 03:01:47 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id b64so17322580qkc.12 for ; Tue, 15 Dec 2020 19:01:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aeKlCZ7rXiHoY01Q44eNiGyi6MVB0eIGdswdtrvSWMI=; b=AloBdpqjFiIQ3wtA/b8OpZ65xEDB/s8TbYL250l7jPhmvoVgAU/fRpBme6d2fU3UQn r6cZCc7EGXL7lsfIXZV5el+OBxd9qytV+Is75dqbMTq12XmjAOtitvyBRDKFu3Ns7WJG nKAVv4rNToIb2tk1qhVrOVrnKhR5hNiHgwDmTaX3+eZs2tUo521xG059PGKbrdj4SQFE oDH3+NwmNLYbBF+vo1GI/qJHJ7GlCUkfr4syWt2LPQ1z1P3AaHWzbw8gMeuRjMkP8Knf XnWVGY4pBz6y4AcOtCqPGN2K3yfHQNGptZYIAck6tcr5QorAujALOuYZEfSKmru9w9OW vkfQ== X-Gm-Message-State: AOAM533zvGaimObxYoob43VSN77uKC+Eg2YT6yswB5XoWOS17uQ/bAds kT/StFH2oOQMwwwTEdSG70uuYNvvY7eJqw== X-Google-Smtp-Source: ABdhPJxefF0xUgKNxJl/BKeE2Ohh8dVBdrrwNSiP2MJJIJl8QTisRX96rBzw92d0j4CHE10wKIl1FA== X-Received: by 2002:a05:620a:31a:: with SMTP id s26mr41424452qkm.66.1608087706623; Tue, 15 Dec 2020 19:01:46 -0800 (PST) Received: from localhost ([208.104.103.123]) by smtp.gmail.com with ESMTPSA id a77sm453649qkg.77.2020.12.15.19.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 19:01:45 -0800 (PST) From: Matt Turner To: gentoo-catalyst@lists.gentoo.org Cc: Matt Turner Subject: [gentoo-catalyst] [PATCH 2/5] targets: Make ${buildpkgs} an array Date: Tue, 15 Dec 2020 22:01:28 -0500 Message-Id: <20201216030131.14158-2-mattst88@gentoo.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201216030131.14158-1-mattst88@gentoo.org> References: <20201216030131.14158-1-mattst88@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 331c405b-3a84-41c7-9717-2d1cf4ff577f X-Archives-Hash: 09deac52452228f852cbdce402066638 Signed-off-by: Matt Turner --- targets/stage1/chroot.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/targets/stage1/chroot.sh b/targets/stage1/chroot.sh index dac52dfc..7e8d5b4e 100755 --- a/targets/stage1/chroot.sh +++ b/targets/stage1/chroot.sh @@ -3,7 +3,7 @@ source /tmp/chroot-functions.sh # We do this first, so we know our package list for --debug -buildpkgs="$(/tmp/build.py)" +buildpkgs=($(/tmp/build.py)) # Setup our environment [ -n "${clst_BINDIST}" ] && BINDIST="bindist" @@ -12,8 +12,7 @@ BOOTSTRAP_USE="$(portageq envvar BOOTSTRAP_USE)" FEATURES="${FEATURES} nodoc noman noinfo" ## Sanity check profile -if [ -z "${buildpkgs}" ] -then +if [[ ${#buildpkgs[@]} -eq 0 ]]; then echo "Your profile seems to be broken." echo "Could not build a list of build packages." echo "Double check your ${clst_port_conf}/make.profile link and the 'packages' files." @@ -72,7 +71,7 @@ if [ -e ${clst_make_conf} ]; then done fi -run_merge "--oneshot ${buildpkgs}" +run_merge "--oneshot ${buildpkgs[@]}" # TODO: Drop this when locale-gen in stable glibc supports ROOT. # -- 2.26.2