From patchwork Tue Jul 19 04:39:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 1998 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 19 Jul 2022 14:40:22 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-qk1-f184.google.com (mail-qk1-f184.google.com [209.85.222.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 26JCeLq7015071 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 19 Jul 2022 14:40:22 +0200 Received: by mail-qk1-f184.google.com with SMTP id bl27-20020a05620a1a9b00b0069994eeb30csf11612723qkb.11 for ; Tue, 19 Jul 2022 05:40:22 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1658234416; cv=pass; d=google.com; s=arc-20160816; b=zIq5Jhe1ktNEbSOWIMyeqwjWMj2iN2OnL+ID2b9kSwLK3ikvoi1YMymxd+ZuTrpmrT w6wqEBp73tBtLKxtWOf5SWHk7Zd48FZv+2wqRJAHTONGqO83FWQfy4U0aryQE9ddFUZk bEaq3lPuHfGkI4VI+VlVwvJbrTWtU31gRYLEXMl0fPX+9b7T5B5xulEpApUscCL7DDV3 C8wz12MMapZqXuJVIhT1ZTfp8qiXuxYo1eJghszefEQEhh5IQdIWIydWn6RzzNyi2Ylf bDjwzbk8dHttLRSYgQwEB/qd97MQhjEuh4W///JDSmyv1JkCzjqUS8gmZ/g1EF/Vmre7 QhNg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=89ISeQtyZ30Ndm5QJRFnpwxajGvMUl1+ZuxlIBB8B2s=; b=MNO/Dm3NJ/WmAmWdA7UxQ0OVuzJwNAxYF2IuY5q8BChRaeiqHK5cBxZHsPsn5HMcnS rUA4qNE1t2VsV67kJLHcIIKCqhPOq6w48w0eYJFw3i33PBo2qpKAJmyOpwx+bTll7Eg6 oVqaojM1wXJSLF2m1+85Zaol0V9aCtQ9g5CBYmmu7LfwzqqUNxe/ofKsGdC6Dz3/ZSYd bw7j8+EPRoWQPv6hOk7MzxvACRUGDNnu/so3ogf9X909avi58VnL2rZg3LfDRsduE2Gf CEJRU5ejgdG7y7t56/EFmsWBfq1W4HYzZOC1OIybJUYhkzMTgS0P/DQwpl4XZvXhZSpJ 4/9Q== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=dOvE1lxI; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.21.77 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=89ISeQtyZ30Ndm5QJRFnpwxajGvMUl1+ZuxlIBB8B2s=; b=VPR4SjltSTd22LRegEG/gg210YZqx7QGn/po6KO1Jf9ksoqgBi8uFXTRHCi0qZIlIT LUA9zyDqECnNIKbRYhiiFQbDSWHPtNldknTPUG5SyhUoNWumyA6e1n9PnMWIIQnDiU+4 vZ8LDfT6SQATiqgwEWBkRwWACebul530IozEeWF+b85Q/s6iIANC1S2gLMoP1DI0LwUG oPVRvp99FR55pyBM/HFPp3aTYJoMtfrR0XSLWYpuTGfbmLFHnNiGyuQFutNuMP5wZR0z a3BEWMNnzberXmk8xVpsJEFig26o9Py+nmMfYudwMXsbEgFd+L4PkrtQ+yPe+fvLXvXG HBVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=89ISeQtyZ30Ndm5QJRFnpwxajGvMUl1+ZuxlIBB8B2s=; b=iFGIwY02kxKlaWxQ4XsFJiFOmrXfpNxdOwp7gJF92s/wVknXVtj5i7ThuUMUi0wXAa IpQ2vDD+LaICSGXpCys654U3A3HNb1zO42K656KvKsJ8Fb/dC0vKKsnC9qz9wKqRn/yF GmYLygTw4O1iJTYpC1H0oHabhle9jZouk5IbAolEJxc0Nbvrbdj394X8HN/Ey0B4EEP5 SEaL1tofVVsLiSsSywQTTN8S7uy/ycHuKOAd77pE+QOr3H/easssQnvLlzvJTB8hDEHA rZC4bkV+rXw0Lqhj76IAVZg5qqOuN0TFOZg0ymp6d/gC0iBdI3MYVohh+HYgBSdxE00l l1NA== Sender: isar-users@googlegroups.com X-Gm-Message-State: AJIora9r0cNwnnMI3tRBZj/8Zv9IgF8Fwilm68goyGblQyFrfuXYjf4/ iClD9vSEQId86t0lc+Hu2l8= X-Google-Smtp-Source: AGRyM1sOi8rPft9c+r5Coj2UB5MUHPiKvt5gdJG3TuFftD/HEvOxYAy7U2w5hUbCecR828eMiZzH+Q== X-Received: by 2002:a05:620a:2a10:b0:6b5:e07b:427f with SMTP id o16-20020a05620a2a1000b006b5e07b427fmr8866753qkp.398.1658234415858; Tue, 19 Jul 2022 05:40:15 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ae9:e115:0:b0:6b5:db60:854f with SMTP id g21-20020ae9e115000000b006b5db60854fls5185qkm.6.-pod-prod-gmail; Tue, 19 Jul 2022 05:40:15 -0700 (PDT) X-Received: by 2002:a05:620a:319a:b0:6b5:eba5:a1c8 with SMTP id bi26-20020a05620a319a00b006b5eba5a1c8mr5837252qkb.292.1658234415448; Tue, 19 Jul 2022 05:40:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658234415; cv=pass; d=google.com; s=arc-20160816; b=mZyo9Py0+3VhoU1qsXmgnKupDSSsTZwftT9mfEGI1l2L3HD6pERa1e/Nz2Ue12VuYD kifYaTN4RP2vxWzczr6UOIbOmzQiTdb8MN3oqoZUXrw3et+ZJuETi88t1UFdP81lpf3S ObD9EmAxHU6XAb5enZ1ABrV0BFDdcthQMNDyVyrdvzrrwo/of4F39cSockM7mu2cnzo/ HcCRT65jQavNCmcRIPUp6kbD38vVZYVBGlsTMmsZv/vZUxPepdPXSSsRs6AfUumIyVjt TZ9RcA1txI+c5wDp+UhtV37LQunvYeOF4QOeTQCGj0vFuJc+Soyd8z0gqkFZVfO2+IEq Zukg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=6evkO413tC1voO5dFPzlH0C31/66cMck9cUJDClqrGM=; b=S6IGl2o6zvQSsm39BhK2cpT9cj+UXnBnKau30ea8tTXGrdF5mbPa8hJWkUfkIaY7qm eaMTpBZJGjmAMtI0L3gopExhJUOi/OjoKGo7MBG0LHZK4V1/ozfelqKxtGMhnaKOqrRD Tix5IHyBA3WQb5urPe/+nOwQM4Qg5mOWPQNlYxPuaj4Je6BNxo83SvYBxxnTdvmnBCy3 cnkf2J5Z/v/q+kzk/Ii7g9b7KwZV9WQmF9dalct/8sf81NeatLvTzOwMr2KFqaSMBuoV jL3TRUPdwdBd07NwoGbTF+L9fFn9PPwTE9atqWRBSjeqJOdjG1Jyz54rQDUVKO4Y1Qa0 HZ6g== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=dOvE1lxI; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.21.77 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2077.outbound.protection.outlook.com. [40.107.21.77]) by gmr-mx.google.com with ESMTPS id br14-20020a05622a1e0e00b0031ec10c8459si286508qtb.2.2022.07.19.05.40.14 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jul 2022 05:40:15 -0700 (PDT) Received-SPF: pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.21.77 as permitted sender) client-ip=40.107.21.77; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZqBdqLHiZio880gOvbxAfwkkTst3k5wU68SMWe7ozeyIcO9TSpAaP+PpDooc80Vqc254y3S+WcX0wp+Wf6U8FEtAoCdZACp3QLcdAvf2IJWpW76t6EIJ3DlkDX+jeSHFkG9yaMl08fH06ND+HKXu9ViIDlriMimD5GI4DQtXOUh1KQPAVDYhx+kBuZ/RQuTiW14Q7JI0oG7qTssEmXIYs8ZnMyX4LoqvZC9tK5nLc4B973/FGJ3oVYoDMx9rUHL5vtXsmMRPzSZHT87zGIcgqssqk33amF9okkN1FqtoyNBW2f19lXFek0eRTm1GmH+2N/8k7i2n5Iwh/CrgBjvigQ== 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=6evkO413tC1voO5dFPzlH0C31/66cMck9cUJDClqrGM=; b=bMUWkUzR/dJOJGjDYuG4v1QEhQsaCaNbRK9y6O4PIpGeMg97jXGc2zA7RgsTCA8TrjuGNbwBzqTX/idrNm/O9blUS5hXixZqcuRyh7xHpB1lUVgSE9Ur50916hfG7PZ/KxeEQjoqSQTSVU1n3N55cEFdN1w6s9E946m3nqR8MmmSKCIviFAQynW24EYcD2D16ARpXrTkEM+m2LvzkDiNJNbp+snl2lsMCQZgUmLmrhFJcSechbjbqTFlDMqzxupRn1MGWUGMPrCcAVgkBDSwCFIrwleO16CohYsCZuX/0K/wXBVIrsNYTsht0M49NZ53KvPu/68725U5IghHl7o3pg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 194.138.21.70) smtp.rcpttodomain=googlegroups.com smtp.mailfrom=siemens.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=siemens.com; dkim=none (message not signed); arc=none Received: from DB6PR0402CA0005.eurprd04.prod.outlook.com (2603:10a6:4:91::15) by DB9PR10MB4956.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:2c6::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Tue, 19 Jul 2022 12:40:09 +0000 Received: from DB5EUR01FT051.eop-EUR01.prod.protection.outlook.com (2603:10a6:4:91:cafe::f7) by DB6PR0402CA0005.outlook.office365.com (2603:10a6:4:91::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.23 via Frontend Transport; Tue, 19 Jul 2022 12:40:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 194.138.21.70) smtp.mailfrom=siemens.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=siemens.com; Received-SPF: Pass (protection.outlook.com: domain of siemens.com designates 194.138.21.70 as permitted sender) receiver=protection.outlook.com; client-ip=194.138.21.70; helo=hybrid.siemens.com; pr=C Received: from hybrid.siemens.com (194.138.21.70) by DB5EUR01FT051.mail.protection.outlook.com (10.152.5.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12 via Frontend Transport; Tue, 19 Jul 2022 12:40:09 +0000 Received: from DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) by DEMCHDC9SJA.ad011.siemens.net (194.138.21.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 14:40:08 +0200 Received: from random.ppmd.siemens.net (139.25.68.25) by DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.9; Tue, 19 Jul 2022 14:40:08 +0200 From: Adriaan Schmidt To: CC: Adriaan Schmidt Subject: [PATCH 2/3] buildchroot: delay expansion of variable BUILDCHROOT_DIR Date: Tue, 19 Jul 2022 14:39:53 +0200 Message-ID: <20220719123954.310076-3-adriaan.schmidt@siemens.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220719123954.310076-1-adriaan.schmidt@siemens.com> References: <20220719123954.310076-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 X-Originating-IP: [139.25.68.25] X-ClientProxiedBy: DEMCHDC89XA.ad011.siemens.net (139.25.226.103) To DEMCHDC8A0A.ad011.siemens.net (139.25.226.106) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c119080-089a-4ec5-ab5f-08da6983d0da X-MS-TrafficTypeDiagnostic: DB9PR10MB4956:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oWAxIcJfOncF9c9oLw1KRh3lrPe6gCx7FctHP7SOcuDqkJ44QWUV2yg1y/WhoOGRoLXGu8RhJpe55Y+jlLrpbxHYFIWtpcgqdIRsz/f5GDjLDoyK+rDSSnhQD8N9wq8V0oQTMlZQ5G6ibsSJAdoXuQneG5hwnXoYVLwyTAvOKeP6F3pewMO7lz9qm/F9rkZSIltKo+0yv0f4OaecovLnJzckqYtwd8/kb+aqTI8/Q9MWXgfHe3N22ns3eh82NiIOk7e+SvUNBiTdpMoamwJ0kYk30Az4adZmuYuWsbeflLjKHrlV9HjGMyWjEshJ8mdedt/6B9F5yuMbJ5fINiXkoW6wxqjZgcuy6/I+o1WLNylpDL8cW7f5zoolK61a+mMPCVYQB0DbgKoX2X9/CuhxfeSc7C3GND860nNa18QUmO4Q9nuTBNdmJVeKIUhQ2TZw2yJBgD/veRvt3InlERLEIp1KpcTnwrQ4XdLuF4ZhB2N13u8jOkYSyGS91R+I8P0q/ti+a6wVIgBSsL0o57cjcY+zJ/HDlSa72ELQi/BphU6C3wrE29Axfupfn3Y/TbTfm7MoK9dbn7ACH47+K9IX31tSHBrFTGKMqev99mpJXsIV42tswVkKvZJebyz6rLHqxTiAeIEHXXF2RarAxKoCaWLMJhLVF3tPiavjQHkBDlI0LkK1KNdJmn9O38lPvL9DYxtH5RCYhsNnK79t33rrldsPxHI1CQuuV2EtvMfLeRRxbI37u9z1l67LRNYl1buOsZWNNjlhtWprz2vZisekFMrASs9y8OH3OjOKwosu6WN5Gc7/+I2VUDRxqkQu8x/2 X-Forefront-Antispam-Report: CIP:194.138.21.70; CTRY:DE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:hybrid.siemens.com; PTR:hybrid.siemens.com; CAT:NONE; SFS:(13230016)(4636009)(136003)(376002)(39860400002)(396003)(346002)(36840700001)(40470700004)(46966006)(956004)(86362001)(5660300002)(2616005)(1076003)(2906002)(6666004)(82310400005)(8936002)(41300700001)(107886003)(26005)(4326008)(478600001)(356005)(44832011)(82740400003)(40480700001)(36860700001)(7596003)(186003)(40460700003)(336012)(7636003)(47076005)(16526019)(6916009)(316002)(82960400001)(36756003)(8676002)(70206006)(83380400001)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2022 12:40:09.1189 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3c119080-089a-4ec5-ab5f-08da6983d0da X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38ae3bcd-9579-4fd4-adda-b42e1495d55a; Ip=[194.138.21.70]; Helo=[hybrid.siemens.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR01FT051.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB4956 X-Original-Sender: adriaan.schmidt@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=dOvE1lxI; arc=pass (i=1 spf=pass spfdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of adriaan.schmidt@siemens.com designates 40.107.21.77 as permitted sender) smtp.mailfrom=adriaan.schmidt@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX The current implementation expands ${BUILDCHROOT_DIR_HOST|TARGET} during assignment to BUILDCHROOT_DIR, which leads to absolute paths in signatures. This can be observed in IMAGE_CMD_* and CONVERSION_CMD_*, and is bad for caching. Thus, we delay expansion, and due to the way the do_image_* tasks are created, the paths in our signatures will be relative to ${TMPDIR} (no expansion). Signed-off-by: Adriaan Schmidt --- meta/classes/buildchroot.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/buildchroot.bbclass b/meta/classes/buildchroot.bbclass index 11489661..f56c335b 100644 --- a/meta/classes/buildchroot.bbclass +++ b/meta/classes/buildchroot.bbclass @@ -12,10 +12,10 @@ python __anonymous() { if mode == "0" or d.getVar('HOST_ARCH') == distro_arch or \ (d.getVar('HOST_DISTRO') == "debian-stretch" and distro_arch == "i386"): dep = "buildchroot-target:do_build" - rootfs = d.getVar('BUILDCHROOT_TARGET_DIR', True) + rootfs = d.getVar('BUILDCHROOT_TARGET_DIR', False) else: dep = "buildchroot-host:do_build" - rootfs = d.getVar('BUILDCHROOT_HOST_DIR', True) + rootfs = d.getVar('BUILDCHROOT_HOST_DIR', False) d.setVar('BUILDCHROOT_DEP', dep) d.setVar('BUILDCHROOT_DIR', rootfs)