From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7249602373157388288 X-Received: by 2002:adf:dfd2:0:b0:314:1c51:18 with SMTP id q18-20020adfdfd2000000b003141c510018mr10208370wrn.70.1688466290182; Tue, 04 Jul 2023 03:24:50 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:e706:0:b0:312:831f:5807 with SMTP id c6-20020adfe706000000b00312831f5807ls1745101wrm.2.-pod-prod-05-eu; Tue, 04 Jul 2023 03:24:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlFoswputh5XP22JjaOXKasC3Wbbjx5LuoSaQMDO2SAzYxyBZ6XsQO53nMPXGbgCwQdvpFp7 X-Received: by 2002:adf:e3ca:0:b0:30f:c21c:b9b5 with SMTP id k10-20020adfe3ca000000b0030fc21cb9b5mr9222947wrm.50.1688466288737; Tue, 04 Jul 2023 03:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688466288; cv=none; d=google.com; s=arc-20160816; b=Fvb8HNg5hhMh4ySuIYVDruDVfkWKNExd1Dn1bNJdbKb0ZEYlS1tyLCfCXUmA2egFAe XdUeA78545tjH4urpgpQ95jKOO0D+8PkoVRxRT2cU6fzcn4GpCQaDU3XWNAQRqfECEyw GdluzvDa5FMolcNm3G2pRMDZM8dY8uZqUiqC8RfbnA4b+OLLGdAR1rcVpZT46qwaIKKO Q428Elj1M6r9fDyy9yOGIb8QweKDi7t8XhyPaAMJdQOuvvXS2vaJVbaohSpkJoyYR5wV S1nsOQ6EKI12cH4uaSGG7J8txWCcE54r5gR0GI1BXMg8oMs4SdcQJR63zG5m08gIlxdd 9GEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:ironport-sdr; bh=5Ia2pPHq2M9tbXBsWX1ToOzIEJEUyG5QTVME18Mz6Q4=; fh=JgEee6G+u/WJVtxH14lKsjv1kozmdJPBuWXbDNCCoEk=; b=OR/d3iX1u1+rp5hG8e55i9T32fqa3EuAsH05bAzL58y7oQzEKCpSbjtAS2dST1j6jI rc6fSi6w7KAB1afu62JJ/xOxGDojIGDMxvvV0OfGCDI+mR3ecICtKE2rJGbj1fHJA3Pz R/rBvMtotsQ6QtjyAM718D9fSjeuk6PkpudCBa+e8JRG10/il4tcHLDhQ4bM0CA4wJsL Fy5WEFHDuOFHKEawwE08lLeDlkgwTyK7qhpFYDKNX7Qg4rU7hJuv/fN4Mcggi4J+/uhh 5LJskOxSmunSx3ugLmaB7EwjOEsx6Zit0Yw1GDd2OzeGiInHJK2E2ZxGNv+7wOxHLLoq JZEA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com Return-Path: Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id bt30-20020a056000081e00b0031122f71bcdsi1619997wrb.6.2023.07.04.03.24.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2023 03:24:48 -0700 (PDT) Received-SPF: pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com X-IronPort-AV: E=Sophos;i="6.01,180,1684828800"; d="scan'208";a="10861845" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa3.mentor.iphmx.com with ESMTP; 04 Jul 2023 02:24:46 -0800 IronPort-SDR: tsQoaQLSfFFpIpOTMuFREr3g3vjSPqRWQ5Kq5AN3qgy2XqdPCbXLeZDbE6vqYxojb5MILgVoov LrAo/EIAgJ+Ike8CbETkvQbnFuKmRYRvq0rm3Cwq/a+YF/CM4EA1PnS2QCbmmOoflTDptHVUAD CtR3QIlUZ/EtFBlUz3ChpAmAjGDz3PXLbJ9lnW9a9FLxZtKMV8YwkUAVx1PEYxdeCNCjlYZzOs VRFcAAhUJKBk3mS/rjJYAaKJ+8P6KgAatcJZtc3ylx0mO0I540waqOjk0+aGQKOAKwgkLcNEh+ Gj0= From: Srinuvasan Arjunan To: CC: , Srinuvasan A Subject: [PATCH] classes/sdk.bbclass: remove additional "/" in new_target finding Date: Tue, 4 Jul 2023 15:54:16 +0530 Message-ID: <20230704102416.2646313-1-srinuvasan_a@mentor.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Return-Path: srinuvasan_a@mentor.com X-ClientProxiedBy: svr-orw-mbx-11.mgc.mentorg.com (147.34.90.211) To svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) X-TUID: mmeFVRMiY6VF From: Srinuvasan A We observed that one additional / present in finding the new_target, here target already start with /, hence no need to append the additional /. In functionality wise there is no change. Signed-off-by: Srinuvasan A --- meta/classes/sdk.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index c6dc689..3d650a1 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass @@ -98,9 +98,10 @@ sdkchroot_finalize() { for link in $(find ${ROOTFSDIR}/ -type l); do target=$(readlink $link) + # Enter into if condition if target has a leading / if [ "${target#/}" != "${target}" ]; then basedir=$(dirname $link) - new_target=$(realpath --no-symlinks -m --relative-to=$basedir ${ROOTFSDIR}/${target}) + new_target=$(realpath --no-symlinks -m --relative-to=$basedir ${ROOTFSDIR}${target}) # remove first to allow rewriting directory links sudo rm $link -- 2.34.1