From patchwork Mon Oct 14 10:28:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 50583 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 B952FCFC53E for ; Mon, 14 Oct 2024 10:28:55 +0000 (UTC) Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) by mx.groups.io with SMTP id smtpd.web10.51890.1728901729272573307 for ; Mon, 14 Oct 2024 03:28:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=rQ9JuRKY; spf=pass (domain: linaro.org, ip: 209.85.167.44, mailfrom: mikko.rapeli@linaro.org) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-539f53973fdso687309e87.1 for ; Mon, 14 Oct 2024 03:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728901727; x=1729506527; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WgT3VmSrRdx3cgTgSWIQN1VzXze7JFhMzS/KLkxDcCM=; b=rQ9JuRKYK3oVeWJywN0kqNDh+zQro7fooWfg475Q08E1Dkv9ePMnfJb3sHXrtcCeEc lhaSrhG+nr07Ah8IgaOFBCm1kWNZMXCoiKsJBrSsDKtratAELkhyzp9qAWkk5cM0hhAJ LmYMafrjxCZS1Z8DfX4ZulsUbbFArDS9pVeQsENjD5U5MRdPfzrfRIuRYjeorx9MtJTx 5T+GKnc3uKWW2t7D+YFWENDRw/hOOnbykZuue8drdM9gRbPoey8JV6GIEV0kajpPBjNV N085qXKCYm4PMn7uQdVoK5cZ6sq/cNpSsoH2f4d0xWMIQdBKVHRqTOGadC0/1Y1LqJrR 0/+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728901727; x=1729506527; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WgT3VmSrRdx3cgTgSWIQN1VzXze7JFhMzS/KLkxDcCM=; b=GPyeLIHpo385rydxjfjoD3LGfCvy0jCjxVPUMCWa2oe9VHQ+qw+yD/KibSoh1rXr8U nxYp+hF7/SrzrDN16T7/NvExep+SdU5VV0sw9NdmVP2j+nB1IzdQ7/9lgsYAYDMCR1ll l20dPpqrGupaeL7HQ+/AzPwtRNT6dfX4EyMkMLFchsw2pPrGbavwCZcW8NRVvaPcyihS t4tZhhmwLqCnR6bpqYWLhE0XaGyuQX01oQqoDV/iRQ77FkPQZp35Ff76FzdzasU7eNYo FIiBDnZD9p0ol0feMyPFxA6oS83VmutcCM8vaISA9UK/8jm1ZKaVuTle53Sulp2nxTIf QLBg== X-Gm-Message-State: AOJu0Yx+GKltoJb+0gFmuZf67CkbxXLlixPdeq7Cp5qtTfYtJHpuwOD9 qtBhfYLpGxn0RMwH7oZ5K44eKrsHWj0jOWhd3loNvb3bc6LUZQUdkxNKh52JyJeOqvDtUnHPHcI edpY= X-Google-Smtp-Source: AGHT+IESAy5QY1n71ZaqgaVKz0cML/mYYwVC9IDEjpOlCj3QLMk6yziJTEvgqxhx/xuTF8KfnI8tMQ== X-Received: by 2002:a05:6512:2811:b0:539:f554:78c4 with SMTP id 2adb3069b0e04-539f5547a6dmr1001058e87.1.1728901727089; Mon, 14 Oct 2024 03:28:47 -0700 (PDT) Received: from localhost.localdomain (78-27-76-97.bb.dnainternet.fi. [78.27.76.97]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-539eb76477bsm694978e87.228.2024.10.14.03.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Oct 2024 03:28:46 -0700 (PDT) From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Cc: Mikko Rapeli Subject: [PATCH] ovmf-native: remove .pyc files from install Date: Mon, 14 Oct 2024 13:28:16 +0300 Message-ID: <20241014102817.40298-1-mikko.rapeli@linaro.org> X-Mailer: git-send-email 2.45.2 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 ; Mon, 14 Oct 2024 10:28:55 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/205740 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 --- 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 202182397d..e761736453 100644 --- a/meta/recipes-core/ovmf/ovmf_git.bb +++ b/meta/recipes-core/ovmf/ovmf_git.bb @@ -223,6 +223,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} }