Jump to content

Recommended Posts

On 6/8/2021 at 12:03 PM, al12s said:

это хорошо :) уже не знаю куда копать, помогите советом.

Несколько раз все переустановил по инструкциям (с этой ветки форума), но все равно на этапе установки netifaces ... error

Мне помогло:

opkg update

opkg install gcc


opkg install python3-dev

Share this post


Link to post
Share on other sites

"залечил вусмерть", остались пути, типа $(PKG_BUILD_DIR)/*

Скрытый текст

diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile
index ec581a0..d10ef68 100644
--- a/lang/python/python3/Makefile
+++ b/lang/python/python3/Makefile
@@ -4,7 +4,7 @@
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
-# Entware specific: CONFIGURE_ARGS+= --with-system-expat="$(STAGING_DIR)/opt"
+# Entware specific: CONFIGURE_ARGS+= --with-system-expat="$(STAGING_DIR)/opt" TZPATH
 
 include $(TOPDIR)/rules.mk
 
@@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk
 include ../python3-version.mk
 
 PKG_NAME:=python3
-PKG_RELEASE:=1
+PKG_RELEASE:=1b
 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
@@ -145,6 +145,7 @@ DISABLE_BLUETOOTH:= \
 CONFIGURE_ARGS+= \
 	--sysconfdir=/opt/etc \
 	--with-system-expat="$(STAGING_DIR)/opt" \
+	--with-tzpath="/opt/share/zoneinfo:/usr/share/zoneinfo" \
 	--enable-optimizations \
 	--enable-shared \
 	--with-system-ffi \
@@ -281,6 +282,10 @@ define Py3Package/python3-base/install
   # This depends on being called before filespec is processed
 	$(SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
 		$(PKG_INSTALL_DIR)/opt/lib/python$(PYTHON3_VERSION)/_sysconfigdata.py
+  # XXX
+	$(SED) 's,$(STAGING_DIR),,g;s,$(TOOLCHAIN_DIR),/opt,g;s,$(STAGING_DIR_HOST),/opt,g; \
+		s,-fmacro-prefix-map=$(PKG_BUILD_DIR)=Python-$(PKG_VERSION),,g' \
+			$(PKG_INSTALL_DIR)/opt/lib/python$(PYTHON3_VERSION)/_sysconfigdata.py
 endef
 
 Py3Package/python3-light/install:=:
diff --git a/lang/python/python3/files/python3-package-dev.mk b/lang/python/python3/files/python3-package-dev.mk
index 4afe29e..8bf1a88 100644
--- a/lang/python/python3/files/python3-package-dev.mk
+++ b/lang/python/python3/files/python3-package-dev.mk
@@ -20,6 +20,11 @@ define Py3Package/python3-dev/install
   # This depends on being called before filespec is processed
 	$(SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
 		$(PKG_INSTALL_DIR)/opt/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/Makefile
+  # XXX
+	$(SED) 's,$(STAGING_DIR),,g;s,$(TOOLCHAIN_DIR),/opt,g;s,$(STAGING_DIR_HOST),/opt,g; \
+		s,-fmacro-prefix-map=$(PKG_BUILD_DIR)=Python-$(PKG_VERSION),,g' \
+			$(PKG_INSTALL_DIR)/opt/bin/python$(PYTHON3_VERSION)-config \
+			$(PKG_INSTALL_DIR)/opt/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/Makefile
 endef
 
 $(eval $(call Py3BasePackage,python3-dev, \

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.


×
×
  • Create New...