Inheriting setuptools3-base doesn't actually define any tasks, so commit 1ef6050 to drop distutils3 had the side-effect of not building any code.
Backport a commit from upstream to switch to setuptools, inherit setuptool3, and change DISTUTILS_SETUP_PATH to SETUPTOOLS_SETUP_PATH. Signed-off-by: Ross Burton <[email protected]> --- recipes-kernel/dtc/files/setuptools.patch | 34 +++++++++++++++++++++++ recipes-kernel/dtc/python3-dtc_1.6.1.bb | 7 +++-- 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 recipes-kernel/dtc/files/setuptools.patch diff --git a/recipes-kernel/dtc/files/setuptools.patch b/recipes-kernel/dtc/files/setuptools.patch new file mode 100644 index 0000000..3d37ebd --- /dev/null +++ b/recipes-kernel/dtc/files/setuptools.patch @@ -0,0 +1,34 @@ +Upstream-Status: Backport +Signed-off-by: Ross Burton <[email protected]> + +From c691776ddb26acbd3674722caafacaf7b6e3e807 Mon Sep 17 00:00:00 2001 +From: Rob Herring <[email protected]> +Date: Wed, 10 Nov 2021 19:11:32 -0600 +Subject: [PATCH] pylibfdt: Use setuptools instead of distutils + +The use of setuptools is favored over distutils. setuptools is needed to +support building Python 'wheels' and for pip support. + +Signed-off-by: Rob Herring <[email protected]> +Message-Id: <[email protected]> +Signed-off-by: David Gibson <[email protected]> +--- + pylibfdt/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pylibfdt/setup.py b/pylibfdt/setup.py +index ef40f15..f065a59 100755 +--- a/pylibfdt/setup.py ++++ b/pylibfdt/setup.py +@@ -10,7 +10,7 @@ Copyright (C) 2017 Google, Inc. + Written by Simon Glass <[email protected]> + """ + +-from distutils.core import setup, Extension ++from setuptools import setup, Extension + import os + import re + import sys +-- +2.25.1 + diff --git a/recipes-kernel/dtc/python3-dtc_1.6.1.bb b/recipes-kernel/dtc/python3-dtc_1.6.1.bb index e9b8499..6e02db6 100644 --- a/recipes-kernel/dtc/python3-dtc_1.6.1.bb +++ b/recipes-kernel/dtc/python3-dtc_1.6.1.bb @@ -7,6 +7,7 @@ LICENSE = "GPLv2 | BSD-2-Clause" DEPENDS = "flex-native bison-native swig-native libyaml dtc" SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git;branch=master \ + file://setuptools.patch \ file://ssize.patch" UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" @@ -17,13 +18,13 @@ SRCREV = "ecaeb97fec013973360e94888a7de645f084345c" S = "${WORKDIR}/git" -inherit setuptools3-base pkgconfig +inherit setuptools3 pkgconfig -DISTUTILS_SETUP_PATH = "${S}/pylibfdt" +SETUPTOOLS_SETUP_PATH = "${S}/pylibfdt" do_configure:prepend() { oe_runmake -C "${S}" version_gen.h - mv "${S}/version_gen.h" "${DISTUTILS_SETUP_PATH}/" + mv "${S}/version_gen.h" "${SETUPTOOLS_SETUP_PATH}/" } BBCLASSEXTEND = "native nativesdk" -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#7007): https://lists.yoctoproject.org/g/meta-virtualization/message/7007 Mute This Topic: https://lists.yoctoproject.org/mt/88482921/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
