From patchwork Thu Mar 9 19:49:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mickael.laventure+yocto@gmail.com X-Patchwork-Id: 20681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B291DC61DA4 for ; Thu, 9 Mar 2023 19:49:34 +0000 (UTC) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx.groups.io with SMTP id smtpd.web10.703.1678391367287099271 for ; Thu, 09 Mar 2023 11:49:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QB1y7cZr; spf=pass (domain: gmail.com, ip: 209.85.214.175, mailfrom: mickael.laventure+yocto@gmail.com) Received: by mail-pl1-f175.google.com with SMTP id a2so3168544plm.4 for ; Thu, 09 Mar 2023 11:49:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678391366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=pdqpTEpkg4vMcJRIkCZwD1cIF+dXtKygRV8MLMrTO8c=; b=QB1y7cZreeZlX6lHfhVClSNHs9Gk5YWUaBGRxG3c3dvtaw6DcLdgFh+huheEceHcpQ FEifxb4ysA4bOalXxR+1JUCaS6/qgBEOwNjXGEz+/KaMNPd+ms/bLoHw+O4LX1cO/OJH BjZJcvCcGnfdo3Bm7WIiY3aNKPgFwoUOnasFJi1ml2lw/Ghh/gYTL1CFh/5J6ZpXgelB w8fzU5dzhFHoAcyj4Aw9r82S9xfWu9BQGO6ed7yTXf9QYxVrBKpoxRm/Z1CJ7876aQen Lo3/xmOKy2R23sd4fEJBbRhqsIiyghn/KGsW+BosRIb1ZmIBF2rwZEUqcbELYFCL/7d1 jS/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678391366; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:sender:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=pdqpTEpkg4vMcJRIkCZwD1cIF+dXtKygRV8MLMrTO8c=; b=iiPCHspbDi8gZ+MLMQAdHUEugQ/uPhiROf+VN8ozFC/xAm0zV0rZwjYVhR0Zxl0ToL tsSrI6NanC79zffKbWlD896LosMxtf1ZkKaYw82byW5lZWETbHm/EW4yIV0nlblRSMtU pDVQjLZGIhohl8iM+MVDPKgtMZMfpyS1gu9PO/U3X2nT6p0pKUJ/sxEN5aEyup3knCHY 8zjkwO5AZSKs7Q6GBCjjSCeC4DqKmVeQ/nZzDOZnkyYINWDp9wKNkjaXJiFsSUVZLB0Z CWmkgiLXJTnm0rY/MgeMe9wkduZrDEtVCUeZwWwrZ5qjgU3KBL8VO2jaiTBsqr7na2ZN slfg== X-Gm-Message-State: AO0yUKWSLYI55ZJIzt2FMDRLAPgZCdIFql/jZZtMHteulmQa9K2D70NM aUmG2aettj2re+8EmbLudYusb7m0weIT9g== X-Google-Smtp-Source: AK7set9VUhfMQtEPDNUgJPeJYtg81z5YgJeLyXcApIooq1ti6s9jiRJyZJ4u++4JqWh4HSoFkO5nyQ== X-Received: by 2002:a05:6a20:b712:b0:cc:a1dd:d0c1 with SMTP id fg18-20020a056a20b71200b000cca1ddd0c1mr22091101pzb.50.1678391366408; Thu, 09 Mar 2023 11:49:26 -0800 (PST) Received: from localhost.localdomain ([2a09:bac5:658b:28::4:269]) by smtp.gmail.com with ESMTPSA id g24-20020a631118000000b00476d1385265sm873pgl.25.2023.03.09.11.49.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 11:49:26 -0800 (PST) Sender: =?utf-8?q?Kenfe-Micka=C3=ABl_LAVENTURE?= From: mickael.laventure+yocto@gmail.com To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/3] toolchain-scripts: Handle spaces within user $PATH Date: Thu, 9 Mar 2023 11:49:21 -0800 Message-Id: <20230309194922.2834559-2-mickael.laventure+yocto@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230309194922.2834559-1-mickael.laventure+yocto@gmail.com> References: <20230309194922.2834559-1-mickael.laventure+yocto@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 09 Mar 2023 19:49:34 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/178261 From: Kenfe-Mickael Laventure The environment-setup script generated by the recipe was not quoting the user existing PATH when updating it causing the export command to fail. Add necessary double quotes around $PATH. Signed-off-by: Kenfe-Mickael Laventure --- meta/classes/toolchain-scripts.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 9aa31dc6cd..21762b803b 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass @@ -44,7 +44,7 @@ toolchain_create_sdk_env_script () { for i in ${CANADIANEXTRAOS}; do EXTRAPATH="$EXTRAPATH:$sdkpathnative$bindir/${TARGET_ARCH}${TARGET_VENDOR}-$i" done - echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$sbindir:$sdkpathnative$base_bindir:$sdkpathnative$base_sbindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script + echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$sbindir:$sdkpathnative$base_bindir:$sdkpathnative$base_sbindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':"$PATH"' >> $script echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig:$SDKTARGETSYSROOT'"$prefix"'/share/pkgconfig' >> $script echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script