mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-02-21 01:52:11 +00:00
Upgrade ShredOS to buildroot v24.11
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON3_VERSION_MAJOR = 3.11
|
||||
PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).8
|
||||
PYTHON3_VERSION_MAJOR = 3.12
|
||||
PYTHON3_VERSION = $(PYTHON3_VERSION_MAJOR).7
|
||||
PYTHON3_SOURCE = Python-$(PYTHON3_VERSION).tar.xz
|
||||
PYTHON3_SITE = https://python.org/ftp/python/$(PYTHON3_VERSION)
|
||||
PYTHON3_LICENSE = Python-2.0, others
|
||||
@@ -22,22 +22,25 @@ HOST_PYTHON3_CONF_OPTS += \
|
||||
--disable-sqlite3 \
|
||||
--disable-tk \
|
||||
--with-expat=system \
|
||||
--disable-codecs-cjk \
|
||||
--disable-nis \
|
||||
--enable-unicodedata \
|
||||
--disable-test-modules \
|
||||
--disable-idle3 \
|
||||
--disable-uuid \
|
||||
--disable-ossaudiodev
|
||||
--disable-idle3
|
||||
|
||||
# Make sure that LD_LIBRARY_PATH overrides -rpath.
|
||||
# This is needed because libpython may be installed at the same time that
|
||||
# python is called.
|
||||
# Make python believe we don't have 'hg', so that it doesn't try to
|
||||
# communicate over the network during the build.
|
||||
# TODO: nis and ossaudiodev modules will be dropped in 3.13: https://peps.python.org/pep-0594/
|
||||
HOST_PYTHON3_CONF_ENV += \
|
||||
LDFLAGS="$(HOST_LDFLAGS) -Wl,--enable-new-dtags" \
|
||||
ac_cv_prog_HAS_HG=/bin/false
|
||||
py_cv_module_unicodedata=yes \
|
||||
py_cv_module__codecs_cn=n/a \
|
||||
py_cv_module__codecs_hk=n/a \
|
||||
py_cv_module__codecs_iso2022=n/a \
|
||||
py_cv_module__codecs_jp=n/a \
|
||||
py_cv_module__codecs_kr=n/a \
|
||||
py_cv_module__codecs_tw=n/a \
|
||||
py_cv_module__uuid=n/a \
|
||||
py_cv_module_nis=n/a \
|
||||
py_cv_module_ossaudiodev=n/a
|
||||
|
||||
PYTHON3_DEPENDENCIES = host-python3 libffi
|
||||
|
||||
@@ -51,7 +54,13 @@ HOST_PYTHON3_DEPENDENCIES = \
|
||||
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_BZIP2),y)
|
||||
HOST_PYTHON3_DEPENDENCIES += host-bzip2
|
||||
else
|
||||
HOST_PYTHON3_CONF_OPTS += --disable-bzip2
|
||||
HOST_PYTHON3_CONF_ENV += py_cv_module__bz2=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_XZ),y)
|
||||
HOST_PYTHON3_DEPENDENCIES += host-xz
|
||||
else
|
||||
HOST_PYTHON3_CONF_ENV += py_cv_module__lzma=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_CURSES),y)
|
||||
@@ -63,7 +72,9 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SSL),y)
|
||||
HOST_PYTHON3_DEPENDENCIES += host-openssl
|
||||
else
|
||||
HOST_PYTHON3_CONF_OPTS += --disable-openssl
|
||||
HOST_PYTHON3_CONF_ENV += \
|
||||
py_cv_module__hashlib=n/a \
|
||||
py_cv_module__ssl=n/a
|
||||
endif
|
||||
|
||||
PYTHON3_INSTALL_STAGING = YES
|
||||
@@ -77,13 +88,14 @@ endif
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_BERKELEYDB),y)
|
||||
PYTHON3_DEPENDENCIES += berkeleydb
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-berkeleydb
|
||||
PYTHON3_CONF_ENV += py_cv_module__dbm=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_READLINE),y)
|
||||
PYTHON3_CONF_OPTS += --with-readline
|
||||
PYTHON3_DEPENDENCIES += readline
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-readline
|
||||
PYTHON3_CONF_OPTS += --without-readline
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_CURSES),y)
|
||||
@@ -94,9 +106,9 @@ endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_DECIMAL),y)
|
||||
PYTHON3_DEPENDENCIES += mpdecimal
|
||||
PYTHON3_CONF_OPTS += --with-libmpdec=system
|
||||
PYTHON3_CONF_OPTS += --with-system-libmpdec
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --with-libmpdec=none
|
||||
PYTHON3_CONF_ENV += py_cv_module__decimal=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_PYEXPAT),y)
|
||||
@@ -116,54 +128,58 @@ ifeq ($(BR2_PACKAGE_PYTHON3_SSL),y)
|
||||
PYTHON3_DEPENDENCIES += openssl
|
||||
PYTHON3_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-openssl
|
||||
PYTHON3_CONF_ENV += \
|
||||
py_cv_module__hashlib=n/a \
|
||||
py_cv_module__ssl=n/a
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y)
|
||||
PYTHON3_CONF_OPTS += --disable-codecs-cjk
|
||||
PYTHON3_CONF_ENV += \
|
||||
py_cv_module__codecs_cn=n/a \
|
||||
py_cv_module__codecs_hk=n/a \
|
||||
py_cv_module__codecs_iso2022=n/a \
|
||||
py_cv_module__codecs_jp=n/a \
|
||||
py_cv_module__codecs_kr=n/a \
|
||||
py_cv_module__codecs_tw=n/a
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_PYTHON3_UNICODEDATA),y)
|
||||
PYTHON3_CONF_OPTS += --disable-unicodedata
|
||||
PYTHON3_CONF_ENV += py_cv_module_unicodedata=n/a
|
||||
endif
|
||||
|
||||
# Disable auto-detection of uuid.h (util-linux)
|
||||
# which would add _uuid module support, instead
|
||||
# default to the pure python implementation
|
||||
PYTHON3_CONF_OPTS += --disable-uuid
|
||||
PYTHON3_CONF_ENV += py_cv_module__uuid=n/a
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_BZIP2),y)
|
||||
PYTHON3_DEPENDENCIES += bzip2
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-bzip2
|
||||
PYTHON3_CONF_ENV += py_cv_module__bz2=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_XZ),y)
|
||||
PYTHON3_DEPENDENCIES += xz
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-xz
|
||||
PYTHON3_CONF_ENV += py_cv_module__lzma=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_ZLIB),y)
|
||||
PYTHON3_DEPENDENCIES += zlib
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-zlib
|
||||
PYTHON3_CONF_ENV += py_cv_module_zlib=n/a
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
|
||||
PYTHON3_CONF_OPTS += --enable-ossaudiodev
|
||||
else
|
||||
PYTHON3_CONF_OPTS += --disable-ossaudiodev
|
||||
ifneq ($(BR2_PACKAGE_PYTHON3_OSSAUDIODEV),y)
|
||||
PYTHON3_CONF_ENV += py_cv_module_ossaudiodev=n/a
|
||||
endif
|
||||
|
||||
# Make python believe we don't have 'hg', so that it doesn't try to
|
||||
# communicate over the network during the build.
|
||||
PYTHON3_CONF_ENV += \
|
||||
ac_cv_have_long_long_format=yes \
|
||||
ac_cv_file__dev_ptmx=yes \
|
||||
ac_cv_file__dev_ptc=yes \
|
||||
ac_cv_working_tzset=yes \
|
||||
ac_cv_prog_HAS_HG=/bin/false
|
||||
py_cv_module_nis=n/a
|
||||
|
||||
# GCC is always compliant with IEEE754
|
||||
ifeq ($(BR2_ENDIAN),"LITTLE")
|
||||
@@ -172,12 +188,6 @@ else
|
||||
PYTHON3_CONF_ENV += ac_cv_big_endian_double=yes
|
||||
endif
|
||||
|
||||
# uClibc is known to have a broken wcsftime() implementation, so tell
|
||||
# Python 3 to fall back to strftime() instead.
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
PYTHON3_CONF_ENV += ac_cv_func_wcsftime=no
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GETTEXT_PROVIDES_LIBINTL),y)
|
||||
PYTHON3_DEPENDENCIES += gettext
|
||||
endif
|
||||
@@ -190,7 +200,6 @@ PYTHON3_CONF_OPTS += \
|
||||
--disable-pydoc \
|
||||
--disable-test-modules \
|
||||
--disable-tk \
|
||||
--disable-nis \
|
||||
--disable-idle3 \
|
||||
--disable-pyc-build
|
||||
|
||||
@@ -200,18 +209,11 @@ PYTHON3_CONF_OPTS += \
|
||||
#
|
||||
define PYTHON3_REMOVE_USELESS_FILES
|
||||
rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)-config
|
||||
rm -f $(TARGET_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)m-config
|
||||
rm -f $(TARGET_DIR)/usr/bin/python3-config
|
||||
rm -f $(TARGET_DIR)/usr/bin/smtpd.py.3
|
||||
rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/distutils/command/wininst*.exe
|
||||
for i in `find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config-$(PYTHON3_VERSION_MAJOR)m-*/ \
|
||||
-type f -not -name Makefile` ; do \
|
||||
rm -f $$i ; \
|
||||
done
|
||||
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/__pycache__/
|
||||
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/lib-dynload/sysconfigdata/__pycache__
|
||||
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/collections/__pycache__
|
||||
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/importlib/__pycache__
|
||||
find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/config-$(PYTHON3_VERSION_MAJOR)*/ \
|
||||
-depth -type f -not -name Makefile -exec rm -rf {} \;
|
||||
find $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/ -depth -type d \
|
||||
-name __pycache__ -exec rm -rf {} \;
|
||||
endef
|
||||
|
||||
PYTHON3_POST_INSTALL_TARGET_HOOKS += PYTHON3_REMOVE_USELESS_FILES
|
||||
|
||||
Reference in New Issue
Block a user