Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

383 Commits   1 Branch   1 Tag
Index: 3.10.8/Makefile
===================================================================
--- 3.10.8/Makefile	(nonexistent)
+++ 3.10.8/Makefile	(revision 5)
@@ -0,0 +1,360 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/python3
+SOURCE_REQUIRES   += sources/packages/d/python3-doc
+
+REQUIRES           = env/libuuid/2.38.1
+REQUIRES          += app/xz/5.2.7
+REQUIRES          += app/bzip2/1.0.8
+REQUIRES          += app/sqlite/3.39.4.0
+REQUIRES          += libs/libffi/3.4.4
+REQUIRES          += libs/expat/2.5.0
+REQUIRES          += libs/gdbm/1.23
+REQUIRES          += net/openssl/1.1.1r
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.10.8
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python3/Python-$(version).tar.xz
+doc_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/d/python3-doc/python-$(version)-docs-text.tar.bz2
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Python-$(version)
+src_dir_name       = Python-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+scripts_dir        = $(CURDIR)/scripts
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+hw_cache_in        = $(CURDIR)/cross/hw.cache
+hw_cache           = $(CURDIR)/$(SRC_DIR)/hw.cache
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PYTHON_PKG_NAME                = python3
+PYTHON_PKG_VERSION             = 3.10.8
+PYTHON_PKG_ARCH                = $(PKGARCH)
+PYTHON_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PYTHON_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PYTHON_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+PYTHON_PKG_SHORT_DESCRIPTION   = interpreted programming language
+PYTHON_PKG_URL                 = $(BUG_URL)
+PYTHON_PKG_LICENSE             = GPLv2
+PYTHON_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PYTHON_PKG_NAME)-pkg-description
+PYTHON_PKG_DESCRIPTION_FILE_IN = $(PYTHON_PKG_NAME)-pkg-description.in
+PYTHON_PKG_INSTALL_SCRIPT      = $(PYTHON_PKG_NAME)-pkg-install.sh
+
+PYTHON_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PYTHON_PKG_NAME)-package
+
+pkg_basename     = $(PYTHON_PKG_NAME)-$(PYTHON_PKG_VERSION)-$(PYTHON_PKG_ARCH)-$(PYTHON_PKG_DISTRO_NAME)-$(PYTHON_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate  = $(call cert-name,$(pkg_archive))
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PYTHON_PKG)
+
+LDFLAGS    += -L.
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --with-system-expat
+extra_configure_switches += --with-system-ffi
+extra_configure_switches += --with-threads
+extra_configure_switches += --without-ensurepip
+extra_configure_switches += --enable-ipv6
+extra_configure_switches += --enable-loadable-sqlite-extensions
+extra_configure_switches += --enable-shared
+
+extra_configure_switches += --cache-file=$(hw_cache)
+
+python_environment  = RFS=$(TARGET_DEST_DIR)
+python_environment += HOSTARCH=$(TARGET)
+python_environment += BUILDARCH=$(BUILD)
+python_environment += PYTHONHOME=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/python3.10
+python_environment += PYTHON3=$(PYTHON3)
+python_environment += PGEN3=$(PGEN3)
+
+BUILD_ALIAS = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+
+PY_BUILD_MULTIARCH = x86_64-linux-gnu
+PY_BUILD_MACHDEP   = linux
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i '1s|^#.*/usr/local/bin/python|#!/usr/bin/python3|' Lib/cgi.py ; \
+	   sed -i 's|\("install",\)|\1 "--ignore-installed",|' Lib/ensurepip/__init__.py ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   sed -i 's,^OPENSSL=/usr,OPENSSL=$(TARGET_DEST_DIR)/usr,' Modules/Setup ; \
+	   sed -i 's,^ZLIB=/usr,ZLIB=$(TARGET_DEST_DIR)/usr,'       Modules/Setup ; \
+	 )
+	@cp -a $(hw_cache_in) $(hw_cache)
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)    $(TOOLCHAIN_A2X_GLIBC)      \
+                             $(TOOLCHAIN_H3_GLIBC)     $(TOOLCHAIN_RK328X_GLIBC)   \
+                             $(TOOLCHAIN_S8XX_GLIBC)   $(TOOLCHAIN_IMX6_GLIBC)     \
+                             $(TOOLCHAIN_AM335X_GLIBC) $(TOOLCHAIN_OMAP543X_GLIBC) \
+                             $(TOOLCHAIN_JZ47XX_GLIBC) $(TOOLCHAIN_P5600_GLIBC)    \
+                             $(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+	@echo "ac_cv_sizeof_off_t=4" >> $(hw_cache)
+endif
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) ./configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PYTHON_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install 2to3/3to2 scripts =======
+	@mkdir -p $(PYTHON_PKG)/usr/bin
+	@cat $(scripts_dir)/python-2to3 > $(PYTHON_PKG)/usr/bin/python-2to3
+	@cat $(scripts_dir)/python-3to2 > $(PYTHON_PKG)/usr/bin/python-3to2
+	@chmod 0755 $(PYTHON_PKG)/usr/bin/python-2to3
+	@chmod 0755 $(PYTHON_PKG)/usr/bin/python-3to2
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) \
+                             $(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	# ======= copy pyconfig.h for x86_64 =======
+	@( cd $(PYTHON_PKG)/usr/include/python3.10 ; \
+	   mv pyconfig.h pyconfig-64.h ; \
+	   echo ''                                                    > pyconfig.h ; \
+	   echo '/******************************'                    >> pyconfig.h ; \
+	   echo '  pyconfig.h - Multilib Header'                     >> pyconfig.h ; \
+	   echo ' ******************************/'                   >> pyconfig.h ; \
+	   echo ''                                                   >> pyconfig.h ; \
+	   echo '#ifndef __MULTILIB__PYCONFIG_H__'                   >> pyconfig.h ; \
+	   echo '#define __MULTILIB__PYCONFIG_H__'                   >> pyconfig.h ; \
+	   echo ''                                                   >> pyconfig.h ; \
+	   echo '#if defined(__x86_64__)    || \'                    >> pyconfig.h ; \
+	   echo '    defined(__aarch64__)   || \'                    >> pyconfig.h ; \
+	   echo '    defined(__powerpc64__) || \'                    >> pyconfig.h ; \
+	   echo '    defined(__sparc__) && defined(__arch64__) || \' >> pyconfig.h ; \
+	   echo '    defined(__riscv_xlen) && __riscv_xlen == 64'    >> pyconfig.h ; \
+	   echo '#include "pyconfig-64.h"'                           >> pyconfig.h ; \
+	   echo '#else'                                              >> pyconfig.h ; \
+	   echo '#include "pyconfig-32.h"'                           >> pyconfig.h ; \
+	   echo '#endif'                                             >> pyconfig.h ; \
+	   echo ''                                                   >> pyconfig.h ; \
+	   echo '#endif /* __MULTILIB__PYCONFIG_H__ */'              >> pyconfig.h ; \
+	 )
+endif
+	@if [ -d $(PYTHON_PKG)/usr/share/man ]; then \
+	  ( cd $(PYTHON_PKG)/usr/share/man ; \
+	    for manpagedir in `find . -type d -name "man*"` ; do \
+	      ( cd $$manpagedir ; \
+	        for eachpage in `find . -type l -maxdepth 1` ; do \
+	          ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+	          rm $$eachpage ; \
+	        done ; \
+	        gzip -9 *.?  ; \
+	      ) \
+	    done \
+	  ) \
+	 fi
+	@mkdir -p $(PYTHON_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE $(SRC_DIR)/README* \
+	       $(PYTHON_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(PYTHON_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSE README* \
+	         $(PYTHON_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@mkdir -p $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python3.10/site-packages
+	@( cd $(SRC_DIR) ; \
+	   rm -rf Tools/buildbot ; \
+	   mv Tools/README Tools/README.python-tools ; \
+	   cp -a Tools/* \
+	         $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python3.10/site-packages \
+	 )
+	@cp -a $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python3.10/site-packages/README.python-tools \
+	       $(PYTHON_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(PYTHON_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../../lib$(LIBSUFFIX)/python3.10/site-packages Tools \
+	 )
+	@mkdir -p $(PYTHON_PKG)/usr/bin
+	@( cd $(PYTHON_PKG)/usr/bin ; \
+	   rm -f 2to3 ; \
+	   ln -sf ../lib$(LIBSUFFIX)/python3.10/site-packages/pynche/pynche pynche3 ; \
+	   ln -sf ../lib$(LIBSUFFIX)/python3.10/site-packages/i18n/msgfmt.py msgfmt-3.10.py ; \
+	   ln -sf ../lib$(LIBSUFFIX)/python3.10/site-packages/i18n/pygettext.py pygettext-3.10.py ; \
+	 )
+	# ======= Install Documentation ======
+	@mkdir -p $(PYTHON_PKG)/usr/share/doc/$(src_dir_name)/Documentation
+	@tar xjf $(doc_bz2_archive) -C $(TARGET_BUILD_DIR)
+	@mv $(TARGET_BUILD_DIR)/python-$(version)-docs-text/* $(PYTHON_PKG)/usr/share/doc/$(src_dir_name)/Documentation
+	@rm -rf $(TARGET_BUILD_DIR)/python-$(version)-docs-text
+	@( cd $(PYTHON_PKG) ; \
+	   find . -type d -exec chmod 755 "{}" \;    ; \
+	   find . -perm 640 -exec chmod 644 "{}" \;  ; \
+	   find . -perm 750 -exec chmod 755 "{}" \;  ; \
+	 )
+	# ======= tune python3.10-config CFLAGS for target machine =======
+	@( cd $(PYTHON_PKG)/usr/bin ; \
+	   sed -i 's,includedir=$$(echo "$${prefix},includedir=$$(echo "/usr,g' python3.10-config ; \
+	   sed -i 's,LIBPL=$$(echo "$${prefix},LIBPL=$$(echo "/usr,g' python3.10-config ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" python3.10-config ; \
+	 )
+	# ======= Fix cross-build issue when build is equal to host =======
+	@( cd $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python3.10 ; \
+	   if [ -r "_sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py" ] ; then \
+	     mv _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py lib-dynload/ ; \
+	     rm -f __pycache__/_sysconfigdata_* ; \
+	   fi ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PYTHON_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" python-3.10-embed.pc ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" python-3.10.pc ; \
+	 )
+	# ======= tune target Python _sysconfigdata.py script =======
+	@( cd $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python3.10/lib-dynload ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g" _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILD),$(TARGET),g"                     _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET),g"               _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(CROSS_PREFIX),/usr/bin/,g"              _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                        _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,--sysroot=,,g"                            _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   host=`cat _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py | grep "'HOST_GNU_TYPE'" | sed "s,.*'HOST_GNU_TYPE': '\([^\']*\)'.*,\1,"` ; \
+	   sed -i "s|\(BUILD_GNU_TYPE': '\).*$$|\1$$host',|" _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   machdep=`cat _sysconfigdata__linux_x86_64-linux-gnu.py | grep "'MACHDEP'" | sed "s,.*'MACHDEP': '\([^\']*\)'.*,\1,"` ; \
+	   multiarch=`cat _sysconfigdata__linux_x86_64-linux-gnu.py | grep "'MULTIARCH'" | sed "s,.*'MULTIARCH': '\([^\']*\)'.*,\1,"` ; \
+	   if [ "$(PY_BUILD_MACHDEP)" != "$${machdep}" -o "$(PY_BUILD_MULTIARCH)" != "$${multiarch}" ] ; then \
+	     mv _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py _sysconfigdata__$${machdep}_$${multiarch}.py ; \
+	   fi ; \
+	 )
+	@chmod +w $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/libpython*.so*
+	# ======= tune LIBPL config-3.10*/Makefile for target machine =======
+	@( cd $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python3.10 ; \
+	   sed -i 's,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g' config-3.10*/Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    config-3.10*/Makefile ; \
+	   sed -i 's,$(TOOLCHAIN_PATH),/usr,g'                 config-3.10*/Makefile ; \
+	   sed -i 's,$(TARGET)-,,g'                            config-3.10*/Makefile ; \
+	   sed -i 's, --sysroot=,,g'                           config-3.10*/Makefile ; \
+	   sed -i "s, '--build=[^\']*',,g"                     config-3.10*/Makefile ; \
+	   sed -i "s, '--host=[^\']*',,g"                      config-3.10*/Makefile ; \
+	   sed -i "s, 'build_alias=[^\']*',,g"                 config-3.10*/Makefile ; \
+	   sed -i "s, 'host_alias=[^\']*',,g"                  config-3.10*/Makefile ; \
+	   host=`cat config-3.10*/Makefile | grep '^HOST_GNU_TYPE' | sed 's,HOST_GNU_TYPE=[ \t]*\(.*\)$$,\1,'` ; \
+	   sed -i "s,\(^BUILD_GNU_TYPE=[ \t]*\).*,\1$$host," config-3.10*/Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    config-3.10*/Setup ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PYTHON_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PYTHON_PKG_DESCRIPTION_FILE): $(PYTHON_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PYTHON_PKG_DESCRIPTION_FILE) $(PYTHON_PKG_INSTALL_SCRIPT)
+	@cp $(PYTHON_PKG_DESCRIPTION_FILE) $(PYTHON_PKG)/.DESCRIPTION
+	@cp $(PYTHON_PKG_INSTALL_SCRIPT) $(PYTHON_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PYTHON_PKG)/.REQUIRES
+	@echo "pkgname=$(PYTHON_PKG_NAME)"                            >  $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PYTHON_PKG_VERSION)"                          >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "arch=$(PYTHON_PKG_ARCH)"                               >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PYTHON_PKG_DISTRO_NAME)"                  >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PYTHON_PKG_DISTRO_VERSION)"                >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "group=$(PYTHON_PKG_GROUP)"                             >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PYTHON_PKG_SHORT_DESCRIPTION)\"" >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "url=$(PYTHON_PKG_URL)"                                 >> $(PYTHON_PKG)/.PKGINFO ; \
+	 echo "license=$(PYTHON_PKG_LICENSE)"                         >> $(PYTHON_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PYTHON_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 3.10.8/PATCHES
===================================================================
--- 3.10.8/PATCHES	(nonexistent)
+++ 3.10.8/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/python3/patches/Python-3.10.8-readline.patch -p0
+../../../sources/packages/d/python3/patches/Python-3.10.8-cross.patch    -p0
Index: 3.10.8/cross/hw.cache
===================================================================
--- 3.10.8/cross/hw.cache	(nonexistent)
+++ 3.10.8/cross/hw.cache	(revision 5)
@@ -0,0 +1,2 @@
+ac_cv_file__dev_ptmx=yes
+ac_cv_file__dev_ptc=no
Index: 3.10.8/cross
===================================================================
--- 3.10.8/cross	(nonexistent)
+++ 3.10.8/cross	(revision 5)

Property changes on: 3.10.8/cross
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8/python3-pkg-description.in
===================================================================
--- 3.10.8/python3-pkg-description.in	(nonexistent)
+++ 3.10.8/python3-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+       |-----handy-ruler------------------------------------------------------|
+python3: python3 @VERSION@ (object-oriented interpreted programming language)
+python3:
+python3: Python is an interpreted, interactive, object-oriented programming
+python3: language that combines remarkable power with very clear syntax.
+python3: Python's basic power can be extended with your own modules written
+python3: in C or C++. Python is also adaptable as an extension language for
+python3: existing applications.
+python3:
+python3:
+python3:
+python3:
Index: 3.10.8/python3-pkg-install.sh
===================================================================
--- 3.10.8/python3-pkg-install.sh	(nonexistent)
+++ 3.10.8/python3-pkg-install.sh	(revision 5)
@@ -0,0 +1,89 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  rm -f usr/bin/2to3
+  ln -sfr usr/bin/2to3-3.10 usr/bin/2to3
+
+  for file in idle pydoc pynche python ; do
+    rm -f usr/bin/${file}
+    ln -sfr usr/bin/${file}3 usr/bin/${file}
+  done
+
+  rm -f usr/bin/python-config
+  ln -sfr usr/bin/python3-config usr/bin/python-config
+
+  for file in msgfmt pygettext ; do
+    rm -f usr/bin/${file}.py
+    ln -sfr usr/bin/${file}-3.10.py usr/bin/${file}.py
+  done
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  rm -f usr/bin/2to3
+  if [ -x "usr/bin/2to3-2.7" ] ; then
+    ln -sfr usr/bin/2to3-2.7 usr/bin/2to3
+  fi
+
+  for file in idle pydoc pynche python ; do
+    rm -f usr/bin/${file}
+    if [ -L "usr/bin/${file}2" ] ; then
+      ln -sfr usr/bin/${file}2 usr/bin/${file}
+    fi
+  done
+
+  rm -f usr/bin/python-config
+  if [ -L "usr/bin/python2-config" ] ; then
+    ln -sfr usr/bin/python2-config usr/bin/python-config
+  fi
+
+  for file in msgfmt pygettext ; do
+    rm -f usr/bin/${file}.py
+    if [ -L "usr/bin/${file}-2.7.py" ] ; then
+      ln -sfr usr/bin/${file}-2.7.py usr/bin/${file}.py
+    fi
+  done
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 3.10.8/python3-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 3.10.8/scripts/python-2to3
===================================================================
--- 3.10.8/scripts/python-2to3	(nonexistent)
+++ 3.10.8/scripts/python-2to3	(revision 5)
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+program=$0
+prgpath=$(cd $(dirname $program) ; pwd -P)
+
+( cd $prgpath
+  rm -f 2to3          ; if [ -x 2to3-3.10         -o -L 2to3-3.10         ] ; then ln -sf 2to3-3.10         2to3          ; fi
+  rm -f idle          ; if [ -x idle3             -o -L idle3             ] ; then ln -sf idle3             idle          ; fi
+  rm -f pip           ; if [ -x pip3              -o -L pip3              ] ; then ln -sf pip3              pip           ; fi
+  rm -f pydoc         ; if [ -x pydoc3            -o -L pydoc3            ] ; then ln -sf pydoc3            pydoc         ; fi
+  rm -f pynche        ; if [ -x pynche3           -o -L pynche3           ] ; then ln -sf pynche3           pynche        ; fi
+  rm -f msgfmt.py     ; if [ -x msgfmt-3.10.py    -o -L msgfmt-3.10.py    ] ; then ln -sf msgfmt-3.10.py    msgfmt.py     ; fi
+  rm -f pygettext.py  ; if [ -x pygettext-3.10.py -o -L pygettext-3.10.py ] ; then ln -sf pygettext-3.10.py pygettext.py  ; fi
+  rm -f python        ; if [ -x python3           -o -L python3           ] ; then ln -sf python3           python        ; fi
+  rm -f python-config ; if [ -x python3-config    -o -L python3-config    ] ; then ln -sf python3-config    python-config ; fi
+)
Index: 3.10.8/scripts/python-3to2
===================================================================
--- 3.10.8/scripts/python-3to2	(nonexistent)
+++ 3.10.8/scripts/python-3to2	(revision 5)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+program=$0
+prgpath=$(cd $(dirname $program) ; pwd -P)
+
+( cd $prgpath
+  rm -f 2to3          ; if [ -x 2to3-2.7         -o -L 2to3-2.7         ] ; then ln -sf 2to3-2.7         2to3          ; fi
+  rm -f easy_install  ; if [ -x easy_install-2.7 -o -L easy_install-2.7 ] ; then ln -sf easy_install-2.7 easy_install  ; fi
+  rm -f idle          ; if [ -x idle2            -o -L idle2            ] ; then ln -sf idle2            idle          ; fi
+  rm -f pip           ; if [ -x pip2             -o -L pip2             ] ; then ln -sf pip2             pip           ; fi
+  rm -f pydoc         ; if [ -x pydoc2           -o -L pydoc2           ] ; then ln -sf pydoc2           pydoc         ; fi
+  rm -f pynche        ; if [ -x pynche2          -o -L pynche2          ] ; then ln -sf pynche2          pynche        ; fi
+  rm -f msgfmt.py     ; if [ -x msgfmt-2.7.py    -o -L msgfmt-2.7.py    ] ; then ln -sf msgfmt-2.7.py    msgfmt.py     ; fi
+  rm -f pygettext.py  ; if [ -x pygettext-2.7.py -o -L pygettext-2.7.py ] ; then ln -sf pygettext-2.7.py pygettext.py  ; fi
+  rm -f python        ; if [ -x python2          -o -L python2          ] ; then ln -sf python2          python        ; fi
+  rm -f python-config ; if [ -x python2-config   -o -L python2-config   ] ; then ln -sf python2-config   python-config ; fi
+
+)
Index: 3.10.8/scripts
===================================================================
--- 3.10.8/scripts	(nonexistent)
+++ 3.10.8/scripts	(revision 5)

Property changes on: 3.10.8/scripts
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8
===================================================================
--- 3.10.8	(nonexistent)
+++ 3.10.8	(revision 5)

Property changes on: 3.10.8
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8-ppc32/Makefile
===================================================================
--- 3.10.8-ppc32/Makefile	(nonexistent)
+++ 3.10.8-ppc32/Makefile	(revision 5)
@@ -0,0 +1,258 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_PPC32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/python3
+
+REQUIRES           = dev/python3/3.10.8
+REQUIRES          += env/libuuid/2.38.1-ppc32
+REQUIRES          += app/xz/5.2.7-ppc32
+REQUIRES          += app/bzip2/1.0.8-ppc32
+REQUIRES          += app/sqlite/3.39.4.0-ppc32
+REQUIRES          += libs/libffi/3.4.4-ppc32
+REQUIRES          += libs/expat/2.5.0-ppc32
+REQUIRES          += libs/gdbm/1.23-ppc32
+REQUIRES          += net/openssl/1.1.1r-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.10.8
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python3/Python-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Python-$(version)
+src_dir_name       = Python-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+scripts_dir        = $(CURDIR)/scripts
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+hw_cache_in        = $(CURDIR)/cross/hw.cache
+hw_cache           = $(CURDIR)/$(SRC_DIR)/hw.cache
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PYTHON32_PKG_NAME                = python3-x32
+PYTHON32_PKG_VERSION             = 3.10.8
+PYTHON32_PKG_ARCH                = $(PKGARCH)
+PYTHON32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PYTHON32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PYTHON32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+PYTHON32_PKG_SHORT_DESCRIPTION   = interpreted programming language
+PYTHON32_PKG_URL                 = $(BUG_URL)
+PYTHON32_PKG_LICENSE             = GPLv2
+PYTHON32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PYTHON32_PKG_NAME)-pkg-description
+PYTHON32_PKG_DESCRIPTION_FILE_IN = $(PYTHON32_PKG_NAME)-pkg-description.in
+PYTHON32_PKG_INSTALL_SCRIPT      = $(PYTHON32_PKG_NAME)-pkg-install.sh
+
+PYTHON32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PYTHON32_PKG_NAME)-package
+
+pkg_basename     = $(PYTHON32_PKG_NAME)-$(PYTHON32_PKG_VERSION)-$(PYTHON32_PKG_ARCH)-$(PYTHON32_PKG_DISTRO_NAME)-$(PYTHON32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate  = $(call cert-name,$(pkg_archive))
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PYTHON32_PKG)
+
+LDFLAGS    += -L.
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --with-platlibdir=lib32
+extra_configure_switches += --with-system-expat
+extra_configure_switches += --with-system-ffi
+extra_configure_switches += --with-threads
+extra_configure_switches += --without-ensurepip
+extra_configure_switches += --enable-ipv6
+extra_configure_switches += --enable-loadable-sqlite-extensions
+extra_configure_switches += --enable-shared
+
+extra_configure_switches += --cache-file=$(hw_cache)
+
+python_environment  = RFS=$(TARGET_DEST_DIR)
+python_environment += HOSTARCH=$(TARGET32)
+python_environment += BUILDARCH=$(BUILD)
+python_environment += PYTHONHOME=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python3.10
+python_environment += ac_cv_prog_READELF=$(TOOLCHAIN_PATH)/bin/$(TARGET)-readelf
+python_environment += LDFLAGS=-Wl,-rpath,/lib32:/usr/lib32
+python_environment += PYTHON3=$(PYTHON3)
+python_environment += PGEN3=$(PGEN3)
+
+BUILD_ALIAS = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+
+PY_BUILD_MULTIARCH = x86_64-linux-gnu
+PY_BUILD_MACHDEP   = linux
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i '1s|^#.*/usr/local/bin/python|#!/usr/bin/python3|' Lib/cgi.py ; \
+	   sed -i 's|\("install",\)|\1 "--ignore-installed",|' Lib/ensurepip/__init__.py ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   sed -i 's,^OPENSSL=/usr,OPENSSL=$(TARGET_DEST_DIR)/usr,' Modules/Setup ; \
+	   sed -i 's,^ZLIB=/usr,ZLIB=$(TARGET_DEST_DIR)/usr,'       Modules/Setup ; \
+	 )
+	@cp -a $(hw_cache_in) $(hw_cache)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) ./configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PYTHON32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install 2to3/3to2 scripts =======
+	@mkdir -p $(PYTHON32_PKG)/usr/bin/32
+	@cat $(scripts_dir)/python-2to3 > $(PYTHON32_PKG)/usr/bin/32/python-2to3
+	@cat $(scripts_dir)/python-3to2 > $(PYTHON32_PKG)/usr/bin/32/python-3to2
+	@chmod 0755 $(PYTHON32_PKG)/usr/bin/32/python-2to3
+	@chmod 0755 $(PYTHON32_PKG)/usr/bin/32/python-3to2
+	# ======= copy pyconfig.h for ppc32 =======
+	@rm -rf $(PYTHON32_PKG)/usr/include/python3.10/cpython
+	@rm -rf $(PYTHON32_PKG)/usr/include/python3.10/internal
+	@( cd $(PYTHON32_PKG)/usr/include ; \
+	   mv python3.10/pyconfig.h . ; \
+	   rm -f python3.10/* ; \
+	   mv pyconfig.h python3.10/pyconfig-32.h ; \
+	 )
+	@rm -rf $(PYTHON32_PKG)/usr/share
+	@mkdir -p $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python3.10/site-packages
+	@( cd $(SRC_DIR) ; \
+	   rm -rf Tools/buildbot ; \
+	   mv Tools/README Tools/README.python-tools ; \
+	   cp -a Tools/* \
+	         $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python3.10/site-packages \
+	 )
+	@mkdir -p $(PYTHON32_PKG)/usr/bin/32
+	@( cd $(PYTHON32_PKG)/usr/bin/32 ; \
+	   rm -f 2to3 ; \
+	   ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/python3.10/site-packages/pynche/pynche pynche3 ; \
+	   ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/python3.10/site-packages/i18n/msgfmt.py msgfmt-3.10.py ; \
+	   ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/python3.10/site-packages/i18n/pygettext.py pygettext-3.10.py ; \
+	 )
+	# ======= tune python3.10-config CFLAGS for target machine =======
+	@( cd $(PYTHON32_PKG)/usr/bin/32 ; \
+	   sed -i 's,RESULT=\(\$$(dirname .*\)$$,RESULT=\$$(dirname \1),' python3.10-config ; \
+	   sed -i 's,includedir=$$(echo "$${prefix},includedir=$$(echo "/usr,g' python3.10-config ; \
+	   sed -i 's,LIBPL=$$(echo "$${prefix},LIBPL=$$(echo "/usr,g' python3.10-config ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" python3.10-config ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PYTHON32_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" python-3.10-embed.pc ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" python-3.10.pc ; \
+	 )
+	# ======= tune target Python _sysconfigdata.py script =======
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python3.10/lib-dynload ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g" _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILD),$(TARGET),g"                     _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET),g"               _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(CROSS_PREFIX),/usr/bin/,g"              _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                        _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,--sysroot=,,g"                            _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   host=`cat _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py | grep "'HOST_GNU_TYPE'" | sed "s,.*'HOST_GNU_TYPE': '\([^\']*\)'.*,\1,"` ; \
+	   sed -i "s|\(BUILD_GNU_TYPE': '\).*$$|\1$$host',|" _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   machdep=`cat _sysconfigdata__linux_x86_64-linux-gnu.py | grep "'MACHDEP'" | sed "s,.*'MACHDEP': '\([^\']*\)'.*,\1,"` ; \
+	   multiarch=`cat _sysconfigdata__linux_x86_64-linux-gnu.py | grep "'MULTIARCH'" | sed "s,.*'MULTIARCH': '\([^\']*\)'.*,\1,"` ; \
+	   if [ "$(PY_BUILD_MACHDEP)" != "$${machdep}" -o "$(PY_BUILD_MULTIARCH)" != "$${multiarch}" ] ; then \
+	     mv _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py _sysconfigdata__$${machdep}_$${multiarch}.py ; \
+	   fi ; \
+	 )
+	@chmod +w $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libpython*.so*
+	# ======= tune LIBPL config-3.10*/Makefile for target machine =======
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python3.10 ; \
+	   sed -i 's,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g' config-3.10*/Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    config-3.10*/Makefile ; \
+	   sed -i 's,$(TOOLCHAIN_PATH),/usr,g'                 config-3.10*/Makefile ; \
+	   sed -i 's,$(TARGET)-,,g'                            config-3.10*/Makefile ; \
+	   sed -i 's, --sysroot=,,g'                           config-3.10*/Makefile ; \
+	   sed -i "s, '--build=[^\']*',,g"                     config-3.10*/Makefile ; \
+	   sed -i "s, '--host=[^\']*',,g"                      config-3.10*/Makefile ; \
+	   sed -i "s, 'build_alias=[^\']*',,g"                 config-3.10*/Makefile ; \
+	   sed -i "s, 'host_alias=[^\']*',,g"                  config-3.10*/Makefile ; \
+	   host=`cat config-3.10*/Makefile | grep '^HOST_GNU_TYPE' | sed 's,HOST_GNU_TYPE=[ \t]*\(.*\)$$,\1,'` ; \
+	   sed -i "s,\(^BUILD_GNU_TYPE=[ \t]*\).*,\1$$host,"   config-3.10*/Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    config-3.10*/Setup ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PYTHON32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PYTHON32_PKG_DESCRIPTION_FILE): $(PYTHON32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PYTHON32_PKG_DESCRIPTION_FILE) $(PYTHON32_PKG_INSTALL_SCRIPT)
+	@cp $(PYTHON32_PKG_DESCRIPTION_FILE) $(PYTHON32_PKG)/.DESCRIPTION
+	@cp $(PYTHON32_PKG_INSTALL_SCRIPT) $(PYTHON32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PYTHON32_PKG)/.REQUIRES
+	@echo "pkgname=$(PYTHON32_PKG_NAME)"                            >  $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PYTHON32_PKG_VERSION)"                          >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "arch=$(PYTHON32_PKG_ARCH)"                               >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PYTHON32_PKG_DISTRO_NAME)"                  >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PYTHON32_PKG_DISTRO_VERSION)"                >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "group=$(PYTHON32_PKG_GROUP)"                             >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PYTHON32_PKG_SHORT_DESCRIPTION)\"" >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "url=$(PYTHON32_PKG_URL)"                                 >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "license=$(PYTHON32_PKG_LICENSE)"                         >> $(PYTHON32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PYTHON32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 3.10.8-ppc32/PATCHES
===================================================================
--- 3.10.8-ppc32/PATCHES	(nonexistent)
+++ 3.10.8-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,4 @@
+
+../../../sources/packages/d/python3/patches/Python-3.10.8-readline.patch -p0
+../../../sources/packages/d/python3/patches/Python-3.10.8-compat32.patch -p0
+../../../sources/packages/d/python3/patches/Python-3.10.8-cross32.patch  -p0
Index: 3.10.8-ppc32/cross/hw.cache
===================================================================
--- 3.10.8-ppc32/cross/hw.cache	(nonexistent)
+++ 3.10.8-ppc32/cross/hw.cache	(revision 5)
@@ -0,0 +1,3 @@
+ac_cv_file__dev_ptmx=yes
+ac_cv_file__dev_ptc=no
+ac_cv_sizeof_off_t=4
Index: 3.10.8-ppc32/cross
===================================================================
--- 3.10.8-ppc32/cross	(nonexistent)
+++ 3.10.8-ppc32/cross	(revision 5)

Property changes on: 3.10.8-ppc32/cross
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8-ppc32/python3-x32-pkg-description.in
===================================================================
--- 3.10.8-ppc32/python3-x32-pkg-description.in	(nonexistent)
+++ 3.10.8-ppc32/python3-x32-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+python3-x32: python3-x32 @VERSION@ (interpreted programming language)
+python3-x32:
+python3-x32: Python is an interpreted, interactive, object-oriented programming
+python3-x32: language that combines remarkable power with very clear syntax.
+python3-x32: Python's basic power can be extended with your own modules written
+python3-x32: in C or C++. Python is also adaptable as an extension language for
+python3-x32: existing applications.
+python3-x32:
+python3-x32:
+python3-x32:
+python3-x32:
Index: 3.10.8-ppc32/python3-x32-pkg-install.sh
===================================================================
--- 3.10.8-ppc32/python3-x32-pkg-install.sh	(nonexistent)
+++ 3.10.8-ppc32/python3-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,89 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  rm -f usr/bin/32/2to3
+  ln -sfr usr/bin/32/2to3-3.10 usr/bin/32/2to3
+
+  for file in idle pydoc pynche python ; do
+    rm -f usr/bin/32/${file}
+    ln -sfr usr/bin/32/${file}3 usr/bin/32/${file}
+  done
+
+  rm -f usr/bin/32/python-config
+  ln -sfr usr/bin/32/python3-config usr/bin/32/python-config
+
+  for file in msgfmt pygettext ; do
+    rm -f usr/bin/32/${file}.py
+    ln -sfr usr/bin/32/${file}-3.10.py usr/bin/32/${file}.py
+  done
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  rm -f usr/bin/32/2to3
+  if [ -x "usr/bin/32/2to3-2.7" ] ; then
+    ln -sfr usr/bin/32/2to3-2.7 usr/bin/32/2to3
+  fi
+
+  for file in idle pydoc pynche python ; do
+    rm -f usr/bin/32/${file}
+    if [ -L "usr/bin/32/${file}2" ] ; then
+      ln -sfr usr/bin/32/${file}2 usr/bin/32/${file}
+    fi
+  done
+
+  rm -f usr/bin/32/python-config
+  if [ -L "usr/bin/32/python2-config" ] ; then
+    ln -sfr usr/bin/32/python2-config usr/bin/32/python-config
+  fi
+
+  for file in msgfmt pygettext ; do
+    rm -f usr/bin/32/${file}.py
+    if [ -L "usr/bin/32/${file}-2.7.py" ] ; then
+      ln -sfr usr/bin/32/${file}-2.7.py usr/bin/32/${file}.py
+    fi
+  done
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 3.10.8-ppc32/python3-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 3.10.8-ppc32/scripts/python-2to3
===================================================================
--- 3.10.8-ppc32/scripts/python-2to3	(nonexistent)
+++ 3.10.8-ppc32/scripts/python-2to3	(revision 5)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+program=$0
+prgpath=$(cd $(dirname $program) ; pwd -P)
+
+( cd $prgpath
+  rm -f 2to3          ; if [ -x 2to3-3.10         -o -L 2to3-3.10         ] ; then ln -sf 2to3-3.10         2to3          ; fi
+  rm -f easy_install  ; if [ -x easy_install-3.10 -o -L easy_install-3.10 ] ; then ln -sf easy_install-3.10 easy_install  ; fi
+  rm -f idle          ; if [ -x idle3             -o -L idle3             ] ; then ln -sf idle3             idle          ; fi
+  rm -f pip           ; if [ -x pip3              -o -L pip3              ] ; then ln -sf pip3              pip           ; fi
+  rm -f pydoc         ; if [ -x pydoc3            -o -L pydoc3            ] ; then ln -sf pydoc3            pydoc         ; fi
+  rm -f pynche        ; if [ -x pynche3           -o -L pynche3           ] ; then ln -sf pynche3           pynche        ; fi
+  rm -f msgfmt.py     ; if [ -x msgfmt-3.10.py    -o -L msgfmt-3.10.py    ] ; then ln -sf msgfmt-3.10.py    msgfmt.py     ; fi
+  rm -f pygettext.py  ; if [ -x pygettext-3.10.py -o -L pygettext-3.10.py ] ; then ln -sf pygettext-3.10.py pygettext.py  ; fi
+  rm -f python        ; if [ -x python3           -o -L python3           ] ; then ln -sf python3           python        ; fi
+  rm -f python-config ; if [ -x python3-config    -o -L python3-config    ] ; then ln -sf python3-config    python-config ; fi
+)
Index: 3.10.8-ppc32/scripts/python-3to2
===================================================================
--- 3.10.8-ppc32/scripts/python-3to2	(nonexistent)
+++ 3.10.8-ppc32/scripts/python-3to2	(revision 5)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+program=$0
+prgpath=$(cd $(dirname $program) ; pwd -P)
+
+( cd $prgpath
+  rm -f 2to3          ; if [ -x 2to3-2.7         -o -L 2to3-2.7         ] ; then ln -sf 2to3-2.7         2to3          ; fi
+  rm -f easy_install  ; if [ -x easy_install-2.7 -o -L easy_install-2.7 ] ; then ln -sf easy_install-2.7 easy_install  ; fi
+  rm -f idle          ; if [ -x idle2            -o -L idle2            ] ; then ln -sf idle2            idle          ; fi
+  rm -f pip           ; if [ -x pip2             -o -L pip2             ] ; then ln -sf pip2             pip           ; fi
+  rm -f pydoc         ; if [ -x pydoc2           -o -L pydoc2           ] ; then ln -sf pydoc2           pydoc         ; fi
+  rm -f pynche        ; if [ -x pynche2          -o -L pynche2          ] ; then ln -sf pynche2          pynche        ; fi
+  rm -f msgfmt.py     ; if [ -x msgfmt-2.7.py    -o -L msgfmt-2.7.py    ] ; then ln -sf msgfmt-2.7.py    msgfmt.py     ; fi
+  rm -f pygettext.py  ; if [ -x pygettext-2.7.py -o -L pygettext-2.7.py ] ; then ln -sf pygettext-2.7.py pygettext.py  ; fi
+  rm -f python        ; if [ -x python2          -o -L python2          ] ; then ln -sf python2          python        ; fi
+  rm -f python-config ; if [ -x python2-config   -o -L python2-config   ] ; then ln -sf python2-config   python-config ; fi
+
+)
Index: 3.10.8-ppc32/scripts
===================================================================
--- 3.10.8-ppc32/scripts	(nonexistent)
+++ 3.10.8-ppc32/scripts	(revision 5)

Property changes on: 3.10.8-ppc32/scripts
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8-ppc32
===================================================================
--- 3.10.8-ppc32	(nonexistent)
+++ 3.10.8-ppc32	(revision 5)

Property changes on: 3.10.8-ppc32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8-x86_32/Makefile
===================================================================
--- 3.10.8-x86_32/Makefile	(nonexistent)
+++ 3.10.8-x86_32/Makefile	(revision 5)
@@ -0,0 +1,254 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/python3
+
+REQUIRES           = dev/python3/3.10.8
+REQUIRES          += env/libuuid/2.38.1-x86_32
+REQUIRES          += app/xz/5.2.7-x86_32
+REQUIRES          += app/bzip2/1.0.8-x86_32
+REQUIRES          += app/sqlite/3.39.4.0-x86_32
+REQUIRES          += libs/libffi/3.4.4-x86_32
+REQUIRES          += libs/expat/2.5.0-x86_32
+REQUIRES          += libs/gdbm/1.23-x86_32
+REQUIRES          += net/openssl/1.1.1r-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.10.8
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python3/Python-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Python-$(version)
+src_dir_name       = Python-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+scripts_dir        = $(CURDIR)/scripts
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+hw_cache_in        = $(CURDIR)/cross/hw.cache
+hw_cache           = $(CURDIR)/$(SRC_DIR)/hw.cache
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PYTHON32_PKG_NAME                = python3-x32
+PYTHON32_PKG_VERSION             = 3.10.8
+PYTHON32_PKG_ARCH                = $(PKGARCH)
+PYTHON32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PYTHON32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PYTHON32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+PYTHON32_PKG_SHORT_DESCRIPTION   = interpreted programming language
+PYTHON32_PKG_URL                 = $(BUG_URL)
+PYTHON32_PKG_LICENSE             = GPLv2
+PYTHON32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PYTHON32_PKG_NAME)-pkg-description
+PYTHON32_PKG_DESCRIPTION_FILE_IN = $(PYTHON32_PKG_NAME)-pkg-description.in
+PYTHON32_PKG_INSTALL_SCRIPT      = $(PYTHON32_PKG_NAME)-pkg-install.sh
+
+PYTHON32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PYTHON32_PKG_NAME)-package
+
+pkg_basename     = $(PYTHON32_PKG_NAME)-$(PYTHON32_PKG_VERSION)-$(PYTHON32_PKG_ARCH)-$(PYTHON32_PKG_DISTRO_NAME)-$(PYTHON32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate  = $(call cert-name,$(pkg_archive))
+pkg_signature    = $(call sign-name,$(pkg_archive))
+pkg_description  = $(call desc-name,$(pkg_archive))
+products         = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS    = $(build_target)
+BUILD_TARGETS   += $(install_target)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+env_sysroot = DESTDIR=$(PYTHON32_PKG)
+
+LDFLAGS    += -L.
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --with-platlibdir=lib32
+extra_configure_switches += --with-system-expat
+extra_configure_switches += --with-system-ffi
+extra_configure_switches += --with-threads
+extra_configure_switches += --without-ensurepip
+extra_configure_switches += --enable-ipv6
+extra_configure_switches += --enable-loadable-sqlite-extensions
+extra_configure_switches += --enable-shared
+
+extra_configure_switches += --cache-file=$(hw_cache)
+
+python_environment  = RFS=$(TARGET_DEST_DIR)
+python_environment += HOSTARCH=$(TARGET32)
+python_environment += BUILDARCH=$(BUILD)
+python_environment += PYTHONHOME=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python3.10
+python_environment += ac_cv_prog_READELF=$(TOOLCHAIN_PATH)/bin/$(TARGET)-readelf
+python_environment += LDFLAGS=-Wl,-rpath,/lib32:/usr/lib32
+python_environment += PYTHON3=$(PYTHON3)
+python_environment += PGEN3=$(PGEN3)
+
+BUILD_ALIAS = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+
+PY_BUILD_MULTIARCH = x86_64-linux-gnu
+PY_BUILD_MACHDEP   = linux
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i '1s|^#.*/usr/local/bin/python|#!/usr/bin/python3|' Lib/cgi.py ; \
+	   sed -i 's|\("install",\)|\1 "--ignore-installed",|' Lib/ensurepip/__init__.py ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   sed -i 's,^OPENSSL=/usr,OPENSSL=$(TARGET_DEST_DIR)/usr,' Modules/Setup ; \
+	   sed -i 's,^ZLIB=/usr,ZLIB=$(TARGET_DEST_DIR)/usr,'       Modules/Setup ; \
+	 )
+	@cp -a $(hw_cache_in) $(hw_cache)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) ./configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PYTHON32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(python_environment) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install 2to3/3to2 scripts =======
+	@mkdir -p $(PYTHON32_PKG)/usr/bin/32
+	@cat $(scripts_dir)/python-2to3 > $(PYTHON32_PKG)/usr/bin/32/python-2to3
+	@cat $(scripts_dir)/python-3to2 > $(PYTHON32_PKG)/usr/bin/32/python-3to2
+	@chmod 0755 $(PYTHON32_PKG)/usr/bin/32/python-2to3
+	@chmod 0755 $(PYTHON32_PKG)/usr/bin/32/python-3to2
+	# ======= copy pyconfig.h for x86_32 =======
+	@rm -rf $(PYTHON32_PKG)/usr/include/python3.10/cpython
+	@rm -rf $(PYTHON32_PKG)/usr/include/python3.10/internal
+	@( cd $(PYTHON32_PKG)/usr/include ; \
+	   mv python3.10/pyconfig.h . ; \
+	   rm -f python3.10/* ; \
+	   mv pyconfig.h python3.10/pyconfig-32.h ; \
+	 )
+	@rm -rf $(PYTHON32_PKG)/usr/share
+	@mkdir -p $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python3.10/site-packages
+	@( cd $(SRC_DIR) ; \
+	   rm -rf Tools/buildbot ; \
+	   mv Tools/README Tools/README.python-tools ; \
+	   cp -a Tools/* \
+	         $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python3.10/site-packages \
+	 )
+	@mkdir -p $(PYTHON32_PKG)/usr/bin/32
+	@( cd $(PYTHON32_PKG)/usr/bin/32 ; \
+	   rm -f 2to3 ; \
+	   ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/python3.10/site-packages/pynche/pynche pynche3 ; \
+	   ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/python3.10/site-packages/i18n/msgfmt.py msgfmt-3.10.py ; \
+	   ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/python3.10/site-packages/i18n/pygettext.py pygettext-3.10.py ; \
+	 )
+	# ======= tune python3.10-config CFLAGS for target machine =======
+	@( cd $(PYTHON32_PKG)/usr/bin/32 ; \
+	   sed -i 's,RESULT=\(\$$(dirname .*\)$$,RESULT=\$$(dirname \1),' python3.10-config ; \
+	   sed -i 's,includedir=$$(echo "$${prefix},includedir=$$(echo "/usr,g' python3.10-config ; \
+	   sed -i 's,LIBPL=$$(echo "$${prefix},LIBPL=$$(echo "/usr,g' python3.10-config ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" python3.10-config ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PYTHON32_PKG))
+	# ======= tune pkg-config *.pc search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" python-3.10.pc ; \
+	 )
+	# ======= tune target Python _sysconfigdata.py script =======
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python3.10/lib-dynload ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g" _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILD),$(TARGET),g"                     _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET),g"               _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(CROSS_PREFIX),/usr/bin/,g"              _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                        _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   sed -i "s,--sysroot=,,g"                            _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   host=`cat _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py | grep "'HOST_GNU_TYPE'" | sed "s,.*'HOST_GNU_TYPE': '\([^\']*\)'.*,\1,"` ; \
+	   sed -i "s|\(BUILD_GNU_TYPE': '\).*$$|\1$$host',|" _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py ; \
+	   machdep=`cat _sysconfigdata__linux_x86_64-linux-gnu.py | grep "'MACHDEP'" | sed "s,.*'MACHDEP': '\([^\']*\)'.*,\1,"` ; \
+	   multiarch=`cat _sysconfigdata__linux_x86_64-linux-gnu.py | grep "'MULTIARCH'" | sed "s,.*'MULTIARCH': '\([^\']*\)'.*,\1,"` ; \
+	   if [ "$(PY_BUILD_MACHDEP)" != "$${machdep}" -o "$(PY_BUILD_MULTIARCH)" != "$${multiarch}" ] ; then \
+	     mv _sysconfigdata__$(PY_BUILD_MACHDEP)_$(PY_BUILD_MULTIARCH).py _sysconfigdata__$${machdep}_$${multiarch}.py ; \
+	   fi ; \
+	 )
+	@chmod +w $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libpython*.so*
+	# ======= tune LIBPL config-3.10*/Makefile for target machine =======
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python3.10 ; \
+	   sed -i 's,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g' config-3.10*/Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    config-3.10*/Makefile ; \
+	   sed -i 's,$(TOOLCHAIN_PATH),/usr,g'                 config-3.10*/Makefile ; \
+	   sed -i 's,$(TARGET)-,,g'                            config-3.10*/Makefile ; \
+	   sed -i 's, --sysroot=,,g'                           config-3.10*/Makefile ; \
+	   sed -i "s, '--build=[^\']*',,g"                     config-3.10*/Makefile ; \
+	   sed -i "s, '--host=[^\']*',,g"                      config-3.10*/Makefile ; \
+	   sed -i "s, 'build_alias=[^\']*',,g"                 config-3.10*/Makefile ; \
+	   sed -i "s, 'host_alias=[^\']*',,g"                  config-3.10*/Makefile ; \
+	   host=`cat config-3.10*/Makefile | grep '^HOST_GNU_TYPE' | sed 's,HOST_GNU_TYPE=[ \t]*\(.*\)$$,\1,'` ; \
+	   sed -i "s,\(^BUILD_GNU_TYPE=[ \t]*\).*,\1$$host,"   config-3.10*/Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    config-3.10*/Setup ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PYTHON32_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PYTHON32_PKG_DESCRIPTION_FILE): $(PYTHON32_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PYTHON32_PKG_DESCRIPTION_FILE) $(PYTHON32_PKG_INSTALL_SCRIPT)
+	@cp $(PYTHON32_PKG_DESCRIPTION_FILE) $(PYTHON32_PKG)/.DESCRIPTION
+	@cp $(PYTHON32_PKG_INSTALL_SCRIPT) $(PYTHON32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PYTHON32_PKG)/.REQUIRES
+	@echo "pkgname=$(PYTHON32_PKG_NAME)"                            >  $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PYTHON32_PKG_VERSION)"                          >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "arch=$(PYTHON32_PKG_ARCH)"                               >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PYTHON32_PKG_DISTRO_NAME)"                  >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PYTHON32_PKG_DISTRO_VERSION)"                >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "group=$(PYTHON32_PKG_GROUP)"                             >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PYTHON32_PKG_SHORT_DESCRIPTION)\"" >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "url=$(PYTHON32_PKG_URL)"                                 >> $(PYTHON32_PKG)/.PKGINFO ; \
+	 echo "license=$(PYTHON32_PKG_LICENSE)"                         >> $(PYTHON32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PYTHON32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 3.10.8-x86_32/PATCHES
===================================================================
--- 3.10.8-x86_32/PATCHES	(nonexistent)
+++ 3.10.8-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,4 @@
+
+../../../sources/packages/d/python3/patches/Python-3.10.8-readline.patch -p0
+../../../sources/packages/d/python3/patches/Python-3.10.8-compat32.patch -p0
+../../../sources/packages/d/python3/patches/Python-3.10.8-cross32.patch  -p0
Index: 3.10.8-x86_32/cross/hw.cache
===================================================================
--- 3.10.8-x86_32/cross/hw.cache	(nonexistent)
+++ 3.10.8-x86_32/cross/hw.cache	(revision 5)
@@ -0,0 +1,3 @@
+ac_cv_file__dev_ptmx=yes
+ac_cv_file__dev_ptc=no
+ac_cv_sizeof_off_t=4
Index: 3.10.8-x86_32/cross
===================================================================
--- 3.10.8-x86_32/cross	(nonexistent)
+++ 3.10.8-x86_32/cross	(revision 5)

Property changes on: 3.10.8-x86_32/cross
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8-x86_32/python3-x32-pkg-description.in
===================================================================
--- 3.10.8-x86_32/python3-x32-pkg-description.in	(nonexistent)
+++ 3.10.8-x86_32/python3-x32-pkg-description.in	(revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.  Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in.  You must
+# make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':'.
+
+           |-----handy-ruler------------------------------------------------------|
+python3-x32: python3-x32 @VERSION@ (interpreted programming language)
+python3-x32:
+python3-x32: Python is an interpreted, interactive, object-oriented programming
+python3-x32: language that combines remarkable power with very clear syntax.
+python3-x32: Python's basic power can be extended with your own modules written
+python3-x32: in C or C++. Python is also adaptable as an extension language for
+python3-x32: existing applications.
+python3-x32:
+python3-x32:
+python3-x32:
+python3-x32:
Index: 3.10.8-x86_32/python3-x32-pkg-install.sh
===================================================================
--- 3.10.8-x86_32/python3-x32-pkg-install.sh	(nonexistent)
+++ 3.10.8-x86_32/python3-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,89 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+  NEW="$1"
+  OLD="`dirname $NEW`/`basename $NEW .new`"
+  # If there's no file by that name, mv it over:
+  if [ ! -r $OLD ]; then
+    mv $NEW $OLD
+  elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+    rm $NEW
+  fi
+  # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  rm -f usr/bin/32/2to3
+  ln -sfr usr/bin/32/2to3-3.10 usr/bin/32/2to3
+
+  for file in idle pydoc pynche python ; do
+    rm -f usr/bin/32/${file}
+    ln -sfr usr/bin/32/${file}3 usr/bin/32/${file}
+  done
+
+  rm -f usr/bin/32/python-config
+  ln -sfr usr/bin/32/python3-config usr/bin/32/python-config
+
+  for file in msgfmt pygettext ; do
+    rm -f usr/bin/32/${file}.py
+    ln -sfr usr/bin/32/${file}-3.10.py usr/bin/32/${file}.py
+  done
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+pre_update() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_update() {
+  post_install
+}
+
+# arg 1:  the old package version
+pre_remove() {
+  /bin/true
+}
+
+# arg 1:  the old package version
+post_remove() {
+  rm -f usr/bin/32/2to3
+  if [ -x "usr/bin/32/2to3-2.7" ] ; then
+    ln -sfr usr/bin/32/2to3-2.7 usr/bin/32/2to3
+  fi
+
+  for file in idle pydoc pynche python ; do
+    rm -f usr/bin/32/${file}
+    if [ -L "usr/bin/32/${file}2" ] ; then
+      ln -sfr usr/bin/32/${file}2 usr/bin/32/${file}
+    fi
+  done
+
+  rm -f usr/bin/32/python-config
+  if [ -L "usr/bin/32/python2-config" ] ; then
+    ln -sfr usr/bin/32/python2-config usr/bin/32/python-config
+  fi
+
+  for file in msgfmt pygettext ; do
+    rm -f usr/bin/32/${file}.py
+    if [ -L "usr/bin/32/${file}-2.7.py" ] ; then
+      ln -sfr usr/bin/32/${file}-2.7.py usr/bin/32/${file}.py
+    fi
+  done
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: 3.10.8-x86_32/python3-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 3.10.8-x86_32/scripts/python-2to3
===================================================================
--- 3.10.8-x86_32/scripts/python-2to3	(nonexistent)
+++ 3.10.8-x86_32/scripts/python-2to3	(revision 5)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+program=$0
+prgpath=$(cd $(dirname $program) ; pwd -P)
+
+( cd $prgpath
+  rm -f 2to3          ; if [ -x 2to3-3.10         -o -L 2to3-3.10         ] ; then ln -sf 2to3-3.10         2to3          ; fi
+  rm -f easy_install  ; if [ -x easy_install-3.10 -o -L easy_install-3.10 ] ; then ln -sf easy_install-3.10 easy_install  ; fi
+  rm -f idle          ; if [ -x idle3             -o -L idle3             ] ; then ln -sf idle3             idle          ; fi
+  rm -f pip           ; if [ -x pip3              -o -L pip3              ] ; then ln -sf pip3              pip           ; fi
+  rm -f pydoc         ; if [ -x pydoc3            -o -L pydoc3            ] ; then ln -sf pydoc3            pydoc         ; fi
+  rm -f pynche        ; if [ -x pynche3           -o -L pynche3           ] ; then ln -sf pynche3           pynche        ; fi
+  rm -f msgfmt.py     ; if [ -x msgfmt-3.10.py    -o -L msgfmt-3.10.py    ] ; then ln -sf msgfmt-3.10.py    msgfmt.py     ; fi
+  rm -f pygettext.py  ; if [ -x pygettext-3.10.py -o -L pygettext-3.10.py ] ; then ln -sf pygettext-3.10.py pygettext.py  ; fi
+  rm -f python        ; if [ -x python3           -o -L python3           ] ; then ln -sf python3           python        ; fi
+  rm -f python-config ; if [ -x python3-config    -o -L python3-config    ] ; then ln -sf python3-config    python-config ; fi
+)
Index: 3.10.8-x86_32/scripts/python-3to2
===================================================================
--- 3.10.8-x86_32/scripts/python-3to2	(nonexistent)
+++ 3.10.8-x86_32/scripts/python-3to2	(revision 5)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+program=$0
+prgpath=$(cd $(dirname $program) ; pwd -P)
+
+( cd $prgpath
+  rm -f 2to3          ; if [ -x 2to3-2.7         -o -L 2to3-2.7         ] ; then ln -sf 2to3-2.7         2to3          ; fi
+  rm -f easy_install  ; if [ -x easy_install-2.7 -o -L easy_install-2.7 ] ; then ln -sf easy_install-2.7 easy_install  ; fi
+  rm -f idle          ; if [ -x idle2            -o -L idle2            ] ; then ln -sf idle2            idle          ; fi
+  rm -f pip           ; if [ -x pip2             -o -L pip2             ] ; then ln -sf pip2             pip           ; fi
+  rm -f pydoc         ; if [ -x pydoc2           -o -L pydoc2           ] ; then ln -sf pydoc2           pydoc         ; fi
+  rm -f pynche        ; if [ -x pynche2          -o -L pynche2          ] ; then ln -sf pynche2          pynche        ; fi
+  rm -f msgfmt.py     ; if [ -x msgfmt-2.7.py    -o -L msgfmt-2.7.py    ] ; then ln -sf msgfmt-2.7.py    msgfmt.py     ; fi
+  rm -f pygettext.py  ; if [ -x pygettext-2.7.py -o -L pygettext-2.7.py ] ; then ln -sf pygettext-2.7.py pygettext.py  ; fi
+  rm -f python        ; if [ -x python2          -o -L python2          ] ; then ln -sf python2          python        ; fi
+  rm -f python-config ; if [ -x python2-config   -o -L python2-config   ] ; then ln -sf python2-config   python-config ; fi
+
+)
Index: 3.10.8-x86_32/scripts
===================================================================
--- 3.10.8-x86_32/scripts	(nonexistent)
+++ 3.10.8-x86_32/scripts	(revision 5)

Property changes on: 3.10.8-x86_32/scripts
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.10.8-x86_32
===================================================================
--- 3.10.8-x86_32	(nonexistent)
+++ 3.10.8-x86_32	(revision 5)

Property changes on: 3.10.8-x86_32
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~