Skip to contentSkip to conversation

nftables: build with native python instead of host python

RFC PATCH Gyorgy Sarvari 1 participant 1 message Mar 14 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

This is an RFC, because I'm not really sure if this is how it should be solved. I'm not even that sure about the root cause of the problem TBH... I got this error in my Docker image, based on Debian 12, running Python 3.11. Without taking a deep dive, all I could find on the internet was "update distutils or update python" - I guess this patch is the latter.

If you have a better idea, know the reason for this or you just think that this is just wrong, feel free to comment.

Quoted 38 lines · Gyorgy Sarvari via lists.openembedded.org

Using old Python on the build host with SetupTools 82 results in an error message during building:

| error: invalid command 'egg_info'
|
| ERROR Backend subprocess exited when trying to invoke get_requires_for_build_wheel
| WARNING: exit code 1 from a shell command.

To avoid it, use the native Python environment built by OE.

---
 meta-networking/recipes-filter/nftables/nftables_1.1.6.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-filter/nftables/nftables_1.1.6.bb +1 -2
index 505dfc12d0..d27e60a18d 100644
@@ -16,7 +16,7 @@ SRC_URI = "http://www.netfilter.org/projects/nftables/files/${BP}.tar.xz \
           "
 SRC_URI[sha256sum] = "372931bda8556b310636a2f9020adc710f9bab66f47efe0ce90bff800ac2530c"
 
-inherit autotools manpages pkgconfig ptest
+inherit autotools manpages pkgconfig ptest python3native
 
 PACKAGECONFIG ?= "python readline json"
 PACKAGECONFIG[editline] = "--with-cli=editline, , libedit, , , linenoise readline"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#125211): https://lists.openembedded.org/g/openembedded-devel/message/125211
Mute This Topic: https://lists.openembedded.org/mt/118317775/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-