From patchwork Sat Jan 4 13:41:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Sakoman X-Patchwork-Id: 54991 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 F121CE77197 for ; Sat, 4 Jan 2025 13:42:46 +0000 (UTC) Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by mx.groups.io with SMTP id smtpd.web11.18162.1735998157098235519 for ; Sat, 04 Jan 2025 05:42:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@sakoman-com.20230601.gappssmtp.com header.s=20230601 header.b=WB5YZJNO; spf=softfail (domain: sakoman.com, ip: 209.85.214.169, mailfrom: steve@sakoman.com) Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-2166651f752so214008975ad.3 for ; Sat, 04 Jan 2025 05:42:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sakoman-com.20230601.gappssmtp.com; s=20230601; t=1735998156; x=1736602956; 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=76uiH2OKhGcY85hZFqyv6Theky7vTmmWjEqbCpBfcSw=; b=WB5YZJNOzETU4GFTSt3vePycWSlfVYPf5shk2GVoelQXxWPAHL41liMYf7/iZOMO7Z TgYlfNMyxy9J+taYnu09/OiIV02jOlFcF6wmVazMZyxDO2XTMHFIf1visBmBUbMl2Slm IU6VwlAYpixnlLiQQa+8yx0DpxvY9gD2Vyooaw0INvug8pArJObgoUmCmjMz1gcaX/PR vqmjImujNlScTSCjLgjKnT4luQ+eQdz+2jO8J733xgx2N5EPMHyojT9XFdV5Mx/96CAj sdiYWN7Cm2ubB/cpRB6VBkvzfn5Gox4neIOt0hIonsEOG8thkEGIl3CP7SZgCcgk9HuJ NTBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735998156; x=1736602956; 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=76uiH2OKhGcY85hZFqyv6Theky7vTmmWjEqbCpBfcSw=; b=dq4dcZ2DZtjGACFqcMuS2ozUEU18BuEchIJ/biOhf7TCYVRZOnxZbQIMzn9DQTpUzV eWFoPgfVmytcC49vg0ALmhgNS63tTalitfEb6JM2s367t9dUo5J8xmyxZMwC7zIoZHZO U6J+mEiOALep59s1+uf6xhiECVZeTG6Kq+m/KPB5uqxCCvlxDy1gfyVdlf8ChLqUVTSN dT3LEi8FqEr95Ul/C8OjMDE3NVBR32IbL+gbafoXzGDQZqSJuBGFU0sZf8wsivmFS69f uYOmw/DWxtR8Cji0eUE3BeQcPq9oZcsKrE/iLScsHhJDjgS9+xhP2Urfot4TvdQP7nDG O8SA== X-Gm-Message-State: AOJu0YwEQJlyi3xms6tceDMCa8OAMYSXuASElr/f5trbrVpR983kUTTB JOIGBdnKbe1Ly8s+pxwrbbTR7gzijGI6tJr37SF66F/9NJLnPtLcAs0OKaFEEJNP0/pQbeT+huH E X-Gm-Gg: ASbGncvGsnHVr6sJhzhoUqg3Ffeq5NLXttoj2ZKo1ZBVe4ETBdedx+FpZTnEBTVicIN W7FM/39d4Df0/XQPow699h35YrQDQIY/20lTDMy5GqouGzlRAuWbrZ4hTUDfLOzz+mn63FY3b2U M99Bpiq7JdPY7VgZk3H5Vk4rZ5Jzd4m3if34e96ChPCKFp+NlNfz0JeF1bNJcysNWej3VpPUdIj ltTNb6aHrsEMf+nq1hQQ1/vtdmc8370hQJcKtna4fv/YA== X-Google-Smtp-Source: AGHT+IFHQmvKjOA4YWVkatYzsyqtEseSo8QmiT/RjaWTr7miqqDkM0YwxUjC06qfJGNKdysndKWfAg== X-Received: by 2002:a05:6a00:3cc1:b0:726:41e:b32e with SMTP id d2e1a72fcca58-72abdd3ced1mr66915385b3a.4.1735998156442; Sat, 04 Jan 2025 05:42:36 -0800 (PST) Received: from hexa.. ([98.142.47.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8faf93sm27966257b3a.153.2025.01.04.05.42.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 05:42:36 -0800 (PST) From: Steve Sakoman To: openembedded-core@lists.openembedded.org Subject: [OE-core][scarthgap 24/25] ovmf-native: remove .pyc files from install Date: Sat, 4 Jan 2025 05:41:48 -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 ; Sat, 04 Jan 2025 13:42:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/209393 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 ada6ee72db..319f03a8d2 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb @@ -225,6 +225,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} }