I sent a patch for that to oe-devel.

Alex

On Thu, 5 Jan 2023 at 04:45, Khem Raj <raj.k...@gmail.com> wrote:
>
> This setuptools upgrade is regressing nftables build
>
> | make[2]: Entering directory
> '/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/build/py'
> | cd ../../nftables-1.0.6/py && \
> |       
> /mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/bin/python3-native/python3
> setup.py build --build-base /mnt/b/yoe/master/build/tmp/work/cort
> exa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/build/py
> | Traceback (most recent call last):
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/nftables-1.0.6/py/setup.py",
> line 5, in <module>
> |     setup(name='nftables',
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py",
> line 185, in setup
> |     return run_commands(dist)
> |            ^^^^^^^^^^^^^^^^^^
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/core.py",
> line 201, in run_commands
> |     dist.run_commands()
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py",
> line 969, in run_commands
> |     self.run_command(cmd)
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py",
> line 986, in run_command
> |     cmd_obj = self.get_command_obj(command)
> |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/dist.py",
> line 861, in get_command_obj
> |     cmd_obj = self.command_obj[command] = klass(self)
> |                                           ^^^^^^^^^^^
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/__init__.py",
> line 158, in __init__
> |     super().__init__(dist)
> |   File 
> "/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/recipe-sysroot-native/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py",
> line 61, in __init__
> |     raise TypeError("dist must be a Distribution instance")
> | TypeError: dist must be a Distribution instance
> | make[2]: *** [Makefile:455: all-local] Error 1
> | make[2]: Leaving directory
> '/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/build/py'
> | make[1]: *** [Makefile:478: all-recursive] Error 1
> | make[1]: Leaving directory
> '/mnt/b/yoe/master/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/nftables/1.0.6-r0/build'
> | make: *** [Makefile:387: all] Error 2
>
>
>
> On Wed, Jan 4, 2023 at 3:06 AM Alexander Kanavin <alex.kana...@gmail.com> 
> wrote:
> >
> > Signed-off-by: Alexander Kanavin <a...@linutronix.de>
> > ---
> >  .../0001-conditionally-do-not-fetch-code-by-easy_install.patch  | 2 +-
> >  ...ython3-setuptools_65.5.1.bb => python3-setuptools_65.6.3.bb} | 2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> >  rename meta/recipes-devtools/python/{python3-setuptools_65.5.1.bb => 
> > python3-setuptools_65.6.3.bb} (95%)
> >
> > diff --git 
> > a/meta/recipes-devtools/python/python3-setuptools/0001-conditionally-do-not-fetch-code-by-easy_install.patch
> >  
> > b/meta/recipes-devtools/python/python3-setuptools/0001-conditionally-do-not-fetch-code-by-easy_install.patch
> > index 1b5f9c7577..2110c4a877 100644
> > --- 
> > a/meta/recipes-devtools/python/python3-setuptools/0001-conditionally-do-not-fetch-code-by-easy_install.patch
> > +++ 
> > b/meta/recipes-devtools/python/python3-setuptools/0001-conditionally-do-not-fetch-code-by-easy_install.patch
> > @@ -1,4 +1,4 @@
> > -From a0e0873a8ee6674d43e604d66bf66d94fc8eeb6f Mon Sep 17 00:00:00 2001
> > +From 2e57369593ede5336f947e7b9903ebc673f98fef Mon Sep 17 00:00:00 2001
> >  From: Hongxu Jia <hongxu....@windriver.com>
> >  Date: Tue, 17 Jul 2018 10:13:38 +0800
> >  Subject: [PATCH] conditionally do not fetch code by easy_install
> > diff --git a/meta/recipes-devtools/python/python3-setuptools_65.5.1.bb 
> > b/meta/recipes-devtools/python/python3-setuptools_65.6.3.bb
> > similarity index 95%
> > rename from meta/recipes-devtools/python/python3-setuptools_65.5.1.bb
> > rename to meta/recipes-devtools/python/python3-setuptools_65.6.3.bb
> > index 8dc724e55a..a8bcb3a602 100644
> > --- a/meta/recipes-devtools/python/python3-setuptools_65.5.1.bb
> > +++ b/meta/recipes-devtools/python/python3-setuptools_65.6.3.bb
> > @@ -11,7 +11,7 @@ SRC_URI:append:class-native = " 
> > file://0001-conditionally-do-not-fetch-code-by-e
> >  SRC_URI += "file://0001-change-shebang-to-python3.patch \
> >              
> > file://0001-_distutils-sysconfig.py-make-it-possible-to-substite.patch"
> >
> > -SRC_URI[sha256sum] = 
> > "e197a19aa8ec9722928f2206f8de752def0e4c9fc6953527360d1c36d94ddb2f"
> > +SRC_URI[sha256sum] = 
> > "a7620757bf984b58deaf32fc8a4577a9bbc0850cf92c20e1ce41c38c19e5fb75"
> >
> >  DEPENDS += "${PYTHON_PN}"
> >
> > --
> > 2.30.2
> >
> >
> > 
> >
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175536): 
https://lists.openembedded.org/g/openembedded-core/message/175536
Mute This Topic: https://lists.openembedded.org/mt/96047915/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to