From patchwork Wed Jun 12 02:39:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 44956 X-Patchwork-Delegate: steve@sakoman.com 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 108A7C27C7B for ; Wed, 12 Jun 2024 02:39:26 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (EUR01-VE1-obe.outbound.protection.outlook.com [40.107.14.80]) by mx.groups.io with SMTP id smtpd.web10.2114.1718159958012985310 for ; Tue, 11 Jun 2024 19:39:18 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=AwY3EAmc; spf=pass (domain: axis.com, ip: 40.107.14.80, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y0PdvEJZEgaidPbRg0QD6sk6nFK8VwiT8t/pSVGprK6frSrStJvtcX+kUs937FBBzNC92jULOWVJx1/aMW+VYVRi2VyRfSlxFYT2QHW8IkhYxFqHpIKSXm0x2ghyJ0iWAEBWcYYr5toJ0TQemVmd68fHCgKmY6eIcoC8IoLPXhTq16P9EiMdrktSLmO7qd+NwWXT1LzKKV5jGvy+F4N/Ul270tGwNanIalervxZJSrB4WbXs58d0h5MOQE+6kFIoMPUVDlbfmHwdeJceH9SYAIsP7v3eo3Fm/DnXj52IYxlA9BXumq0gY4Vg8yg08rzqs2Wahbpipcs3CblplZXNfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NEQJJKjkbc7jbh9yEl+hhgbXTpt5EVpib7qwWn92ZIU=; b=TULN9nYMQiNCeZKXwTRdJyNwZi/jo5uGbwTZTc3LzfhHdMMQhGmuC55Fa7Pmk2RT477kUCj3zg6QOKHY2PU9nTm3PMKnyfpsErj3VhLQl19vk0f8+tmRtsTMs8v5wXHSYQSnCCcPD8iIOq3XRXTDQRhvWRRBL1llwjHlqbAZTi9yi04HKEBWdCi3XwZVI6Na7OqJ5yRZLvM6Mny7eUXQU1OZX8wtgXdmBlPeD57vtEPfeT/dW4/hNx5o+N/87phICSOSJoFhmvtgNy2MhWhuXAzmVl8uplH/h/wj8cItwkfJ1pUEqffKqs1Y68O4gSVjCL09h5Hd9ru+SyOzxIMtMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NEQJJKjkbc7jbh9yEl+hhgbXTpt5EVpib7qwWn92ZIU=; b=AwY3EAmcilXEXDyxi9suIgLuPxb9eNhozl6o5FAPBjcqMY1y3Ps599meN+yeS/CfNEnPCHTEG3oJO7Yo/qhN40Dc2VTeEsU7cwu7AXE08dsPrcQR6V1hrG4YfX0o5Eiq1F3UHoWxWoiUtXuxVBPcTrBpCbWNfWiLcWN9jTrv/RQ= Received: from AM9P192CA0004.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:21d::9) by AS1PR02MB8186.eurprd02.prod.outlook.com (2603:10a6:20b:475::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.37; Wed, 12 Jun 2024 02:39:09 +0000 Received: from AMS1EPF0000004C.eurprd04.prod.outlook.com (2603:10a6:20b:21d:cafe::a) by AM9P192CA0004.outlook.office365.com (2603:10a6:20b:21d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.17 via Frontend Transport; Wed, 12 Jun 2024 02:39:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AMS1EPF0000004C.mail.protection.outlook.com (10.167.16.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Wed, 12 Jun 2024 02:39:13 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 12 Jun 2024 04:39:12 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 12 Jun 2024 04:39:12 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 12 Jun 2024 04:39:12 +0200 Received: from saur.se.axis.com (saur.se.axis.com [10.92.3.10]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id B742B107 for ; Wed, 12 Jun 2024 04:39:12 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur.se.axis.com (8.17.1/8.15.2) with ESMTPS id 45C2dCun1493312 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 12 Jun 2024 04:39:12 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 45C2dCIF1493309 for openembedded-core@lists.openembedded.org; Wed, 12 Jun 2024 04:39:12 +0200 From: Peter Kjellerstedt To: Subject: [scarthgap][PATCH 1/3] devtool: modify: Catch git submodule error for go code Date: Wed, 12 Jun 2024 04:39:07 +0200 Message-ID: <20240612023909.1493286-1-pkj@axis.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF0000004C:EE_|AS1PR02MB8186:EE_ X-MS-Office365-Filtering-Correlation-Id: b3e3b6ca-bba5-4c9e-3668-08dc8a88d891 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|82310400018|36860700005|1800799016|376006; X-Microsoft-Antispam-Message-Info: MDjYIXsIR4DnZ2BmJbhJ8Y0qlQ1JfEMe0k8lPRQEpUqNwk/TVnntzQNin2KYmJlJKCv+TGIQJ3KWtCjdCUPEMXBtp5OPHSxAQWCQ6FedzboFDkiFmRbuu8ZS9+sDvGy3RD7SklZD06Xw89HJRfF6Y/mJUDEL06cigi2rqVgfoc4A5IsNBM6sR1up6Fs5wHia4qPfYsbbdMlHvzktLLjYF60/w7gmRlylZKfxwelg+C7eToeLn3ymOYzmjRmUQe+Bll6Fw5wAPLv2tm4Kq3jyOHeJ0ZU0ntLPetICKGB4paYJYpVrEO58c7UxFv3V0J8yBkRk3F2IJHrECLzBudKFj7Xdvq5lw6TdxA86kJzGoFNUyZBZBHWJI03+ggEL6a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SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230032)(82310400018)(36860700005)(1800799016)(376006);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 02:39:13.3035 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3e3b6ca-bba5-4c9e-3668-08dc8a88d891 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF0000004C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR02MB8186 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 ; Wed, 12 Jun 2024 02:39:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200556 From: Anton Almqvist One of the git submodule commands failed for source extracted for recipes using go.bbclass. The root cause is probably the path set up by go_do_unpack which makes S and gitroot not match. This patch does not fix the root problem, but at least it is no worse than before the git submodule support. The extracted source will still have two .git folders, one in S created by devtool and one in the go path which will contain the tru git history. [ YOCTO #15483 ] Signed-off-by: Anton Almqvist Signed-off-by: Ola x Nilsson Signed-off-by: Richard Purdie (cherry picked from commit fe242408af40dd1f6e47d9b2b232bdc76756c80a) Signed-off-by: Peter Kjellerstedt --- scripts/lib/devtool/standard.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 10d0cd3b7c..2beb058de8 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -893,7 +893,10 @@ def modify(args, config, basepath, workspace): (stdout, _) = bb.process.run('git rev-list --reverse %s..HEAD' % initial_revs["."], cwd=srctree) commits["."] = stdout.split() check_commits = True - (stdout, _) = bb.process.run('git submodule --quiet foreach --recursive \'echo `git rev-parse devtool-base` $PWD\'', cwd=srctree) + try: + (stdout, _) = bb.process.run('git submodule --quiet foreach --recursive \'echo `git rev-parse devtool-base` $PWD\'', cwd=srctree) + except bb.process.ExecutionError: + stdout = "" for line in stdout.splitlines(): (rev, submodule_path) = line.split() submodule = os.path.relpath(submodule_path, srctree) From patchwork Wed Jun 12 02:39:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 44957 X-Patchwork-Delegate: steve@sakoman.com 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 0D812C41513 for ; Wed, 12 Jun 2024 02:39:26 +0000 (UTC) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.67]) by mx.groups.io with SMTP id smtpd.web10.2112.1718159956879584673 for ; Tue, 11 Jun 2024 19:39:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=njl6V4vm; spf=pass (domain: axis.com, ip: 40.107.6.67, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aMZuspeUB3HuPtiWDubB7WnRheWUkEvjmG5v+R+UrxMEIUClHEUz/UlLDaLtoecBDPARqUlsrMRTvw2zuhiKglFx53G8Dd4hofOseGWTQoLUunl+5T38xLUOnkPUkGDFhkHhHy8UIX0JqPiCVlqv19s3Uweprx/lir83x4q29iszmxwl2T4N4C554Cp6Il+FFWCGvVS9YXNdyqQgrtGavaUGlFItRKp4i33Vrqo2NZvbLBvz2oWGG+z92i635epj8/R65RKR3Ita0yoiO8SeF2AUWgZ+DGqwsBo1JbbbZlQ/Y0F18jlxKDut6W5OGS6o0xBVQ2mzmRkOcMgIs/40wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=K8VryeNb/t1de0Nc+8vS6T+HPLfX5e8wrvn15t/O6Co=; b=XVww3wxl2dlgLaax/xXc0S2i8GMr3S7wT/OH+HQNAI519GPCzK2/RxAkq45/ItfUEwVRE+z1Ma2LkaQELwljClV5iHojKC6RFa5G4HZitifaf1L3dhmRfcWQIdGt2u43eaO8w4+vb7AvGcN7As1P7T39141/8GzRrtBB1jb+6h8DpG+I/fbgTNlSUE9M7r/+n8taeVkXtoLpWH3vKn+IerdNP3D4ZorE0k/VDTj5jfdiJIdhcreDoptWeYin8jqMV8fbxTeyhpcGgJBguLsG4suzXQCnm5OwGzAz4pxLj0bloGkEwcb9PMbn36qT2tH14loUntMk03BPYPw/EqjIvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K8VryeNb/t1de0Nc+8vS6T+HPLfX5e8wrvn15t/O6Co=; b=njl6V4vmgMTr58ffLos1MV+05D7uqW0fkUD8sfUU5vgOm3NMR3UHCQMIzr9LZhpUipod3sOn5/xjYSB8OY98zJglS0BY9DTdGNPs1iC41dePGMVZX5ccGpiZSnQixXQahZ8Bv3FV99LBe6V/wdwi/4XosktXfM74BJoFa0wnSDc= Received: from AM6PR02CA0006.eurprd02.prod.outlook.com (2603:10a6:20b:6e::19) by DU0PR02MB8314.eurprd02.prod.outlook.com (2603:10a6:10:3be::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20; Wed, 12 Jun 2024 02:39:09 +0000 Received: from AM1PEPF000252E1.eurprd07.prod.outlook.com (2603:10a6:20b:6e:cafe::20) by AM6PR02CA0006.outlook.office365.com (2603:10a6:20b:6e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20 via Frontend Transport; Wed, 12 Jun 2024 02:39:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AM1PEPF000252E1.mail.protection.outlook.com (10.167.16.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Wed, 12 Jun 2024 02:39:13 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 12 Jun 2024 04:39:13 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Wed, 12 Jun 2024 04:39:12 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 12 Jun 2024 04:39:12 +0200 Received: from saur.se.axis.com (saur.se.axis.com [10.92.3.10]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id E515D107 for ; Wed, 12 Jun 2024 04:39:12 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur.se.axis.com (8.17.1/8.15.2) with ESMTPS id 45C2dCR41493316 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 12 Jun 2024 04:39:12 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 45C2dCQT1493315 for openembedded-core@lists.openembedded.org; Wed, 12 Jun 2024 04:39:12 +0200 From: Peter Kjellerstedt To: Subject: [scarthgap][PATCH 2/3] oeqa/selftest/devtool: add test for modifying recipes using go.bbclass Date: Wed, 12 Jun 2024 04:39:08 +0200 Message-ID: <20240612023909.1493286-2-pkj@axis.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240612023909.1493286-1-pkj@axis.com> References: <20240612023909.1493286-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM1PEPF000252E1:EE_|DU0PR02MB8314:EE_ X-MS-Office365-Filtering-Correlation-Id: 72dd1cd2-f245-4050-ae41-08dc8a88d8af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|82310400018|376006|1800799016|36860700005; X-Microsoft-Antispam-Message-Info: 1ksO5hgeJOjChpSlRTs3/QDcPZSbm+A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mUnFVQOP7Ifkz7TcJpLNGmFeqlCBfldge07nd3DM6U5tnykD4pZ4B2Op2B26INYsX19puHM44wLu1e0P365kQ7EsqC0lWKi1zvi8AaGi6tnYhfWyzVDCCsDL05DlMw3OTqDFcmejqa++pTsxlPaXpc15NuyT650z7eNS2tXM95TBK/p4HpDGvCe8GrMLIsNbc02kG4jZT3vk/UBixCNkrkAh942QypqE0QIul01kcgSrMgWR4iDbMPo5nkcjHx3rUwBxmYqeHa2JGuaVJoZzp4K7gF+k0p6nbJve38vxvPUqeKdAl8IvzKwZBSFwApUBg9fA90dcEA== X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230032)(82310400018)(376006)(1800799016)(36860700005);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 02:39:13.4876 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72dd1cd2-f245-4050-ae41-08dc8a88d8af X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AM1PEPF000252E1.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR02MB8314 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 ; Wed, 12 Jun 2024 02:39:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200555 From: Ola x Nilsson go.bbclass uses a special do_unpack function that causes the git root to be different from S. Verify that it unpacks as expected. [ YOCTO #15483 ] Signed-off-by: Ola x Nilsson Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit fab0c737b95b8d0c0bbf58336bc308776c956406) Signed-off-by: Peter Kjellerstedt --- meta/lib/oeqa/selftest/cases/devtool.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 51949e3c93..cc4cbec5ae 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py @@ -749,6 +749,25 @@ class DevtoolModifyTests(DevtoolBase): result = runCmd('devtool status') self.assertNotIn('mdadm', result.output) + def test_devtool_modify_go(self): + import oe.path + from tempfile import TemporaryDirectory + with TemporaryDirectory(prefix='devtoolqa') as tempdir: + self.track_for_cleanup(self.workspacedir) + self.add_command_to_tearDown('bitbake -c clean go-helloworld') + self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') + result = runCmd('devtool modify go-helloworld -x %s' % tempdir) + self.assertExists( + oe.path.join(tempdir, 'src', 'golang.org', 'x', 'example', 'go.mod'), + 'Extracted source could not be found' + ) + self.assertExists( + oe.path.join(self.workspacedir, 'conf', 'layer.conf'), + 'Workspace directory not created' + ) + matches = glob.glob(oe.path.join(self.workspacedir, 'appends', 'go-helloworld_*.bbappend')) + self.assertTrue(matches, 'bbappend not created %s' % result.output) + def test_devtool_buildclean(self): def assertFile(path, *paths): f = os.path.join(path, *paths) From patchwork Wed Jun 12 02:39:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Kjellerstedt X-Patchwork-Id: 44955 X-Patchwork-Delegate: steve@sakoman.com 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 0BD82C27C78 for ; Wed, 12 Jun 2024 02:39:26 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.67]) by mx.groups.io with SMTP id smtpd.web10.2113.1718159957306466974 for ; Tue, 11 Jun 2024 19:39:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@axis.com header.s=selector1 header.b=SqAoKLHb; spf=pass (domain: axis.com, ip: 40.107.22.67, mailfrom: peter.kjellerstedt@axis.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sa8kve2LBA3FZYJU/TC8lRrougRD0MM+mGCw91n+/9lZdckoHUEsFPLFqIy3WFeTmRdAh5Wi/8TBwApWz1ZFCHA2Hw8X79z27U+QGePPoWr222XaOZx8SQ8nay3JikGBAUH0GUBI0hTYd/5kIiOd3Fr2rfy+UMJF9vQGfUO/cFx8hBrB0nnrp0PnIGYLe6WLhxvO8kacNQltP4rK/nUB440C1bQBV3LNtHXToyI30h6D8FhaCn2JvjIoM14e0p3Y4LE91Vx8iFWffBluJs1FAeF5gOfbAlphsUuLb2pWqDB8U83J+h81hvGcT8g+xZdt3RF/dReoEt3GCVva2OKoiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uyCfHaax80EKggXn8VH/DeRd4Tjj5FNmZhuS490cpks=; b=F3mHnnKEqkzacCib6NYdDCHnzz1X6HZa9WkS1nXXlqn9NJG/U+3CE5t/MkAVqEBx44lqOx3kCIeREgyQigFZosdZC9FhPltyj9+iwrvFOsPD1nuP/HQWZc77iBkw6aymfvDqFDAXn4Z/Q1C4eogjEn11z/n10KRSLvOHcwtac/YREf2nbqei/mp1Am4LHuOXRH8CLtt2nUnyn3kki4oEOCslkuP05C8X0umPQiYjmFF0IRbJ5Cs8z/Iy7TCJDsa1gAr4tndwQHs0nOiNlSgSyfhMN46EnY+a/4u6rmMhq+EAdCTmKYsDSczuBWnm3yI7TbmxF00ykWJnCF8ah1RPZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uyCfHaax80EKggXn8VH/DeRd4Tjj5FNmZhuS490cpks=; b=SqAoKLHbMLO0TwkUJO/yP6tz86R9cKsclrfjGfT25XVTMAgLp5KPyLWdcAGdkPXWo8Exl3uvuaYmxrfd8D4b6TR5DuoWj2C06Wv1IeXSPGsPR7V2xTuPt3qREa80O7D55PQ0w5zeOkAuxC8ObTMQjrTDLilt18kEpVG1UhIBWg4= Received: from AM9P192CA0002.EURP192.PROD.OUTLOOK.COM (2603:10a6:20b:21d::7) by PA6PR02MB10828.eurprd02.prod.outlook.com (2603:10a6:102:3cb::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Wed, 12 Jun 2024 02:39:10 +0000 Received: from AMS1EPF0000004C.eurprd04.prod.outlook.com (2603:10a6:20b:21d:cafe::98) by AM9P192CA0002.outlook.office365.com (2603:10a6:20b:21d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.17 via Frontend Transport; Wed, 12 Jun 2024 02:39:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by AMS1EPF0000004C.mail.protection.outlook.com (10.167.16.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7677.15 via Frontend Transport; Wed, 12 Jun 2024 02:39:14 +0000 Received: from SE-MAIL21W.axis.com (10.20.40.16) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 12 Jun 2024 04:39:13 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAIL21W.axis.com (10.20.40.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.6; Wed, 12 Jun 2024 04:39:13 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Wed, 12 Jun 2024 04:39:13 +0200 Received: from saur.se.axis.com (saur.se.axis.com [10.92.3.10]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 221B9107 for ; Wed, 12 Jun 2024 04:39:13 +0200 (CEST) Received: from saur.se.axis.com (localhost [127.0.0.1]) by saur.se.axis.com (8.17.1/8.15.2) with ESMTPS id 45C2dCQV1493320 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 12 Jun 2024 04:39:13 +0200 Received: (from pkj@localhost) by saur.se.axis.com (8.17.1/8.17.1/Submit) id 45C2dCKu1493319 for openembedded-core@lists.openembedded.org; Wed, 12 Jun 2024 04:39:12 +0200 From: Peter Kjellerstedt To: Subject: [scarthgap][PATCH 3/3] base-files: profile: fix error sh: 1: unknown operand Date: Wed, 12 Jun 2024 04:39:09 +0200 Message-ID: <20240612023909.1493286-3-pkj@axis.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240612023909.1493286-1-pkj@axis.com> References: <20240612023909.1493286-1-pkj@axis.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF0000004C:EE_|PA6PR02MB10828:EE_ X-MS-Office365-Filtering-Correlation-Id: 817ccbbb-917a-43ec-19b4-08dc8a88d957 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|82310400018|36860700005|376006|1800799016; X-Microsoft-Antispam-Message-Info: x/TDM1yAdrKEfqjASDDCsBVVZIjiqjqwxtFCkDDVDDK+QmuToDyT8Mlv7eHrLx2sd+QhMZOsOSP/2Co5L38xquZ5gsDwLU2Otp3mFcFYFNV/QU6bik45dI8nx7gFjhbNJq+wjLnQIDMbJw9JEF2B6hpYZXMLFqieKxLTCEyK7Goke8HTnSZbaysvES422J+TKK57kDQ9SUkI7UCZru8K4IpWMMIQB1KZYNiA/MY+Vi9J2WAi7JJE7xNzmok8pjSj6w4U41y4VHTuF3vAXBPpxXgARwTO+qkD0lI+/6f6h0M/MjY+W4TNQRm1og02pW/YK5yLnoe+dclu/BlaaU9QS57+7K/sIFjvNMS4EIW5Hv3tZoQih00Vv37MhdxjSfleMO8z5TA5r2FzZ1pXXqKlsyw9M+ski5FLKonlZPUV94XNHYS0ggI9RQ/UX/Kjf1HbSFO76CLVn3zlB9ouX2WdSo2Q5IofKQ2ZMNOZ/eUBBw8ACjHUp6eg3uk9ycOybgSa45z56FRBx48yF6P+Pen0+V6kH+i/AArYAaAH+lotBo8WvzTJWrKPsNYHMCTiYoOG1OzvB7t1uSzzN38GIOQbhmSyLUgNDW35AibubyN8Ux7LK8L2LSDSjRDdNHhfXKqzH2il4sJ37p8IPHT1y736rcgau6ND71wyG37d1Knf0LaLyDvFG3B5ugv0DvW1MBDTpDNsEUWV/ESoP+0YXZvexuRsoHpPCfm5i5BQqsuuF+dKQEvy9Y7Ud9qqg+EgOAEbeObZnsEmN5ttDQ0v4mmcH7oa9X0eSsvWIaZssCUBJdD7ytPeyOr8hxoBzh9FPWc/YpCPqT1Zrv06KL0lN8EdykZyvMXcK3gj1qoQ1VfpllanyezqqJzA0rhJ8UHfXoC8kFd0CX2o1SV7r/AA6BXou2aAFifzfKjRru8KjQCW/BZ+RqSAmoI444b0UZhSCmO8dR3Ak+GjSuTqH+Pjk47S8loxySuMhtWN4jRU8iCC/asjJBIJUK073mYHZErkpYYQaAkqohmljuYGIVOcT0CY2niFaN1FajN7K5oBKGZAx4aYh2Tg2Bi+0Az07TxrSf9E4k4k+BA8guB4Gz5gU2WiH2KvOcW56QVWmSjoATd79uRN1fIUT7xohY8hI8uvv7DwKwoagIB6EMiTz3zu6dXreroL8G1n3HFb3vfrGPqCnUbVljHPgs7MjbnSkJy2l9XEDLOgZVrHxCVv+9I0iSKP1cOjoOZT/9gIyugjbN7AuS0xlYxBWAqWG8+hSEHj76uePtHuGqlCrMTnROkzkmsEyIlYzFPmbBo8IeU/cHFoxN9DcqilQJGxclTsq+nUOKetl2e9rdFoIrhp1rksdfeMtk9IXx7BbWIjMF5FSOrkFiwSj8RBoLtI9npq2d6INTa7Jf5GVVMbELVRZ1Wb3KEx8w== X-Forefront-Antispam-Report: CIP:195.60.68.100;CTRY:SE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.axis.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230032)(82310400018)(36860700005)(376006)(1800799016);DIR:OUT;SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 02:39:14.6004 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 817ccbbb-917a-43ec-19b4-08dc8a88d957 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af;Ip=[195.60.68.100];Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF0000004C.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA6PR02MB10828 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 ; Wed, 12 Jun 2024 02:39:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200554 From: Felix Nilsson Handle errors when SHLVL isn't set. Signed-off-by: Felix Nilsson Signed-off-by: Richard Purdie (cherry picked from commit 5df53fcfe3b70a5312fced3fcc1ba6290f2ee794) Signed-off-by: Peter Kjellerstedt --- meta/recipes-core/base-files/base-files/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index bded3757cc..5e8393c91c 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile @@ -58,7 +58,7 @@ resize() { fi # only do this for /dev/tty[A-z] which are typically # serial ports - if [ $FIRSTTIMESETUP -eq 1 -a $SHLVL -eq 1 ] ; then + if [ $FIRSTTIMESETUP -eq 1 -a ${SHLVL:-1} -eq 1 ] ; then case $(tty 2>/dev/null) in /dev/tty[A-z]*) resize >/dev/null;; esac