From patchwork Fri Dec 20 11:25:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Herbrechtsmeier X-Patchwork-Id: 54454 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 9FCCAE7719B for ; Fri, 20 Dec 2024 11:26:41 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.106]) by mx.groups.io with SMTP id smtpd.web11.149743.1734693991344736713 for ; Fri, 20 Dec 2024 03:26:34 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@weidmueller.com header.s=selector2 header.b=i8++gokS; spf=pass (domain: weidmueller.com, ip: 40.107.22.106, mailfrom: stefan.herbrechtsmeier-oss@weidmueller.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZbUYSy3SGP2rkL97IuKesJk4ibvNnDQwQbjRDH4XvLZMVACh9a4Uqsi6W1rlPFxgzNv0qcvESxlR+hgCRJs+hZWbKvX8pu9mxBIeTllvPiiAogHJJ+CPPjwXLe3izQZMm0VdfrhDbxbpqv3ShgCTpzd2MdWAhVLKo3clwSTPPFVDmoeNIc+hCIu7qZ+2YItA/DhiXoTqpoi1VViwwHu7sodaGwozxzXlrGRQGQmnb21j0+TJSqx/ehoMhhVInsXOsgrIZBO4Zci/hjKO+qjuT9KMW+kX0Won/LJx/HWNwFGdJa9VlP7+llOl7GO2VUCijhKGZbY6YYYvxwOnA3TxKw== 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=dWGmKD9aRvjtx7U0RGt1riNrMstd+3AfVtEM6WR3xqc=; b=QII875k3ZE9Gx1DC3ni2vVgx31bOhEiiWTAMEdmDeFhxPQvRbZ5JieMyMR5wk1MXiaG4ors9TrrUR4V2QWADouTXA8mT99a1iZaloNpGIndn/U4nUNf7RiiNNyaoUnvyOiK8cjFPsU3L0degmcHT6ICMuXPM6YQ6xsCbc0ABGOU1LnOUEQlxhyQSFJtQ7rBw49wFTkgaqfM++V79NQSJz/g6A0ZoBIhDwl7ix+R27srRjC17Y/tSR6b2JTuHsYjTDQiuO7uyHCkIXN04K8TJtMGed/OKHy+dVQ1B63d34IRGx2B2aWMGT9MRMcRkpQmUWpjdHIoiJMlofqTZsBSZKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=weidmueller.com; dmarc=pass action=none header.from=weidmueller.com; dkim=pass header.d=weidmueller.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=weidmueller.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dWGmKD9aRvjtx7U0RGt1riNrMstd+3AfVtEM6WR3xqc=; b=i8++gokSTJR4A5kb7f2X5mTPGAZDUrmqs6K3oZ+txWcr1ZnV0YsgPiEVQr0aOIzuodcoCR1y1nAwcdtjVpGPtBP4RRgQXTf3VYLQFG79Y32M5k5lw7jzEv1kuWLsv+SvDH4Fn9v31XNrEJYL+9XihcN4Flb5un4lO7rm4HsXXnH/gKmBBxYayzYmDGxa167rSkNEEX4I1o1yNxxiOBv8KVimSeUKAUtXny5D9FiJlmaqHv6EQRE5U8lGw8eQ/55pXmWt1xCWLTC/h+ALUze+wprf9N3dFJDdAuj+6syEuQKletuAaCDqdZEXNby3Lsibtr3ESD9PetHDDHWMcXNBNQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=weidmueller.com; Received: from PAXPR08MB6969.eurprd08.prod.outlook.com (2603:10a6:102:1d8::23) by DU0PR08MB8256.eurprd08.prod.outlook.com (2603:10a6:10:410::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.14; Fri, 20 Dec 2024 11:26:26 +0000 Received: from PAXPR08MB6969.eurprd08.prod.outlook.com ([fe80::3b1:b329:1ed9:dad4]) by PAXPR08MB6969.eurprd08.prod.outlook.com ([fe80::3b1:b329:1ed9:dad4%3]) with mapi id 15.20.8272.013; Fri, 20 Dec 2024 11:26:26 +0000 From: Stefan Herbrechtsmeier To: bitbake-devel@lists.openembedded.org CC: Stefan Herbrechtsmeier Subject: [RFC PATCH 07/21] fetch2: add unpack support for npm archives Date: Fri, 20 Dec 2024 12:25:58 +0100 Message-ID: <20241220112613.22647-8-stefan.herbrechtsmeier-oss@weidmueller.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241220112613.22647-1-stefan.herbrechtsmeier-oss@weidmueller.com> References: <20241220112613.22647-1-stefan.herbrechtsmeier-oss@weidmueller.com> X-ClientProxiedBy: FR0P281CA0106.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a8::7) To PAXPR08MB6969.eurprd08.prod.outlook.com (2603:10a6:102:1d8::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR08MB6969:EE_|DU0PR08MB8256:EE_ X-MS-Office365-Filtering-Correlation-Id: ea2a2c58-e7b7-45da-a7f7-08dd20e92432 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|1800799024|376014|38350700014; X-Microsoft-Antispam-Message-Info: DgNLjK/nHkP3652lmCOOczhqciHVF9OJxpQ8zi13/GoVuWyxi+EMkRrlHS0aMBFjpvymHZ4xhBOmcW3i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lTDk8S6t9cxUO44e1kSPVgRQHyVWPUme03Cdy+o/LpJ4xkBxi0ffDDPm+pum5MfYrsY+lXBUEgkcWFHQPcX3Dp+0hVdxd0AiD+ep5Yr32R9+uMxqog8ZFJUwnyjZNhFqc3fbvKY2Nr03iVjvMsxAia6sUDeSErDm7rskQONxyzjPYyFRSQQM5eaa3IjDTLXnbUfxjuxwNhzrC1AOmX5UefSZfAI969a1z2kUu7/0cyR/zbrSAAHoWDpP2iDHMfMR1Y7oa1usz1vQJRWGSZuzI941eikrIxgQlS6OTBX/iT6OA8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR08MB6969.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(1800799024)(376014)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ApdbZLG/3a8JdqJmPEUbvLt47jH34yjs2HzT5sOIHCt49rrm42tXK06Ns8uaSesIfuRJDbrMrI7tkmjRFw8pXTF9Xc1JZp6Fc4Db8s0HcO2kMsV9gagL7RiXkRqiKD0iPXXZlcwxGdotwoD9dZUdR+URxoXKzVtQdgp5+S+HBZ0GBmsATZUZFBSy3pbwPJCl51B+WhxQZcsWo9uwjzXzyawhM7lmnTJGS08UlZAe7/MWjYX4hyI3oW/Fej51Gc8e8ds+3Kn61tVxNTxezmPjCZN7vYjq/Hb+vrA5IzwsR7R3yKcJWg9uBhWJ6HAgBWKJnVTTyC+JGgqYgiieGY6y9qappkpQaDD32JwKpX+Waz6j7wmmBPvp5ABjbiDMzzjU8IZDSUejOENUyVv5Hukr95VQrouZS9Ix6yYoYs83vadPHGWaifsgZ9ntAxUFIi+/1FI2xs72OlTGrolKrk24k18uMCxOwnZwUHc9ei75iuciCyg98uIQcXpw2DIavCIwCcKDJzw+g00dglANpCdbw6FV6IF9i/nTm0v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-MS-Exchange-CrossTenant-Network-Message-Id: ea2a2c58-e7b7-45da-a7f7-08dd20e92432 X-MS-Exchange-CrossTenant-AuthSource: PAXPR08MB6969.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2024 11:26:26.4386 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e4289438-1c5f-4c95-a51a-ee553b8b18ec X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hYlMpGezDOQ1zRvyat3zWaqZFJSJUAvJj4K0ODrK4ASBs2i0uTq8ub1KbmEFdYv4OcMhmVYC8I7224jz6I8ndQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8256 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 ; Fri, 20 Dec 2024 11:26:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/16927 From: Stefan Herbrechtsmeier Add unpack support for npm archives with unusual member ordering and disable warnings for unknown extended header keywords. Signed-off-by: Stefan Herbrechtsmeier --- lib/bb/fetch2/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 4b7c01d6a..7d8f71b20 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1535,6 +1535,7 @@ class FetchMethod(object): if unpack: tar_cmd = 'tar --extract --no-same-owner' + tar_cmd += ' --delay-directory-restore --warning=no-unknown-keyword' if 'striplevel' in urldata.parm: tar_cmd += ' --strip-components=%s' % urldata.parm['striplevel'] if file.endswith('.tar'):