From patchwork Thu Mar 16 21:45:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Sakoman X-Patchwork-Id: 21106 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 3A01AC74A5B for ; Thu, 16 Mar 2023 21:46:04 +0000 (UTC) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mx.groups.io with SMTP id smtpd.web10.5161.1679003164026773978 for ; Thu, 16 Mar 2023 14:46:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@sakoman-com.20210112.gappssmtp.com header.s=20210112 header.b=xyyrxpAJ; spf=softfail (domain: sakoman.com, ip: 209.85.215.172, mailfrom: steve@sakoman.com) Received: by mail-pg1-f172.google.com with SMTP id d10so1783645pgt.12 for ; Thu, 16 Mar 2023 14:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakoman-com.20210112.gappssmtp.com; s=20210112; t=1679003163; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=uCHDJ8ortbRAkCeOIGr4lvQH41R+64GoeyNEGAnCC/U=; b=xyyrxpAJj0q6DWzp1D/dRDc0coNfx9nCI0WAFwQbQ004ynPjF7Z93Z2E+92awSPs89 aQC5OrbMli/8K7HSVdv1WL5vNDMqxQWestTJiivPohFywgIt1NJWbR/rc7zAmU/EC8yr TooYL4aOKEg5xnuZ55XRP0ACKVh9buNB7o78yWQ0WMIk/BvOwqAXmMYMHoKZeg14PyBw WQYCILYsPGORQ3RaiBan0mM0EbFf0KZSvWK6UVcPAUh5MsuW3OCeNMb6zdZOnBqZqsJ6 VdYbK9UWxZ7Qh+tLyCs+tEgTN7ys8RT7MMGQqhuxjqTa6xTs+U7Ud4mNEDqm7WGl5epZ ydjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679003163; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uCHDJ8ortbRAkCeOIGr4lvQH41R+64GoeyNEGAnCC/U=; b=QjxEtx1h0azWgW8VbnuVGDRS3TvMhqg9Kk8aK6tmgVtsK/8B3QA9X87AmoQCOipRjO b2dVJ8HkAz84gvm18TTd3LGw5Epy30DBLxwnOsVbQD0LdIdpCab2hCQRz9xqpQbkJeEO 3JhpMiCMpHJbQROkc+Dzkl8QBhJa2uAfprQeYL3IXNBzFoiYuZ4tSipOQCXyymj5xPsP Pxyh29XqOz+cL7l4unqyBK1sI7pBBVb1ioicQCNz4ZxFogRZv6TkpidRBKiB++AJVHTH W07XkIi/+oncxILJNVILRgU9kJavQrPjoRu4ip0tNhfmw2LE6EWsuuMaMB7ceVl79d7H +idA== X-Gm-Message-State: AO0yUKWNtC+0VWfRJik49b9mXYdDZxrSecR84znUk1NrbiftpclKqbS6 xRAx12h2rx1dugdBRSK66pfBGP3RsayJpUNHzWQ= X-Google-Smtp-Source: AK7set8bCJrxWTxi6mJR0u9rSyJpPROOo/HH2AW6YFcNod7XdqN8ys8rOq1QqhDoT6L4i3jNEFOJeg== X-Received: by 2002:a62:cf04:0:b0:5a8:bcf2:125 with SMTP id b4-20020a62cf04000000b005a8bcf20125mr4155478pfg.21.1679003163096; Thu, 16 Mar 2023 14:46:03 -0700 (PDT) Received: from hexa.router0800d9.com (dhcp-72-253-4-112.hawaiiantel.net. [72.253.4.112]) by smtp.gmail.com with ESMTPSA id bn10-20020a056a00324a00b005a84ef49c63sm137746pfb.214.2023.03.16.14.46.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 14:46:02 -0700 (PDT) From: Steve Sakoman To: openembedded-core@lists.openembedded.org Subject: [OE-core][langdale 20/23] toolchain-scripts: Handle spaces within user $PATH Date: Thu, 16 Mar 2023 11:45:17 -1000 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: 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, 16 Mar 2023 21:46:04 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/178731 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 Signed-off-by: Alexandre Belloni (cherry picked from commit 42177ff2d45ee70ad00917bb6fbabca49dae4f59) Signed-off-by: Steve Sakoman --- meta/classes-recipe/toolchain-scripts.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/toolchain-scripts.bbclass b/meta/classes-recipe/toolchain-scripts.bbclass index fa658a6596..6bfe0b6de0 100644 --- a/meta/classes-recipe/toolchain-scripts.bbclass +++ b/meta/classes-recipe/toolchain-scripts.bbclass @@ -53,7 +53,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