Files
packages/libs/newt/patches/0001-Revert-install-python-modules-to-purelib-and-platlib.patch
Alexandru Ardelean 76786d2439 newt: bump to 0.52.25
Changes since 0.52.24:
- Bug fixes and maintenance updates

Need to revert a patch in the build, since it doesn't work for
cross-compilation.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-03-23 18:52:42 +02:00

31 lines
1.2 KiB
Diff

From ce2b86fe32047f0c2d59273bf3ca5bbafd7f740a Mon Sep 17 00:00:00 2001
From: Alexandru Ardelean <alex@shruggie.ro>
Date: Mon, 23 Mar 2026 16:51:22 +0200
Subject: [PATCH] Revert "install python modules to purelib and platlib"
This reverts commit ecd43ab512e707f6e7873368871b517ed3206859.
---
Makefile.in | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -161,13 +161,10 @@ endif
install-py: _snack.$(SOEXT)
ifneq ($(PYTHONVERS),)
- @for ver in $(PYTHONVERS); do \
- PLATLIB=`$$ver -c "import sysconfig; print(sysconfig.get_path('platlib'))"`; \
- [ -d $(instroot)/$$PLATLIB ] || install -m 755 -d $(instroot)/$$PLATLIB ;\
- echo install -m 755 $$ver/_snack.$(SOEXT) $(instroot)/$$PLATLIB;\
- install -m 755 $$ver/_snack.$(SOEXT) $(instroot)/$$PLATLIB;\
- echo install -m 644 snack.py $(instroot)/$$PLATLIB;\
- install -m 644 snack.py $(instroot)/$$PLATLIB;\
+ for ver in $(PYTHONVERS); do \
+ [ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
+ install -m 755 $$ver/_snack.$(SOEXT) $(instroot)/$(libdir)/$$ver/site-packages ;\
+ install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
done
endif