From patchwork Tue Jan 7 13:31:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Sakoman X-Patchwork-Id: 55122 X-Patchwork-Delegate: steve@sakoman.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69040E77198 for ; Tue, 7 Jan 2025 13:31:48 +0000 (UTC) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mx.groups.io with SMTP id smtpd.web11.20172.1736256704753077267 for ; Tue, 07 Jan 2025 05:31:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@sakoman-com.20230601.gappssmtp.com header.s=20230601 header.b=2rs7nmUe; spf=softfail (domain: sakoman.com, ip: 209.85.214.176, mailfrom: steve@sakoman.com) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2166f1e589cso8279985ad.3 for ; Tue, 07 Jan 2025 05:31:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakoman-com.20230601.gappssmtp.com; s=20230601; t=1736256704; x=1736861504; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=jQxGZo3g9OLMqyBy6ogPog+3W3k+T5SeUiZ6skMgvA8=; b=2rs7nmUenYL8YDFA0HIpi/+Afsj6XF9sOx5MiYCpuhuemOt4juRjp8VW4SuCsNtkQk eQUHMVD8jA/MBoC3jDl0JWtPhSHh+ZqwYeWvN0wUrPsFLq2EBSjuAwK6SWsNw7VYUJyL cY0tkVMYvf4Tw7/q1rGkpzB/9GF6eHoS7iLXjfOagcZt+4+Lmhqp0wprpFNzf4nTPaTY 6R0ztQwj7/cANZtizw5P630P/EJSySxAofBDbjm5DAmhQwtBytgVhXwnfoybjWInzsAT xDxazwskMQ13uy/d8Mp8CQYDGnOf6agWrdVilqhMm/6twVH7496T1pJae+XBLEdz1eX0 1XDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736256704; x=1736861504; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jQxGZo3g9OLMqyBy6ogPog+3W3k+T5SeUiZ6skMgvA8=; b=oMTp+hArchPb664BkRvFtmIzXsgbzMcaytJJwuszE6hknT+ZmwN97sDy9PnH2lnCSm lSlrf/kdjBNwkJgXJZECpL9bSe0so5uviXovAOLJYVdxo5Y1wLLjg76SRZAMmkqq8siK dpSuJtHKPu6BaIl/wIfZ1Ws2zFVgOGd/5TLaTfw9R35+tJbsB8Oqxi/6PkAh04fIX16j 5GVvk9wvvvEYX9fQhlzKsGCVkOGobbj7rmj0h9SZE2ODOwF0yDrkvKf6Cui8CDM3/MNR 7goWA5tCPc9AiKAQp/rpPujblnak7vo14+aOqnCoxzD8qynfj8dngQHv2/BVk5L0FXqd XoDw== X-Gm-Message-State: AOJu0YygXm5cPMJ9/Uky/nC6unjU+ANHhGfLs1ulzsogrXUX8IGPY1gV 5mhTuGi2HXCZEnh27wmnN6sPQXUyH0Lm9CoUNsY5ffM93it0KKvymmRBQ9WHzSEGqjTMrpRTODV k X-Gm-Gg: ASbGncuLcvzdW+eNFcQ4leMVgB6DbUK2Nt7kbo6RK7RtiGp/26nlaLy8MOKiOC4zd/i shh1ZxL8v3ugEV65yiDaBePfDSev96AAnshn1Tw2ua842FDmk49BgpFEjLJrjPW2l/K0QDhkmCJ WChLhyFa5nqM1pIobrx2ofOpxuazt6/r8pkFQs5rloPcdn55P1oBOr3olaPeM/dxqDYoOtNLvjn e6ko3shEsK6ZjxjRYPpAwz4PdtgPW4hSVQW/wJp/MqFpg== X-Google-Smtp-Source: AGHT+IGjQlKosTyQANZZ60dC820I9dQpP9udSeNWyAhP3S1hUhfKfZ6csPg5dcBfO6EUAzVZS64fQQ== X-Received: by 2002:a05:6a00:8087:b0:725:ef4d:c1bd with SMTP id d2e1a72fcca58-72abde84667mr91855041b3a.19.1736256704046; Tue, 07 Jan 2025 05:31:44 -0800 (PST) Received: from hexa.. ([98.142.47.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8dbae4sm33340197b3a.96.2025.01.07.05.31.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 05:31:43 -0800 (PST) From: Steve Sakoman To: openembedded-core@lists.openembedded.org Subject: [OE-core][kirkstone 13/13] ovmf-native: remove .pyc files from install Date: Tue, 7 Jan 2025 05:31:17 -0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 07 Jan 2025 13:31:48 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209466 From: Mikko Rapeli They break builds which share sstate files on different machines and paths: ERROR: ovmf-edk2-stable202408-r0 do_prepare_recipe_sysroot: Error executing a python function in exec_func_python() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_func_python() autogenerated', lineno: 2, function: 0001: *** 0002:extend_recipe_sysroot(d) 0003: File: '/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/classes-global/staging.bbclass', lineno: 624, function: extend_recipe_sysroot 0620: 0621: # Handle deferred binfiles 0622: for l in binfiles: 0623: (targetdir, dest) = binfiles[l] *** 0624: staging_copyfile(l, targetdir, dest, postinsts, seendirs) 0625: 0626: bb.note("Installed into sysroot: %s" % str(msg_adding)) 0627: bb.note("Skipping as already exists in sysroot: %s" % str(msg_exists)) 0628: File: '/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/meta/classes-global/staging.bbclass', lineno: 165, function: staging_copyfile 0161: os.symlink(linkto, dest) 0162: #bb.warn(c) 0163: else: 0164: try: *** 0165: os.link(c, dest) 0166: except OSError as err: 0167: if err.errno == errno.EXDEV: 0168: bb.utils.copyfile(c, dest) 0169: else: Exception: FileExistsError: [Errno 17] File exists: '/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-667282/tmp/sysroots-components/x86_64/ovmf-native/usr/bin/edk2_basetools/BaseTools/Source/Python/AutoGen/__pycache__/WorkspaceAutoGen.cpython-312.pyc' -> '/srv/pokybuild/yocto-worker/oe-selftest-fedora/build/build-st-667282/tmp/work/core2-64-poky-linux/ovmf/edk2-stable202408/recipe-sysroot-native/usr/bin/edk2_basetools/BaseTools/Source/Python/AutoGen/__pycache__/WorkspaceAutoGen.cpython-312.pyc' Signed-off-by: Mikko Rapeli Signed-off-by: Richard Purdie (cherry picked from commit facd9e17fa53e2fb3a828b3f179cfb659be75d37) Signed-off-by: Steve Sakoman --- meta/recipes-core/ovmf/ovmf_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-core/ovmf/ovmf_git.bb b/meta/recipes-core/ovmf/ovmf_git.bb index a067dd017b..d52e3f4971 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb @@ -240,6 +240,7 @@ do_compile:class-target() { do_install:class-native() { install -d ${D}/${bindir}/edk2_basetools + find ${S}/BaseTools -name \*.pyc -exec rm -rf \{\} \; cp -r ${S}/BaseTools ${D}/${bindir}/${EDK_TOOLS_DIR} }