From patchwork Mon Nov 30 08:48:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 106469 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.28774.1796028524891935146 for ; Mon, 30 Nov 2026 00:48:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=JlQRQGB+; spf=pass (domain: gmail.com, ip: 74.125.82.181, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-38431138772so13679296eec.1 for ; Mon, 30 Nov 2026 00:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796028524; x=1796633324; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=BCNRCjunSwTO02OKHGiSrn8r8X0UyC0BcGpQupuuUFI=; b=JlQRQGB+GQZZUFKkY+HPqaY76Prv4eRT30zRz3SHVSzLlfLSTXVA0trCL7Xq4oG4GC YRLVLAYR5hkauFIgBeFeCZmEC1JCiZst6hJ1kvaNj/GBF3akUjid/Hl3ZnpGURa+UM6e /uw5JIz0B9ertJZ+Mvi6ly8PIYUcargCDOYoSAfCly5K4XGV3svdNf0hFqz4nnJTSRhh WKnl4T6phb1rHQXSsctVJYId9m69rGrUoO4xfB1PkERTn+M8bi9JgmmZbQpS0paqju/f Y4isARA0WeHyn+Rjsu1xTsHZYQVv7RVxrRJU0Xe5JmBAKX0pbG9Y75DWUnuZD3mNcdfI tAHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796028524; x=1796633324; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=BCNRCjunSwTO02OKHGiSrn8r8X0UyC0BcGpQupuuUFI=; b=vCgSC6jbLEB2bTzOnL+gUgvFKK+QHylbYZlxi/KmpfiHldEzOERxoanzcZ6jP6HTjj RzbBCNfxtFr/bGtUa/3hkk4+F1VKt0oCmt5u+TXgZxeqe+3pAOWCohjPOLeUkzQzh9Wj 7x0UeL6R9KRHqk51cykrIo94OWdVXoeT59A5/6RzwIPri9M2oRXonKjUhSIFxaWgplgr eUlYMV4ScdngFF5skp+rOXkn/gs47zhkideV3k2SmzWQjkJrsDsvWYWzEwTNGmJAFU78 jI/0Sdo3ACgDUMu6ZBfx37hxorVq06ESyGS0hefpPzUvUjWMIoTlWp7n2ihAo8OIPalk e/IA== X-Gm-Message-State: APuU4Z9xGLmZTR/WmQf0w/X9+f5KVB2xwsdL+KSI0QEy2rSgaLxoXVSV ePn4pMoqaMLMROuiXzryr/WBRTRGJW4sQ34n5KqEgBAIeCV2vLeiveqod5pAIjqD X-Gm-Gg: AZFdTZe9wrfXAiHuo3Auwzov78Nhft/l8LxOoLlVcm1X23c9rn1mAUWCUWSowKYZR+O IH6eJWBet70NDMWFWWl5eS0dRflNw/OIGSS9HOqwtXVlTVCBA824fuXhpPZA6ZLXeA+sudjFIIH GaGBs0rkjx66noj04bTEEfP5dKQzuI3TXafWCo05KwJr12aQA+svd0uzyTLfNnRuNxZXoeFsibO qtJoYsFRxrTLHWHQ3qCEkB/1Q/ks8Kx6Qjv39pVMZgMFqdIKYgfNBrUit8GbcuslWxogc4K02im j1e3IGJ4+tJ5Z5M3MvWe+nrCqPT3eWErdHN7X7v57Y5+SnKhIldyIURSO2q1hAg1JCqbXfcsnqn gB+4fMZcfFdHkR+j/r5OTtFBFYjIz9WyICBZxtRKVVYdMfOoilfEPWbwElh9q9EF6OwMjYZKdAm huZ7mgo7eDDvLvtXuIkwMFACY3dWeaX9qF4dWqGRh399oAjmmw5Nz4gZWK1xSrgmRjJVhLcizQO idr120H3dkD3/B3hR734V6SNEc4MfieXzWq3Kea/BxNM+PPgNgwl6IjwkOrQxIW3F+7SizTnb6T opKozolok5t8crwtGkbqgmiIMsqSjkWbfjlExODhvb+SXZOmzDV1UMnVOa/FfW4gjs/1nFai/t/ LeUn3+bxITtup/5C2y3PYBhFfOoPLhjkovpBw9Zs3My+WDj6Kzyyus/LVqFuiIEz+8xY+hhZaMI 1SczKC+iVxr2mV6xb9atuupjALg/sbKxBzgngYO602MUd13YWqIoXAZEB/0gSaTqJ+cf978FbEj RfPCd7YMhOnIBwYWXP8I+6Cadlszy4XUEMYUVv42UDR675QMFZysnHxtNBi9AdwYgtqnJTHuNbS AGE/ X-Received: by 2002:a05:7300:cc9c:b0:386:a217:aade with SMTP id 5a478bee46e88-386a217e7cemr26498835eec.29.1796028524120; Mon, 30 Nov 2026 00:48:44 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-38566cd46c5sm122382600eec.11.2026.11.30.00.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 00:48:43 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 17/22] python3-kivy: Fix build with Cython 3.3 Date: Mon, 30 Nov 2026 00:48:16 -0800 Message-ID: <20261130084821.1501209-18-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261130084821.1501209-1-khem.raj@oss.qualcomm.com> References: <20261130084821.1501209-1-khem.raj@oss.qualcomm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 08:48:54 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133527 Cython 3.3 infers dict.keys() as a dict_keys object and rejects storing it in a "cdef list" variable, even in kivy's dead Python 2 branch: kivy/graphics/instructions.pyx:899:41: Cannot assign type 'dict_keys object' to 'list object' Backport the hunk of upstream's Python 2 compatibility removal that drops this branch. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...tions-Drop-the-Python-2-branch-in-Re.patch | 34 +++++++++++++++++++ .../python/python3-kivy_2.3.2.bb | 1 + 2 files changed, 35 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-kivy/0002-graphics-instructions-Drop-the-Python-2-branch-in-Re.patch diff --git a/meta-python/recipes-devtools/python/python3-kivy/0002-graphics-instructions-Drop-the-Python-2-branch-in-Re.patch b/meta-python/recipes-devtools/python/python3-kivy/0002-graphics-instructions-Drop-the-Python-2-branch-in-Re.patch new file mode 100644 index 0000000000..cc4459d7db --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-kivy/0002-graphics-instructions-Drop-the-Python-2-branch-in-Re.patch @@ -0,0 +1,34 @@ +From: Khem Raj +Date: Sun, 29 Nov 2026 00:00:00 -0800 +Subject: [PATCH] graphics/instructions: Drop the Python 2 branch in + RenderContext.apply() + +Cython 3.3 infers dict.keys() as a dict_keys object and rejects assigning +it to the "cdef list keys" variable, even in the dead PY2 branch: + + kivy/graphics/instructions.pyx:899:41: Cannot assign type 'dict_keys object' to 'list object' + +Upstream master removed all Python 2 compatibility code; take just this +hunk. + +Upstream-Status: Backport [https://github.com/kivy/kivy/commit/dcd8fb2a6ae3f96789d51e00e1ff2f3c2fc339ef] +Signed-off-by: Khem Raj +--- + kivy/graphics/instructions.pyx | 5 +---- + 1 file changed, 1 insertion(+), 4 deletions(-) + +diff --git a/kivy/graphics/instructions.pyx b/kivy/graphics/instructions.pyx +--- a/kivy/graphics/instructions.pyx ++++ b/kivy/graphics/instructions.pyx +@@ -895,10 +895,7 @@ cdef class RenderContext(Canvas): + + cdef int apply(self) except -1: + cdef list keys +- if PY2: +- keys = self.state_stacks.keys() +- else: +- keys = list(self.state_stacks.keys()) ++ keys = list(self.state_stacks.keys()) + + cdef RenderContext active_context = getActiveContext() + if self._use_parent_projection: diff --git a/meta-python/recipes-devtools/python/python3-kivy_2.3.2.bb b/meta-python/recipes-devtools/python/python3-kivy_2.3.2.bb index 9b630c5ba4..eaabf54cbf 100644 --- a/meta-python/recipes-devtools/python/python3-kivy_2.3.2.bb +++ b/meta-python/recipes-devtools/python/python3-kivy_2.3.2.bb @@ -12,6 +12,7 @@ inherit setuptools3 pkgconfig features_check cython # Also, if using SDL2 as backend, SDL2 needs to be configured with gles SRC_URI = "git://github.com/kivy/kivy.git;protocol=https;branch=stable \ file://0001-add-support-for-glesv2.patch \ + file://0002-graphics-instructions-Drop-the-Python-2-branch-in-Re.patch \ " SRCREV = "ec09ee880c666e70de42501f36dbc43e349e3712"