From patchwork Tue Jan 14 15:37:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niko Mauno X-Patchwork-Id: 55529 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 4131EC02188 for ; Tue, 14 Jan 2025 15:38:36 +0000 (UTC) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (EUR02-AM0-obe.outbound.protection.outlook.com [40.107.247.102]) by mx.groups.io with SMTP id smtpd.web10.48044.1736869106533705878 for ; Tue, 14 Jan 2025 07:38:30 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@vaisala.com header.s=selector1 header.b=B0CRy4Iv; spf=permerror, err=parse error for token &{10 18 spf3.vaisala.com}: parse error for token &{10 18 _spf-dc57.sapsf.eu}: limit exceeded (domain: vaisala.com, ip: 40.107.247.102, mailfrom: niko.mauno@vaisala.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ippobShELnt/UHOVY6eVhENMIi/GmWomvajtfa/AQKeXelbxejrdamlsTJvCx5+zgJ4FY2zKdGHEseGgH/CkdNhXYxIrcDonAHUgBieumZrZexhbNeCy2Ucyvtlg1sa2a1TfEG1a9N7AJmcn4TKKXC+8wnlsRZTXeTFbzG98axzZnq8iwg4o0qmQMOWhaYALQyEdOgcVKf8Qm3bxnA/bncUnLx2mPhtAyYxif+TpXWzvL/EqbUMpK9oWXiCV/ZHzClsiFFVd2pW2YSp99PLBJo/L0MQ96YlmvJYLi9y84s6FWStZE8Swo4KO03mTWx6f9mkS5LRgMzzcs9yjtLuJXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=gKx2DUdG54iIWZk9QEQ2ViDFZ6Fnmfs0xC3fS0nnVW8=; b=pOICy5X76T47sRzw6QGcrgqr4Tvfea+DSga+tWbFUyt2bGG+n5a5hmBPnGRu+gQ6GuVgOxOIq5CGU3QSK6s0NKy+Rjk5WcUIAcI8D9Tzw0WkZPJhXCkshx5qvdDweT+a1G14hKzeZkLY3MvVHoqig8pScR/5HPVMg+tCGivOXBDLgm1VdULV4qd4ruWF4W5QRXfOV3O+vTzZDfS4dA6ohrQGUrY8gfyF30U6djM2LPwJyGujV18G57+w/Z6osLRLlzPGRjpEkVhHbYj/MmKfBMU53lvgzx8IcE8jijDYlRGZPQRTUl9Cd7HKUB6G07Zyzo8K95IN6zubL+f6Pf105Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vaisala.com; dmarc=pass action=none header.from=vaisala.com; dkim=pass header.d=vaisala.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vaisala.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gKx2DUdG54iIWZk9QEQ2ViDFZ6Fnmfs0xC3fS0nnVW8=; b=B0CRy4IvKUA+cvNA/IHSxR6uByWVJXVwR7cJtkygOCa/FUMF1hxm03JBiBXHDsZTNTmSzikamhn3Zw7u1oqfPu0LEYjNLhLJccShPj/D1L7rb4zLjqHHM3jyb4diESH0D6ewcanBiTk1YSiR2mzQzCyPiOm/QEKHMffzkxmNRzDRqSVycLw2oFMghna8m+n8Y96KeRbh9ys/R1wYIRszCCSS17tOZRQ7WE2BIrbkkgImQ45Zw/mdvnX8waNjCZ09Ji/YnigMdHdIOxDxWI1MFE9y/fCF8weDkv5LI/6U3D3Ok5sMSWKQpaYG6QLMKyEazoh27UWvynT2JEHaIBa+rA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vaisala.com; Received: from AS4PR06MB8447.eurprd06.prod.outlook.com (2603:10a6:20b:4e2::11) by GVXPR06MB9178.eurprd06.prod.outlook.com (2603:10a6:150:1c2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Tue, 14 Jan 2025 15:38:21 +0000 Received: from AS4PR06MB8447.eurprd06.prod.outlook.com ([fe80::af93:b150:b886:b2bc]) by AS4PR06MB8447.eurprd06.prod.outlook.com ([fe80::af93:b150:b886:b2bc%4]) with mapi id 15.20.8356.010; Tue, 14 Jan 2025 15:38:21 +0000 From: Niko Mauno To: openembedded-core@lists.openembedded.org CC: Niko Mauno Subject: [PATCH 2/5] vex.bbclass: Cease forced symlink creation Date: Tue, 14 Jan 2025 15:37:45 +0000 Message-ID: <20250114153748.2358116-2-niko.mauno@vaisala.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250114153748.2358116-1-niko.mauno@vaisala.com> References: <20250114153748.2358116-1-niko.mauno@vaisala.com> X-ClientProxiedBy: AS4P195CA0001.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:5e2::8) To AS4PR06MB8447.eurprd06.prod.outlook.com (2603:10a6:20b:4e2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR06MB8447:EE_|GVXPR06MB9178:EE_ X-MS-Office365-Filtering-Correlation-Id: ac2b6d1d-b7de-4f1a-9d80-08dd34b17952 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: A4qAChGFDwD9pdZ3GUfgzVtMcIldYC1nP+VMSPTWxmtLfChEPtwu/yWFKFRr5ZIK3GW7aR352V+sXTGupckbvOvFH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HBIZhvGi64lpW9okVV4AmPDRA/V1LI1JkqwkfqSrbCH7ujIdNCDkLQnEpyjpHShMiiiKZuY4ffSFlOQj08QCFMW8c2Pnqi4NpLhtVhbMgJGyycfMsGL0uKoWEl5AkGYP/glGH/LaLAxt7AbcF9MPaVmfPbtZ0rreqgmiaKDzXla75knvGh1ycn8q/Ft0CNLXbBc9S+IwuPACHQT5aialhBgFRUReVgVs0HcDED9ZVRU1nrb39Ezvx3fXRfSnhfPPmuyf1Do+Z8XLqpbv2T/gab X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR06MB8447.eurprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: O6DOeMLHPF1xxuMqd0uSliLEgyPlwFyISuoMoloMaZh25xae5eEMFuLGR3UqBMo+qJ2mI7+pM51FU5wTXhZL2BggWlYaP7m3aM5eKiWtCeMna8+S0rXqDB7zEEkKdxsxRhJ2HiOxQqtyj5hAMdjyPDyEpO56+zvqD2q+Dn3jD9qz054VjxpCZ+T5LnAQRGqgnV+qi39tQkWXM5dHFZwR45rdo5IBSV1nm/RqxQ4tt6HwqH/ev8RPXK5uK6UIrE5mgn5+WZR7V83mT/5f64uB9IF38SnkGSP5MPyGep1Ftrc362a5BaO0kEsR0A//pK1IQhj1zO1NbKp5IeKq8nI+7L/t+gpD37xXzZvDL00Igu/mS6D+Pt6/yi6pHmQOjVg1ThDyhtndHueuj8GdTyNwFnuCYoiRQxzxzdnlrw1spIQiDiqLpiIRU6pj9EGzQWhZeskJUKeRVENGP9gf4xXSLIsZQLcRXoRRIwKMmNPfqt5bNh9RL0xERrCRgf9ImS6bJzG+k9Uq13aSIKYXZJ0/ofFB62+7GVZRn1oRP/K8T3o1wdVjVqlEt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Exchange-CrossTenant-Network-Message-Id: ac2b6d1d-b7de-4f1a-9d80-08dd34b17952 X-MS-Exchange-CrossTenant-AuthSource: AS4PR06MB8447.eurprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2025 15:38:20.6864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 6d7393e0-41f5-4c2e-9b12-4c2be5da5c57 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mCPcNvTqfEUS70rL9oZEZtWvdgG3qC5qiOnUZMeB/4yUJdcX2HQGLpAg+VWoi0ALZUNozhWvI0udmCJOqw9orw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR06MB9178 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 ; Tue, 14 Jan 2025 15:38:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209805 Allow the method to work also when the user has overridden IMAGE_LINK_NAME value as empty string. Signed-off-by: Niko Mauno --- meta/classes/vex.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/classes/vex.bbclass b/meta/classes/vex.bbclass index c9749d4ceb..3719e5c222 100644 --- a/meta/classes/vex.bbclass +++ b/meta/classes/vex.bbclass @@ -211,13 +211,15 @@ python vex_write_rootfs_manifest () { d.setVar("PN", save_pn) - link_path = os.path.join(deploy_dir, "%s.json" % link_name) manifest_name = d.getVar("CVE_CHECK_MANIFEST_JSON") with open(manifest_name, "w") as f: json.dump(json_data, f, indent=2) - update_symlinks(manifest_name, link_path) + if link_name: + link_path = os.path.join(deploy_dir, "%s.json" % link_name) + update_symlinks(manifest_name, link_path) + bb.plain("Image VEX JSON report stored in: %s" % manifest_name) }