From patchwork Sun Oct 15 14:57:39 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32244
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 980F8CDB47E
for ; Sun, 15 Oct 2023 14:58:37 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:36 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=XsvFqHh1;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=YTyZIkFVUMKb+vUmsYWnhHFWWO1iA2yA1PCmGykjBhGeBR/XE+rb0wctYtkpMwTavncHJrZnbWuTyrXDlmpNdpNH7P4VTNf9I4Zg8/eep3/9jJpF3oWIdELwjqnonoaKXVYAVGNSbQQmMyV8Ivgj91A93YP8EiV8e+IHhAJWgnSU640izZ/kQeY7cJdB/r82jAmJ1YWqhjTTyKb5hj020L4cJokrVRUkfk4Nsuvqv9i32Xl9UfCfj45BFOxY9dmh/lSo1Og4Ucf0Ob9tJEsPDM2AuV+DfhXF8IjdHD6Bd6XphxodQgMnZsuQoV7t75H/6AD29/2hyWDCgX+gwgtKIw==
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=eED+SE16zxfd5KCIEFI+rPVPpfJS2w3L2Q1srcPDrmM=;
b=F7xNmXOj8Zj/EIeEXGzd6Arx//bkqPlMv2G4rZp0USnLXVXZslxOTm2XT3188w8nXf5i6NeDpsXxHf2L5+1ScabZNSJfSssgT3jRFdEJkvuqZimSZpSiwoIjI80x1H9ljFNTeLovbQhsasnnxgG4A4BwkDPY0tOlwSRxLPJl9BSevsn+70v0LSC3WSQ5+AI4b8V7HNRC2y/64I49E6v9x/HIR7dYCU+hfBLy7WZ6X5OU0INKOAD+Rw2IppO5J0MaIFiiiYLlkBhVFKQGDGnrfRfCqvrNfB3IhqgB6APsTjxjG4HQHobKG9khgj9oWf7QJltPfmNjDYyyy+OUddD5RQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=eED+SE16zxfd5KCIEFI+rPVPpfJS2w3L2Q1srcPDrmM=;
b=XsvFqHh1He4cW14/aseBLawGdb1rei4/HhR5W8bnqEf2L70hCcJKW6xszGwK3JoYRmpZz8Ph/sBWHEr5Gf530sZiZEwPYKd5729EwCM/sn38qE63rxg+TqiKiFQ13hCwls3LtHwNeafj2mgYQqg0ob5/X3liHqakyx90HTm4PBmS6VoA5Vh9MuJ5sZ7PTmKW1Hi/Fw0yv2ufA7wEJpsKhARwTAd8yFQ1Pb5eyBEaKRF0e2ooczRnAFFZwRKvNn+46n3P4SZYkE2WQz3B0UFad5M5Wag6G7u9P3nVnHVZQM3nzlD/htOZi/8L+XC7bCQrLwzzGCn77wufXkPMyKar0w==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:32 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:32 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 01/11] package.bbclass: override tar with
tar-native
Date: Sun, 15 Oct 2023 16:57:39 +0200
Message-ID: <20231015145749.69995-1-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 35ebcd94-a84f-4d9b-4b09-08dbcd8f32d6
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
rNAEB8amstP2CKRQ44AbWINreGX5YL4qW8LG1SuDNM92ff0+oMQtO6dm8lTTR71RtsAtZEtVDC0TIJ3ExFQMleXRUJCLY2ipc8IlSqvt8aW6ak7YVNuXbQlxWgnDa2ofV3cFDnmywyw73KPwI7uha2IEMuUVBg/0CChzsD1p+9pd5aobiichT1h9eNyYDWflRBTrZvVJxmcgG6simhYqQUwr4uxpSw/9AbV2eNQRUXa4sm6eV0/VukyDtTRW17r4t3Qrll3EmRxTHDmulQkWNgamVmtrsnGVTlwJ/ApSB97xqzwO6DPTw/Mjih5G2p6ZGwMAZ1G6WbRxnlisMNK+6XFpYDQha7tHiAgGsFBTEj4tDAD8TM7/Kc+sgypJNPWL7G6Nua5jOCWvhBgcTzqjhcxlCmcjOnCNIbDNziD3DMDddjf536XOxgKQ2OFWm7FImtmMKXrC9EH3JzXsJWEcNq+Xht9PjoUGS9OvFnjALyrr0mhmHqEgUWRAnHf2qiqIWSNBYEVJ3d9T6TpJOYXgBG6b8965+QXmEtpSDhAvgnYarUpnTtr3InLLLizIhxPMHKhZgsia87yQE/oDcQAtYr8ZZdJPxbKMVtuHepbwjGY=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
XCZy4bnC9cerC89G1hDrEDxArd9raGhaZRxw9O9NyikVBznqTa4wtOu/+QinJK3clDrS2hjp678rBG0ZfuYV5mupmXGZGWcY5fhRC1VQYOOnvtg1CPepkOOKHmMToZiBU1cU5mI+PEJT/I6m8R3GZlPnrfNXKSAvCxPA8GlLx4NlumTYbfSgvALpupfVu/Eq8R22ST8NC+tnm+scdyAhFSnsof7//I8L/ADDAc04Vkh+yxhRw6KIxEp4oOOieoCjcXonXWZyiYEBMlzvGP/p9oduMZnXuBSFP0rYz8BfJhVGH8LVELoU2vqiNtnA5YbtU9pOmx9yofQXdnxQfFBUKklYcUzg6fq+iWDTBdYTIPgTNG/IObO0pjnEGmQexVufy3gOwp5EhdnW0m8fn1v2vv47o9avQg3xBo+NOGXJ6Lrw/NXjig0Ho+S6+5EwNipVZi6cNWJ/JDzQSKWyIETw1r4yW6tD2ntXO5RAvsn4O1jSc9jrXdHp5vJd71nHi4zsrw/sMjIf7w8Yf1yxU1TQQkBQMf3Slg5v/E3vnyBB+Lee1j1ftw4lN3g1tpe5AAqF3zH/dyMhFSdOFje/L5mP3r9OA5tuefB/MbxEZa+fIuoyu+jtasAKvasGbxXl7q8RAfYWDSpxMIqUDTiu2Zk3CnUJtBiooPC3+0ky75gNShaOmpAq7gIAgvyb1rVshhq4qlY1OY0DYQEhDdxtS85HqDXWOOTxaBdwOF6Fl6nLgYo5MhKcamj4Cs5fkmy0C9KOgntNFA9RbQEXDqZ+ksyCLB0TlDSsYBQOJneiotFcJYffOAgJMnxc11eJLcNvANmS6SYsXmqWptXy6INK03TznXjUBSPp/OBIN9FzunAfeKKJowyFNcj+2ShtP+wuExJ/KKNbLsNRt98Ocyjk1TJTiAYsb0O3Vd1widAsJ2s6SNxoF33I2Vz5fAdFtfI4OXUCjK8NWhxQRFiznlJygW+6em44w+oyGj84vP/B9SotZ7Z+l/l9mbuWhJYLa4TatZy6bjnGPLHO3HAEa8Zswf6+XVypGbl8RB+wTPvXV2uElKgrzKnnF0N1zrJ8bMBWTFaNSnR0FwlAplz+qqWBhS0zlbP/xy3KHkBLsd4D2RTch6m6OIGTLosMQPJ7xwCxFe2rLn0heD+npl5B8K17Asbfinwjk0KzCC50XHgPVYEwAT4dK1YlihXpcj7axw8wC1UYtbwLaiPLJ2WI7Z6+Fa5/USoAV4K/Faud2ar+lvdUTcH0cdhJEzfoCQhmvl8Du+iaLqcsHzN3yCH5M1N38L7K0mDNd7wuZ1cNnWOid76dlpTagh5dAjRcrhTJ4b0WGm+DvqfsPEmYpGocFpRAIi48Xs73aRwFqAd/9ouQUumATeXZhwq4bRuNMcXaklqkHnOWxkskw+d/cI+JSgQfA8B3zD/vGbqy82Y7hoaW6aBc2ErmjrIBmqjbgtoW2HWJD1E3u1YMoc2VxctAcruJKDwBgwheplXUyAXijqYMejdh8LJYq3cptnBGjVVtRkBsEJtto4vzfw4yJYZcoEnkC+O3Gw2Vq6UMrwrDfXZ1AJzrNQUmp5us6ay17wMQCdN6B2UW
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
35ebcd94-a84f-4d9b-4b09-08dbcd8f32d6
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:32.2315
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
AV3X3BuJkvaiMzjkvvrxIR3soP9QscZXLtWlpmhNSISSR/yeznc6EUNdmM5oHnrr3/n+sl4xTjzy2L1cQTEt1w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:37 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189146
Due to the bugs https://savannah.gnu.org/bugs/?61934 and
https://savannah.gnu.org/bugs/?59184, which are fixed in
tar version 1.35, we need to force yocto to use it instead
of the one provided by the host machine.
perform_packagecopy function and opkg-build script, will use
the tar provided by tar recipe, which is already in proper
version.
Signed-off-by: Piotr Łobacz
---
meta/classes-global/package.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index 7787042e21..580884cd83 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -58,8 +58,11 @@ ALL_MULTILIB_PACKAGE_ARCHS = "${@all_multilib_tune_values(d, 'PACKAGE_ARCHS')}"
# rpm is used for the per-file dependency identification
# dwarfsrcfiles is used to determine the list of debug source files
-PACKAGE_DEPENDS += "rpm-native dwarfsrcfiles-native"
-
+# minimal tar version 1.35 is needed as it has fixed bugs for storing ACL entries in textual representation
+# and extracting files with xattrs that are read-only; this needs to work only if acl or xattr are turned on
+PACKAGE_DEPENDS += "rpm-native dwarfsrcfiles-native ${@bb.utils.contains_any('DISTRO_FEATURES', 'acl xattr', 'tar-replacement-native', '', d)}"
+# perform_packagecopy and opkg-build require tar to be in the PATH
+EXTRANATIVEPATH += "${@bb.utils.contains_any('DISTRO_FEATURES', 'acl xattr', 'tar-native', '', d)}"
# If your postinstall can execute at rootfs creation time rather than on
# target but depends on a native/cross tool in order to execute, you need to
From patchwork Sun Oct 15 14:57:40 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32245
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 B708CCDB483
for ; Sun, 15 Oct 2023 14:58:37 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:37 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=CJAio50B;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=A49uNcqtHx3O/LpMx6tr9AJRcyU+/wdKNMQ6IP39UHTqasv+idqw/71Nqjv4MKG+0eN95/inN0cUM17+Na2SyEPLGidOSfR5WBDv1CLYTJS6UOnLxLh0D2IJ+kL8DmohCc4MF7nWe0rFlEXuMpMNIgor6K74Y1gQGfDH4Un4hDv6u+kRVkUO2Z8AvkIP/Y+HUaoh0UASz9GQYSDA8rLJmvQe2Z9/IgEJo5877+4sNp9Or1Zrg5k4TJ3kDiNnIi9iXVj84Ubt7k6z05/0zopSmaXDLiL81f4EJ0QORtBInEuolipqM4dCBzJ5+pE/rVggtEntcYL2c97HI9l5/tVOAw==
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=ulpa9lYXt81oIdqfYfeiZtEThO+YyhBvDq7q+AxaBHk=;
b=HTmU36VoWQXkOMsrYAIVJObw4o71wqi2mJdPOSr1RTa70qDZSLt5Qer5x9K/Ieo27NH/QNMIuW3miAUmjlWeYVJ2HQ5q0cG1/n07QStdMIN4G+Z4phBBmVOJrR+KyzCEEd0ElX1Gpj8gUloiSnRXXTi87z84vsEXtynqFtEOfP0Dlt5R+k2Vnnd9umNiKR4v9gc6xEAD0PL8zRmfjQWlpRIiTTFE944sKBit3mVSF0svDQB0CZZthsGWxm0C3rlCZvyAHd57wYnsh7CrgSvnpB9FdD7oyCJCn3jvR0GA0NYQPQ/lYZMcRiVzQN+QmrUoQhFcawGzcN2MDXCv0SedyQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=ulpa9lYXt81oIdqfYfeiZtEThO+YyhBvDq7q+AxaBHk=;
b=CJAio50BJ1g1HrlkihIwNtRq6JOv3ocFccuR4ogVrNuHT9RaQkfeamVBUG11M5OheT1545mwzjAPDtfGJTNEqPxjv8Alo+cOCYGNaH5aBto91FBjigvsRFpVawwnY1ss1grG/QXjnJzHbBwvWA5avWu4MyMuZbz3H8kcyFfZxaJge/N2Kj1PJPRwCzY5lSoFEJa1wYrPbNyHqJur5ww8CV/3KuEuAKSvm/0muX2KTBaXeWBpY2JnuHAgyuzmpKklfvwjJQbYM3L1fVGHHkUeN9aYEQiARo+SG/gOc8E/DWnFVMIRwT3nqzUAtsFudv5VxHzRF00E1K1Wq3gI8ucOPg==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:32 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:32 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 02/11] image_types.bbclass: override tar with
tar-native
Date: Sun, 15 Oct 2023 16:57:40 +0200
Message-ID: <20231015145749.69995-2-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 3a07a4f8-8bfd-41ca-3285-08dbcd8f333f
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
OrtdWU0YtFx5t7UXi7kHr9uVd8okPyROISH13v7gyN1uKTc8Mlo2g1s3ttsG+kyVl+IfqQscK57W1BNsH+V20hS5LLX/igMZnBA4A62a5Xj+gpx8xVBA94MF4ALOhoS2ZmBGZT0f+QhDJkK5y7ygKCd2sBNDJOchDuLShqeCJXrEUYjPJh+kuvB+JcVWt1ujDT93KtCMAWqjakM+xR9vvO0P8ivv8b/7YRIkc/iLrWkK59NrY+gmTs2aObHjk2EZB2xNOviz9yTbaW5R9NZtG0y5D+Qi4w9pnIu1WG8aDrn3g3Un0gSdbeOlBWG9Z++2NtZwKvY+usyqxmF57xz9k8dSsvaw/MYuKOvNd3h38UozTjj+nqUzp5RbZbO4oFyJ/esBGleGsTpbK85OHnloeHuMq3YBuCz5TsHe3WG3FmFUFqmBN9ox4bnI+6f5dd68Qebkk/2RRryPzF85x4Da8Mp7RfLpjyzbsvDkzBdvuEJ94uVG5kaClfrgkhAA2BQQHgvDWKNfqLmd9QKl4PGfgXPc7uSItjB1lKQtmmcPdFwLLawJPdZE0xFQsUoZHPpKTC2LhyOFgzwcLTqBmUE9GdXhFVYUJIL+wmuVEZzzz10=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
R+rJN0FkfGFNI29RI9x7r3Cw5R67BS9MVRBZJrPPCgVsQWyp4AP5oAbs87UOokGQpFPBWQ8tcnLtHjCK8CzBEhEHQZ7GQ4OpeRjSsrvdLj4+v2yYFxuEG19ZmWtEAC0HyJrx6yeKJMijmYh5n5oZYOIZ8c2v9mmZZyxprcQlkbQUKvAYQUyp5v2bZLq4aZHq64vT2B9Yq5q3wYWaZ6WT48JrYVuBlMcrcgAOEUhUi+JMywyT9Y6HrXOG39qpBcHMTN9Kl/2JmVzVTE85/FORFXfTswr2YffOLCi6jm0JZjF5rGXu1iyZiV+b1bmXkNtnOB8o6WCDFIejZ9PA6MKRUiu8M+Vh7aULjECcLkCNtv4+6hDdYBCWupKFtmIopyfyTtbl4IVPYgXT0fk+Dc8z2ohrDqZ2/K1FJmhyC0wnFYgdOpERLX7a+HQeI724rxA0gpFKDdawWSKbnen/hIoxIPNyw8zQpF69MUdAoaSr1Q6v7wv6qOKJHZxFjUGByt8bxhMcXl24eG5LuF85zY5cx+0QM9jMzKAdj18JhrR5/u0y/ksbhwYLT51wWvsagoko9q1m+sdv+5KTk06Ai+5puq9BoNqV+MLmIJQFt0+VGK8B/ud+BC0rItB6idyTwMxnsRkzk7QAXOqsHOlF7ykJ4Ms8PkdK3Kv/wKpSfogab3ZPpN6DYMF8W/iICK3dQaYs2OW7MalUW1T8ffp0+PocmRP5dbN3kKhhn9w9GrYgDHxD3A6pHiUmi8TToWd8Dxalzg+nXQAt3u8seGtPVkMruzUUQQzETbY6Am+xzVsc5fgWvXYBHpcWi8ENyREDcXyRo4RsL7L9Hm2HBgdtGbhClNvidU5SZlkcbdxLHs0Q2qyCxLqFE3lQKrLmuIqW9Z6CDIdlrKrJh4R8YOaNYtc4QkyQkIUxfnjjW73VExzGJO4PA3z77X/cP8eRZVskPhFYz0C3pXTfTb9a/t6HLjp6JUhB/KlFEVXGhj3bBtP8C9ek29GPpEYE0hIBXiU0HbMKwk4YSHsmt6R8v9wUD/rJVFV1h3jJVVCD/d5THe7PNvnb5dZYSR5kChgTbuOIJ9MnRJD2HLoSWmDnoNVaTkAxsKTAAXgsdPcUX2IkJVY96U7BHe6Bd7ybOAVOYG7IV5AQ+A2YWzUXqQw+Z+HDZ+OjTypADVm92e1YwbzKb5+XFelI4kZF80UOcBNUmoFPD+orwCiiVyaMrERlDf+3gGhMPDU34rY0Ft014ntlWlo9XfJA4GYacCtvOW9oF7QZibwTOyQoA0vkk5uCiviHkp8xp3i9W+obzBFGushhFvHy+GuJd2vI0ms/C7AIpo8BpkupmcsAgCcsIuL7bZ5w2Vz+k5eW7kOXzEhqYg/TVOhZNs/iqSetaByDstSQ9xRUXme76sA3IPZ/gRdoIsg2ip/MtmUGWSp2MK0eZgbGA+cVnT4hCOzCFkErtMpqjvWo6q0XAEpLVKYx2OyntfvTjcnVNy7BimKoxMynCUY6dE7B+nBXz3EB+spz6VKLmDx0R+eGb06bWjNOd77eHUUmAtZCtVcu5RXVEwo19djOosw2CjmbSC6LEz9lE6gsSlzmzrVc
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
3a07a4f8-8bfd-41ca-3285-08dbcd8f333f
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:32.8317
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
qzJL3LvpGr0DrqiYFw8Eul4TVe4kb1wGC63CvkA/ssjHJyFPlACgdsfLkbszs15mGM0oCe6GsPFBl21LAHX0AQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:37 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189147
Due to the bugs https://savannah.gnu.org/bugs/?61934 and
https://savannah.gnu.org/bugs/?59184, which are fixed in
tar version 1.35, we need to force yocto to use it instead
of the one provided by the host machine.
IMAGE_CMD_TAR will use the tar provided by tar recipe, which
is already in proper version.
Signed-off-by: Piotr Łobacz
---
meta/classes-recipe/image_types.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass
index 4aed64e27f..c50bcf673d 100644
--- a/meta/classes-recipe/image_types.bbclass
+++ b/meta/classes-recipe/image_types.bbclass
@@ -385,5 +385,9 @@ DEPLOYABLE_IMAGE_TYPES ?= "hddimg iso"
# images that will not be built at do_rootfs time: vmdk, vhd, vhdx, vdi, qcow2, hddimg, iso, etc.
IMAGE_TYPES_MASKED ?= ""
+# Minimal tar version 1.35 is needed as it has fixed bugs for storing ACL entries in textual representation
+# and is able to extract files with xattrs that are read-only; this needs to work only if acl or xattr are turned on
+DEPENDS:append = " ${@bb.utils.contains_any('DISTRO_FEATURES', 'acl xattr', 'tar-replacement-native', '', d)}"
# bmap requires python3 to be in the PATH
-EXTRANATIVEPATH += "${@'python3-native' if d.getVar('IMAGE_FSTYPES').find('.bmap') else ''}"
+# IMAGE_CMD_TAR requires tar to be in the PATH
+EXTRANATIVEPATH += "${@'python3-native' if d.getVar('IMAGE_FSTYPES').find('.bmap') else ''} ${@bb.utils.contains_any('DISTRO_FEATURES', 'acl xattr', 'tar-native', '', d)}"
From patchwork Sun Oct 15 14:57:41 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32246
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 83713CDB47E
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:37 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=XLJPrk9P;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=CNGwRuOqmHDRgXkb/MqY0+uFF8NzCwrlYHOXbKOUKYI6KRTxxJhWl0y/YIRCqmnkZs8pc6cT0WV2uLe9ogfhNFud+UTtzovk+k81hoOZng/pIpuZMywyxXjae1wm0/dLvcE85S7ciPc8cNTt8JrZTNLjD/sEprCY7stq56Vaw9WCPSSUY4iG2nbwU6Evzy+zSCeLyyTSE1YUEHSnMLAbq927BCdwZ/c23fD5W1WNae1I67OmrrUbtiaolssJBjCw0pwHHLvGpqKmGo9r1e+HtNdVA8GUVgTMYRuvnwQK/0lcvGXpm6QH4sDjHq57bSE9Soh9/sxcASheoqXvLgNjug==
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=TLXSQT+v4yRbOoAidvosZ/GsLd7NCnFo9+kqyF1NMus=;
b=jUx+Tm42+B3j4HsX5y1EW7Z9E1gl1KbeU8pEJU7xEhxx4O8uzwb+D2pGvsl043tJeRLMmYBXWfm0J9ssAOg77FZtdj7iDksq9he3BawZuQnbAwGw12tEICUxlub637LnP207I7TpF8Y1Bt5r7kMdLTh9WWpl8BC+3IAHn+MHEFivPOas+mGHSlQPirCszdDs1Cj5UGxsYw5CrGYEW3fjZXDcI5S3T638TiKdQfmqMDQG0WaK+Z7zUDS+eNDDA+KqxtlGLsBvpjM1FXS95ZD8mfynDC0Ien5w+9RiImUa4388E6l8aWxPMoOkd8UifbukQFNYjbzZ+iwPNBRJxS6srw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=TLXSQT+v4yRbOoAidvosZ/GsLd7NCnFo9+kqyF1NMus=;
b=XLJPrk9Prxyy8owj5UFMWhxRekao3016Ou7bE2fvQa3n5Fcb76yN6aGM2oC6utwJJYzKri2lkErYkbWRvVJhSGL/tE+cvBft+eY5T/koYy4+GpRwjldKR/+xyejJjfqdQpO17pmOQXYXS5IaHOT7E74biwc5RXFMiDKBLRyZcb649oRQFVvFjJe4idAGmOBl/tolAJ2v0GOoE4XFwvdqKfNHXg4k2FKN7c6vX2yQdFbJELLidHgL44tMmjzgq0JvFFFpJ6hCAKSuftIcRnp9MR9nRBFpZnO3SgMRNExcUhuzSh0E2V6NlyrKz12QmeO1GvffmDtOgzS39jOS14WC1w==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:33 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:33 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 03/11] sstate.bbclass: override tar with
tar-native
Date: Sun, 15 Oct 2023 16:57:41 +0200
Message-ID: <20231015145749.69995-3-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: f7c0dcd0-4e99-4e27-1b4c-08dbcd8f3389
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
huqoAedjnVY3sfAGBO8TCxwzBK8jcYrlScxo72zauh2mJTK6UNk7kKHii7wYsBLsSm3KdlyFP91YoHExkUpb+djaLTzjSE7MLQuUokMC5FdJxUnoj9q+xCL530QWm5nXjy8p03VlkoYEKglWzjUs2/p8zqQGhamcEBcCjobx5qi/+NbWDLd6bSnJWoInwl0FVRJIrN3FMydRY03N7c5xGErSn0QJtCm4eZo/dnSM/5HqyTSZkMGIOFyFZ2Fr03JtiEQSr3GCeA3684tlKc0D/UwVq5TFSvcPdIoK5baalG/kzrX4i42rcY3gDP68jl/CLDdJNK9LUFKBYOP+Wvg+QvuNvruivp90goN4qD4oTWNWFzJtjWXUoE7fss7rqBkSiQa6TkQUn0q+nUTLmJKAncbPPjyXzOzb38YYTW0Bou5PrNuaHUltuMwnhqM6tDEmKTCB8nOu64e9t44CxBLvC8nfSIZ514hJNh97TvuvNmWMO2nf+AX1kVnN5aCVubU9WSnVl67JDrpSO0fzxDWzTz3gPeD0aWM/C0FDSMPJnq2F8nfYyDKLgnvauC/zlGtGPNLHOF5tt3zFfI6fwb2hj15XLh0IW8YrkMgEzPNnog8=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
mVA9oU9EOed6Ss3e36t7i8FSVlwPDjkRiJqR38ZBXK+86pgE3eTo/ph9EQZyfYQrTYFEajkunLejoZRFlQq5S9NhSmErVPRzRgWgz4bXdTgosCLjAocVAMWw3je9nCOzw4dpzbIW/owte1yjvRhN0tWoK79unVoVzoYYLAJitJlOZhYbmJL75oNiyXDJE1ryGrGYX8T/jGXGUGGEieNaw5F8QUPrd6ZWuyJRJu/Pv0eXM4GJfus56RncPhHXWNc5i2q0XyOqVzzlq95tmgEEXvqo6TbmophbcRZtf5a+C0CM0NDtK5so+XE8ZE829ol3vEwI8iy3HRhLECpqUEVTW3kOa5czlQFbrH1NBdbWHNEyykm1A4JF73+h/XudtG7sXSZWmEDdG3iG6rXyuR/GmhMl1J3/+h6eZCOouRGp5GoXK4tJ68qeipuVpGmkVX0NyEqFqIwyesCk8eMacEBJas6+G6E936aGAxdhDeHzbS+wYuunJETMU82PunB0jAqVTdjfGP9rtCp2L2zfHPjM4/subOqN0/o5FBmIr5Ofq2Gop2uxCSFAieLZj3vWB9MBCTG8f/B1AloFNIhKOJHu0wzN4Yax0cytchM5SvLzWg3aU7at5kyHin1wxpg6uGX9AORUxN/xvuF9BLbH7SqoC8HiOQFiJgC7GDugHuhdEiPJXtwWYk94mSnhZzwjK8Q79B+6wzVoG8tUyJ8e3QhtAWKpTKOHqBPjiHIaL1NE+FyyhHQkYhAWccB4RaSj/Okw9OSqZ5Ztw7O2X96jLOIcMiLpXaLHQNZxmkbYP86+Zd1OgVAbigmQJdqhikPobJCCKlpBSGeBws4DIWXF1RsKeYCzca13ByA1239j2MOdvZ4SY4PmhI27XSAI2+7pMSkk4WxMBzgbsPg1axuzDXIMj+QhjEW1AdqWNgr/GnviwcKyCFglZBJl/hXs2MvmuyD1RlMpzjC+3spgiPOOCmJ4CfSBE0zuX1jj7uOkyvh/ydAxA+k4GvnN3YL4ZotsEzezstA2+BUbIPQgklBmLZvdXc4HW1SCFaCbAdR9pNedxJ37FFF9YN463M+QWQ52/Qd//i6rKraj+rpvZfzvMnJX8wYTlrUZf3gnuKPmcQOOlCXpgk6TEZjF8OzAdUq706gFm6egFMDupmq1gWuzBHCqKXG2v2WBUaMmgXEMhswDshtfjIVmNPEC1y547uobsxtx1MF4JprEzXFXXunzd8czbZS48Hobzn6gGuZtSDcjoYlNGyF9m/4wUIGsVRJpUCNoaYU8CriZDZKGCVBONXgTL5Q1q+eGfje5Qu6T0RM9OQLWkGbOc4lS6qKwoUd3vqA2EH/PIL9k+PMQYYh2lpMSHatkW5eBVlcVYCA92hFb+i2rw+d5DQgsbKFSE1bOilYBZYwEZKa0BtPxhTaZ+zhvgRSCO3Fy8PwcrrccNfHMhmOhGvL1aXL3YXTcWhZ5pJhEFcmbMe/tq3hrDIZlJvhnTeuhzywFO3IvF+pAqfgoQ4eZXiWHxPA55piJdsg6cYZWW1xJHfDpwL4UkP58yuDxZeLXR8+z5ZBh660dQUy09Mayf6LNQnAzKMH9EXiOlUKy
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
f7c0dcd0-4e99-4e27-1b4c-08dbcd8f3389
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:33.3544
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
4qGyllxOVnMtAA8Hq/D9fVriuQfFBnBev8rxs6E/Ap8lyROFx/89V/P4mDFvd7DPaAXTztGVmUKebiS5MQBnvA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189148
Due to the bugs https://savannah.gnu.org/bugs/?61934 and
https://savannah.gnu.org/bugs/?59184, which are fixed in
tar version 1.35, we need to force yocto to use it instead
of the one provided by the host machine.
sstate_create_package and sstate_unpack_package functions,
will use the tar provided by tar recipe, which is already
in proper version.
Signed-off-by: Piotr Łobacz
---
meta/classes-global/sstate.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass
index 2676f18e0a..5ae6f515f2 100644
--- a/meta/classes-global/sstate.bbclass
+++ b/meta/classes-global/sstate.bbclass
@@ -152,7 +152,9 @@ python () {
else:
d.setVar('SSTATE_MANMACH', d.expand("${PACKAGE_ARCH}"))
- if bb.data.inherits_class('native', d) or bb.data.inherits_class('crosssdk', d) or bb.data.inherits_class('cross', d):
+ is_native = bb.data.inherits_class('native', d) or bb.data.inherits_class('crosssdk', d) or bb.data.inherits_class('cross', d)
+
+ if is_native:
d.setVar('SSTATE_EXTRAPATH', "${NATIVELSBSTRING}/")
d.setVar('BB_HASHFILENAME', "True ${SSTATE_PKGSPEC} ${SSTATE_SWSPEC}")
d.setVar('SSTATE_EXTRAPATHWILDCARD', "${NATIVELSBSTRING}/")
@@ -164,6 +166,8 @@ python () {
d.appendVarFlag(task, 'postfuncs', " sstate_task_postfunc")
d.setVarFlag(task, 'network', '1')
d.setVarFlag(task + "_setscene", 'network', '1')
+ if not is_native:
+ d.appendVarFlag(task, 'deptask', ' tar-replacement-native:do_populate_sysroot')
}
def sstate_init(task, d):
From patchwork Sun Oct 15 14:57:42 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32254
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 C5033CDB486
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:38 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=D/byFKJW;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=ZaXF9zvBoMqAg8F/H6wo2FocGDDcbpm2mo6RjaxWJE2NCMqXrBRUEVQaElP7P5r6aujP0RAZyHZd8SjkcQZsNZcHSszBSAHCEa49s8uh70Y2Nj6MqlJvHX0lkOPPYYILpfBJW9qQ/nZFLAE8HUe8ZaDBm9KTQc6Ub7/8XCY9KBO0ugnbD5XAwiQ1LcOr39+esKku1UYvvGf+cz+NbYHlBzGF9oryyZrX/dtBiPOTjpnwKF1NPx2r+4SaYGZ91y/MKnrLYCAIfaLaH20DuqeyajfOt19vfLH9BRPC2gfzYXTtHoX1fbcEXZj9/SW5UifwXjUKbR06oYJePZ6Py8QU4g==
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=s/uswOqNFOt1x08C3lwLsvp20EExQ/4R5pDoEM+lNso=;
b=SFnCqZVOoM1vAOIM1L258ew1nGaqA5aAHeAKelwqDFcCeUMS0jYcaXt9lGa8n5XUOCRvhI9SaO0PleoQCpSMUWRrCRvcepEshfhw+DwRkG+t3HFd7x55i0VB+qiP8CW+naksq4WCNEIqU6BucNaef0XiJFNTzbcrhRWf/Bi+4I60PrhyZoI4vMNryb0qdWkM0FUdS2JtJNX6Yn6CeGUPOzC42Xp2ueD4xqYubR4Bb2SYGWGzKij5DisQcv6vpWvAdezroU6HErWrPF4KPKKRqSIk22k/rJijowfh2uiV9PQ9r4gbxhr6F8wSjmkl8r5rUY71l8usrvSl1AxDY/ieMg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=s/uswOqNFOt1x08C3lwLsvp20EExQ/4R5pDoEM+lNso=;
b=D/byFKJWNJM2Whee22lvHEXq5wIPF1Dviiw0husEkjBWN+Z43X0s5aOZTBEbXIVywPJ+2djx+wK5ltK+GQCtLaAFDxs59wK8jTbiIyGYJqAXCYPfkIDMP7gyadSv9wwGKD2POReFtJlIZI+65Qv7ujZbnu5FlqzcsQVfIPVO5QoqLEHYzKnGKOC2Ae5uniD0l8qcPJYy8uNDYfNQit9/K090Nbte2S3+SZj/YvfAxQ9kioPPNj4j7BUgV0gm1arnGm5Dqc93C+N1kqlgWE9Xncpfano9h6HR2HtWen8PBOjhLG2XTqcaIMN7dl4x5r9LU1y7jJrd3hiKRrJpt6FeHg==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:34 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:34 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 04/11] path.py: add support for ACLs and all
additional attributes
Date: Sun, 15 Oct 2023 16:57:42 +0200
Message-ID: <20231015145749.69995-4-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 3d732d07-ea7c-42dc-0435-08dbcd8f33d3
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
GKW9N4CoKtw7c19KZyXAEEkKrcfX/rAJ3Vk6Y3Mhjr/WJofcw3QBXgEHxjOYG1swDE0m8Sa1yF4N3ogsIY9+MRlCCRLo5RqdZKkuzprGokj/Z6G9XB1nP1qbPWMHwhJUrAnA5ESscd/eSnA8TEfUUiwOn84jYTbnhaxWBBmcEnUbJXYL9gGb2/KsN628/3jR2eZqsFMvbssX/0bARcd6TooaDS8M9UhYy6z7dfk14sw+z+e+bSBmCAyaZvCIcH4PiM5enlagzge7XjcKmBF71LsndGYkwvjt2x76DvEFqnv5gjQ4Uq16qK06llo2lIJlzj9E4NyDC+vwQ+/4EdX8OQD1WDxxDf5D5NH/ZqkZNHgkq6dSU2GAo1f4o9R8AbWqVsSxi7rR35P9lHX/s9uGGMu5MkD4Rt9dX25CpbJo8JoqkZXzeTp20SzLiYVCmoXkfX7MnbVN62uXOocyMA59psC6gXnBa8kTCt/TfNnpq1MET3KV7ueB6hYJ8KHt/eTdmocGGWJ40sW4Tm5t57/ypKnMaiJN2Fueg9lBxAg99fcZkFWLNkXUeB8Qb+ZYIwuVuWFtEeaSzWECTykL/Ofy8JL3N2m5EEemSR1NYgpfbD/7kDqgg5buTN3kieuxZNkb
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
oxhlVmohvSlnhhB6xV9aEP+OUqLvZ1EZE/VbabkYXkkrqv1ZDc6hP15QGf2/G6rxfEvZsx3DAkjIQcBnM8Gd60dBeUYNuB8WwRBYUeZmu4XIwfiuamPevoEvWHRjxz8fZXFBWd1UDftLjtQ06ckstNvfw9TRqE2jV9JLTAKvgflUIz+oHpofvVTkgL9CiDKNPeHzOnuelVd1yzu715ovpbKolO/VNNcMmoUQDrGcuOKWcZr7otQpjn1aAeM1BU7/Dm6qHbF03SlAdlhH2ZGW+Q3xRarAcqwxWnjz9gD+hicC8EP6i3tpyqJnSY+jM2i8BuXGVcr1LEsjznrekmbY837iIaKyv+pzsfJPpeoanQo9OWblltk/M+IOavpBxc7L4KRVGbx9f16aPrYYzwOsPbm1OauesJ22iMX5MchPtzI8ny4OnjuZpJ46s9LRaiT7e1uDCxkdjCjjfXAHR4AY6TuVGB+J6M2vvA+PyYBAu+SbbPAVs/DA4rDPUMJ+sE37iJA/F1Ok9rgK6hGTjON5Z9PeUmqWRlA6xWWAlOz4KhE1jTRW4X3ZlAg4Qz5I+ewGzJvyVOdCSyBOuPYq36ADH8w7YtLi+i8e8Y94WD6zMqzZ921pyA8u2RxnGmEt/+gdQgzbo+pdqj+Cr39kgxUt5BXQC04m3UjRWtCPkBgMzuJxFEBpkVBkwZx5BIqgjxIPBLlZ35h2c5DtGpUL5a2+kmM80DLhNU6EaLgoxwjbpPcA4kP03t0mrhccQHnzRG8kIYYJEgkMvhUczNzATbZ1Kc/VckQdOgYyVAaFfq1R4IsO7RBqioZBU4Zl7hDLe8ymJpKvDSW9i5Lb2E3EGpBKGRvO1XhKCdh7VdGgoZTMDQSo3SouO/b4qVHVcQexL17L2Tl9COHYN+IT8WbIvgW9wJ+QK6jilGZm+ggvAq5Y7oT3qTRHQHhU+H1kgVdvKFY1ftgMGKtkorGS5mmM0xtz4+uoRwIdCQQE4GXDHuokMO05FIWnRu6RhCP9QDrI7YgX6lKgEM6Paa0STq+44sNE9orH93Iq7VrLe0mHNS2m5XIhyhAm0J7eyKx/ZEw6FHZiVPM5kjGDxTXdccdEXY1gMm1t1+SmlpM11Z5pi/A7fsJ0YIHpgy1wX8uq0NdPdunbCqmdDOKzdXDiKOx5MwIfQcgSuZxPCii7ggK3PtYeh2tMo50j/ejf+ggFVzGD1BUzy9rLjR1kuHOShHGz7T4cfqR/7i7cUdYHhQsfRdU0zYw2bbaxtnSO0VpXHoQJ7V7y2lxs+Y5h5O/KWi52f+yK14vTea+4eyTNZHUwH2ri/iBtW2KcdDbK71FC815/D3c1dbFgG231b1A18C1+iAnFdzqVp8mFYuvYKU4och78uit9HIP4MUtr06jOeshJzwr3A4fVK/8T1XKveCl5qkU1hin1SpMFnW77qduUfdmRTIfD1tKEf+IZUk9AmgSxIg+V9XRGCsQ7Mk4y4QQh5In3RwuyBafV2ZoOcUDzg0dF0qZ2ptI0LmisV8oAqeFjk1u5A/Dn29xCU+k/Y7YQQGIjAhZg2H4bfLjEdKdGeUGiGGuOIGpJljcDUwoOMakwG8iY
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
3d732d07-ea7c-42dc-0435-08dbcd8f33d3
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:33.8143
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
y6qZBlP9rHdkRHX3ZPdpn+6FA6f+F/A9z78IlZ0Wcy1wUtA7hUFJHSCeDsWEiy8hpvv2mq1eARJp9H6cy5oyjw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189149
Extend `tar` command inside copytree() and copyhardlinktree() functions,
with additional parameters, in order to support ACLs and xattr. The posix
format doesn't need to be set in here, as GNU tar switches to it whenewer
is uses --acls and/or --xattrs parameters.
Additionaly change preservation of additional attributes for `cp` command
to all (meaning mode, ownership, timestamps etc.) not only xattrs, which
were previously.
Signed-off-by: Piotr Łobacz
---
meta/lib/oe/path.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 0dc8f172d5..56e8e214ac 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -92,7 +92,7 @@ def copytree(src, dst):
# This way we also preserve hardlinks between files in the tree.
bb.utils.mkdirhier(dst)
- cmd = "tar --xattrs --xattrs-include='*' -cf - -S -C %s -p . | tar --xattrs --xattrs-include='*' -xf - -C %s" % (src, dst)
+ cmd = "tar --acls --xattrs --xattrs-include='*' -cf - -S -C %s -p . | tar --acls --xattrs --xattrs-include='*' -xf - -C %s" % (src, dst)
subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
def copyhardlinktree(src, dst):
@@ -119,7 +119,7 @@ def copyhardlinktree(src, dst):
if (canhard):
# Need to copy directories only with tar first since cp will error if two
# writers try and create a directory at the same time
- cmd = "cd %s; find . -type d -print | tar --xattrs --xattrs-include='*' -cf - -S -C %s -p --no-recursion --files-from - | tar --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
+ cmd = "cd %s; find . -type d -print | tar --acls --xattrs --xattrs-include='*' -cf - -S -C %s -p --no-recursion --files-from - | tar --acls --xattrs --xattrs-include='*' -xhf - -C %s" % (src, src, dst)
subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
source = ''
if os.path.isdir(src):
@@ -130,7 +130,7 @@ def copyhardlinktree(src, dst):
else:
source = src
s_dir = os.getcwd()
- cmd = 'cp -afl --preserve=xattr %s %s' % (source, os.path.realpath(dst))
+ cmd = 'cp -afl --preserve=all %s %s' % (source, os.path.realpath(dst))
subprocess.check_output(cmd, shell=True, cwd=s_dir, stderr=subprocess.STDOUT)
else:
copytree(src, dst)
From patchwork Sun Oct 15 14:57:43 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32248
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 966D7C41513
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:39 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=GjPKQJ0D;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=HS7+Tt0cQGR2ek3KpxpO+Rn338iD0k+11Yk0u1hwMy3x9BJZwzcp+LJRjB8b+9AVw7zimEJTbTvTgA8sNMXYT8yJUu3HiKH9AE/aE02knr5hsrsrOKvgXNYrXBW5p85xO2MiQWIlda/JWn8HLBQztORijbE3pcSVBe8vrHR+FCTGd6U0bO0nVR5d3gpGjVounNvixKr+OV9datmzY7g+nRo1LQL1Z5zxgAb52WUVQ+WrjuiTAqcumxNM1qt2ekykF4kwpSGBr0oZbr9fEZl44B2u+QkOb8QxF9v+46mxMGjWocfL/Rnmh+NbTOU0+ZWxaSxt19udGlY41BuNShXhLA==
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=AONqEpsjzkHLtlO0IyMbeBemSbONL8PFfff+5FD+yYo=;
b=jjJo0TBxyrviq+76QOOOg2CUmQrb9ccfwAoCpQUp+7MH7BSlwa+CGQPj29/0WWY+UZNeGYpLSvhAidiZmKxu2Ex4lkQC5m5t+aPJkOIP608Rn1PsPj6pYp+IH4Dbkt+xB437cCOGRX7kqHCRRb9WbTEQwAS1SnBHaq2i7MPYVqsZ7uPp40WuGDjwr9blBusdtHpnN2qNUEc54ZNEqNh/U9p+KDIo/zivUOFmhb6wQ7NCyFHWbxTKl7QufRYWykTANmEtXAq+Yb21K6WO13GsuMtGhrYuUjXXnOzuZay3yXV8AJgy+1sN0+0LTcBRo4QqzSRHUhzBRz44MFSsU0oqMg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=AONqEpsjzkHLtlO0IyMbeBemSbONL8PFfff+5FD+yYo=;
b=GjPKQJ0Dh0oMnbzzB/xkJxyPXD/Nj3OcqAhGB3lBd0/TuXbN9MiqHE91jPIkRqUfqxAXc8lL0vzuO4wW6PEaBTt8k/VQXXh9EBFdBEsxk7a1o/DqJBsPflYyIJ2d+UOuayeyQ2NEJFhHSM+Qe6jLzyInhu23KslxhhDgA0W+hnSJgNuTwljOcDyn1GiClRjEEU94nKidr8Rc6Jpu5gX3h/O2Avd6j8OM4qTshWhTuS8PO5K85cVkNjtv1xN+sKkwf5Mid8HEi0M7Ithfjgi6jI4pok1YLmja1qCn3Oy1uvB+Ik7alMp7pVcJs7dhKwBDSABB3D6nnLhxnei2y5EAAw==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:34 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:34 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 05/11] package_ipk.bbclass: add support for ACLs
and xattr
Date: Sun, 15 Oct 2023 16:57:43 +0200
Message-ID: <20231015145749.69995-5-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 8c09137e-d3d3-421f-ed0a-08dbcd8f341c
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
d2hjEwSP28i5lVygu7WCHpJFSMCaa74mr9sGsq1ynlRHw8Es2If1Q52KROuk+oNtHNCbFtJzacgO7bVaDy4Ih0/8njTQZeObN6NWsK8xu8JepfPyaGIM8yFnlxrV1nHLbRXsoW8daLWtCom7qCZXd7glmeNrvr4twF4qnuMsRmC50WFl4I4oOdRElcCwtJXN5B7nfQxjVha15hqryjCrxSWpoFyyRB339ZnqanfStH+UkQ8Pp/ULWRZWJJCrKkPjbKxBqBVyoX7PfUKoq5GEuYx6DT1oIS1z6E63SFZtaYEO+L1I+DC97F0wdEsplRBkdewFviRyXWcz8XDx6XCbTjegtJv9uDPV4oB4Yy2Dw8upo+BtC75u45JqrPoDb3sBrh8txJt1oQWRMLxe7Q9caHA8LvQx7BqhPShf59S7R4J2ZXGdYVRZWuOreisoNdmSaUgHVW3TzojMyup2jMhP8yCpE2hZ4jYuBkKqkHCoYeTLs/E3ytBpNDED2+BhltOxEGFtcT4XJ3oxH+Fte7KcnIMdjp8ZA0DbsxYxerc5DtEeUzOcC/bnvHeEBejQISTvkqd7Su6hjjM20+zW7dqDkDFb3fbS26X1cxWtWWPHzG4=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
3uA6RAm0tw7JdzPFK338aUJ/pqLzYrWI+mymapwp3Pdvb1U0IYl14VlK71SDSSnmtHvqY+ybuafHWmR4EX+MlgTAomtvC31vitPHMkHkkqqK80rBeAJ+V9fi3gazhxViwGmTk2J921vxEKjH9/6wlNWcC/5vJI7mfbfE4O6NLCM6buQBCmK38zwXAoIBcxykKpExIW+WNs/SPecpFldA1hP4RN7iE5i5rP7i0Jk+Im6Kgp3k/x8JUk3PCYYAWP+eraIVA0/j6f7CJ9GDlFcSP6WCe+hdRHH9Fi8JMkvL0/mqdWLa5pKqagZGA+bsGrEDK0+1iQH8tScU0SePlce9DT5Fw79zg5PanNFunEIShHvIFCDsCkNRo6THHHmLw6UKRJxVc+HGs5uEqGRfF0HT9lwdzVkLFkATxVui0oaNCWf3gbH3qQ/SAZWXlKy1cf1OnpZXwQ+56QVyY5FandRWr6ANWxhNM2ZP1D9s8wLNn6zlIxYxFOpyB7I5Y0KommaciiQlpFUACc1UfgZtzhH/KEQF/zoOEHr+3wuZfXKw0JrsocQug5sHDwW/Muf/je0+bLH4N4pD57bP9wmLI6ita2c4DDK7pYBFeqPiEWxVF461xFbubN0x8eHYkF58wfMScB1hyXH91RJJNF6RRr7uTleGaoyqKTKaE+hjOVgYeovsaOPdZ4WlKu19n390+hZ9gY51cujhBE3W5sWlMnABplvm2ZnMQKvjJB3hv/4u1rSklvNnwdLQNipX55yrV5iim6ocWYFp0qEVOFCen11sUg+VjZF20phOBwS0b9C7S3eWV0okJ89p1oC0ZiSLtG6RIkB+LIx3klP9aQfYEZMXXea4IgkobLMOgkh5i45nQCmWJWjtZmy2IhW3MsM/9tMQfxL3NLBn0siJ39To1TkINacZM8fuYO02tFI5cC+XD9QI/hafxAU0VQAzICiQQcZhTHneUA5/2Myy6AuoohGNTkXwpwwEbuRvoGwbJC9TQf/mWGNoCxxdzExUs+ODXT0B9LLWMNycLZIDbtdrhl6jTZ9kiQaZq7QeUeSfLfT/mYDW9zCHVpxOEDTmFZ23vP607aZpoNZrcai3luIHiRrBPzXtT7zjKlRDubef+qIUYn5J5wP5dmc44Wl5etMjWbtUUYdEbNKQy7RoGzDTQg1BQcaUrxqyKrZQnIrpDvW7WnWoZwnDGOsEINZigkJOyiszDPKAnbjSD01DoTXkhQW18s4ysHl49Nbn/d0Zjn/vTjuNz9pGK9lTn8EdBEJx4tiSp+ifRw0mMPE0uYCNItKV5lr+eiDiFjDurlYbx+XKeBcsEDW7+8mFExNAA5Wo4tS0LcLnckCgq9rw8WcqnIbh85RnOTfymL6jqLIqP3yPIiz83TesymdlJYC/IT5FYYjSmgywiVg7bxUEhqBZdD7fIq7+hUabVBmcSd+gVzb/R6c3FK8zDwkhQLgq5eO0xT4x2RcLWXXLl9mPuZ6dzujFdCrnrAHD5bumTQ0rgmgjHBzioYtueWMV6qYB0QGReZIGzlLIBiOFT8e5d//UFEMOmrZmsLGa8tPU7AyZEqjwvdwTF4u074ooA4An3ZU2GCfL
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
8c09137e-d3d3-421f-ed0a-08dbcd8f341c
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:34.3850
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
pPUuL4aw767H7DNr1e1eHSl+b7bl85poffVePlfwqa6J58l0MqTv72gYgumQDYYiZr2GnRQ7dpE+/mhfKRULBg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189150
Extend OPKGBUILDCMD variable, with additional parameters, depending
on target distro features, in order to support ACLs and xattr.
With fix pushed to the opkg-devel:
https://groups.google.com/g/opkg-devel/c/dYNHrLjDwg8
opkg-build is able to create tar archives with ACLs and xattr.
Signed-off-by: Piotr Łobacz
---
meta/classes-global/package_ipk.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-global/package_ipk.bbclass b/meta/classes-global/package_ipk.bbclass
index b4b7bc9ac2..a0f106e4ad 100644
--- a/meta/classes-global/package_ipk.bbclass
+++ b/meta/classes-global/package_ipk.bbclass
@@ -15,7 +15,7 @@ IPKGCONF_SDK_TARGET = "${WORKDIR}/opkg-sdk-target.conf"
PKGWRITEDIRIPK = "${WORKDIR}/deploy-ipks"
# Program to be used to build opkg packages
-OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}"'
+OPKGBUILDCMD ??= 'opkg-build -Z xz -a "${XZ_DEFAULTS}" ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '-A', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '-X', '', d)}'
OPKG_ARGS += "--force_postinstall --prefer-arch-to-version"
OPKG_ARGS += "${@['', '--no-install-recommends'][d.getVar("NO_RECOMMENDATIONS") == "1"]}"
From patchwork Sun Oct 15 14:57:44 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32250
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 B7876CDB482
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:40 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=XyIRDXeF;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=GTahZ/i3K+gv7tbjqsGwHmIdkUqHffmouRR3KNXfflVeAWzZe/0Wgd27D8mNI18LJf3sgbNwBwwahu1B+0hdgF3JJOJdgWaAnwyu2W2ThHN2B9zpu14gD5njKHpm7k4nnfZapPm28448GDGWzIMMKbwHyDeBsM4LXVm3uB4Fd4U4CL1g/GgJJHFej4uwbauSutlOlpGB1Zk/VNml2OeDLJV0shBS1gL1j1U+pEhQtBegLIycJ8GLLWKcP2MRVaJzuKnnOQdff/ZF6S9PyWbuTtHlX0VLWckQOt2saACzRLb+fhC+4qmtPwZXbDJqOieh6uiEJO1qVUp9OST7zBPYIg==
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=aMcad87igkPOQdlt5omEoFA/YQ0WOqE9pSirTeraGHY=;
b=XcktPAw26V+7lyKUVnU19/NHSHSpiN1lJFvrc9CteLI1/Uu1OxZJJ0Q4RqxFKZtX1mrOXppxqKU4Alx/XyCY+V9wSK8NhRRt0OTrpoml9WKHrOx3hnYKtyzLufGVsgeYSu6YVOhk7ozPuKSchPKWFihjM0gedsgq6fsdedepumESmpSnovjWx5ftEKr6xW2C8EJ2dEmRcfuNDlcukMKQwlxi5JHU2S39K+WifNUoVaCxIrBswQRhKVKIM8eoi0HoaJNGzIQ6SDIq5KMg3EzAH1bjcgJgP3cbsc/SPZQIQtuHULbZHKmI8cPfbQp13wFTvRkISNXL3LXMlm3/ItPaqA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=aMcad87igkPOQdlt5omEoFA/YQ0WOqE9pSirTeraGHY=;
b=XyIRDXeFAPUfsrZkpdHi6DzkTVIskQWEtP4ckLRsFHudyG/lgGh6XfVIBw/2sPGgnu4XdgyjMQd1h80sy3b8nVuomvGN1bKbu6bFK807uePgnYRih5vgIFhVROAZJZUYr3PXg0NuyLTW51+24uJ+5zEtRUwEw9JBteenRSnHSp7QSztKM0PrUc+LgixwSG72PLUvNG7zBMLkAmW0OkIUweJAf0hImcwYz8k7e4moK0ZCnsgnReJZkRBT8Ifk3h5zFqHi4j4Hfmm/UIvj8Ep2O5jHb0HHuqAxNJNF91X+hYr+CVDRrI03jmYBYugY5Tx5ZdnsWuze8HlBbGkea/oZUw==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:35 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:34 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 06/11] package.bbclass: add support for ACLs and
xattr
Date: Sun, 15 Oct 2023 16:57:44 +0200
Message-ID: <20231015145749.69995-6-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: b4435ce4-31eb-48bb-e8ad-08dbcd8f3479
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
U8NapkGvk/IPpDGjSGRpUv9L0z6JLcuPri6kcTgyN3H77QWkRuDLtPdltz0MHPxS8/oX80qQWF54YNfc6DdRWKta5OIUYyWJjl7iwbBtgyINxuIn2DY26HNkM21wsgAg+jWQbFr4FcL0w9qdCDDGeewqESKp3BJYX7mY1S5MbBTcE+Q3B0cvf3HtpCe/1E+LzV8l3s685CjAD+/GQj/FXXDQZ0w9a2MUJWEmRjID5lDCHbZkwD71QpQZMRuFk7ZShQoVwv+//05X1AHiHI1W0sZbnDnTZMWAWcsiAo5VEEbFGQPvwjDJyYauberdUGTjbeHi7b5HlkoxUmLcP0KhOV0Q6mmOF6nG5mQCIqUpseBKAPOdIOqhFNi7hFj5matw+96T23KSHqE2HaTtwlrgheyHQdICe6GWCWHwsF6glU5au51rcv37TzHSkM6Ikd5sCZQ+r8CrzJ8exOQ68PCPaEgzJAIp7gaz6ZWXp/+r+I5vInMZL7cJvBvPtytc6Ioy0Jo8iwNAGg+2/XjfhC0N+EvoEL4t2HDMyL7r29mCvw2EPWJrWRHarzuXag10KYhHzj6NssE56nFIynXs7gSn5IfuehOrfcpoDeHxX4HwZQoNh2UDMyixO6igcSSLIQUo
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
V7TpyL43VVnGwKvjY6KshgJ17pwfU4U+5gwPOTFEhR7NIKAZIEWb+FQ152W9+myogU+pEecjK8lfbPzKA0+6WJJC6uGd4HjpvuWwfn3bi5v7k2I+gvfVe52Qo6/tc6wA/xd4VUdlEEYllHRm+KV8YCPdlQPOWDd/8zgHoYOg/Sq/W8prtknepQ0uhsl6Bge6YGFrMcU14kyxNFrhJg+o8mn9didikwEBdQT9HghXG5oNedEfm6dRrQCJ+lWuo5tiUUZ7nLuPRmG1oEW3RhtDo7bzhe6L8naFq8xC2EJe+OyWCQGD2RKs2W/ed4SehG4X5QsoU6hlRUz2y4at03E99N0OAeT+iT0t61U9jEGICeVmoKDOrIx1jf+RTyKGBc+K/GoEXED5IKEOW0vmemVvPmyvD14FG/eSCP/VIDFsCjiLvNNo6az/o4OLvs9wMVSRQKXlwj+j9n+HkNtDP98F4c6DHriXmi0WHMUjoZ1KrNy34DedKsIGJ0qZ7tFMk+u81uF6Dpsl8f60M+/S+Grjz87Ufjc5tdExIiih6oCazt7PqbLM1LtgIcwkU8swoXxd5W5td/yBHgjcRzf/iWpPhR6T+nDWw+a2i72GRrh6RSJNtNBUMDv3m5hTEAQkcHP7QjmQhxyQZCbuKCgP7AIrPI8xvwwGcJQrTPrzqwJAS9L1xhh/PDCxSiLOaa9qcithPLi61UoQ32HT7OdphVFNunix8fjaZBzZd9LnmSc/kCY4Xp69aP8zZCAQJXHfT77vCzI4HzhIpoQ+gkhlTkXX1n/TcCMD1DrX+R8DMyI78QosZ9HNiU9IJ0UM0sS7YYBeiQlIQ+9nrwk0JLRx/JKhW3LnNUt7L6dLPf3ZbNWHQDfRlpVv4RgBiqrYfbuGKbjUwfip4EqgoVwSKhI3vat43YeMPxXuKae6Pcs46DaX5duQ8W7T82e1Wz41L+ZgYsQW/iSC/C5Fiq+E5RYfnMffCimVANmuJc73P8ie+4ZalJlrsqQYAk4jj656iWRaKLErIUj9tH2ZDq7tzUDcknRSIIC/3zl0/YiHaiA5yt7pb/s/GVXP1SfrEVBZ4Bw2bNBuyKiVS5HLU063SVVbJREfHUt75y86nAgpkMEWyMbvQlDhBFCEKr8ORYSyvmtespYmlXDGd2ziN/G4Y/bAUXl51PR2KB47Ro3uzvWcKoHbTRQAx2dfwYLvb+8PStj3F4nULQEK1qdvIQycR6p5NrkJ+HSKtsXBy1BgQp5DoPNihdEOJ80E3zjsDUA/ISHyfT2MjV5/JwKm3l3kgX1w5YTt64GLsBqttQn2vEe+pFpxwnLTYPeKi5gFq81/dp6EqeFojjs3nUbKi54B0VUuJR6YiqTKduIsiJjffgrYvlvWKan0V7+/l8k8+nw3WOPGFQrK85iB536nMeB/VlUaQYB8wo6S4bHWNA5qqkBb5qptP+Hubg4GYkbHqrHzYLQyczH8n7ZI3BC7qjM7uP6vkIh+H/IdTfaoCYGmyRdwefzYbFkFYFEc4owsbkpBqr9txP8V4glHAAwqvJ6zhGfpU63gcL2C0DTPz3Pha91yavDVt3ebjGJtlDq3TZtaCTqZXk3u
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
b4435ce4-31eb-48bb-e8ad-08dbcd8f3479
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:34.8938
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
XVXCums00skg/1OkNt8mK8qQBsD0/cN9TspHwgofvBz/FPZvRsEeNvWkIJC4y82IVaiVhwi/80YOpfE1kfc70w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189151
Extend `tar` command, with additional parameters, depending
on choosen package class and target distro features, in order
to support ACLs and xattr.
Currently only `package_ipk` supports fully ACLs and xattr.
Signed-off-by: Piotr Łobacz
---
meta/classes-global/package.bbclass | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index 580884cd83..22af6552d7 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -353,8 +353,13 @@ python perform_packagecopy () {
# Start by package population by taking a copy of the installed
# files to operate on
- # Preserve sparse files and hard links
- cmd = 'tar --exclude=./sysroot-only -cf - -C %s -p -S . | tar -xf - -C %s' % (dest, dvar)
+ # Preserve sparse files, hard links, ACLs and extended attributes
+ # TODO: for the moment only ipk packages are supporting ACLs and extended attributes
+ # we need to add support for other package systems as well, but that doesn't bother
+ # tar from creating archives with acl and/or xattr support
+ acl = bb.utils.contains('DISTRO_FEATURES', 'acl', '--acls', '', d)
+ xattr = bb.utils.contains('DISTRO_FEATURES', 'xattr', '--xattrs', '', d)
+ cmd = f'tar --format=posix {acl} {xattr} --numeric-owner --exclude=./sysroot-only -cf - -C {dest} -p -S . | tar --format=posix {acl} {xattr} -xf - -C {dvar}'
subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
# replace RPATHs for the nativesdk binaries, to make them relocatable
From patchwork Sun Oct 15 14:57:45 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32247
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 8F289CDB483
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.77])
by mx.groups.io with SMTP id smtpd.web11.94698.1697381922963273726
for ;
Sun, 15 Oct 2023 07:58:43 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=gq6nKnAF;
spf=pass (domain: welotec.com, ip: 40.107.8.77,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=glT1x9aTUqCERAgJ2OiEaKXmBPVOwdpHp8lvk9rcDfKVOQ7HtF7pgqyiG5g1Ce36VAwx5ac31Nv0j4pmfbxEL/C4rOeKlgmrdBdUZGRVgRySH9c93kVHXd07Meeidr+1q+3izZ4UQQkUBDd/lHDS7r+cb0qHTmfGp7reDyywwcm6DalzoqT4TrVOASk5SCnc0vbE1PAi8cQymPiNYaRjJaqFFnLAU2AmZoN9M9MFC/QKGMe13EZmQsTmPjZlGKAcfRnKfEDdm2MtpdPV8FJviVv2zcT8Ug7yz7uwkjlT5pFLoOEE+6VmzcLUPc6k3arNQBOoz7rdCzF/925ohzEUxg==
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=962+Qutmx7yOQMSpDwCTL5Y8ribZgRBYEVAZLIMnMYY=;
b=lBUbkr7CXWNVOv3fZOJL7shmL8xAidg2xspGYzt8wvyM3GjGQJC812RMKNEYjQWoO7T+pkBGxO6I0aQFqHqPzre0y4LP9jySCNxGv4dQdcQWXGmMkxOmikxTu+Ung3RBeDA+DwUTj4uFsZrXYYKHrMotpQEPAJMzEjOAOEAr3CNdVVklPPL+EGC9pQgY3LHmHsJiBFekEZ4CsSwHKGvvqaFVoIaJNKN8gCO41PfRB8jxF9h+R+nksBRhHhtwmyU79Y2CPcUwPKEolf975kzGybMx0ZtzeSK3Eu4GjzO6SLRPjARz7gSF7D8IVsqUZ2VG5xSsEQkU5uesLj9OhduUtg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=962+Qutmx7yOQMSpDwCTL5Y8ribZgRBYEVAZLIMnMYY=;
b=gq6nKnAFsTqot5Sgkf5e2kBccdpsWs8/q953kmwzAPFbQU9IOsZ/tfpaH50fV8T5Cd4gx2dwbYuc/xkfaVR3GjIYCeBx2GPJe/Lsv0CvJll+7SleetcwDOQrYdSSS6kf0mU2fJIgOEPlhfdTOH+K8Q2G1COKHjQJKbgZbFiGnElu+addfgPGF90riKJO1gu1sBnCFF6AQfR2aCeZA/OMO5i04IaHEfjWLO1hUp2km4B/kNdq/96dAuPTJxdlI/hg+ZrMW1WZnitvkwulpiAjJozhYIs4y53PtCKU27dfmSNGNw6ddDN/zRP2JT78HUpMBw5qs8LCIIX4J78U/2C6lA==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:35 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:35 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 07/11] sstate.bbclass: add support for ACLs and
xattr
Date: Sun, 15 Oct 2023 16:57:45 +0200
Message-ID: <20231015145749.69995-7-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 3dfa274c-96e4-4b70-33cc-08dbcd8f34c6
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
NXMbX9K+GX7xnnkFMxNqrC2vXaaXfLZUSSpiVu3jaGLAZvx3Fb2+N3uaoyZ8qj6TCiOOtX+q1sD9WajTbmrHu8Wrdd1qawsdKJabOSswgHexdN4dc/vXm4cN6H7lHP8Q0F29iEeedQGhbaqsUHxpwocx6pbm/AAxjyXq2fJQoq4zp0EABdQmgkPv1TyW3gPUNXdjl4+QIMCpmL46HEKbR4ZLXa7LWP2ABcdMxEg0Bd9Kijon2DADOU7KaRTQe+1AN0SGN/4XzTvXWXXmq+aw8xtX/HFZ3MQXJnLfHbp5UcoBNY5A44FprfnkquN3rk8wL7g/ICxMj53sjYVmOMpk3xuZl8EWI3ZN110YjuKsQkZ8lUc4VjGkcD4+2N9pKtb52FS25WpHNnIAdZ2YGXJC7Gbp818okyCrn62zqTMvTK1SKPh1BbG0584NhdTn79zTN162TkOtYw7xldNn6tK+klRNYaVh9RL/6HRvm3825+k2QeBWr3G9G9AqFKOV3+tQKLdKX+UrmHfA8qFooMY1bJ+DNDMI7ADoHHZICyWlLZQKbkeujjmtg/XrAff/UAHlztb+p1r9FeE4aifdZ3qCc5/VwtIQbUsVv//Dp+l9hmM=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
eVlXdtRB569F/weVtTl0s6kzdJsWFm36Mvz0QBR5Ri6/FX4qBxq9InJS3yP2RRXiK6KhDzhe2VEaT4ZtPRX3ckiNpdSJ/ywh/JQG4MS8aMm5YOHmFJ4RxE9Df0Cq/fgcbxRUdZXZz5yiIrs+SGmuR+FjaLnRj7+goQJxek/slhkKMEa4ooOV29TyZMshb73xcOSUd4GCwFFA1828ArupXcGrMPnWLk2SBYjY1jEZzM/p9QZp1bJCVTZXOziRsIJrTDCSM6KhvugNEVFPs62mDQY97yhdEC/vxmvdPb2ScGMpYDmpe+fuR0VlvOHrMChAhZpOPIWKNhDV8InZbn/syWR8GimEqpMIjVbLnsgRTXm16ADFna1YZFtNCetTNZUDiiO4UOxwnOG+Qz0dTvCeZTAV1IoPmcjywoVTzLJNrhSjn6DbVjNfu77u9ohcG//bLKhwQCgPiNJDhlRlhdI2Bq92ygBS4cJXNfMg4IcmHmordXHfFNdvAR8W9ffSuqxFPzRl6r3JPRFlMffBFeaHgGjiXZdoL0J6DVbyncIbvWxG3ZuD53EoqMFJyv8pEZN0qHI3pIea/JalHaA8L48VB5bQv0cBuzTj2nDLy6XmiBSpGXxiWOthfxtDb7IeBlhc5UMSScfbDpgTO79eUDg6vFDfuqEnBijmsmU/UiuH0zIIQNMpM/wd2WMXXivHAq7lm16rXFNsD2Qg0v5prwgM4cGxlANqL9dcA5trpeloYRNtBxVsXRfaVndk6smQCfPVj8bXXaGfN84fphjuCv26X2cD66oJqIqTkqnaYqqOr75a/Ul9FffItTuyxBK9bK37ij+6SfG8tWueVk4Nr0PPlxDryk5ex3pEomNDvdyvQ0uPmASUt7TukZIBsNXoJznWzh2gCl9pR2k93p0xh3ygBV8iqWXu+AdPYwoh+hKgjc4D74FsbE2SA5hfAFh4HQEvuNG5bf2bwfiA7uLl3ZtWXg1i6iY3y9p77xMw3KTAPnxjHz1I/WyYci1euW+w8VVxMhTwPKhYd+wRP//+UMGvvLwrcKJs0kBUbywoAvM0ige3w6V0BbX4ryAtoFBoWu2tAHHeQ+5pgxcww9NWynpfoqjQXtQRhNafj2dmnimXod/rgVxusXRl7ttKdjuCVX6OH+nuJO3MsjBUe4ueDzAr/JSVPlzuIhFZOhE/2CgUC4upH5u7RCRF/3xze8jzJetnTM6FLmZrm3iwxgnTtwg+0xcNPbOFfL4JOxcXz331zqYY9eyLRat/OfCTha6YNattuvTczTNwwfOdzBnHQyv7gekQDGiJ+SZ98xOhuNHxPzeskILgEu0BIByihnPWN8EYHzaTR1a/iWAP7TuhMmZjvnb+cm7R3omXiCx+/Wttex8bN5P8qyWafFkk/I4W8B9rPqHM4nxLnAjeiR0B2Y3Bsl5mHTaHB5+ZbXvX0rv4Y3p4Mu4GrPQhNVWJsefhfA6P6jg9G5iHOCGp3aO+8MMdluma9ZxEsEa3lKf7SNN8a+Oq4xaMPwQiHi5RfKvBwddFQjYYsnqMafOrtEPRe2a40VowerX9CaemYW7VtQQVk66h0helQnKojFWyjQg9UW6g
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
3dfa274c-96e4-4b70-33cc-08dbcd8f34c6
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:35.3857
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
kqdoS8MpGvZ7aDzVR+gu7Kh8tWX99Xv+EVCRpq+mARUiLWufqZNeZ/yQK7uq8DBRFRWSb6wu2nm9KQXtG5KSnw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189155
Extend `tar` command, with additional parameters, depending
on choosen package class and target distro features, in order
to support ACLs and xattr.
Additionaly set archive posix format, in order to preserve
milliseconds in timestamps for reproducibility tests.
Currently only `package_ipk` supports fully ACLs and xattr.
Signed-off-by: Piotr Łobacz
---
meta/classes-global/sstate.bbclass | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass
index 5ae6f515f2..3e7b2ce474 100644
--- a/meta/classes-global/sstate.bbclass
+++ b/meta/classes-global/sstate.bbclass
@@ -829,7 +829,22 @@ sstate_create_package () {
mkdir --mode=0775 -p `dirname ${SSTATE_PKG}`
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
- OPT="-cS"
+ # Notice, that if you create an archive in POSIX format (see section GNU tar and POSIX tar) and the environment variable POSIXLY_CORRECT is set,
+ # then the two archives created using the same options on the same set of files will not be byte-to-byte equivalent even with the above option.
+ # This is because the posix default for extended header names includes the PID of the tar process, which is different at each run. To produce
+ # byte-to-byte equivalent archives in this case, either unset POSIXLY_CORRECT, or use the following option:
+ #
+ # --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
+ #
+ # https://www.gnu.org/software/tar/manual/html_node/PAX-keywords.html
+ MTIME_ARGS="--mtime=@${SOURCE_DATE_EPOCH:-$(date +%s)} --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0"
+ # --clamp-mtime requires tar > 1.28. Only use it if SOURCE_DATE_EPOCH is set, to avoid having a generic case dependency on tar > 1.28.
+ # this setting will make sure files generated at build time have consistent mtimes, for reproducible builds.
+ if [ ! -z "$SOURCE_DATE_EPOCH" ]; then
+ MTIME_ARGS="$MTIME_ARGS --clamp-mtime"
+ fi
+
+ OPT="--format=posix ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '--acls', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '--xattrs', '', d)} --numeric-owner ${MTIME_ARGS} -cS"
ZSTD="zstd -${SSTATE_ZSTD_CLEVEL} -T${ZSTD_THREADS}"
# Use pzstd if available
if [ -x "$(command -v pzstd)" ]; then
@@ -895,7 +910,7 @@ sstate_unpack_package () {
ZSTD="pzstd -p ${ZSTD_THREADS}"
fi
- tar -I "$ZSTD" -xvpf ${SSTATE_PKG}
+ tar -I "$ZSTD" --format=posix ${@bb.utils.contains('DISTRO_FEATURES', 'acl', '--acls', '', d)} ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', '--xattrs', '', d)} -xvpf ${SSTATE_PKG}
# update .siginfo atime on local/NFS mirror if it is a symbolic link
[ ! -h ${SSTATE_PKG}.siginfo ] || [ ! -e ${SSTATE_PKG}.siginfo ] || touch -a ${SSTATE_PKG}.siginfo 2>/dev/null || true
# update each symbolic link instead of any referenced file
From patchwork Sun Oct 15 14:57:46 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32253
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 C696FCDB488
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:41 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=bPwSWqKX;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=lrZU7oxXJkiMW8ZY3w1YKCMONSECRarOPERVyPwshqvoS7Um5XIUtu67iT2HLwIrj1KLq8VbOIAKVD11mCZUH3DZ368Xnri8r5ayeGb4jCfSjHznuD1KzmmSPYztwb35jTl+NhBTA2Vdld48EoBxEmjHecarEX0EACniGkuybMcLRC8tPijw5sBbQiSQXxMmZwJeP7LGq/ZmyBqDjmuHKHgxBFwXE0dHL0Pgco9n74I/eem0kVewpP43KKZjao1ckvI81eBAJsxdWQm9og3RiR0IMOqM/pxXEO1rFI5Be5a0ff+wO3sH2y66wCPc6l6Qe7Cyqjp07ZyZUsV9X1wqPA==
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=/pCHrGgRW8Gp1h1gb1SRnmIAa/LM7Qk5jOvHDwzHCbk=;
b=ASrjW69zITZ+6F91krTty4xNHEPuOOww+7ph6dKifIAG/qFnlINnOqzjEhHU3yHOfvtJoYD9bfPM+lOdrSk3smj9uwsPVo2qyIO94wq3tKVB/X8IcmEz6jUSrgMiO5YnJitHa7XIkk81HmmINHEOBkYFSA0F+7QZ3a767VWVTYEzfIe71ooSmJfDSzR+bikdrU+UqchDr+9EgkKOMPbYEdrFgOqgPgZctbjsi04bnCU+SgszB/VI86bOU9ZobySui3p9tlbMfGcDj77D2Ja+frV7g5175mzv4EtM28R8nlUr46pMTEfK/kToab8zp81byllPQpRSnEKvhpgs3lfLPw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=/pCHrGgRW8Gp1h1gb1SRnmIAa/LM7Qk5jOvHDwzHCbk=;
b=bPwSWqKX9uoXrYvzJrm1EGhpiCVpatV4O0qKtHHDuqyO1xti+n+hTeHfuu6bmVCCXGx8Xb89NtOK9+xOCuyqqnaNt13WAww/9Aw9KpC9g2nK2bofzZXAQ/ceezgjQdnGq9aUYybUizKFc4UqETw+QaBU4hWDRRKDiN9T0GgF0xVOD+j94ZCiYBKQhOKhaNpdSrNeRpuzXrzWrfAgGi/rC8lyZE06HgC3xlJGjzEjCzMXsoLXPG0M0Np8cvjX/j4k4Pt4UKjRLwclXt2H7FGc+jj8xaDtd2ey9xjBXEi9qNJSYRl0hPzz0xXufNhG92+7oSc/++NNJEXeipJ7A/u7Dg==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:36 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:36 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 08/11] sstatesig.py: fix hash calculation for
timestamp
Date: Sun, 15 Oct 2023 16:57:46 +0200
Message-ID: <20231015145749.69995-8-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 98e2d6c9-e987-45b9-a618-08dbcd8f3519
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
3/ys63AGkoG3eox55kP7LzmhL+XQkQVrujY9rQQ6tvg679LNbBhMNpAHRtREnfgNOTnASSB6oHAbqthtX+RKOzISCA1/g41/vz46HF/w3sehjoAIGxE5t2L/UqdceX2uUn8u9LYf9dvRtaaEb+xnfVo4LlcliYGUP/CaPBOxpk3Krwb8jP7OmnaW7z1ajpPAFCf2IGLGZDu+ps5i9mpcllBqbx5CvreW88H8jQzee2fW+ecmGMSRdG86J/8BaF/UgEmZiIOS8w4G4eWSS6hsbMwwcJ4VdcbwLNs9b7AI3BAr8iXizuh1JO5q4kUZ8HSTAIk8rRRNrvc6Tcx5L58DXs0rfKFrkU7jz3aEG7bpoUZGiSUQW/k0CfHru17XQ4iZ7FPe6e0s1W7myE114yc2eUfRp4k7BUBuNrh2eBf0U4O7ECYrgEHzMCy/vUc8si8FJ0y7DeRc5mEP6bSYhdEKnGg9fDBsMXnAQ3GXQz4tBYUMQ0iPUd5q0F6LYVC2SjTl8CMeisJJnCaq2tWoG0HMvw/MxjFsRYYy5NMqYuGZkrR/2vGpxVhp7cpR/3P+zkaIoC3XG4x6nkp80azDUQmEVZdPgPWwtqqRC9MGZ1su3MyeV1SUD5+o+ggnEEhOVS21
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015)(4744005);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
UiH82Y2yj1FrZaGiOzGktxN+/560velW+01oNljE1b8Y9MwobItgB4GRelS/ZpMaDgG6R/9Zx9rIswB+ok2N9RiUcaIvEve+fN41kQcssJYUYnnKUsIS+Z0d3GoX6GOjO5cu8vyClO7FpNNA3W5N3Mby4jFQzYn8Zx0Y6WImUhge3pU0TulCV1/zXz3fokguMd07WSIEal9+edp2ZxHMKmlwwpCytYYdNj61YWcdvR4t/eYOmI/JSyiO9ye0DtM++0IaXPkZmeo09G7rYABNgbHjoODq+CPolfbqVvjDdB0HPcB68p9eKvIDrh1nKnqQzKlbvUABiru7IdaFz0imKj/V3eAC+uAiD/mbTyz0sTZ+qez8yYxk3Sbm+aAQ7jYJzguqSvHBLfHeUFGc9oniVBgp/0t9cDkkmx6DSkJShgl7zusF/BwcsIDzO/WNNzxFlJQXk/tANWo1h0qtNp28WtDJz8DD2oNkmzWfvdxtA78MNhPf8X9mShHhKJtDLk5YA3e+qEUKbaWFIWOTu29bNruQ8xQ1SzaEoHL8b8vAQQK5Uy3lJNtJuz/FV47c35F2K8LNOqm0dET1ZgEkP0r7tDi7QTs7AfBX9ekMgxQmGbcXoHjICkiQwCgfHXAsnvGOdhQzwtBQhTBus/qq2zZfAoeBlNgxaz4p67xgBIe1yGyQdGd4OCVf1hNdq090uMJcc5mYoWRq0Nqk+UtK6jQ23Tvjyqgx/FCP80PpDhpigYSyKZja76CWqa/4DyKxQYqAepzCx2v1eZEXU2QpWdamkgBzBmC4Loz56TrSsaGzrSZwvGn2OGYILVSsS7yA8qe0Hi9COQiyYJiVTWxma2Equ47ndbqDRUmLqt6kZxkIsOGa21ddVip7nnMvewZORSlj516eiEPOpJZRwCVR+kqedqJ9evz4yW6INxi386J3aC94UVLVMOTS2l/o/Ejo3yR6Rm9WJnS81R5kmpp49cuSq0ode5fotCqtdywyyrKuqRxsIVwMkVmdaf5faRvySIWplpFhuF/aQis10Jnosc+Amyx69KSyz0iUMxMlKS0hwUPtgJxlJgHGY1xPZhf448SGDm5m0JHUbIVDWOtkbNVH2BQiY1tvuX7sNECuVmwv6kKX+IYoE1yb+Pi+qr821GOnONJeMV0eyC1V66o2pvGcCbi4V1aYIPtyO+wKyTl/aNwSGfU2P1MX+7F3srVgweHMjPR55oCQKw7EE/NavyJ96WDt7HgPARcFIFAEGgdEhDXBS0J4bhPjJwu+oSlCOJt052XAGnEtj9vQqgu4dOxubBdO5YzpQRUU1Lmi8iLVl4ZgAC48U/2pX9q1X8wVRdTIZ/8idXlIHipu4ylufiiTsVrmdoxsINq3KlYxcNLDhcBSuBHEJOH5P+MnTsJEnfV1qJXeOV5jugPT4+OEXgLyyGr/KCJSBbzbOC++5C87WUEB5epWPzQBFNY7EVwRAFItIseaXz9GxI+itwj8yNVZFbF4sq/IRKx4mzoa+nhz/POujwzMBetd1aVrkfzuC0WXvQQp8UQZD8cSgoBOCQVVS5zSLeoUe99YX5dBx+gCHugixVx+29aj1w9ccidvsm0T
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
98e2d6c9-e987-45b9-a618-08dbcd8f3519
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:35.9666
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
MdLcX8JI85vNZFCndbQmh2q1VnWXhOUaZU2mTGiunvDC33zIdsyHQqdTbfsDYUzdPYyyHz8SvwgkBfp9BX0aBw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189152
Passing timestamp as an integer was losing precision, which led
to problems with badly recreated sstate cache.
Passing it as floating point number fixes the issue.
Signed-off-by: Piotr Łobacz
---
meta/lib/oe/sstatesig.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 5bf1697e72..f1f9de253d 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -604,7 +604,7 @@ def OEOuthashBasic(path, sigfile, task, d):
raise Exception(msg).with_traceback(e.__traceback__)
if include_timestamps:
- update_hash(" %10d" % s.st_mtime)
+ update_hash(" %f" % s.st_mtime)
update_hash(" ")
if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode):
From patchwork Sun Oct 15 14:57:47 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32251
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 AC3FDCDB484
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:41 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=NNU/EpNa;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=KJDXFsYbz4MNxqSPrZZeYuBRL5onnSSYm7f+sDGYHcW0mbiGL7el/BlRjQjG9ArFgITgFUlOD/hXx+cWNWEjLEiFULHYHaR1SCjv1H8CUbxFDl0Fyf9F5CqRzt5T5FSX8YJnM5YqkF0oG3FM2JyZLrcZfqpIr/R0YFpxR8KCR14xwOqwcDSsFxFD5gNmJZB3Wf1q4rGvpXUddMnv4vjwAr8AdWcxVgWJd4Yj5lP7hwju5WnFFfNk8O5qrGchcMOly/JVSWw6aOYJy46PKwcwz9A5/dn/qISr2NHpFTWVge4aSypxGFscEkC64ip2imeZxHNYmId+2ftU+5RZag/5wQ==
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=L0r37I+i7IcUwDLpxeh9T2YIhLPLA6sWmKLn9yi2Maw=;
b=jnVmucDv27kDzdeB8UHCK3VFTADJHHKkLStu5Ix5yRK5lHkISqZTCkmNuF47Jc1JpoI6ab1amE00/jXIie3NR8jXbt8VhA/ojXkZUtG+khVPZiZJriJMz7Fz73KTgabRO12SHjYRiAYB17jq/X779FZZWhzqE8yAnKNnYWeb8d3fRrGcXUCNBJ3EK1X1SYLCqMqx75W6aeeGWvZPbgGOomgmQ+nJ5A/QAj94EQymuGo6DuxzIu8RmtG25dC99YcycBnI2SfWrkKrck3nsAhE4fAfxWdk9bRJ3gb0U4RKOjAFkvfox5x2nwChigtC3wOiqXY9GnuaMO8y97fpMTJWrQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=L0r37I+i7IcUwDLpxeh9T2YIhLPLA6sWmKLn9yi2Maw=;
b=NNU/EpNa2wRUYHdz/CALINPbiyKLnqR7lNMS8gNUFvob0HQjO5udQIsvmr+fusybp2DBGKsfW9nnzw0LRYDcgDGctIjyKPCNs8iE1i8g46HyPFsWBu4n0/Ix5tLqPvSebhHAekHLS8Yo0SkzfLQIKc6C+eJUgXErOyLvtH24zrTMMfIht3vyWBhQJ35gxFYmN/AuFUAAA2jpKjVAANoaUsT7Z78iI9mwAybNuh8PC72lMDWkmbo7xO7df0FTNR85G3OkIsbHxwGaU7evSlaOwAHvuv1yKXOFyVjZtu4A6Hqwv/U5SpT7GOmj0Xo1+Y3K3e2d1fc9/rbmbgmDJ2veXQ==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:36 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:36 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 09/11] opkg-utils: add acl and xattr support
Date: Sun, 15 Oct 2023 16:57:47 +0200
Message-ID: <20231015145749.69995-9-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: 3359dfcb-cf40-493e-f152-08dbcd8f3565
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
tr49XCdVz0m80L6dLQl81Vmn7aQKAGl+7dXwmkObjq4I8C2ObOVoHKA3HMxRNjbEnXOdF8Kml3LiM3Cf2fI3C5QEdP7iOU92WYo23QhoOfzSMKKr/Y6FdX+WS67TE2RqW8/1712oGjrKb9A4k0Wq6Fw+MeLuALfEfD7woYQgEKQEUai+pPFOgpmwpmVKlPRSmza9bFjXUkp2nISyX4yLAlGow8UzEkh2s30Xq9bpePKjJUpqq5nfKv03Awq8SsbS2Rfh0C+ndX7CyKYanQ3KHF8b7YsXDef904Kx72TXKtgapslIGsMTdpJwcYcnYzX2dGRRERsUroB3gGDgRxYbt5DzzXoXczpsiEBLqgs09YpcQ4zJoJ38+Ad6UV3+VyeHpzLUWjP4sMSQqJHZPsUlQhA//+bhw5SB86OKwiTbeLdikItq6HtpjZwvAxonX7tuxVTUmcXWWmuEBTyi9P/3jNQpZaawK1XUxxG8fQyguSZZ+7mEWWJSt/Dds/nMU6mpXIVRzMMJG3QsVLUnDPaTB3EhPpmoUH0PFcM1ZixgTWjjy/RADqKkY9Z0l3b/+GZkhFjPJ3jNpVLzhRAHYXTg5ZMMPA1/fLlPOiQdYtJNu/E=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
T8RfkhfiIkeW+eHJONLSbEVeuu/yuFlhgFDRDkyMMv7wmvgMLCk7wHInJxj4S+uVHlZ9J7Hcq3q6q9Q/osh2GVSAaX4195nDbK4XMrjwOsd2oePP3vP9DvEF8YvSa8ahDHRZmin8JB8T+lYdOILtGe2gHSlCTWia6sm8Z8m+EqO2JLkRe4Mx+tQww4IatcuDuqADyE0V3c1v5NADgOYDCoVMgPo+T5AyMT5k+yXKPH+uNkXR4PeqOqbllyDGBG4EZhFgx8/2t4fmLBJxQzfKfoMfXRqXdvAwQXK+WeYO1ZrpL0KjXoZ5KThygY8xMHN4oC6I9nERw+7YIHwwB63s00MGWwwgxLB6R+yGfBbHoH2msCKVCg2S+9K91TBfNaky0FU9CtNyTdlLihe+/RLvJ8MHK/FN+rFMikMDn9lErkfVC5Cmj7K04XsBwLom0x4subl9p21kHsP4Uc9AZw2fRR0D3eRQC0L1b96yJjqjjuLlu3O2uigH1Zs6OicmNkHA0fQ3yrop3R7gU2qvYjIk6XOIYh9769XWcOAk+6mzq/V6/+C9hgZniz0rN4CZuvNiuaqy6D0Q9eHvMmoiGOHY7d3vZwLLN91oNLrHQf60peDqng4g6l+zVujQiJqwTzDs2HhKcUyi4VF496SLbZPZRUTB4+0XD0WiQlSCjRb5c7z5TviFdjA61dI8cBiZ7KrmHdqEuGA891qM104jf/4AO31go6i7CAbBKCY1ywA2+oJBhCWQl6yKj6AcVbhjIHz8exDVXFQTpBfDRn+5iOBAsQLhUbdAyG6r/VpkzazT7YJ73RcmBPRk7KeGcZt0ESqnWe7b000K7gn2KA/+3PVoaSIIMk5As2vEjbcyKvYexKQnJJ4mHwaeWVECVuYYWLqozHqTP9PgNIgkfugJbqhGnM96+/sF2lcrPsNXZ/yUSGggpEXBAKS5o4gagMxOK1yUNdK1ohHkdpOf1GV8DDSbsvaC9E02vnHJfPQ+7ZDIs+oj0z4OHD4467x6DJXZpf/tI1hZgwhpnS68c89QtoPlBi0wr5U4jr6viMPF89DFndKqa94Qz9H06OQnZndrXW3dZxmRxgkwX3gFxv4KZjhCbHtLbsYc8rKo++PA6b0KR/4zDhE1+0M4BCoXAoVEoEOtBX/t9UpZo0xggLYcknlbKYozzlAPO7u0qTpzmm/7Jue5VORTj1W4ssJXCpsgSBKj2GIlxzxSYz7RAOY5tjhaFvtcoXZ5cl2lMwptWJ+SNm0EmcQUjmYPJoNOEvvyKt1HPn2qGxu01IsOV7hA8s7syS0gDdY6OI5gKxtHJ8aW+9t5i3cExs9tvpIDF9CPxcbDnfMfeo4Pljf0rds32nwl3jPKBN9/SJ+qrBcJJDoPgKS8ttvy/Q5lh8MMDK6sRtYYiQJoEb8RZUKjYsSGOxwlYFOrNGCFFOt1qZd8AEFpScc7wU19uHCUGwrAOAev8A9qjQgx/nD6NxxL1iox7xyhKWboEAR/vbY56v0zFQj3IViwfYy/joWOOl8uHj7Q4S9GORSsu9Bd6A5/qmd/hJHfriW1PVeB/8up3UJLSl4Q+rUYJpMovOsq/LSSAZpPqptY
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
3359dfcb-cf40-493e-f152-08dbcd8f3565
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:36.4143
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
4xeqq4lyfVpQCKN7CvLTSbyIHtmMJ8rJTSp/2Oky/OtsASiYCidsQU1m619yo7TaAqR3U7KnZMUqSI586maKTw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189153
Add support for tar archives created with --acls and/or --xattrs options,
PAX header format.
GNU tar and libarchive already supports ACLs and extended attributes.
We can now add this support as well to opkg-build script in order to use
fsetattr or setcap inside do_install command and end up with a file in
an image with the relevant ACLs and xattrs.
Signed-off-by: Piotr Łobacz
---
...kg-build-Add-acls-and-xattrs-support.patch | 174 ++++++++++++++++++
.../opkg-utils/opkg-utils_0.6.2.bb | 1 +
2 files changed, 175 insertions(+)
create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Add-acls-and-xattrs-support.patch
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Add-acls-and-xattrs-support.patch b/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Add-acls-and-xattrs-support.patch
new file mode 100644
index 0000000000..6cc81d3241
--- /dev/null
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils/0002-opkg-build-Add-acls-and-xattrs-support.patch
@@ -0,0 +1,174 @@
+From 8d9953dd8d589e9b740307976cbe474e0ce292a0 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Piotr=20=C5=81obacz?=
+Date: Wed, 16 Aug 2023 14:59:35 +0200
+Subject: [PATCH 1/2] opkg-build: Add acls and xattrs support
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Add support for tar archives created with --acls and/or --xattrs options,
+PAX header format.
+
+GNU tar and libarchive already supports ACLs and extended attributes.
+We can now add this support as well to opkg-build script in order to use
+fsetattr or setcap inside do_install command and end up with a file in
+an image with the relevant ACLs and xattrs.
+
+Upstream-Status: Backport [8d9953dd8d589e9b740307976cbe474e0ce292a0]
+
+[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15097
+[2] https://groups.google.com/g/opkg-devel/c/aEGL7XRXfaA
+
+Signed-off-by: Piotr Łobacz
+---
+ opkg-build | 81 +++++++++++++++++++++++++++++++++++-------------------
+ 1 file changed, 53 insertions(+), 28 deletions(-)
+
+diff --git a/opkg-build b/opkg-build
+index a9e45d4..fb0873d 100755
+--- a/opkg-build
++++ b/opkg-build
+@@ -145,6 +145,7 @@ You probably want to chown these to a system user: " >&2
+ ###
+ # opkg-build "main"
+ ###
++attributesargs=""
+ ogargs=""
+ outer=ar
+ noclean=0
+@@ -153,22 +154,6 @@ compressor=gzip
+ zipargs="-9n"
+ compressorargs=""
+
+-# Determine if tar supports the --format argument by checking the help output.
+-#
+-# This is needed because:
+-# - Busybox tar doesn't support '--format'
+-# - On some Linux distros, tar now defaults to posix format if '--format'
+-# isn't explicitly specified
+-# - Opkg doesn't currently support posix format archives
+-#
+-# It's easier to check for mention of the '--format' option than to detect the
+-# tar implementation and maintain a list of which support '--format'.
+-tarformat=""
+-if tar --help 2>&1 | grep -- "--format" > /dev/null;
+-then
+- tarformat="--format=gnu"
+-fi
+-
+ compressor_ext() {
+ case $1 in
+ gzip|pigz)
+@@ -197,20 +182,24 @@ compressor_ext() {
+ : <<=cut
+ =head1 SYNOPSIS
+
+-B [B<-c>] [B<-C>] [B<-Z> I] [B<-a>] [B<-O>] [B<-o> I] [B<-g> I] I [I]
++B [B<-A>] [B<-X>] [B<-c>] [B<-C>] [B<-Z> I] [B<-a>] [B<-O>] [B<-o> I] [B<-g> I] I [I]
+
+ =cut
+
+-usage="Usage: $0 [-c] [-C] [-Z compressor] [-a compressor_args] [-O] [-o owner] [-g group] []"
+-while getopts "a:cCg:ho:vOZ:" opt; do
++usage="Usage: $0 [-A] [-X] [-c] [-C] [-Z compressor] [-a compressor_args] [-O] [-o owner] [-g group] []"
++while getopts "Aa:cCg:ho:vOXZ:" opt; do
+ case $opt in
++ A ) attributesargs="${attributesargs:+$attributesargs }--acls"
++ ;;
++ X ) attributesargs="${attributesargs:+$attributesargs }--xattrs"
++ ;;
+ o ) owner=$OPTARG
+- ogargs="--owner=$owner"
++ ogargs="${ogargs:+$ogargs }--owner=$owner"
+ ;;
+ O ) opkext=1
+ ;;
+ g ) group=$OPTARG
+- ogargs="$ogargs --group=$group"
++ ogargs="${ogargs:+$ogargs }--group=$group"
+ ;;
+ c ) outer=tar
+ ;;
+@@ -232,6 +221,32 @@ while getopts "a:cCg:ho:vOZ:" opt; do
+ esac
+ done
+
++# Determine if tar supports the --format argument by checking the help output.
++#
++# This is needed because:
++# - Busybox tar doesn't support '--format'
++# - On some Linux distros, tar now defaults to posix format if '--format'
++# isn't explicitly specified
++# - Opkg currently supports posix format archives, but gnu format is left
++# here intentionally for backward compatibility
++#
++# It's easier to check for mention of the '--format' option than to detect the
++# tar implementation and maintain a list of which support '--format'.
++tarformat=""
++if tar --help 2>&1 | grep -- "--format" > /dev/null;
++then
++ # For ACLs or xattr support, gnu format will not work
++ # we need to set posix format instead
++ if [ ! -z "$attributesargs" ] ; then
++ tarformat="--format=posix"
++ else
++ tarformat="--format=gnu"
++ fi
++elif [ ! -z "$attributesargs" ] ; then
++ echo "*** Error: Attributes: $attributesargs, don't work, without posix format, which is not supported by host's tar command." >&2
++ exit 1
++fi
++
+ cext=$(compressor_ext $compressor)
+
+ # pgzip requires -T to avoid timestamps on the gzip archive
+@@ -301,21 +316,31 @@ fi
+ tmp_dir=$dest_dir/IPKG_BUILD.$$
+ mkdir $tmp_dir
+
+-build_date="${SOURCE_DATE_EPOCH:-$(date +%s)}"
+-
+-mtime_args=""
++mtime_args="--mtime=@${SOURCE_DATE_EPOCH:-$(date +%s)}"
+ # --clamp-mtime requires tar > 1.28. Only use it if SOURCE_DATE_EPOCH is set, to avoid having a generic case dependency on tar > 1.28.
+ # this setting will make sure files generated at build time have consistent mtimes, for reproducible builds.
+ if [ ! -z "$SOURCE_DATE_EPOCH" ]; then
+- mtime_args="--mtime=@$build_date --clamp-mtime"
++ mtime_args="$mtime_args --clamp-mtime"
++fi
++
++# Notice, that if you create an archive in POSIX format (see section GNU tar and POSIX tar) and the environment variable POSIXLY_CORRECT is set,
++# then the two archives created using the same options on the same set of files will not be byte-to-byte equivalent even with the above option.
++# This is because the posix default for extended header names includes the PID of the tar process, which is different at each run. To produce
++# byte-to-byte equivalent archives in this case, either unset POSIXLY_CORRECT, or use the following option:
++#
++# --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
++#
++# https://www.gnu.org/software/tar/manual/html_node/PAX-keywords.html
++if [[ "$tarformat" == "--format=posix" ]]; then
++ mtime_args="$mtime_args --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0"
+ fi
+
+ export LANG=C
+ export LC_ALL=C
+ ( cd $pkg_dir/$CONTROL && find . -type f | sort > $tmp_dir/control_list )
+ ( cd $pkg_dir && find . -path ./$CONTROL -prune -o -path . -o -print | sort > $tmp_dir/file_list )
+-( cd $pkg_dir && tar $ogargs $tsortargs --no-recursion $mtime_args -c $tarformat -T $tmp_dir/file_list | $compressor $compressorargs > $tmp_dir/data.tar.$cext )
+-( cd $pkg_dir/$CONTROL && tar $ogargs $tsortargs --no-recursion --mtime=@$build_date -c $tarformat -T $tmp_dir/control_list | gzip $zipargs > $tmp_dir/control.tar.gz )
++( cd $pkg_dir && tar $attributesargs $ogargs $tsortargs --numeric-owner --no-recursion $mtime_args -c $tarformat -T $tmp_dir/file_list | $compressor $compressorargs > $tmp_dir/data.tar.$cext )
++( cd $pkg_dir/$CONTROL && tar $ogargs $tsortargs --no-recursion $mtime_args -c $tarformat -T $tmp_dir/control_list | gzip $zipargs > $tmp_dir/control.tar.gz )
+ rm $tmp_dir/file_list
+ rm $tmp_dir/control_list
+
+@@ -331,7 +356,7 @@ rm -f $pkg_file
+ if [ "$outer" = "ar" ] ; then
+ ( cd $tmp_dir && ar -crfD $pkg_file ./debian-binary ./control.tar.gz ./data.tar.$cext )
+ else
+- ( cd $tmp_dir && tar -c $tsortargs --mtime=@$build_date $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file )
++ ( cd $tmp_dir && tar -c $tsortargs $mtime_args $tarformat ./debian-binary ./control.tar.gz ./data.tar.$cext | gzip $zipargs > $pkg_file )
+ fi
+
+ rm $tmp_dir/debian-binary $tmp_dir/data.tar.$cext $tmp_dir/control.tar.gz
+--
+2.34.1
+
diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_0.6.2.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_0.6.2.bb
index eb88b9b734..d5ce2cfbe2 100644
--- a/meta/recipes-devtools/opkg-utils/opkg-utils_0.6.2.bb
+++ b/meta/recipes-devtools/opkg-utils/opkg-utils_0.6.2.bb
@@ -9,6 +9,7 @@ PROVIDES += "${@bb.utils.contains('PACKAGECONFIG', 'update-alternatives', 'virtu
SRC_URI = "git://git.yoctoproject.org/opkg-utils;protocol=https;branch=master \
file://0001-update-alternatives-correctly-match-priority.patch \
+ file://0002-opkg-build-Add-acls-and-xattrs-support.patch \
"
SRCREV = "67994e62dc598282830385da75ba9b1abbbda941"
From patchwork Sun Oct 15 14:57:48 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32249
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 97DFBC46CA1
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:42 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=kkZODkoS;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=UrPcuJSe/394f/x3TzYoDIcCyClVSpxIo5pG/ReIAwRltiUgbS/Db5hNSlneGqMJMLMxd8ix+5KSPT8KWUD1puZ4VM03oHfvG48zIzsiybvpGFni0LHwR4Gruym85OMNxvsGcZgI7OCuigGSZr7SxtF+1Qv+8WTZ6X+b5mXUqQsqxxHA+KdmdeJNC5ZhX/tZFOSlLE/sE7fPib1NRpe3XWSIeWU0dgib0xWw5MK2C5RNo0BYRki0prEftHEjSr3ubpi8j4BmX7wZgp9HqiTWp4KbwCkvjXCzpQcbIWoQA4hsBBQI8QLW50wq6JpWaWNQxDrCfU9VFPI26IiyvYfdvg==
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=aufmz5XXUPx3GT5C7Upri0nkPs2fm01KEawbIS+GMqA=;
b=SwStS6himnR5Vfasd5MimT8IRWSKMAiUEmzwISM2NeBVXfrr/F9+NM6F4B5Vd+Op1fcCATSb8srksyyLXQWLDweBqHuWiuzXPxkOsx7jMtFOZPSgcq/9cN6Julz0ZBQafQRxkW3wk9p6pRACEvflfqtPyE4rBgrXCUxG3Hn3Gpl5q/80sfhzNIq8MklXijesoWAwRBHktStZuDZ4077izHRBsnzH+M+cbYZJinb3KqOcq/tsMtIlLAU00lbUPRMDxbF+8pUZl+Wxr6BtkFY+eFR4V3HCC7KZuXEM7rHvg9sVRFPkJ4cLcpqzl+zTmCLMHe4w8jvzpyCip7DwfddAAQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=aufmz5XXUPx3GT5C7Upri0nkPs2fm01KEawbIS+GMqA=;
b=kkZODkoSR4+3o8NB5F6A+racTYHQn0RttzRvRFrZR9hz+o2mx6CRzaiI11HY964cjreOcyKoXHvRlB5KNjN4EZS1Ed6nglueyHFpfIlLbvAdEr9xTtyCMndISmZdcaRtc21uT5Ql0weDzvPY+aXbkk07Og52WICCrn5PKG/LKwZ7AKGOX62d/ouTUGpIgz76sQ1y01wzRR+NzQ03h/CjoaHyPqsnnGorVuKiA28/yJWCxxt4IMiR68+osK6UmtX6/MzL2Z+2LAlYp3BJAON5Sh8Pg3kVZoNLrx3vIOX/VXXYzievXbV78PNiuEWfeLlHXZl435rdtE3V4YtkCUmaNw==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:36 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:36 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 10/11] opkg: add options to enable support for
acl and xattr
Date: Sun, 15 Oct 2023 16:57:48 +0200
Message-ID: <20231015145749.69995-10-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: e9be2148-03f4-4fac-da2a-08dbcd8f35af
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
SiSSjFbLxyFRIFMwRbf2EE/EWvUPX2zVb2zP/ERwAiYhzXjTtB5uAxF17faMWeyulku/QGpoI/6FYdmEP0XJIPwTKGCMQPec9Md2+IQz2O8pNvMirZNNQzhQ2okHZltTqVzkpPiFQMlnq46J6F/Ag4YWNE9DMb34mnPv0awMcwkahPgUL79zrG8V/CRy7PGtMPOe7+wNg33J7aNvq9MdsR090oTvcfcI0L0x7bIpuB9+k/X9NPyMaAWHPkl2GMWqe/ARq1jnj6t3XpqXIFrsR4cy3StO1jodNfZqAhxKX8r2E/g1VKgfAdTmEA5LlMxh2VyrCA82qUxAl034gJOx3x1CJtTzx21F+xR0EBjRNLgc1EgU8hx3Y2IRnlDeKk96XDAlgu/uwJiPqa1usRvlzGXj1AEKMnJse8Ccu2xteVVBsqGZ2u1IoKeVh1Z0A5JFmiQgoblkeHjde7NtRqOZC2+zJ1OVjl3080KkdqzL+DMDpNA2pcXYyWnMRSRxc1r68b8E8tRWG7NFuoYRNwRv0MSGrIOqSV2waxH72nQGUKobKdMkn4w6aFDavDRLWiFP5FYtt1mulDN0gLAyTJdafIW9pCsI7RlcgiMrvZ24Gu4=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
C2bVYyDiO6dS0vOD8rDrIFlw0diFIE3gPwdPB9kqXVoZskaziqcalKCT0qWuVo9ka1cxcjHly6ptemSVqCOcyr1LI6xf4Qw8Y+gQeCKUculhv6Z/EnrY0IpAkor7RBtWp/H5OxdAtbYMvkL6IaFBf1A/raVEJfdfKd4QYPy99BjEi4MdizyKk30Dc01VB63V4p+Rzm/o8lcgUbGizmXH+2rgvH9zL5wj5h8a+Y6tC+5rG8hko3cqccdz+mgFtNXN1c+tLq0qHZut6zQkWxD5jP950zYcKx+r0Dk13eh3B/Cnn8G5oMFZtIJjjHqYTP44HgIUU7Y0zcP3QFco5Pr5YrTYYvJwG8xlxw+voF5wET5bOqYze6+kiSHlSlBTalSJmZ3QOVlCF+Iv6L3DKLqUcjRSelf66eqgOUyx0nYpxV0NXTcx57fUzF8hQvM7DY51MB8F1qw0lI9/1b6GsFBmYEhe90rehcvw1Fways58mCV4r9sEJ2vo4cW2YSAeLyg97pKKFJkWEuUDMoO0Ot1mCtvJ4ViD2A+3uHjrZFbej5EAWw5U8LyN9T0bMDkuy2mcyg0cTJf2Fe7NJSxf7AIOntC5o2CrWHh9Hv5J22aPsy3nCRdMYrdXTGVrtcNPxUL3LJR4NYOistxWbPmVmYZZYXRiPAtO3FGFRd55443Nv5318AaODhe7yfaOoFMqLBs+rqoxEIEBL+51gT3ky+q6SkxrRqZo7yoV6hRfqX0AAQoy3pNMmpFq+nZF50JoEkyVrBao3GUreQPj9Ft/KdKINcVCuH4mwjWpnARL6dehy2WhLFCN9xFivdhX27H7FnFqd3f8pKDpHR9cKLKjjpnWISF9owRhBKGwq8EMleKlki4atTCHLRyVBFcFAf9F/UQf3FE1DTg7OzJRNgQU+WOzbWi7Lb5IPbhSA3RzPNchpBgAymcMAYWCTYHBDZM+FN2oBXl9xqfCXFpLgGxIw79URKTK+9fTTfCI5WPsBM179XGdvmMPu6gZmJZAtnd2CsSzjmMXx0HyCwnxRCjF/wuFOBXQGL4BTxWgg/P/MVipzRc6+YZGUFm5uJhPyZCGlSaykC1RhCTWGZMdi/kSvkbd9WFJCwJ++DvEbsgG2lZmH5Ofl2bY7eOn+uwNA9b4X24euLMoazvl23sHmfRbHfPX7Db5e3+bNDbrCcCS5O9cQaifNvErkVienLeDmVgqkD+9g6GerAnuy7OR3Jv9l1iujf5YFhomlzquLadYQb+OEKuUGfzS0/crOGnXpV8si5LtjP9mp/MDtmzeeBcklo21fGNum8CoLK1OFvCP+VtATeKd7dZ9YSooAI+crhTKiH+riAlx1iZiAmWokbkI8x4uZmXv0e1c5FkZZQ7Y1t+lGKvOtt1frrajZxwexFWj8zs5xdtA/Gg8/CqjEX7X6fStee74POUqNDcfDvrpP6nh9MWpddYlUaceLF460Hdg3kpWRDpFeZu+8nl4C+8IYhi2LdHiVpcQTLo7VRTiBmYH5eVo+dMJsfjZeC409AiFEOB7PBGX129MbJd5bdjVoIlhD3bT7sJZW9YtVX+bfGWrNSllTx8/yzBMNnU/Taj2zd5i
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
e9be2148-03f4-4fac-da2a-08dbcd8f35af
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:36.8926
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
aJ479OoOoWzVcn4KIabB9Hpw7+jqWkcv4Ymz2T00FlEoXRQG/bMhA7Rgoi8hSYdTsFSUgy3sacmg17vz+PcY7g==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189154
The libarchive library, which is being used by opkg, supports ACLs
and xattr already.
More informations can be read at this link:
https://github.com/libarchive/libarchive/pull/691
Signed-off-by: Piotr Łobacz
---
...-to-enable-support-for-acl-and-xattr.patch | 70 +++++++++++++++++++
meta/recipes-devtools/opkg/opkg_0.6.2.bb | 5 +-
2 files changed, 74 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-devtools/opkg/opkg/0002-Add-options-to-enable-support-for-acl-and-xattr.patch
diff --git a/meta/recipes-devtools/opkg/opkg/0002-Add-options-to-enable-support-for-acl-and-xattr.patch b/meta/recipes-devtools/opkg/opkg/0002-Add-options-to-enable-support-for-acl-and-xattr.patch
new file mode 100644
index 0000000000..26b2a36c42
--- /dev/null
+++ b/meta/recipes-devtools/opkg/opkg/0002-Add-options-to-enable-support-for-acl-and-xattr.patch
@@ -0,0 +1,70 @@
+From 1c935e994bd572d9fff436f660ac1a060a434df0 Mon Sep 17 00:00:00 2001
+From: Maciej Liszewski
+Date: Tue, 4 Jul 2023 22:01:58 +0200
+Subject: [PATCH] Add options to enable support for acl and xattr
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The libarchive library, which is being used by opkg, supports ACLs
+and xattr already.
+
+More informations can be read at this link:
+https://github.com/libarchive/libarchive/pull/691
+
+Upstream-Status: Backport [ef743b75745939df210a9e6a70a44d69181ef05a]
+
+[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=15097
+
+Signed-off-by: Maciej Liszewski
+Signed-off-by: Piotr Łobacz
+---
+ configure.ac | 12 ++++++++++++
+ libopkg/opkg_archive.c | 8 ++++++++
+ 2 files changed, 20 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 389a818..46949cd 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -158,6 +158,18 @@ return OPENSSL_VERSION_NUMBER; ],
+ AC_SUBST(OPENSSL_LIBS)
+ fi
+
++# check for ACL support
++AC_ARG_WITH([acl], [AS_HELP_STRING([--with-acl], [Enable ACL support])])
++if test "x$with_acl" = "xyes"; then
++ AC_DEFINE([ENABLE_ACL], [1], [Enable ACL support])
++fi
++
++# check for xattr support
++AC_ARG_WITH([xattr], [AS_HELP_STRING([--with-xattr], [Enable xattr support])])
++if test "x$with_xattr" = "xyes"; then
++ AC_DEFINE([ENABLE_XATTR], [1], [Enable xattr support])
++fi
++
+ # check for libsolv solver
+ AC_ARG_WITH(libsolv, AC_HELP_STRING([--with-libsolv], [Use libsolv solver support.
+ ]), [], [with_libsolv="no"])
+diff --git a/libopkg/opkg_archive.c b/libopkg/opkg_archive.c
+index 03a4afb..8dd902d 100644
+--- a/libopkg/opkg_archive.c
++++ b/libopkg/opkg_archive.c
+@@ -912,6 +912,14 @@ struct opkg_ar *ar_open_pkg_data_archive(const char *filename)
+ ar->extract_flags = ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM |
+ ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_UNLINK | ARCHIVE_EXTRACT_NO_OVERWRITE;
+
++#ifdef ENABLE_ACL
++ ar->extract_flags |= ARCHIVE_EXTRACT_ACL;
++#endif
++
++#ifdef ENABLE_XATTR
++ ar->extract_flags |= ARCHIVE_EXTRACT_FFLAGS | ARCHIVE_EXTRACT_XATTR;
++#endif
++
+ if (opkg_config->ignore_uid)
+ ar->extract_flags &= ~ARCHIVE_EXTRACT_OWNER;
+
+--
+2.34.1
+
diff --git a/meta/recipes-devtools/opkg/opkg_0.6.2.bb b/meta/recipes-devtools/opkg/opkg_0.6.2.bb
index 46be137354..d7dc6ab715 100644
--- a/meta/recipes-devtools/opkg/opkg_0.6.2.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.6.2.bb
@@ -15,6 +15,7 @@ PE = "1"
SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz \
file://opkg.conf \
file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \
+ file://0002-Add-options-to-enable-support-for-acl-and-xattr.patch \
file://run-ptest \
"
@@ -30,8 +31,10 @@ inherit autotools pkgconfig ptest
target_localstatedir := "${localstatedir}"
OPKGLIBDIR ??= "${target_localstatedir}/lib"
-PACKAGECONFIG ??= "libsolv"
+PACKAGECONFIG ??= "libsolv ${@bb.utils.filter('DISTRO_FEATURES', 'acl xattr', d)}"
+PACKAGECONFIG[acl] = "--with-acl,--without-acl"
+PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr"
PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\
gnupg gpgme libgpg-error,\
${@ "gnupg" if ("native" in d.getVar("PN")) else "gnupg-gpg"}\
From patchwork Sun Oct 15 14:57:49 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: =?utf-8?q?Piotr_=C5=81obacz?=
X-Patchwork-Id: 32252
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 B7422CDB485
for ; Sun, 15 Oct 2023 14:58:47 +0000 (UTC)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com
(EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.45])
by mx.groups.io with SMTP id smtpd.web11.94695.1697381916061748557
for ;
Sun, 15 Oct 2023 07:58:43 -0700
Authentication-Results: mx.groups.io;
dkim=fail reason="dkim: body hash did not verify" header.i=@welotec.com
header.s=selector1 header.b=ZEHsb4gj;
spf=pass (domain: welotec.com, ip: 40.107.8.45,
mailfrom: p.lobacz@welotec.com)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=aPO3sw1I44QPClpqHuNpILidB4Go5dd4j85/YJYkOVPhjrPfgfWtW+pJ8YefuM9AFksdXdgQgXBTGA1Bqhmae/EU16HulBF4etTykJNfTr/a4xzFgXrs3rxNhuE/SYiob9CCTjrrySD8QilG9PpRtMhu4ovOSdHCjrvRbDj0mAF49D2aGnQicEsPYR3uiDnT3j2bVXV5OEbcbaT8azGoVNuu6PX4kiuzdiR2TDjU5dsr+qvkTU043QXWIAx9s7d3SNjnFRIy2Y1TTcTi8geUAjXEVMLEpIEAzLyecgJ7P9Zm6xbZOhwBR00aiT/UuGcS3jFTx5HIvvAd9E+s1IzX3A==
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=N4yzEzAGIfJSEA08tZtSwRV6ZJ4LHjSKlNoa9U3S6bE=;
b=UBgidzfEylyaXd2eg1Xi3ovNQx64GEfjaCrfi1tarl5BUmfgRbRZO8sWJ3AeRFPp99je9wvtFZitE+Qk7XLqfTZ+HZXRIF7kH+UVuNf3yoB/x6AtUFcxA6Gvax/iSxE7rImConb2rrBuw4HpIJ88mXY3EYlu4AfRSS4WlwGxg3iOjoPndBPA64NhxJlBrTWYg3sPECtCHDKS3BsWXUQgSeZlmVRqx9+lNXagArFiQndJr9Lb2h9CQ/UImE2efSpTtAJENdhtyAckO/XoMxQ3aUNyMeFyyTTV1aRiuaK+KoBkt/2601vRSLRIZgzWthKNZgbSLOxVtKYdhNbZ1TBw3A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=welotec.com; dmarc=pass action=none header.from=welotec.com;
dkim=pass header.d=welotec.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=welotec.com;
s=selector1;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=N4yzEzAGIfJSEA08tZtSwRV6ZJ4LHjSKlNoa9U3S6bE=;
b=ZEHsb4gjLfFoOtfRigMXjSsDeEU98N9DAvCdvfQTrwFUKsh7i5brU4EfIJPXRDgvegyrailq1NP+G/6rgM7OyuHl0kVUL93a08sE3bP7oKoZmiBYIEOTw87ufSDNJP+Agg6b8Tv7A6U3SNswPFOTSkM4T3+ItrkYwkuBO5k82RIDzttZ4cU4bGd2MWQzs59ahiI4FBsnC8CV7BhvIYqJNhCSFfTiHRDzE2qEQTKTSXQmXXisS7jnBYUrYPVu6ESOhiexzAz6AXR27AqCI3N9Eia9Zfd4wE8RI0EMuGWlNrnUBAFFEiMuaI705X19eFi1651qUay7ianFWGTYHSSyBA==
Authentication-Results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=welotec.com;
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com (2603:10a6:803:da::22)
by PA4PR04MB7613.eurprd04.prod.outlook.com (2603:10a6:102:eb::13) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47; Sun, 15 Oct
2023 14:58:37 +0000
Received: from VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3]) by VI1PR04MB5373.eurprd04.prod.outlook.com
([fe80::3090:4af6:ae14:b9c3%6]) with mapi id 15.20.6886.034; Sun, 15 Oct 2023
14:58:37 +0000
From: =?utf-8?q?Piotr_=C5=81obacz?=
To: openembedded-core@lists.openembedded.org
CC: =?utf-8?q?Piotr_=C5=81obacz?=
Subject: [OE-Core][PATCH v14 11/11] opkg: set locale from system environment
variables
Date: Sun, 15 Oct 2023 16:57:49 +0200
Message-ID: <20231015145749.69995-11-p.lobacz@welotec.com>
X-Mailer: git-send-email 2.42.0
In-Reply-To: <20231015145749.69995-1-p.lobacz@welotec.com>
References: <20231015145749.69995-1-p.lobacz@welotec.com>
X-ClientProxiedBy: FR2P281CA0175.DEUP281.PROD.OUTLOOK.COM
(2603:10a6:d10:9f::12) To VI1PR04MB5373.eurprd04.prod.outlook.com
(2603:10a6:803:da::22)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: VI1PR04MB5373:EE_|PA4PR04MB7613:EE_
X-MS-Office365-Filtering-Correlation-Id: f417b367-e84b-4516-c300-08dbcd8f35f9
X-MS-Exchange-AtpMessageProperties: SA
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
F6ZvaB97uakcbV1le/HaLCuOivL6OW1FMpZy++jvtmAejOwDePCMfNi1HO8qe1l+/SbaZVVxiedrDWcnLkO8T594BI9Iqc6k94qjdrTVo4zAD6JmVKyQxnGJpkQs/lnm5D181VtgTY0qOima2xJ0p4cY6Yer613F6IX3Plwz0Dek8zKSImoKEuD+ZCzMOZ4lWcNPaBlxZ0moklL7bDmJz8NPQlx7/Iv6tivs+6U52TeukGvxyJapl9Lowt1daYV4eaDjSvz3dsWxvPeKGGCOh32xNqwDI4IovP42hxCEVIS2ZlUrIjF/wrGcAlHmmKpgc9gxblCcO5wplgjj6045znQkQalDq+bsl61RYGRzoK0RF1rYJK9B/fGfNcD4Nv4eM7mii3r17it31LVXCY2W+qXvFMjy2FA9Qp9hCsgs3wtWImxwmoKID3+3Q1ebiLLqqcUDRfbXWVc/imVrb/h+DzEyROa9gjzdida7e0vnuqFTdl8ODhsYRPmK3I0OZlh8QpVuhpIGg8am7UzRo35GYHkzqeX8RZ5R5AsL/wf1qXm3SIuc0r83vFb1sbz7rkQ8fxVrdMfsHoClC6Z3oSMdTdhTdczJupoKTBmvOao5Ok0=
X-Forefront-Antispam-Report:
CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB5373.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(136003)(376002)(396003)(1800799009)(186009)(64100799003)(451199024)(478600001)(41300700001)(6916009)(316002)(66946007)(66556008)(66476007)(6486002)(966005)(4326008)(8676002)(8936002)(38350700005)(5660300002)(6506007)(52116002)(38100700002)(86362001)(6512007)(2616005)(107886003)(26005)(36756003)(83380400001)(6666004)(1076003)(2906002)(66574015);DIR:OUT;SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0:
FJLtN6ei2QIdbFwrGoSGR+Aon/hFdP0KfWZOo0sXTrNEvyX8J7qHjtue9NGKXUJ+79iCzA646oeGz68M/nYUkiKkesjDBRqATuX0Fckyye1bWeKfSj/6juW8Shm6hFGhr/rn1nnJpoqyj24VcNGmZTF4WN/0AWjNPEZ8ZjiD80eDXzPm/a5ZmX2qpr75VbpIrQLjm6/peUrCO3s3ObHlosSQ8Y34Hd42sKb6JJxKGyhdkJHVJXEEBYBhONI4WQkrlbCy4t9AgeClZnq9vGeOKAwR+lRFgQjhCNnnptoI4FUNvNk6w0LE8EyxgL+OhBv5OvOyqkRfe5U8sSt7qVfp5Yja2h1HazdBwk80rTW/QWI5g9ud9rq17/ye6TaCOFF6zeUMygsgSl3hoyqvbAuna4/YZPev/Nm4FdgmNAXsdQ3lkPyyxKUhrpMiT3xVk3Mf0nNRQ8vGdoRWR/AQWYBNSpbcioL2c32aCN37EQus2RFl1QGtNks6QTiexV/F2cK2ywEIcwQ9TpbrgSI+Q7bjt9pr+UWhS9lB6STEOtWXy15sJUxGtF/RJFQiT9Ny0FX+i1W03qTKdgOpt8U0gCYqWXDig7alO0gHC3O9oNUbnIky3ovHhp+fxbA2SYFQG1sOiyPh69CWtaCgwaCIuoHsXxXGbwhdq0KCrJkpuEX9IMf1q6CZC/dgccb0kTxY6vXsot7/lQ2kxg6kSTD4LmIE0Mpacqpd6yzYlZvWQ4FUoDZziXte0OPY5jnxatYyW38riAdB2RP/zHVNImMbDQ9D91NjlDUq3mDtCuny4G0CTlyLH/4z5IhJWsP/8ExaoyUdz1NE206N6ctVUdPS72zD05o+9qIINoh+7fjZaMklrx7bP7JsCjA23fxL/edbR6a5lOd4pB4prSvJRKGsQFRG0MISTRDO01sUlN8rjkNOiwM095aCSF/pKpZwHjjt+VBaKsfDXXPUB0CXfCzExJiQA1OrKdHi7pr0Pk7X83Kk5DAF+5380QGCkwPOePkPBnv7L8VdoFL7dzkTHnM3jN79ywCX2BFE5GOouNPMHelVmYpPIlnkUKUTlaMlL6TPnUlg7Uiv2EOioJbAzVv5xKjMMlM2p+8HELeBugh/2nCl4AiYcF85Kx+mnAUiQcH3BpiuAMJP746utsXnEospKhk1tiTUm0ocZKFGBuja346HbwQJYOOsiC8tQpyDowjoiyc5VJcBloyWZmcj5IN97v5dHSzZdAY7GQ6g1rNJe2nPFJQuw19gKqdrsSbactbp5wYjUod77ajqXlAIz7YdCh0UvcTU3HYNYGvUPAUkcVVbUcA64u/+eIDKQdV+qNWSnQVbYVfPxNqLZeP5K+U0rODmY2ZtQdn2G5Xg5DlYXSYcwElb/2AqQMcMlfqNICtFAEUg61OG/2CzAaJ25E7FDNJ+RqZVO+umwPyNH90FhQFEwEUIQWzntEt7xhqeJ16DqPjTzRNGFcQc6Tki79r19CfHenmDYVRjF2JSesSdOWYCFpc97fAowiPKCu5oShdwNdwP8R+Yyj8gNe+aMj43eh9SDz3yb8j5g3lgD7caWRd3q5OrLDHBEuqNZRjzcbRB8IaG
X-OriginatorOrg: welotec.com
X-MS-Exchange-CrossTenant-Network-Message-Id:
f417b367-e84b-4516-c300-08dbcd8f35f9
X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5373.eurprd04.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2023 14:58:37.4077
(UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 25111a7f-1d5a-4c51-a4ca-7f8e44011b39
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName:
0ob6AUCCjrqqzB3EiDHH0krTy5Werg1oQQ+0nzgDjxXatq9N+6JBplDDJNG4j66vzwMwBt3yxNzl82ts9A3wQw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7613
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
; Sun, 15 Oct 2023 14:58:47 -0000
X-Groupsio-URL:
https://lists.openembedded.org/g/openembedded-core/message/189156
A C program inherits its locale environment variables when it starts up.
This happens automatically. However, these variables do not automatically
control the locale used by the library functions, because ISO C says that
all programs start by default in the standard ‘C’ locale.
Fixes warnings:
Warning when reading ar archive header: Pathname can't be converted from UTF-8 to current locale. (errno=84)
Signed-off-by: Piotr Łobacz
---
...le-from-system-environment-variables.patch | 48 +++++++++++++++++++
meta/recipes-devtools/opkg/opkg_0.6.2.bb | 1 +
2 files changed, 49 insertions(+)
create mode 100644 meta/recipes-devtools/opkg/opkg/0003-opkg-set-locale-from-system-environment-variables.patch
diff --git a/meta/recipes-devtools/opkg/opkg/0003-opkg-set-locale-from-system-environment-variables.patch b/meta/recipes-devtools/opkg/opkg/0003-opkg-set-locale-from-system-environment-variables.patch
new file mode 100644
index 0000000000..7bf191beab
--- /dev/null
+++ b/meta/recipes-devtools/opkg/opkg/0003-opkg-set-locale-from-system-environment-variables.patch
@@ -0,0 +1,48 @@
+From 712895b1914bf63ee4d669863bfd106814329076 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Piotr=20=C5=81obacz?=
+Date: Wed, 19 Jul 2023 21:26:09 +0200
+Subject: [PATCH] opkg: set locale from system environment variables
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+A C program inherits its locale environment variables when it starts up.
+This happens automatically. However, these variables do not automatically
+control the locale used by the library functions, because ISO C says that
+all programs start by default in the standard ‘C’ locale.
+
+Fixes warnings:
+Warning when reading ar archive header: Pathname can't be converted from UTF-8 to current locale. (errno=84)
+
+Upstream-Status: Backport [9e62a38a4a52974007e9ea174504c42069da1a02]
+
+[1] https://www.gnu.org/software/libc/manual/html_node/Setting-the-Locale.html
+
+Signed-off-by: Piotr Łobacz
+---
+ src/opkg.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/opkg.c b/src/opkg.c
+index 544c58a..0c729ff 100644
+--- a/src/opkg.c
++++ b/src/opkg.c
+@@ -27,6 +27,7 @@
+ #include
+ #include
+ #include
++#include
+
+ #include "opkg_conf.h"
+ #include "opkg_cmd.h"
+@@ -408,6 +409,7 @@ int main(int argc, char *argv[])
+ if (opkg_conf_init())
+ goto err0;
+
++ setlocale(LC_ALL, "");
+ opkg_config->verbosity = NOTICE;
+
+ opts = args_parse(argc, argv);
+--
+2.34.1
+
diff --git a/meta/recipes-devtools/opkg/opkg_0.6.2.bb b/meta/recipes-devtools/opkg/opkg_0.6.2.bb
index d7dc6ab715..3b5d51d74a 100644
--- a/meta/recipes-devtools/opkg/opkg_0.6.2.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.6.2.bb
@@ -16,6 +16,7 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz
file://opkg.conf \
file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \
file://0002-Add-options-to-enable-support-for-acl-and-xattr.patch \
+ file://0003-opkg-set-locale-from-system-environment-variables.patch \
file://run-ptest \
"