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: Makefile
===================================================================
--- Makefile	(nonexistent)
+++ 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: PATCHES
===================================================================
--- PATCHES	(nonexistent)
+++ 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: cross/hw.cache
===================================================================
--- cross/hw.cache	(nonexistent)
+++ 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: cross
===================================================================
--- cross	(nonexistent)
+++ cross	(revision 5)

Property changes on: 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: python3-x32-pkg-description.in
===================================================================
--- python3-x32-pkg-description.in	(nonexistent)
+++ 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: python3-x32-pkg-install.sh
===================================================================
--- python3-x32-pkg-install.sh	(nonexistent)
+++ 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: python3-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: scripts/python-2to3
===================================================================
--- scripts/python-2to3	(nonexistent)
+++ 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: scripts/python-3to2
===================================================================
--- scripts/python-3to2	(nonexistent)
+++ 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: scripts
===================================================================
--- scripts	(nonexistent)
+++ scripts	(revision 5)

Property changes on: 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: .
===================================================================
--- .	(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
+*~