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: autoconf/2.71/Makefile
===================================================================
--- autoconf/2.71/Makefile	(nonexistent)
+++ autoconf/2.71/Makefile	(revision 5)
@@ -0,0 +1,211 @@
+
+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/GNU/autoconf
+
+REQUIRES           = app/bash/5.2
+REQUIRES          += app/gawk/5.1.0
+REQUIRES          += app/diffutils/3.8
+REQUIRES          += dev/m4/1.4.19
+REQUIRES          += dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.71
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/autoconf/autoconf-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/autoconf-$(version)
+src_dir_name       = autoconf-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+AUTOCONF_PKG_NAME                = autoconf
+AUTOCONF_PKG_VERSION             = 2.71
+AUTOCONF_PKG_ARCH                = $(PKGARCH)
+AUTOCONF_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+AUTOCONF_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+AUTOCONF_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+AUTOCONF_PKG_SHORT_DESCRIPTION   = generate configuration scripts
+AUTOCONF_PKG_URL                 = $(BUG_URL)
+AUTOCONF_PKG_LICENSE             = GPLv3
+AUTOCONF_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(AUTOCONF_PKG_NAME)-pkg-description
+AUTOCONF_PKG_DESCRIPTION_FILE_IN = $(AUTOCONF_PKG_NAME)-pkg-description.in
+AUTOCONF_PKG_INSTALL_SCRIPT      = $(AUTOCONF_PKG_NAME)-pkg-install.sh
+
+AUTOCONF_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(AUTOCONF_PKG_NAME)-package
+
+pkg_basename     = $(AUTOCONF_PKG_NAME)-$(AUTOCONF_PKG_VERSION)-$(AUTOCONF_PKG_ARCH)-$(AUTOCONF_PKG_DISTRO_NAME)-$(AUTOCONF_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=$(AUTOCONF_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(AUTOCONF_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@rm -f $(AUTOCONF_PKG)/usr/share/info/dir
+	@gzip -9 $(AUTOCONF_PKG)/usr/share/info/*
+	@if [ -d $(AUTOCONF_PKG)/usr/share/man ]; then \
+	  ( cd $(AUTOCONF_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 $(AUTOCONF_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(AUTOCONF_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(AUTOCONF_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS BUGS COPYING* INSTALL NEWS README THANKS TODO \
+	         $(AUTOCONF_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog.3 ]; then \
+	     DOCSDIR=`echo $(AUTOCONF_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog.3 | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog.3 $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(AUTOCONF_PKG))
+	# ======= remove build-system path from autoconf scripts =======
+	@find $(AUTOCONF_PKG)/usr/bin -type f -exec sed -i 's,$(BUILDSYSTEM),,g' {} \;
+	@touch $@
+
+$(AUTOCONF_PKG_DESCRIPTION_FILE): $(AUTOCONF_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) $(AUTOCONF_PKG_DESCRIPTION_FILE) $(AUTOCONF_PKG_INSTALL_SCRIPT)
+	@cp $(AUTOCONF_PKG_DESCRIPTION_FILE) $(AUTOCONF_PKG)/.DESCRIPTION
+	@cp $(AUTOCONF_PKG_INSTALL_SCRIPT) $(AUTOCONF_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(AUTOCONF_PKG)/.REQUIRES
+	@echo "pkgname=$(AUTOCONF_PKG_NAME)"                            >  $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(AUTOCONF_PKG_VERSION)"                          >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "arch=$(AUTOCONF_PKG_ARCH)"                               >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "distroname=$(AUTOCONF_PKG_DISTRO_NAME)"                  >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "distrover=$(AUTOCONF_PKG_DISTRO_VERSION)"                >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "group=$(AUTOCONF_PKG_GROUP)"                             >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(AUTOCONF_PKG_SHORT_DESCRIPTION)\"" >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "url=$(AUTOCONF_PKG_URL)"                                 >> $(AUTOCONF_PKG)/.PKGINFO ; \
+	 echo "license=$(AUTOCONF_PKG_LICENSE)"                         >> $(AUTOCONF_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(AUTOCONF_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: autoconf/2.71/PATCHES
===================================================================
Index: autoconf/2.71/autoconf-pkg-description.in
===================================================================
--- autoconf/2.71/autoconf-pkg-description.in	(nonexistent)
+++ autoconf/2.71/autoconf-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------------------------------------------------------|
+autoconf: autoconf @VERSION@ (generate configuration scripts)
+autoconf:
+autoconf: GNU autoconf is an extensible package of m4 macros that produce
+autoconf: shell scripts to automatically configure software source code
+autoconf: packages. These scripts can adapt the packages to many kinds of
+autoconf: UNIX-like systems without manual user intervention. Autoconf creates
+autoconf: a configuration script for a package from a template file that lists
+autoconf: the operating system features that the package can use, in the form
+autoconf: of m4 macro calls. You must install the "m4" package to be able to
+autoconf: use autoconf.
+autoconf:
Index: autoconf/2.71/autoconf-pkg-install.sh
===================================================================
--- autoconf/2.71/autoconf-pkg-install.sh	(nonexistent)
+++ autoconf/2.71/autoconf-pkg-install.sh	(revision 5)
@@ -0,0 +1,100 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/standards.info.gz 2>/dev/null
+  elif ! grep "(standards)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+GNU organization
+* Standards: (standards).       GNU coding standards.
+EOF
+  fi
+
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/autoconf.info.gz 2>/dev/null
+  elif ! grep "(autoconf)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Individual utilities
+* autoconf-invocation: (autoconf)autoconf Invocation.
+                                                How to create configuration 
+                                                  scripts
+* autoheader: (autoconf)autoheader Invocation.  How to create configuration 
+                                                  templates
+* autom4te: (autoconf)autom4te Invocation.      The Autoconf executables 
+                                                  backbone
+* autoreconf: (autoconf)autoreconf Invocation.  Remaking multiple 
+                                                  ‘configure’ scripts
+* autoscan: (autoconf)autoscan Invocation.      Semi-automatic 
+                                                  ‘configure.ac’ writing
+* autoupdate: (autoconf)autoupdate Invocation.  Automatic update of 
+                                                  ‘configure.ac’
+* config.status: (autoconf)config.status Invocation.
+                                                Recreating configurations.
+* configure: (autoconf)configure Invocation.    Configuring a package.
+* ifnames: (autoconf)ifnames Invocation.        Listing conditionals in source.
+* testsuite: (autoconf)testsuite Invocation.    Running an Autotest test suite.
+
+Software development
+* Autoconf: (autoconf).         Create source code configuration scripts.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/standards.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/autoconf.info.gz  --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: autoconf/2.71/autoconf-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: autoconf/2.71
===================================================================
--- autoconf/2.71	(nonexistent)
+++ autoconf/2.71	(revision 5)

Property changes on: autoconf/2.71
___________________________________________________________________
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: autoconf
===================================================================
--- autoconf	(nonexistent)
+++ autoconf	(revision 5)

Property changes on: autoconf
___________________________________________________________________
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: autoconf-archive/2022.09.03/Makefile
===================================================================
--- autoconf-archive/2022.09.03/Makefile	(nonexistent)
+++ autoconf-archive/2022.09.03/Makefile	(revision 5)
@@ -0,0 +1,207 @@
+
+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/GNU/autoconf-archive
+
+REQUIRES           = app/bash/5.2
+REQUIRES          += dev/m4/1.4.19
+REQUIRES          += dev/automake/1.16.3
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2022.09.03
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/autoconf-archive/autoconf-archive-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/autoconf-archive-$(version)
+src_dir_name       = autoconf-archive-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+AC_ARCHIVE_PKG_NAME                = autoconf-archive
+AC_ARCHIVE_PKG_VERSION             = 2022.09.03
+AC_ARCHIVE_PKG_ARCH                = $(PKGARCH)
+AC_ARCHIVE_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+AC_ARCHIVE_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+AC_ARCHIVE_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+AC_ARCHIVE_PKG_SHORT_DESCRIPTION   = macros for GNU Autoconf
+AC_ARCHIVE_PKG_URL                 = $(BUG_URL)
+AC_ARCHIVE_PKG_LICENSE             = GPLv3
+AC_ARCHIVE_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(AC_ARCHIVE_PKG_NAME)-pkg-description
+AC_ARCHIVE_PKG_DESCRIPTION_FILE_IN = $(AC_ARCHIVE_PKG_NAME)-pkg-description.in
+AC_ARCHIVE_PKG_INSTALL_SCRIPT      = $(AC_ARCHIVE_PKG_NAME)-pkg-install.sh
+
+AC_ARCHIVE_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(AC_ARCHIVE_PKG_NAME)-package
+
+pkg_basename     = $(AC_ARCHIVE_PKG_NAME)-$(AC_ARCHIVE_PKG_VERSION)-$(AC_ARCHIVE_PKG_ARCH)-$(AC_ARCHIVE_PKG_DISTRO_NAME)-$(AC_ARCHIVE_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=$(AC_ARCHIVE_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(AC_ARCHIVE_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(AC_ARCHIVE_PKG)/usr/share ; rm -rf autoconf-archive )
+	# ======= Install Documentation =======
+	@rm -f $(AC_ARCHIVE_PKG)/usr/share/info/dir
+	@gzip -9 $(AC_ARCHIVE_PKG)/usr/share/info/*
+	@if [ -d $(AC_ARCHIVE_PKG)/usr/share/man ]; then \
+	  ( cd $(AC_ARCHIVE_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 $(AC_ARCHIVE_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(AC_ARCHIVE_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(AC_ARCHIVE_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING* INSTALL NEWS README TODO \
+	         $(AC_ARCHIVE_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(AC_ARCHIVE_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(AC_ARCHIVE_PKG))
+	@touch $@
+
+$(AC_ARCHIVE_PKG_DESCRIPTION_FILE): $(AC_ARCHIVE_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) $(AC_ARCHIVE_PKG_DESCRIPTION_FILE) $(AC_ARCHIVE_PKG_INSTALL_SCRIPT)
+	@cp $(AC_ARCHIVE_PKG_DESCRIPTION_FILE) $(AC_ARCHIVE_PKG)/.DESCRIPTION
+	@cp $(AC_ARCHIVE_PKG_INSTALL_SCRIPT) $(AC_ARCHIVE_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(AC_ARCHIVE_PKG)/.REQUIRES
+	@echo "pkgname=$(AC_ARCHIVE_PKG_NAME)"                            >  $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(AC_ARCHIVE_PKG_VERSION)"                          >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "arch=$(AC_ARCHIVE_PKG_ARCH)"                               >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "distroname=$(AC_ARCHIVE_PKG_DISTRO_NAME)"                  >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "distrover=$(AC_ARCHIVE_PKG_DISTRO_VERSION)"                >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "group=$(AC_ARCHIVE_PKG_GROUP)"                             >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(AC_ARCHIVE_PKG_SHORT_DESCRIPTION)\"" >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "url=$(AC_ARCHIVE_PKG_URL)"                                 >> $(AC_ARCHIVE_PKG)/.PKGINFO ; \
+	 echo "license=$(AC_ARCHIVE_PKG_LICENSE)"                         >> $(AC_ARCHIVE_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(AC_ARCHIVE_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: autoconf-archive/2022.09.03/PATCHES
===================================================================
Index: autoconf-archive/2022.09.03/autoconf-archive-pkg-description.in
===================================================================
--- autoconf-archive/2022.09.03/autoconf-archive-pkg-description.in	(nonexistent)
+++ autoconf-archive/2022.09.03/autoconf-archive-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------------------------------------------------------|
+autoconf-archive: autoconf-archive @VERSION@ (macros for GNU Autoconf)
+autoconf-archive:
+autoconf-archive: The GNU Autoconf Archive is a collection of more than 450 macros for
+autoconf-archive: GNU Autoconf that have been contributed as free software by friendly
+autoconf-archive: supporters of the cause from all over the Internet. Every single one
+autoconf-archive: of those macros can be re-used without imposing any restrictions
+autoconf-archive: whatsoever on the licensing of the generated configure script. In
+autoconf-archive: particular, it is possible to use all those macros in configure
+autoconf-archive: scripts that are meant for non-free software.
+autoconf-archive:
+autoconf-archive:
Index: autoconf-archive/2022.09.03/autoconf-archive-pkg-install.sh
===================================================================
--- autoconf-archive/2022.09.03/autoconf-archive-pkg-install.sh	(nonexistent)
+++ autoconf-archive/2022.09.03/autoconf-archive-pkg-install.sh	(revision 5)
@@ -0,0 +1,70 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/autoconf-archive.info.gz 2>/dev/null
+  elif ! grep "(autoconf-archive)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Software development
+* Autoconf Archive: (autoconf-archive).
+                                A collection of re-usable Autoconf macros.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/autoconf-archive.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: autoconf-archive/2022.09.03/autoconf-archive-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: autoconf-archive/2022.09.03
===================================================================
--- autoconf-archive/2022.09.03	(nonexistent)
+++ autoconf-archive/2022.09.03	(revision 5)

Property changes on: autoconf-archive/2022.09.03
___________________________________________________________________
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: autoconf-archive
===================================================================
--- autoconf-archive	(nonexistent)
+++ autoconf-archive	(revision 5)

Property changes on: autoconf-archive
___________________________________________________________________
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: automake/1.16.3/Makefile
===================================================================
--- automake/1.16.3/Makefile	(nonexistent)
+++ automake/1.16.3/Makefile	(revision 5)
@@ -0,0 +1,224 @@
+
+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/GNU/automake
+
+REQUIRES           = app/bash/5.2
+REQUIRES          += dev/autoconf/2.71
+REQUIRES          += dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.16.3
+short_version      = $(shell echo $(version) | cut -f1,2 -d .)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/automake/automake-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/automake-$(version)
+src_dir_name       = automake-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+AUTOMAKE_PKG_NAME                = automake
+AUTOMAKE_PKG_VERSION             = 1.16.3
+AUTOMAKE_PKG_ARCH                = $(PKGARCH)
+AUTOMAKE_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+AUTOMAKE_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+AUTOMAKE_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+AUTOMAKE_PKG_SHORT_DESCRIPTION   = Makefile generator
+AUTOMAKE_PKG_URL                 = $(BUG_URL)
+AUTOMAKE_PKG_LICENSE             = GPLv2
+AUTOMAKE_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(AUTOMAKE_PKG_NAME)-pkg-description
+AUTOMAKE_PKG_DESCRIPTION_FILE_IN = $(AUTOMAKE_PKG_NAME)-pkg-description.in
+AUTOMAKE_PKG_INSTALL_SCRIPT      = $(AUTOMAKE_PKG_NAME)-pkg-install.sh
+
+AUTOMAKE_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(AUTOMAKE_PKG_NAME)-package
+
+pkg_basename     = $(AUTOMAKE_PKG_NAME)-$(AUTOMAKE_PKG_VERSION)-$(AUTOMAKE_PKG_ARCH)-$(AUTOMAKE_PKG_DISTRO_NAME)-$(AUTOMAKE_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=$(AUTOMAKE_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(AUTOMAKE_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(AUTOMAKE_PKG)/usr/bin ; \
+	   rm -f aclocal ; \
+	   ln -sf aclocal-$(short_version) aclocal ; \
+	   rm -f automake ; \
+	   ln -sf automake-$(short_version) automake ; \
+	 )
+	@( cd $(AUTOMAKE_PKG)/usr/share/man/man1 ; \
+	   rm -f aclocal.1 ; \
+	   ln -sf aclocal-$(short_version).1 aclocal.1 ; \
+	   rm -f automake.1 ; \
+	   ln -sf automake-$(short_version).1 automake.1 ; \
+	 )
+	@mkdir -p $(AUTOMAKE_PKG)/usr/share/aclocal
+	@touch $(AUTOMAKE_PKG)/usr/share/aclocal
+	# ======= Install Documentation =======
+	@rm -f $(AUTOMAKE_PKG)/usr/share/info/dir
+	@gzip -9 $(AUTOMAKE_PKG)/usr/share/info/*
+	@if [ -d $(AUTOMAKE_PKG)/usr/share/man ]; then \
+	  ( cd $(AUTOMAKE_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 $(AUTOMAKE_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(AUTOMAKE_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(AUTOMAKE_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING HACKING INSTALL NEWS README THANKS \
+	         $(AUTOMAKE_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(AUTOMAKE_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(AUTOMAKE_PKG))
+	# ======= remove build-system path from autoconf scripts =======
+	@find $(AUTOMAKE_PKG)/usr/bin -type f -exec sed -i 's,$(BUILDSYSTEM),,g' {} \;
+	@touch $@
+
+$(AUTOMAKE_PKG_DESCRIPTION_FILE): $(AUTOMAKE_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) $(AUTOMAKE_PKG_DESCRIPTION_FILE) $(AUTOMAKE_PKG_INSTALL_SCRIPT)
+	@cp $(AUTOMAKE_PKG_DESCRIPTION_FILE) $(AUTOMAKE_PKG)/.DESCRIPTION
+	@cp $(AUTOMAKE_PKG_INSTALL_SCRIPT) $(AUTOMAKE_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(AUTOMAKE_PKG)/.REQUIRES
+	@echo "pkgname=$(AUTOMAKE_PKG_NAME)"                            >  $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(AUTOMAKE_PKG_VERSION)"                          >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "arch=$(AUTOMAKE_PKG_ARCH)"                               >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "distroname=$(AUTOMAKE_PKG_DISTRO_NAME)"                  >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "distrover=$(AUTOMAKE_PKG_DISTRO_VERSION)"                >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "group=$(AUTOMAKE_PKG_GROUP)"                             >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(AUTOMAKE_PKG_SHORT_DESCRIPTION)\"" >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "url=$(AUTOMAKE_PKG_URL)"                                 >> $(AUTOMAKE_PKG)/.PKGINFO ; \
+	 echo "license=$(AUTOMAKE_PKG_LICENSE)"                         >> $(AUTOMAKE_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(AUTOMAKE_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: automake/1.16.3/PATCHES
===================================================================
Index: automake/1.16.3/automake-pkg-description.in
===================================================================
--- automake/1.16.3/automake-pkg-description.in	(nonexistent)
+++ automake/1.16.3/automake-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------------------------------------------------------|
+automake: automake @VERSION@ (a Makefile generator)
+automake:
+automake: This is Automake, a Makefile generator. It was inspired by the 4.4
+automake: BSD make and include files, but aims to be portable and to conform
+automake: to the GNU standards for Makefile variables and targets. Automake is
+automake: a Perl script. The input files are called Makefile.am. The output
+automake: files are called Makefile.in; they are intended for use with
+automake: Autoconf. Automake requires certain things to be done in your
+automake: configure.in. You must install the "m4" and "perl" packages to be
+automake: able to use automake.
+automake:
Index: automake/1.16.3/automake-pkg-install.sh
===================================================================
--- automake/1.16.3/automake-pkg-install.sh	(nonexistent)
+++ automake/1.16.3/automake-pkg-install.sh	(revision 5)
@@ -0,0 +1,79 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/automake.info.gz         2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/automake-history.info.gz 2>/dev/null
+  elif ! grep "(automake)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Individual utilities
+* aclocal-invocation: (automake)aclocal Invocation.
+                                                Generating aclocal.m4.
+* automake-invocation: (automake)automake Invocation.
+                                                Generating Makefile.in.
+
+Software development
+* Automake: (automake).         Making GNU standards-compliant Makefiles.
+* Automake-history: (automake-history).
+                                History of Automake development.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/automake.info.gz         --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/automake-history.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: automake/1.16.3/automake-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: automake/1.16.3
===================================================================
--- automake/1.16.3	(nonexistent)
+++ automake/1.16.3	(revision 5)

Property changes on: automake/1.16.3
___________________________________________________________________
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: automake
===================================================================
--- automake	(nonexistent)
+++ automake	(revision 5)

Property changes on: automake
___________________________________________________________________
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: binutils/2.39/Makefile
===================================================================
--- binutils/2.39/Makefile	(nonexistent)
+++ binutils/2.39/Makefile	(revision 5)
@@ -0,0 +1,713 @@
+
+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/GNU/binutils
+
+REQUIRES           = libs/zlib/1.2.13
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+REQUIRES          += libs/zlib/1.2.13-ppc32
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+REQUIRES          += libs/zlib/1.2.13-x86_32
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.39
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/binutils/binutils-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/binutils-$(version)
+src_dir_name       = binutils-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+BINUTILS_DEV_PKG_NAME                = binutils
+BINUTILS_DEV_PKG_VERSION             = 2.39
+BINUTILS_DEV_PKG_ARCH                = $(PKGARCH)
+BINUTILS_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+BINUTILS_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+BINUTILS_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                   |---handy-ruler-------------------------------|
+BINUTILS_DEV_PKG_SHORT_DESCRIPTION   = GNU binary development tools
+BINUTILS_DEV_PKG_URL                 = $(BUG_URL)
+BINUTILS_DEV_PKG_LICENSE             = GPLv2
+BINUTILS_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(BINUTILS_DEV_PKG_NAME)-pkg-description
+BINUTILS_DEV_PKG_DESCRIPTION_FILE_IN = $(BINUTILS_DEV_PKG_NAME)-pkg-description.in
+BINUTILS_DEV_PKG_INSTALL_SCRIPT      = $(BINUTILS_DEV_PKG_NAME)-pkg-install.sh
+
+BINUTILS_DEV_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(BINUTILS_DEV_PKG_NAME)-package
+
+pkg_basename     = $(BINUTILS_DEV_PKG_NAME)-$(BINUTILS_DEV_PKG_VERSION)-$(BINUTILS_DEV_PKG_ARCH)-$(BINUTILS_DEV_PKG_DISTRO_NAME)-$(BINUTILS_DEV_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=$(BINUTILS_DEV_PKG)
+
+DEFAULT_LD  = ld.bfd
+
+#
+# Common controls for components:
+#
+extra_configure_switches  = --disable-dependency-tracking
+extra_configure_switches += --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --docdir=/usr/share/doc
+
+extra_configure_switches += --enable-shared
+extra_configure_switches += --disable-compressed-debug-sections
+
+# NOTE:
+#   --enable-threads, --enable-plugins - are GOLD related options
+#   --enable-multilib - default 'yes'
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-cpu=cortex-a8
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-cpu=cortex-a7
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-cpu=cortex-a17
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),aarch64-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),aarch64-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-cpu=cortex-a5
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),aarch64-radix-linux-gnu
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),aarch64-radix-linux-gnu
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a9
+extra_configure_switches += --with-fpu=vfpv3
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a15
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),arm-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=mips32r2
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-werror=no
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),mipsel-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=mips32r5
+extra_configure_switches += --with-tune=p5600
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-werror=no
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),mipsel-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=cortex-a57
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),aarch64-radix-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-64-bit-bfd
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),ppc64-$(DISTRO_NAME)-linux,powerpc64-$(DISTRO_NAME)-linux,ppc-$(DISTRO_NAME)-linux,powerpc-$(DISTRO_NAME)-linux,ppc64-linux,powerpc64-linux,ppc-linux,powerpc-linux
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-64-bit-bfd
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),ppc64le-$(DISTRO_NAME)-linux,powerpc64le-$(DISTRO_NAME)-linux,ppcle-$(DISTRO_NAME)-linux,powerpcle-$(DISTRO_NAME)-linux,ppc64le-linux,powerpc64le-linux,ppcle-linux,powerpcle-linux
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-64-bit-bfd
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),ppc64-$(DISTRO_NAME)-linux,powerpc64-$(DISTRO_NAME)-linux,ppc-$(DISTRO_NAME)-linux,powerpc-$(DISTRO_NAME)-linux,ppc64-linux,powerpc64-linux,ppc-linux,powerpc-linux
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+# standard options:
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-64-bit-bfd
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),ppc64le-$(DISTRO_NAME)-linux,powerpc64le-$(DISTRO_NAME)-linux,ppcle-$(DISTRO_NAME)-linux,powerpcle-$(DISTRO_NAME)-linux,ppc64le-linux,powerpc64le-linux,ppcle-linux,powerpcle-linux
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-abi=lp64d
+extra_configure_switches += --with-arch=rv64imafdc
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+# standard options:
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --enable-64-bit-bfd
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),riscv64-$(DISTRO_NAME)-linux,riscv64-linux
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+extra_configure_switches += --enable-initfini-array
+# standard options:
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),i586-$(DISTRO_NAME)-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+extra_configure_switches += --enable-initfini-array
+# standard options:
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),i686-$(DISTRO_NAME)-linux-gnu
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+# experimental gold linker( DEFAULT_LD=ld.bfd ):
+extra_configure_switches += --enable-gold=yes
+extra_configure_switches += --enable-ld=default
+extra_configure_switches += --enable-werror=no
+extra_configure_switches += --enable-initfini-array
+# standard options:
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --enable-64-bit-bfd
+extra_configure_switches += --enable-threads
+extra_configure_switches += --enable-plugins
+extra_configure_switches += --enable-targets=$(TARGET),x86_64-$(DISTRO_NAME)-linux
+endif
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	# ======= These pages were shipped empty and will need to be regenerated =======
+	@( cd $(SRC_DIR) ; \
+	   rm -f binutils/doc/*.1 binutils/doc/*.man gprof/gprof.1 ld/ld.1 gas/doc/as.1 ; \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)   \
+                             $(TOOLCHAIN_POWER9_GLIBC)   \
+                             $(TOOLCHAIN_POWER8LE_GLIBC) \
+                             $(TOOLCHAIN_POWER9LE_GLIBC)),)
+	# ======= On ppc64 and aarch64, we might use 64KiB pages =======
+	@( cd $(SRC_DIR) ; \
+	   sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c ; \
+	   sed -i -e '/common_pagesize/s/4 /64 /' gold/powerpc.cc ; \
+	 )
+endif
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr                             \
+	  --build=$(BUILD)                          \
+	  --host=$(TARGET)                          \
+	  --target=$(TARGET)                        \
+	  $(extra_configure_switches)
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir)
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir) info
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(BINUTILS_DEV_PKG)
+	$(BUILD_ENVIRONMENT) $(MAKE) -j1 -C $(build_dir) install $(env_sysroot)
+	$(BUILD_ENVIRONMENT) $(MAKE) -j1 -C $(build_dir) install-info $(env_sysroot)
+	# ======= Differentiate between BSD strings (util-linux) and GNU strings =======
+	@( cd $(BINUTILS_DEV_PKG)/usr/bin ; \
+	   mv strings strings-GNU ; \
+	 )
+	@( cd $(BINUTILS_DEV_PKG)/usr/share/man/man1 ; \
+	   mv strings.1 strings-GNU.1 ; \
+	 )
+	# ======= Remove unneeded man pages =======
+	@rm -f $(BINUTILS_DEV_PKG)/usr/share/man/man1/{dlltool,windmc,windres}.1
+	# ======= Install Documentation =======
+	@rm -f $(BINUTILS_DEV_PKG)/usr/share/info/dir
+	@gzip -9 $(BINUTILS_DEV_PKG)/usr/share/info/*
+	@if [ -d $(BINUTILS_DEV_PKG)/usr/share/man ]; then \
+	  ( cd $(BINUTILS_DEV_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
+	@chmod a+x $(BINUTILS_DEV_PKG)/usr/lib$(LIBSUFFIX)/lib*.la
+	@mkdir -p $(BINUTILS_DEV_PKG)/usr/doc/binutils-$(version)
+	@cp -a $(SRC_DIR)/COPYING* \
+	       $(BINUTILS_DEV_PKG)/usr/doc/binutils-$(version)
+	@mkdir -p $(BINUTILS_DEV_PKG)/usr/share/doc/binutils-$(version)
+	@cp -a $(SRC_DIR)/COPYING* $(SRC_DIR)/MAI* $(SRC_DIR)/README* \
+	       $(BINUTILS_DEV_PKG)/usr/share/doc/binutils-$(version)
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(BINUTILS_DEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove target destination path from target libtool *.la files =======
+	@( cd $(BINUTILS_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libbfd.la libctf-nobfd.la libctf.la libopcodes.la \
+	 )
+	# ======= remove target destination path from target libtool *.la files =======
+	@( cd $(BINUTILS_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s, -L$(CURDIR)/$(build_dir)/zlib,,g" libbfd.la libctf-nobfd.la libctf.la \
+	 )
+	# ======= remove (-L/usr/lib$(LIBSUFFIX) already set) libiberty.a search path in libtool *.la files too =======
+	@( cd $(BINUTILS_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,-L$(CURDIR)/$(build_dir)/bfd/../libiberty/pic,,g"     libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	   sed -i "s,-L$(CURDIR)/$(build_dir)/libctf/../libiberty/pic,,g"  libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	   sed -i "s,-L$(CURDIR)/$(build_dir)/opcodes/../libiberty/pic,,g" libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	   sed -i "s,-L$(CURDIR)/$(build_dir)/bfd/../libiberty,,g"     libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	   sed -i "s,-L$(CURDIR)/$(build_dir)/libctf/../libiberty,,g"  libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	   sed -i "s,-L$(CURDIR)/$(build_dir)/opcodes/../libiberty,,g" libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	 )
+	@if [ -r $(BINUTILS_DEV_PKG)/usr/bin/$(DEFAULT_LD) ] ; then \
+	   ( cd $(BINUTILS_DEV_PKG)/usr/bin ; rm -f ld ; ln -sf $(DEFAULT_LD) ld ) \
+	 fi
+	@mv $(BINUTILS_DEV_PKG)/usr/$(TARGET)/lib/ldscripts $(BINUTILS_DEV_PKG)/usr/lib$(LIBSUFFIX)
+	@( cd $(BINUTILS_DEV_PKG)/usr/$(TARGET) ; \
+	   rm -rf lib ; \
+	   ln -s ../lib$(LIBSUFFIX) . ; \
+	   for FILE in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib readelf strip ; do \
+	     if [ -r ../bin/$$FILE ]; then \
+	       rm -f bin/$$FILE ; \
+	       ln -s ../../bin/$$FILE bin/$$FILE ; \
+	     fi ; \
+	   done \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+	@mkdir -p $(BINUTILS_DEV_PKG)/usr/lib{$(MULTILIB_PPC32_SUFFIX),$(LIBSUFFIX)}
+	@ln -sf ../lib$(LIBSUFFIX) $(BINUTILS_DEV_PKG)/usr/$(TARGET)/lib64
+	@ln -sf ../lib$(MULTILIB_PPC32_SUFFIX) $(BINUTILS_DEV_PKG)/usr/$(TARGET)/lib32
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@mkdir -p $(BINUTILS_DEV_PKG)/usr/lib{$(MULTILIB_X86_32_SUFFIX),$(LIBSUFFIX)}
+	@ln -sf ../lib$(LIBSUFFIX) $(BINUTILS_DEV_PKG)/usr/$(TARGET)/lib64
+	@ln -sf ../lib$(MULTILIB_X86_32_SUFFIX) $(BINUTILS_DEV_PKG)/usr/$(TARGET)/lib32
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)   \
+                             $(TOOLCHAIN_A311X_GLIBC)  \
+                             $(TOOLCHAIN_RK33XX_GLIBC) \
+                             $(TOOLCHAIN_RK339X_GLIBC) \
+                             $(TOOLCHAIN_M1000_GLIBC)),)
+	@ln -sf ../lib$(LIBSUFFIX) $(BINUTILS_DEV_PKG)/usr/$(TARGET)/lib64
+endif
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(BINUTILS_DEV_PKG))
+	# ======= Libiberty will be installed from GCC by --enable-install-libiberty option
+	# ======= we don't need LIBIBERTY on $(TARGET_DEST_DIR) until GCC will be built
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libbfd.la libctf-nobfd.la libctf.la libopcodes.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libbfd.la libctf-nobfd.la libctf.la libopcodes.la \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(BINUTILS_DEV_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 ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(BINUTILS_DEV_PKG_DESCRIPTION_FILE): $(BINUTILS_DEV_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) $(BINUTILS_DEV_PKG_DESCRIPTION_FILE) $(BINUTILS_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(BINUTILS_DEV_PKG_DESCRIPTION_FILE) $(BINUTILS_DEV_PKG)/.DESCRIPTION
+	@cp $(BINUTILS_DEV_PKG_INSTALL_SCRIPT) $(BINUTILS_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(BINUTILS_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(BINUTILS_DEV_PKG_NAME)"                            >  $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(BINUTILS_DEV_PKG_VERSION)"                          >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(BINUTILS_DEV_PKG_ARCH)"                               >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(BINUTILS_DEV_PKG_DISTRO_NAME)"                  >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(BINUTILS_DEV_PKG_DISTRO_VERSION)"                >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(BINUTILS_DEV_PKG_GROUP)"                             >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(BINUTILS_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(BINUTILS_DEV_PKG_URL)"                                 >> $(BINUTILS_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(BINUTILS_DEV_PKG_LICENSE)"                         >> $(BINUTILS_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(BINUTILS_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: binutils/2.39/PATCHES
===================================================================
--- binutils/2.39/PATCHES	(nonexistent)
+++ binutils/2.39/PATCHES	(revision 5)
@@ -0,0 +1,19 @@
+
+../../../sources/GNU/binutils/patches/binutils-2.39-copy-osabi.patch          -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-sec-merge-emit.patch      -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-ldforcele.patch           -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-libtool-lib64.patch       -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-cleansweep.patch          -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-export-demangle.patch     -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-no-config-check.patch     -p0
+
+../../../sources/GNU/binutils/patches/binutils-2.39-aarch64-ifunc.patch                 -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-fname-in-error-messages.patch       -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-gold-i386-gnu-property-notes.patch  -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-gold-mismatched-section-flags.patch -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-gold-warn-unsupported.patch         -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-not-link-static-libstdc++.patch     -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-readelf-other-sym-info.patch        -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-revert-PLT-elision.patch            -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-special-sections-in-groups.patch    -p0
+../../../sources/GNU/binutils/patches/binutils-2.39-testsuite-failures.patch            -p0
Index: binutils/2.39/binutils-pkg-description.in
===================================================================
--- binutils/2.39/binutils-pkg-description.in	(nonexistent)
+++ binutils/2.39/binutils-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------------------------------------------------------|
+binutils: GNU Binutils @VERSION@ (GNU binary development tools)
+binutils:
+binutils: Binutils is a collection of binary utilities.  It includes "as" (the
+binutils: portable GNU assembler), "ld" (the GNU linker), and other utilities
+binutils: for creating and working with binary programs.
+binutils:
+binutils: These utilities are REQUIRED to compile C, C++, Objective-C,
+binutils: Fortran, and most other programming languages.
+binutils:
+binutils:
+binutils:
Index: binutils/2.39/binutils-pkg-install.sh
===================================================================
--- binutils/2.39/binutils-pkg-install.sh	(nonexistent)
+++ binutils/2.39/binutils-pkg-install.sh	(revision 5)
@@ -0,0 +1,118 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/as.info.gz       2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/bfd.info.gz      2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/binutils.info.gz 2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/ctf-spec.info.gz 2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gprof.info.gz    2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gprofng.info.gz  2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/ld.info.gz       2>/dev/null
+  elif ! grep "(binutils)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Individual utilities
+* addr2line: (binutils)addr2line.               Convert addresses to file and 
+                                                  line.
+* ar: (binutils)ar.                             Create, modify, and extract 
+                                                  from archives.
+* c++filt: (binutils)c++filt.                   Filter to demangle encoded C++ 
+                                                  symbols.
+* cxxfilt: (binutils)c++filt.                   MS-DOS name for c++filt.
+* dlltool: (binutils)dlltool.                   Create files needed to build 
+                                                  and use DLLs.
+* elfedit: (binutils)elfedit.                   Update ELF header and property 
+                                                  of ELF files.
+* nm: (binutils)nm.                             List symbols from object files.
+* objcopy: (binutils)objcopy.                   Copy and translate object 
+                                                  files.
+* objdump: (binutils)objdump.                   Display information from 
+                                                  object files.
+* ranlib: (binutils)ranlib.                     Generate index to archive 
+                                                  contents.
+* readelf: (binutils)readelf.                   Display the contents of ELF 
+                                                  format files.
+* size: (binutils)size.                         List section sizes and total 
+                                                  size.
+* strings: (binutils)strings.                   List printable strings from 
+                                                  files.
+* strip: (binutils)strip.                       Discard symbols.
+* windmc: (binutils)windmc.                     Generator for Windows message 
+                                                  resources.
+* windres: (binutils)windres.                   Manipulate Windows resources.
+
+Software development
+* As: (as).                     The GNU assembler.
+* Bfd: (bfd).                   The Binary File Descriptor library.
+* Binutils: (binutils).         The GNU binary utilities.
+* CTF: (ctf-spec).              The CTF file format.
+* Gas: (as).                    The GNU assembler.
+* Ld: (ld).                     The GNU linker.
+* gprof: (gprof).               Profiling your program's execution
+* gprofng: (gprofng).           The next generation profiling tool for Linux
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/as.info.gz       --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/bfd.info.gz      --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/binutils.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/ctf-spec.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gprof.info.gz    --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gprofng.info.gz  --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/ld.info.gz       --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: binutils/2.39/binutils-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: binutils/2.39
===================================================================
--- binutils/2.39	(nonexistent)
+++ binutils/2.39	(revision 5)

Property changes on: binutils/2.39
___________________________________________________________________
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: binutils
===================================================================
--- binutils	(nonexistent)
+++ binutils	(revision 5)

Property changes on: binutils
___________________________________________________________________
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: bison/3.7.4/Makefile
===================================================================
--- bison/3.7.4/Makefile	(nonexistent)
+++ bison/3.7.4/Makefile	(revision 5)
@@ -0,0 +1,217 @@
+
+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/GNU/bison
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/12.2.0
+else
+REQUIRES           = libs/glibc/2.36
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.7.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/bison/bison-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/bison-$(version)
+src_dir_name       = bison-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+BISON_PKG_NAME                = bison
+BISON_PKG_VERSION             = 3.7.4
+BISON_PKG_ARCH                = $(PKGARCH)
+BISON_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+BISON_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+BISON_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+BISON_PKG_SHORT_DESCRIPTION   = parser generator similar to yacc
+BISON_PKG_URL                 = $(BUG_URL)
+BISON_PKG_LICENSE             = BSD
+BISON_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(BISON_PKG_NAME)-pkg-description
+BISON_PKG_DESCRIPTION_FILE_IN = $(BISON_PKG_NAME)-pkg-description.in
+BISON_PKG_INSTALL_SCRIPT      = $(BISON_PKG_NAME)-pkg-install.sh
+
+BISON_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(BISON_PKG_NAME)-package
+
+pkg_basename     = $(BISON_PKG_NAME)-$(BISON_PKG_VERSION)-$(BISON_PKG_ARCH)-$(BISON_PKG_DISTRO_NAME)-$(BISON_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=$(BISON_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+#
+# NOTE: Only The Yacc compatibility library liby.a will be created.
+#
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && \
+	  $(BUILD_ENVIRONMENT) ./configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(BISON_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@rm -f $(BISON_PKG)/usr/share/info/dir
+	@gzip -9 $(BISON_PKG)/usr/share/info/*
+	@if [ -d $(BISON_PKG)/usr/share/man ]; then \
+	  ( cd $(BISON_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 $(BISON_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(BISON_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(BISON_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a INSTALL PACKAGING \
+	         $(BISON_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(BISON_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(BISON_PKG))
+	# ======= Strip binaries =======
+	@( cd $(BISON_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 ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(BISON_PKG_DESCRIPTION_FILE): $(BISON_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) $(BISON_PKG_DESCRIPTION_FILE) $(BISON_PKG_INSTALL_SCRIPT)
+	@cp $(BISON_PKG_DESCRIPTION_FILE) $(BISON_PKG)/.DESCRIPTION
+	@cp $(BISON_PKG_INSTALL_SCRIPT) $(BISON_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(BISON_PKG)/.REQUIRES
+	@echo "pkgname=$(BISON_PKG_NAME)"                            >  $(BISON_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(BISON_PKG_VERSION)"                          >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "arch=$(BISON_PKG_ARCH)"                               >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "distroname=$(BISON_PKG_DISTRO_NAME)"                  >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "distrover=$(BISON_PKG_DISTRO_VERSION)"                >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "group=$(BISON_PKG_GROUP)"                             >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(BISON_PKG_SHORT_DESCRIPTION)\"" >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "url=$(BISON_PKG_URL)"                                 >> $(BISON_PKG)/.PKGINFO ; \
+	 echo "license=$(BISON_PKG_LICENSE)"                         >> $(BISON_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(BISON_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: bison/3.7.4/PATCHES
===================================================================
Index: bison/3.7.4/bison-pkg-description.in
===================================================================
--- bison/3.7.4/bison-pkg-description.in	(nonexistent)
+++ bison/3.7.4/bison-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------------------------------------------------------|
+bison: bison @VERSION@ (parser generator similar to yacc)
+bison:
+bison: GNU "Bison" is a general-purpose parser generator that converts a
+bison: grammar description for an LALR(1) context-free grammar into a C
+bison: program to parse that grammar.
+bison:
+bison: Bison is upward compatible with Yacc:  all properly-written Yacc
+bison: grammars ought to work with Bison with no change. Anyone familiar
+bison: with Yacc should be able to use Bison with little trouble.
+bison:
+bison:
Index: bison/3.7.4/bison-pkg-install.sh
===================================================================
--- bison/3.7.4/bison-pkg-install.sh	(nonexistent)
+++ bison/3.7.4/bison-pkg-install.sh	(revision 5)
@@ -0,0 +1,69 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/bison.info.gz 2>/dev/null
+  elif ! grep "(bison)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Software development
+* bison: (bison).               GNU parser generator (Yacc replacement).
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/bison.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: bison/3.7.4/bison-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: bison/3.7.4
===================================================================
--- bison/3.7.4	(nonexistent)
+++ bison/3.7.4	(revision 5)

Property changes on: bison/3.7.4
___________________________________________________________________
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: bison/3.7.4-ppc32/Makefile
===================================================================
--- bison/3.7.4-ppc32/Makefile	(nonexistent)
+++ bison/3.7.4-ppc32/Makefile	(revision 5)
@@ -0,0 +1,145 @@
+
+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/GNU/bison
+
+REQUIRES           = dev/bison/3.7.4
+REQUIRES          += libs/glibc/2.36-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.7.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/bison/bison-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/bison-$(version)
+src_dir_name       = bison-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+BISON_32_PKG_NAME                = bison-x32
+BISON_32_PKG_VERSION             = 3.7.4
+BISON_32_PKG_ARCH                = $(PKGARCH)
+BISON_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+BISON_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+BISON_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+BISON_32_PKG_SHORT_DESCRIPTION   = parser generator similar to yacc
+BISON_32_PKG_URL                 = $(BUG_URL)
+BISON_32_PKG_LICENSE             = GPLv2
+BISON_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(BISON_32_PKG_NAME)-pkg-description
+BISON_32_PKG_DESCRIPTION_FILE_IN = $(BISON_32_PKG_NAME)-pkg-description.in
+BISON_32_PKG_INSTALL_SCRIPT      = $(BISON_32_PKG_NAME)-pkg-install.sh
+
+BISON_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(BISON_32_PKG_NAME)-package
+
+pkg_basename     = $(BISON_32_PKG_NAME)-$(BISON_32_PKG_VERSION)-$(BISON_32_PKG_ARCH)-$(BISON_32_PKG_DISTRO_NAME)-$(BISON_32_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=$(BISON_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+#
+# NOTE: Only The Yacc compatibility library liby.a will be created.
+#
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) ./configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(BISON_32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(BISON_32_PKG)/usr/share
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(BISON_32_PKG))
+	# ======= Strip binaries =======
+	@( cd $(BISON_32_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 ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(BISON_32_PKG_DESCRIPTION_FILE): $(BISON_32_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) $(BISON_32_PKG_DESCRIPTION_FILE) $(BISON_32_PKG_INSTALL_SCRIPT)
+	@cp $(BISON_32_PKG_DESCRIPTION_FILE) $(BISON_32_PKG)/.DESCRIPTION
+	@cp $(BISON_32_PKG_INSTALL_SCRIPT) $(BISON_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(BISON_32_PKG)/.REQUIRES
+	@echo "pkgname=$(BISON_32_PKG_NAME)"                            >  $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(BISON_32_PKG_VERSION)"                          >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(BISON_32_PKG_ARCH)"                               >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(BISON_32_PKG_DISTRO_NAME)"                  >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(BISON_32_PKG_DISTRO_VERSION)"                >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "group=$(BISON_32_PKG_GROUP)"                             >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(BISON_32_PKG_SHORT_DESCRIPTION)\"" >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "url=$(BISON_32_PKG_URL)"                                 >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "license=$(BISON_32_PKG_LICENSE)"                         >> $(BISON_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(BISON_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: bison/3.7.4-ppc32/PATCHES
===================================================================
Index: bison/3.7.4-ppc32/bison-x32-pkg-description.in
===================================================================
--- bison/3.7.4-ppc32/bison-x32-pkg-description.in	(nonexistent)
+++ bison/3.7.4-ppc32/bison-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------------------------------------------------------|
+bison-x32: bison-x32 @VERSION@ (parser generator similar to yacc)
+bison-x32:
+bison-x32: GNU "Bison" is a general-purpose parser generator that converts a
+bison-x32: grammar description for an LALR(1) context-free grammar into a C
+bison-x32: program to parse that grammar.
+bison-x32:
+bison-x32: Bison is upward compatible with Yacc:  all properly-written Yacc
+bison-x32: grammars ought to work with Bison with no change. Anyone familiar
+bison-x32: with Yacc should be able to use Bison with little trouble.
+bison-x32:
+bison-x32:
Index: bison/3.7.4-ppc32/bison-x32-pkg-install.sh
===================================================================
--- bison/3.7.4-ppc32/bison-x32-pkg-install.sh	(nonexistent)
+++ bison/3.7.4-ppc32/bison-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: bison/3.7.4-ppc32/bison-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: bison/3.7.4-ppc32
===================================================================
--- bison/3.7.4-ppc32	(nonexistent)
+++ bison/3.7.4-ppc32	(revision 5)

Property changes on: bison/3.7.4-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: bison/3.7.4-x86_32/Makefile
===================================================================
--- bison/3.7.4-x86_32/Makefile	(nonexistent)
+++ bison/3.7.4-x86_32/Makefile	(revision 5)
@@ -0,0 +1,142 @@
+
+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/GNU/bison
+
+REQUIRES           = dev/bison/3.7.4
+REQUIRES          += libs/glibc/2.36-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.7.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/bison/bison-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/bison-$(version)
+src_dir_name       = bison-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+BISON_32_PKG_NAME                = bison-x32
+BISON_32_PKG_VERSION             = 3.7.4
+BISON_32_PKG_ARCH                = $(PKGARCH)
+BISON_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+BISON_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+BISON_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+BISON_32_PKG_SHORT_DESCRIPTION   = parser generator similar to yacc
+BISON_32_PKG_URL                 = $(BUG_URL)
+BISON_32_PKG_LICENSE             = GPLv2
+BISON_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(BISON_32_PKG_NAME)-pkg-description
+BISON_32_PKG_DESCRIPTION_FILE_IN = $(BISON_32_PKG_NAME)-pkg-description.in
+BISON_32_PKG_INSTALL_SCRIPT      = $(BISON_32_PKG_NAME)-pkg-install.sh
+
+BISON_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(BISON_32_PKG_NAME)-package
+
+pkg_basename     = $(BISON_32_PKG_NAME)-$(BISON_32_PKG_VERSION)-$(BISON_32_PKG_ARCH)-$(BISON_32_PKG_DISTRO_NAME)-$(BISON_32_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=$(BISON_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+#
+# NOTE: Only The Yacc compatibility library liby.a will be created.
+#
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) ./configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(BISON_32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(BISON_32_PKG)/usr/share
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(BISON_32_PKG))
+	# ======= Strip binaries =======
+	@( cd $(BISON_32_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 ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+	@touch $@
+
+$(BISON_32_PKG_DESCRIPTION_FILE): $(BISON_32_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) $(BISON_32_PKG_DESCRIPTION_FILE) $(BISON_32_PKG_INSTALL_SCRIPT)
+	@cp $(BISON_32_PKG_DESCRIPTION_FILE) $(BISON_32_PKG)/.DESCRIPTION
+	@cp $(BISON_32_PKG_INSTALL_SCRIPT) $(BISON_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(BISON_32_PKG)/.REQUIRES
+	@echo "pkgname=$(BISON_32_PKG_NAME)"                            >  $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(BISON_32_PKG_VERSION)"                          >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(BISON_32_PKG_ARCH)"                               >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(BISON_32_PKG_DISTRO_NAME)"                  >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(BISON_32_PKG_DISTRO_VERSION)"                >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "group=$(BISON_32_PKG_GROUP)"                             >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(BISON_32_PKG_SHORT_DESCRIPTION)\"" >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "url=$(BISON_32_PKG_URL)"                                 >> $(BISON_32_PKG)/.PKGINFO ; \
+	 echo "license=$(BISON_32_PKG_LICENSE)"                         >> $(BISON_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(BISON_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: bison/3.7.4-x86_32/PATCHES
===================================================================
Index: bison/3.7.4-x86_32/bison-x32-pkg-description.in
===================================================================
--- bison/3.7.4-x86_32/bison-x32-pkg-description.in	(nonexistent)
+++ bison/3.7.4-x86_32/bison-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------------------------------------------------------|
+bison-x32: bison-x32 @VERSION@ (parser generator similar to yacc)
+bison-x32:
+bison-x32: GNU "Bison" is a general-purpose parser generator that converts a
+bison-x32: grammar description for an LALR(1) context-free grammar into a C
+bison-x32: program to parse that grammar.
+bison-x32:
+bison-x32: Bison is upward compatible with Yacc:  all properly-written Yacc
+bison-x32: grammars ought to work with Bison with no change. Anyone familiar
+bison-x32: with Yacc should be able to use Bison with little trouble.
+bison-x32:
+bison-x32:
Index: bison/3.7.4-x86_32/bison-x32-pkg-install.sh
===================================================================
--- bison/3.7.4-x86_32/bison-x32-pkg-install.sh	(nonexistent)
+++ bison/3.7.4-x86_32/bison-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: bison/3.7.4-x86_32/bison-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: bison/3.7.4-x86_32
===================================================================
--- bison/3.7.4-x86_32	(nonexistent)
+++ bison/3.7.4-x86_32	(revision 5)

Property changes on: bison/3.7.4-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: bison
===================================================================
--- bison	(nonexistent)
+++ bison	(revision 5)

Property changes on: bison
___________________________________________________________________
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: check/0.15.2/Makefile
===================================================================
--- check/0.15.2/Makefile	(nonexistent)
+++ check/0.15.2/Makefile	(revision 5)
@@ -0,0 +1,240 @@
+
+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/check
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/12.2.0
+else
+REQUIRES           = libs/glibc/2.36
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.15.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/check/check-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/check-$(version)
+src_dir_name       = check-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+CHECK_PKG_NAME                = check
+CHECK_PKG_VERSION             = 0.15.2
+CHECK_PKG_ARCH                = $(PKGARCH)
+CHECK_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+CHECK_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+CHECK_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+CHECK_PKG_SHORT_DESCRIPTION   = The unit testing framework for C
+CHECK_PKG_URL                 = $(BUG_URL)
+CHECK_PKG_LICENSE             = LGPLv2
+CHECK_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(CHECK_PKG_NAME)-pkg-description
+CHECK_PKG_DESCRIPTION_FILE_IN = $(CHECK_PKG_NAME)-pkg-description.in
+CHECK_PKG_INSTALL_SCRIPT      = $(CHECK_PKG_NAME)-pkg-install.sh
+
+CHECK_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(CHECK_PKG_NAME)-package
+
+pkg_basename     = $(CHECK_PKG_NAME)-$(CHECK_PKG_VERSION)-$(CHECK_PKG_ARCH)-$(CHECK_PKG_DISTRO_NAME)-$(CHECK_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=$(CHECK_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(CHECK_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@rm -f $(CHECK_PKG)/usr/share/info/dir
+	@gzip -9 $(CHECK_PKG)/usr/share/info/*
+	@if [ -d $(CHECK_PKG)/usr/share/man ]; then \
+	  ( cd $(CHECK_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 $(CHECK_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* \
+	       $(CHECK_PKG)/usr/doc/$(src_dir_name)
+	@( cd $(CHECK_PKG)/usr/share/doc ; mv check $(src_dir_name) )
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS INSTALL README.md THANKS TODO \
+	         $(CHECK_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@rm -f $(CHECK_PKG)/usr/share/doc/$(src_dir_name)/ChangeLog*
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(CHECK_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(CHECK_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libcheck.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(CHECK_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libcheck.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libcheck.la ; \
+	 )
+	# ======= 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" check.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(CHECK_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(CHECK_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(CHECK_PKG_DESCRIPTION_FILE): $(CHECK_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) $(CHECK_PKG_DESCRIPTION_FILE) $(CHECK_PKG_INSTALL_SCRIPT)
+	@cp $(CHECK_PKG_DESCRIPTION_FILE) $(CHECK_PKG)/.DESCRIPTION
+	@cp $(CHECK_PKG_INSTALL_SCRIPT) $(CHECK_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(CHECK_PKG)/.REQUIRES
+	@echo "pkgname=$(CHECK_PKG_NAME)"                            >  $(CHECK_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(CHECK_PKG_VERSION)"                          >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "arch=$(CHECK_PKG_ARCH)"                               >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "distroname=$(CHECK_PKG_DISTRO_NAME)"                  >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "distrover=$(CHECK_PKG_DISTRO_VERSION)"                >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "group=$(CHECK_PKG_GROUP)"                             >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(CHECK_PKG_SHORT_DESCRIPTION)\"" >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "url=$(CHECK_PKG_URL)"                                 >> $(CHECK_PKG)/.PKGINFO ; \
+	 echo "license=$(CHECK_PKG_LICENSE)"                         >> $(CHECK_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(CHECK_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: check/0.15.2/PATCHES
===================================================================
Index: check/0.15.2/check-pkg-description.in
===================================================================
--- check/0.15.2/check-pkg-description.in	(nonexistent)
+++ check/0.15.2/check-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------------------------------------------------------|
+check: check @VERSION@ (The unit testing framework for C)
+check:
+check: Check is a unit testing framework for C. It features a simple
+check: interface for defining unit tests, putting little in the way of
+check: the developer. Tests are run in a separate address space, so both
+check: assertion failures and code errors that cause segmentation faults
+check: or other signals can be caught. Test results are reportable in the
+check: following: Subunit, TAP, XML, and a generic logging format.
+check:
+check:
+check:
Index: check/0.15.2/check-pkg-install.sh
===================================================================
--- check/0.15.2/check-pkg-install.sh	(nonexistent)
+++ check/0.15.2/check-pkg-install.sh	(revision 5)
@@ -0,0 +1,69 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/check.info.gz 2>/dev/null
+  elif ! grep "(check)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Software development
+* Check: (check).               A unit testing framework for C.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/check.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: check/0.15.2/check-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: check/0.15.2
===================================================================
--- check/0.15.2	(nonexistent)
+++ check/0.15.2	(revision 5)

Property changes on: check/0.15.2
___________________________________________________________________
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: check/0.15.2-ppc32/Makefile
===================================================================
--- check/0.15.2-ppc32/Makefile	(nonexistent)
+++ check/0.15.2-ppc32/Makefile	(revision 5)
@@ -0,0 +1,167 @@
+
+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/check
+
+REQUIRES           = dev/check/0.15.2
+REQUIRES          += libs/glibc/2.36-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.15.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/check/check-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/check-$(version)
+src_dir_name       = check-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+CHECK_32_PKG_NAME                = check-x32
+CHECK_32_PKG_VERSION             = 0.15.2
+CHECK_32_PKG_ARCH                = $(PKGARCH)
+CHECK_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+CHECK_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+CHECK_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+CHECK_32_PKG_SHORT_DESCRIPTION   = The unit testing framework for C
+CHECK_32_PKG_URL                 = $(BUG_URL)
+CHECK_32_PKG_LICENSE             = LGPLv2
+CHECK_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(CHECK_32_PKG_NAME)-pkg-description
+CHECK_32_PKG_DESCRIPTION_FILE_IN = $(CHECK_32_PKG_NAME)-pkg-description.in
+CHECK_32_PKG_INSTALL_SCRIPT      = $(CHECK_32_PKG_NAME)-pkg-install.sh
+
+CHECK_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(CHECK_32_PKG_NAME)-package
+
+pkg_basename     = $(CHECK_32_PKG_NAME)-$(CHECK_32_PKG_VERSION)-$(CHECK_32_PKG_ARCH)-$(CHECK_32_PKG_DISTRO_NAME)-$(CHECK_32_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=$(CHECK_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --disable-dependency-tracking
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(CHECK_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(CHECK_32_PKG)/usr/include
+	@rm -rf $(CHECK_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(CHECK_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libcheck.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(CHECK_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libcheck.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libcheck.la ; \
+	 )
+	# ======= 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" check.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(CHECK_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(CHECK_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(CHECK_32_PKG_DESCRIPTION_FILE): $(CHECK_32_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) $(CHECK_32_PKG_DESCRIPTION_FILE) $(CHECK_32_PKG_INSTALL_SCRIPT)
+	@cp $(CHECK_32_PKG_DESCRIPTION_FILE) $(CHECK_32_PKG)/.DESCRIPTION
+	@cp $(CHECK_32_PKG_INSTALL_SCRIPT) $(CHECK_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(CHECK_32_PKG)/.REQUIRES
+	@echo "pkgname=$(CHECK_32_PKG_NAME)"                            >  $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(CHECK_32_PKG_VERSION)"                          >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(CHECK_32_PKG_ARCH)"                               >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(CHECK_32_PKG_DISTRO_NAME)"                  >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(CHECK_32_PKG_DISTRO_VERSION)"                >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "group=$(CHECK_32_PKG_GROUP)"                             >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(CHECK_32_PKG_SHORT_DESCRIPTION)\"" >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "url=$(CHECK_32_PKG_URL)"                                 >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "license=$(CHECK_32_PKG_LICENSE)"                         >> $(CHECK_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(CHECK_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: check/0.15.2-ppc32/PATCHES
===================================================================
Index: check/0.15.2-ppc32/check-x32-pkg-description.in
===================================================================
--- check/0.15.2-ppc32/check-x32-pkg-description.in	(nonexistent)
+++ check/0.15.2-ppc32/check-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------------------------------------------------------|
+check-x32: check-x32 @VERSION@ (The unit testing framework for C)
+check-x32:
+check-x32: Check is a unit testing framework for C. It features a simple
+check-x32: interface for defining unit tests, putting little in the way of
+check-x32: the developer. Tests are run in a separate address space, so both
+check-x32: assertion failures and code errors that cause segmentation faults
+check-x32: or other signals can be caught. Test results are reportable in the
+check-x32: following: Subunit, TAP, XML, and a generic logging format.
+check-x32:
+check-x32:
+check-x32:
Index: check/0.15.2-ppc32/check-x32-pkg-install.sh
===================================================================
--- check/0.15.2-ppc32/check-x32-pkg-install.sh	(nonexistent)
+++ check/0.15.2-ppc32/check-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: check/0.15.2-ppc32/check-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: check/0.15.2-ppc32
===================================================================
--- check/0.15.2-ppc32	(nonexistent)
+++ check/0.15.2-ppc32	(revision 5)

Property changes on: check/0.15.2-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: check/0.15.2-x86_32/Makefile
===================================================================
--- check/0.15.2-x86_32/Makefile	(nonexistent)
+++ check/0.15.2-x86_32/Makefile	(revision 5)
@@ -0,0 +1,164 @@
+
+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/check
+
+REQUIRES           = dev/check/0.15.2
+REQUIRES          += libs/glibc/2.36-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.15.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/check/check-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/check-$(version)
+src_dir_name       = check-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+CHECK_32_PKG_NAME                = check-x32
+CHECK_32_PKG_VERSION             = 0.15.2
+CHECK_32_PKG_ARCH                = $(PKGARCH)
+CHECK_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+CHECK_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+CHECK_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+CHECK_32_PKG_SHORT_DESCRIPTION   = The unit testing framework for C
+CHECK_32_PKG_URL                 = $(BUG_URL)
+CHECK_32_PKG_LICENSE             = LGPLv2
+CHECK_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(CHECK_32_PKG_NAME)-pkg-description
+CHECK_32_PKG_DESCRIPTION_FILE_IN = $(CHECK_32_PKG_NAME)-pkg-description.in
+CHECK_32_PKG_INSTALL_SCRIPT      = $(CHECK_32_PKG_NAME)-pkg-install.sh
+
+CHECK_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(CHECK_32_PKG_NAME)-package
+
+pkg_basename     = $(CHECK_32_PKG_NAME)-$(CHECK_32_PKG_VERSION)-$(CHECK_32_PKG_ARCH)-$(CHECK_32_PKG_DISTRO_NAME)-$(CHECK_32_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=$(CHECK_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --disable-dependency-tracking
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(CHECK_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(CHECK_32_PKG)/usr/include
+	@rm -rf $(CHECK_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(CHECK_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libcheck.la ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(CHECK_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libcheck.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libcheck.la ; \
+	 )
+	# ======= 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" check.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(CHECK_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(CHECK_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(CHECK_32_PKG_DESCRIPTION_FILE): $(CHECK_32_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) $(CHECK_32_PKG_DESCRIPTION_FILE) $(CHECK_32_PKG_INSTALL_SCRIPT)
+	@cp $(CHECK_32_PKG_DESCRIPTION_FILE) $(CHECK_32_PKG)/.DESCRIPTION
+	@cp $(CHECK_32_PKG_INSTALL_SCRIPT) $(CHECK_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(CHECK_32_PKG)/.REQUIRES
+	@echo "pkgname=$(CHECK_32_PKG_NAME)"                            >  $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(CHECK_32_PKG_VERSION)"                          >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(CHECK_32_PKG_ARCH)"                               >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(CHECK_32_PKG_DISTRO_NAME)"                  >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(CHECK_32_PKG_DISTRO_VERSION)"                >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "group=$(CHECK_32_PKG_GROUP)"                             >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(CHECK_32_PKG_SHORT_DESCRIPTION)\"" >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "url=$(CHECK_32_PKG_URL)"                                 >> $(CHECK_32_PKG)/.PKGINFO ; \
+	 echo "license=$(CHECK_32_PKG_LICENSE)"                         >> $(CHECK_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(CHECK_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: check/0.15.2-x86_32/PATCHES
===================================================================
Index: check/0.15.2-x86_32/check-x32-pkg-description.in
===================================================================
--- check/0.15.2-x86_32/check-x32-pkg-description.in	(nonexistent)
+++ check/0.15.2-x86_32/check-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------------------------------------------------------|
+check-x32: check-x32 @VERSION@ (The unit testing framework for C)
+check-x32:
+check-x32: Check is a unit testing framework for C. It features a simple
+check-x32: interface for defining unit tests, putting little in the way of
+check-x32: the developer. Tests are run in a separate address space, so both
+check-x32: assertion failures and code errors that cause segmentation faults
+check-x32: or other signals can be caught. Test results are reportable in the
+check-x32: following: Subunit, TAP, XML, and a generic logging format.
+check-x32:
+check-x32:
+check-x32:
Index: check/0.15.2-x86_32/check-x32-pkg-install.sh
===================================================================
--- check/0.15.2-x86_32/check-x32-pkg-install.sh	(nonexistent)
+++ check/0.15.2-x86_32/check-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: check/0.15.2-x86_32/check-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: check/0.15.2-x86_32
===================================================================
--- check/0.15.2-x86_32	(nonexistent)
+++ check/0.15.2-x86_32	(revision 5)

Property changes on: check/0.15.2-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: check
===================================================================
--- check	(nonexistent)
+++ check	(revision 5)

Property changes on: check
___________________________________________________________________
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: cmake/3.22.1/Makefile
===================================================================
--- cmake/3.22.1/Makefile	(nonexistent)
+++ cmake/3.22.1/Makefile	(revision 5)
@@ -0,0 +1,275 @@
+
+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/cmake
+
+REQUIRES           = libs/libarchive/3.5.2
+REQUIRES          += libs/shared-mime-info/2.2
+REQUIRES          += net/curl/7.75.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.22.1
+major_version      = $(shell echo $(version) | cut -f1,2 -d '.')
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/cmake/cmake-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/cmake-$(version)
+src_dir_name       = cmake-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+manpages           = $(CURDIR)/manpages
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+devenv_dir_name    = build-machine
+devenv_dir         = $(TARGET_BUILD_DIR)/$(devenv_dir_name)
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+CMAKE_PKG_NAME                = cmake
+CMAKE_PKG_VERSION             = 3.22.1
+CMAKE_PKG_ARCH                = $(PKGARCH)
+CMAKE_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+CMAKE_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+CMAKE_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+CMAKE_PKG_SHORT_DESCRIPTION   = open-source make system
+CMAKE_PKG_URL                 = $(BUG_URL)
+CMAKE_PKG_LICENSE             = custom
+CMAKE_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(CMAKE_PKG_NAME)-pkg-description
+CMAKE_PKG_DESCRIPTION_FILE_IN = $(CMAKE_PKG_NAME)-pkg-description.in
+CMAKE_PKG_INSTALL_SCRIPT      = $(CMAKE_PKG_NAME)-pkg-install.sh
+
+CMAKE_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(CMAKE_PKG_NAME)-package
+
+pkg_basename     = $(CMAKE_PKG_NAME)-$(CMAKE_PKG_VERSION)-$(CMAKE_PKG_ARCH)-$(CMAKE_PKG_DISTRO_NAME)-$(CMAKE_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=$(CMAKE_PKG)
+
+
+extra_configure_switches  = --docdir=share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=share/man
+extra_configure_switches += --enable-ccache
+
+extra_configure_switches += --no-qt-gui
+extra_configure_switches += --no-system-jsoncpp
+extra_configure_switches += --no-system-librhash
+
+extra_configure_switches += --system-curl
+extra_configure_switches += --system-expat
+extra_configure_switches += --system-zlib
+extra_configure_switches += --system-bzip2
+extra_configure_switches += --system-liblzma
+extra_configure_switches += --system-zstd
+extra_configure_switches += --system-libarchive
+extra_configure_switches += --system-libuv
+
+build_configure_switches += CC='gcc'
+build_configure_switches += CXX='g++'
+build_configure_switches += CFLAGS='-I/usr/include'
+build_configure_switches += CXXFLAGS='-I/usr/include'
+build_configure_switches += LDFLAGS='-L/usr/lib64'
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	# ====== compile 'build-machine' cmake =======
+	@( cd $(build_dir) ; \
+	   PKG_CONFIG_PATH= ../$(src_dir_name)/configure \
+	     --prefix=/usr                 \
+	     $(extra_configure_switches)   \
+	     $(build_configure_switches) ; \
+	 )
+	@mkdir -p $(devenv_dir)
+	@( cd $(build_dir) ; \
+	   $(MAKE) ; \
+	   $(MAKE) -j1 install DESTDIR=../$(devenv_dir_name) ; \
+	 )
+	@rm -rf $(build_dir)
+	@mkdir -p $(build_dir)
+	# ====== compile '$(HARDWARE)' cmake =======
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) cmake -DCMAKE_INSTALL_PREFIX="$(CMAKE_PKG)/usr"           \
+	                              -DCMAKE_BUILD_TYPE="Release"                        \
+	                              -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF                \
+	                              -DCMAKE_AR="$(AR)"                                  \
+	                              -DCMAKE_C_COMPILER_AR="$(AR)"                       \
+	                              -DCMAKE_CXX_COMPILER_AR="$(AR)"                     \
+	                              -DCMAKE_C_COMPILER_RANLIB="$(RANLIB)"               \
+	                              -DCMAKE_CXX_COMPILER_RANLIB="$(RANLIB)"             \
+	                              -DCMAKE_BIN_DIR="bin"                               \
+	                              -DCMAKE_DOC_DIR="share/doc/$(src_dir_name)"         \
+	                              -DCMAKE_MAN_DIR="share/man"                         \
+	                              -DCMAKE_USE_SYSTEM_JSONCPP=OFF                      \
+	                              -DCMAKE_USE_SYSTEM_LIBRHASH=OFF                     \
+	                              -DCMAKE_USE_SYSTEM_CURL=ON                          \
+	                              -DCMAKE_USE_SYSTEM_EXPAT=ON                         \
+	                              -DCMAKE_USE_SYSTEM_LIBARCHIVE=ON                    \
+	                              -DCMAKE_USE_SYSTEM_BZIP2=ON                         \
+	                              -DCMAKE_USE_SYSTEM_LIBLZMA=ON                       \
+	                              -DCMAKE_USE_SYSTEM_ZSTD=ON                          \
+	                              -DCMAKE_USE_SYSTEM_ZLIB=ON                          \
+	                              -DZLIB_INCLUDE_DIR="$(TARGET_DEST_DIR)/usr/include"                         \
+	                              -DZLIB_LIBRARY_RELEASE="$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libz.so"     \
+	                              -DLibArchive_INCLUDE_DIR="$(TARGET_DEST_DIR)/usr/include"                   \
+	                              -DLibArchive_LIBRARY="$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libarchive.so" \
+	                              -DLibUV_INCLUDE_DIR="$(TARGET_DEST_DIR)/usr/include"                        \
+	                              -DLibUV_LIBRARY="$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libuv.so"           \
+	                              -DCMAKE_USE_SYSTEM_LIBUV=ON                         \
+	                              -DSPHINX_MAN=ON                                     \
+	                                                           "../$(src_dir_name)" ; \
+	 )
+	@( cd $(build_dir) ; \
+	   sed -i "s,^[ \t]*bin/cmake,\t\.\./$(devenv_dir_name)/usr/bin/cmake,g" Makefile ; \
+	 )
+	@cd $(build_dir) && $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(CMAKE_PKG)
+	@cd $(build_dir) && $(MAKE) -j1 install
+	# ======= Compress manpages =======
+	@if [ -d $(CMAKE_PKG)/usr/share/man ]; then \
+	  ( cd $(CMAKE_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
+	# ======= Install Documentation =======
+	@mkdir -p $(CMAKE_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/Copyright.txt \
+	       $(CMAKE_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(CMAKE_PKG)/usr/share/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/README.rst $(SRC_DIR)/CONTRIBUTING.rst \
+	       $(CMAKE_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog.txt ]; then \
+	     DOCSDIR=`echo $(CMAKE_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog.txt | head -n 1000 > $$DOCSDIR/ChangeLog.txt ; \
+	     touch -r ChangeLog.txt $$DOCSDIR/ChangeLog.txt ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(CMAKE_PKG))
+	# ======= Strip binaries =======
+	@( cd $(CMAKE_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(CMAKE_PKG_DESCRIPTION_FILE): $(CMAKE_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) $(CMAKE_PKG_DESCRIPTION_FILE) $(CMAKE_PKG_INSTALL_SCRIPT)
+	@cp $(CMAKE_PKG_DESCRIPTION_FILE) $(CMAKE_PKG)/.DESCRIPTION
+	@cp $(CMAKE_PKG_INSTALL_SCRIPT) $(CMAKE_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(CMAKE_PKG)/.REQUIRES
+	@echo "pkgname=$(CMAKE_PKG_NAME)"                            >  $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(CMAKE_PKG_VERSION)"                          >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "arch=$(CMAKE_PKG_ARCH)"                               >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "distroname=$(CMAKE_PKG_DISTRO_NAME)"                  >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "distrover=$(CMAKE_PKG_DISTRO_VERSION)"                >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "group=$(CMAKE_PKG_GROUP)"                             >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(CMAKE_PKG_SHORT_DESCRIPTION)\"" >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "url=$(CMAKE_PKG_URL)"                                 >> $(CMAKE_PKG)/.PKGINFO ; \
+	 echo "license=$(CMAKE_PKG_LICENSE)"                         >> $(CMAKE_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(CMAKE_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: cmake/3.22.1/PATCHES
===================================================================
Index: cmake/3.22.1/cmake-pkg-description.in
===================================================================
--- cmake/3.22.1/cmake-pkg-description.in	(nonexistent)
+++ cmake/3.22.1/cmake-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------------------------------------------------------|
+cmake: CMake @VERSION@ (cross-platform, open-source make system)
+cmake:
+cmake: CMake is used to control the software process using simple platform
+cmake: and compiler independent configuration files. CMake generates
+cmake: native makefiles and workspaces that can be used in the
+cmake: compiler environment of your choice.
+cmake:
+cmake: CMake's home on the web is:  http://www.cmake.org
+cmake:
+cmake:
+cmake:
Index: cmake/3.22.1/cmake-pkg-install.sh
===================================================================
--- cmake/3.22.1/cmake-pkg-install.sh	(nonexistent)
+++ cmake/3.22.1/cmake-pkg-install.sh	(revision 5)
@@ -0,0 +1,81 @@
+#!/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() {
+  # Notice we use an absolute path below, rather than usr/bin/update-mime-database.
+  # This is because we're testing to see if we are on the bootdisk, which will not
+  # have /usr/bin/update-mime-database.
+  # The presence of "/etc/system-installer" is under consideration as a better test.
+  # Also we have to check that we are not in the installer mode on the target system
+  # ("/etc/system-installer"), and we have to be sure that we are on the working system
+  # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+  if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/update-mime-database ]; then
+    /usr/bin/update-mime-database /usr/share/mime 1>/dev/null 2>/dev/null
+    cat /etc/passwd | while read passwdline ; do
+      homedir=$(echo $passwdline | cut -f 6 -d :)
+      if [ -d $homedir/.local/share/mime ]; then
+        username=$(echo $passwdline | cut -f 1 -d :)
+        su $username -c "/usr/bin/update-mime-database $homedir/.local/share/mime 1>/dev/null 2>/dev/null" 2> /dev/null
+      fi
+    done
+    # This is just "cleanup" in case something might be missed in /home/*/
+    for homemimedir in /home/*/.local/share/mime ; do
+      if [ -d $homemimedir ]; then
+        username=$(echo $homemimedir | cut -f 3 -d /)
+        su $username -c "/usr/bin/update-mime-database $homemimedir 1>/dev/null 2>/dev/null" 2> /dev/null
+      fi
+    done
+  else
+    # We are not on the target system and we can make use build-machine's utility
+    if [ -x /usr/bin/update-mime-database ] ; then
+      update-mime-database usr/share/mime 1>/dev/null 2>/dev/null
+    fi
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: cmake/3.22.1/cmake-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: cmake/3.22.1
===================================================================
--- cmake/3.22.1	(nonexistent)
+++ cmake/3.22.1	(revision 5)

Property changes on: cmake/3.22.1
___________________________________________________________________
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: cmake
===================================================================
--- cmake	(nonexistent)
+++ cmake	(revision 5)

Property changes on: cmake
___________________________________________________________________
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: flex/2.6.4/Makefile
===================================================================
--- flex/2.6.4/Makefile	(nonexistent)
+++ flex/2.6.4/Makefile	(revision 5)
@@ -0,0 +1,247 @@
+
+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/flex
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/12.2.0
+else
+REQUIRES           = libs/glibc/2.36
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.6.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/flex/flex-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/flex-$(version)
+src_dir_name       = flex-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+FLEX_PKG_NAME                = flex
+FLEX_PKG_VERSION             = 2.6.4
+FLEX_PKG_ARCH                = $(PKGARCH)
+FLEX_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+FLEX_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+FLEX_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+FLEX_PKG_SHORT_DESCRIPTION   = fast lexical analyzer generator
+FLEX_PKG_URL                 = $(BUG_URL)
+FLEX_PKG_LICENSE             = BSD
+FLEX_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(FLEX_PKG_NAME)-pkg-description
+FLEX_PKG_DESCRIPTION_FILE_IN = $(FLEX_PKG_NAME)-pkg-description.in
+FLEX_PKG_INSTALL_SCRIPT      = $(FLEX_PKG_NAME)-pkg-install.sh
+
+FLEX_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(FLEX_PKG_NAME)-package
+
+pkg_basename     = $(FLEX_PKG_NAME)-$(FLEX_PKG_VERSION)-$(FLEX_PKG_ARCH)-$(FLEX_PKG_DISTRO_NAME)-$(FLEX_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=$(FLEX_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@( cd $(SRC_DIR) ; \
+	   sed -i "/math.h/a #include <malloc.h>" src/flexdef.h ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	# ======= Disable tests when cross-compile =======
+	@( cd $(build_dir) ; \
+	   sed -i.back '/^[\t]tests \\/d' Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(FLEX_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(FLEX_PKG)/usr/bin ; \
+	   ln -sf flex lex ; \
+	 )
+	# ======= Install Documentation =======
+	@rm -f $(FLEX_PKG)/usr/share/info/dir
+	@gzip -9 $(FLEX_PKG)/usr/share/info/*
+	@if [ -d $(FLEX_PKG)/usr/share/man ]; then \
+	  ( cd $(FLEX_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 $(FLEX_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(FLEX_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(FLEX_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a THANKS \
+	         $(FLEX_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(FLEX_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(FLEX_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libfl.la \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(FLEX_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libfl.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libfl.la \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(FLEX_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(FLEX_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(FLEX_PKG_DESCRIPTION_FILE): $(FLEX_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) $(FLEX_PKG_DESCRIPTION_FILE) $(FLEX_PKG_INSTALL_SCRIPT)
+	@cp $(FLEX_PKG_DESCRIPTION_FILE) $(FLEX_PKG)/.DESCRIPTION
+	@cp $(FLEX_PKG_INSTALL_SCRIPT) $(FLEX_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(FLEX_PKG)/.REQUIRES
+	@echo "pkgname=$(FLEX_PKG_NAME)"                            >  $(FLEX_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(FLEX_PKG_VERSION)"                          >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "arch=$(FLEX_PKG_ARCH)"                               >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "distroname=$(FLEX_PKG_DISTRO_NAME)"                  >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "distrover=$(FLEX_PKG_DISTRO_VERSION)"                >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "group=$(FLEX_PKG_GROUP)"                             >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(FLEX_PKG_SHORT_DESCRIPTION)\"" >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "url=$(FLEX_PKG_URL)"                                 >> $(FLEX_PKG)/.PKGINFO ; \
+	 echo "license=$(FLEX_PKG_LICENSE)"                         >> $(FLEX_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(FLEX_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: flex/2.6.4/PATCHES
===================================================================
--- flex/2.6.4/PATCHES	(nonexistent)
+++ flex/2.6.4/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/flex/patches/flex-2.6.4.patch -p0
Index: flex/2.6.4/flex-pkg-description.in
===================================================================
--- flex/2.6.4/flex-pkg-description.in	(nonexistent)
+++ flex/2.6.4/flex-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------------------------------------------------------|
+flex: flex @VERSION@ (fast lexical analyzer generator)
+flex:
+flex: flex is a tool for generating programs that perform pattern matching
+flex: on text. flex is a rewrite of the AT&T Unix lex tool (the two
+flex: implementations do not share any code, though), with some extensions
+flex: (and incompatibilities).
+flex:
+flex:
+flex:
+flex:
+flex:
Index: flex/2.6.4/flex-pkg-install.sh
===================================================================
--- flex/2.6.4/flex-pkg-install.sh	(nonexistent)
+++ flex/2.6.4/flex-pkg-install.sh	(revision 5)
@@ -0,0 +1,70 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/flex.info.gz 2>/dev/null
+  elif ! grep "(flex)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Programming
+* flex: (flex).                 Fast lexical analyzer generator (lex 
+                                  replacement).
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/flex.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: flex/2.6.4/flex-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: flex/2.6.4
===================================================================
--- flex/2.6.4	(nonexistent)
+++ flex/2.6.4	(revision 5)

Property changes on: flex/2.6.4
___________________________________________________________________
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: flex/2.6.4-ppc32/Makefile
===================================================================
--- flex/2.6.4-ppc32/Makefile	(nonexistent)
+++ flex/2.6.4-ppc32/Makefile	(revision 5)
@@ -0,0 +1,175 @@
+
+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/flex
+
+REQUIRES           = dev/flex/2.6.4
+REQUIRES          += libs/glibc/2.36-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.6.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/flex/flex-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/flex-$(version)
+src_dir_name       = flex-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+FLEX_32_PKG_NAME                = flex-x32
+FLEX_32_PKG_VERSION             = 2.6.4
+FLEX_32_PKG_ARCH                = $(PKGARCH)
+FLEX_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+FLEX_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+FLEX_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+FLEX_32_PKG_SHORT_DESCRIPTION   = fast lexical analyzer generator
+FLEX_32_PKG_URL                 = $(BUG_URL)
+FLEX_32_PKG_LICENSE             = BSD
+FLEX_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(FLEX_32_PKG_NAME)-pkg-description
+FLEX_32_PKG_DESCRIPTION_FILE_IN = $(FLEX_32_PKG_NAME)-pkg-description.in
+FLEX_32_PKG_INSTALL_SCRIPT      = $(FLEX_32_PKG_NAME)-pkg-install.sh
+
+FLEX_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(FLEX_32_PKG_NAME)-package
+
+pkg_basename     = $(FLEX_32_PKG_NAME)-$(FLEX_32_PKG_VERSION)-$(FLEX_32_PKG_ARCH)-$(FLEX_32_PKG_DISTRO_NAME)-$(FLEX_32_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=$(FLEX_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@( cd $(SRC_DIR) ; \
+	   sed -i "/math.h/a #include <malloc.h>" src/flexdef.h ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	# ======= Disable tests when cross-compile =======
+	@( cd $(build_dir) ; \
+	   sed -i.back '/^[\t]tests \\/d' Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(FLEX_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(FLEX_32_PKG)/usr/bin/32 ; \
+	   ln -sf flex lex ; \
+	 )
+	@rm -rf $(FLEX_32_PKG)/usr/include
+	@rm -rf $(FLEX_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(FLEX_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libfl.la \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(FLEX_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libfl.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libfl.la \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(FLEX_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(FLEX_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(FLEX_32_PKG_DESCRIPTION_FILE): $(FLEX_32_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) $(FLEX_32_PKG_DESCRIPTION_FILE) $(FLEX_32_PKG_INSTALL_SCRIPT)
+	@cp $(FLEX_32_PKG_DESCRIPTION_FILE) $(FLEX_32_PKG)/.DESCRIPTION
+	@cp $(FLEX_32_PKG_INSTALL_SCRIPT) $(FLEX_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(FLEX_32_PKG)/.REQUIRES
+	@echo "pkgname=$(FLEX_32_PKG_NAME)"                            >  $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(FLEX_32_PKG_VERSION)"                          >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(FLEX_32_PKG_ARCH)"                               >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(FLEX_32_PKG_DISTRO_NAME)"                  >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(FLEX_32_PKG_DISTRO_VERSION)"                >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "group=$(FLEX_32_PKG_GROUP)"                             >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(FLEX_32_PKG_SHORT_DESCRIPTION)\"" >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "url=$(FLEX_32_PKG_URL)"                                 >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "license=$(FLEX_32_PKG_LICENSE)"                         >> $(FLEX_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(FLEX_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: flex/2.6.4-ppc32/PATCHES
===================================================================
--- flex/2.6.4-ppc32/PATCHES	(nonexistent)
+++ flex/2.6.4-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/flex/patches/flex-2.6.4.patch -p0
Index: flex/2.6.4-ppc32/flex-x32-pkg-description.in
===================================================================
--- flex/2.6.4-ppc32/flex-x32-pkg-description.in	(nonexistent)
+++ flex/2.6.4-ppc32/flex-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------------------------------------------------------|
+flex-x32: flex-x32 @VERSION@ (fast lexical analyzer generator)
+flex-x32:
+flex-x32: flex is a tool for generating programs that perform pattern matching
+flex-x32: on text. flex is a rewrite of the AT&T Unix lex tool (the two
+flex-x32: implementations do not share any code, though), with some extensions
+flex-x32: (and incompatibilities).
+flex-x32:
+flex-x32:
+flex-x32:
+flex-x32:
+flex-x32:
Index: flex/2.6.4-ppc32/flex-x32-pkg-install.sh
===================================================================
--- flex/2.6.4-ppc32/flex-x32-pkg-install.sh	(nonexistent)
+++ flex/2.6.4-ppc32/flex-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: flex/2.6.4-ppc32/flex-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: flex/2.6.4-ppc32
===================================================================
--- flex/2.6.4-ppc32	(nonexistent)
+++ flex/2.6.4-ppc32	(revision 5)

Property changes on: flex/2.6.4-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: flex/2.6.4-x86_32/Makefile
===================================================================
--- flex/2.6.4-x86_32/Makefile	(nonexistent)
+++ flex/2.6.4-x86_32/Makefile	(revision 5)
@@ -0,0 +1,172 @@
+
+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/flex
+
+REQUIRES           = dev/flex/2.6.4
+REQUIRES          += libs/glibc/2.36-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.6.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/flex/flex-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/flex-$(version)
+src_dir_name       = flex-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+FLEX_32_PKG_NAME                = flex-x32
+FLEX_32_PKG_VERSION             = 2.6.4
+FLEX_32_PKG_ARCH                = $(PKGARCH)
+FLEX_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+FLEX_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+FLEX_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+FLEX_32_PKG_SHORT_DESCRIPTION   = fast lexical analyzer generator
+FLEX_32_PKG_URL                 = $(BUG_URL)
+FLEX_32_PKG_LICENSE             = BSD
+FLEX_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(FLEX_32_PKG_NAME)-pkg-description
+FLEX_32_PKG_DESCRIPTION_FILE_IN = $(FLEX_32_PKG_NAME)-pkg-description.in
+FLEX_32_PKG_INSTALL_SCRIPT      = $(FLEX_32_PKG_NAME)-pkg-install.sh
+
+FLEX_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(FLEX_32_PKG_NAME)-package
+
+pkg_basename     = $(FLEX_32_PKG_NAME)-$(FLEX_32_PKG_VERSION)-$(FLEX_32_PKG_ARCH)-$(FLEX_32_PKG_DISTRO_NAME)-$(FLEX_32_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=$(FLEX_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --bindir=/usr/bin/32
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@( cd $(SRC_DIR) ; \
+	   sed -i "/math.h/a #include <malloc.h>" src/flexdef.h ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	# ======= Disable tests when cross-compile =======
+	@( cd $(build_dir) ; \
+	   sed -i.back '/^[\t]tests \\/d' Makefile ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(FLEX_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(FLEX_32_PKG)/usr/bin/32 ; \
+	   ln -sf flex lex ; \
+	 )
+	@rm -rf $(FLEX_32_PKG)/usr/include
+	@rm -rf $(FLEX_32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(FLEX_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libfl.la \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(FLEX_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libfl.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libfl.la \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(FLEX_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(FLEX_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(FLEX_32_PKG_DESCRIPTION_FILE): $(FLEX_32_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) $(FLEX_32_PKG_DESCRIPTION_FILE) $(FLEX_32_PKG_INSTALL_SCRIPT)
+	@cp $(FLEX_32_PKG_DESCRIPTION_FILE) $(FLEX_32_PKG)/.DESCRIPTION
+	@cp $(FLEX_32_PKG_INSTALL_SCRIPT) $(FLEX_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(FLEX_32_PKG)/.REQUIRES
+	@echo "pkgname=$(FLEX_32_PKG_NAME)"                            >  $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(FLEX_32_PKG_VERSION)"                          >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(FLEX_32_PKG_ARCH)"                               >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(FLEX_32_PKG_DISTRO_NAME)"                  >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(FLEX_32_PKG_DISTRO_VERSION)"                >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "group=$(FLEX_32_PKG_GROUP)"                             >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(FLEX_32_PKG_SHORT_DESCRIPTION)\"" >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "url=$(FLEX_32_PKG_URL)"                                 >> $(FLEX_32_PKG)/.PKGINFO ; \
+	 echo "license=$(FLEX_32_PKG_LICENSE)"                         >> $(FLEX_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(FLEX_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: flex/2.6.4-x86_32/PATCHES
===================================================================
--- flex/2.6.4-x86_32/PATCHES	(nonexistent)
+++ flex/2.6.4-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/flex/patches/flex-2.6.4.patch -p0
Index: flex/2.6.4-x86_32/flex-x32-pkg-description.in
===================================================================
--- flex/2.6.4-x86_32/flex-x32-pkg-description.in	(nonexistent)
+++ flex/2.6.4-x86_32/flex-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------------------------------------------------------|
+flex-x32: flex-x32 @VERSION@ (fast lexical analyzer generator)
+flex-x32:
+flex-x32: flex is a tool for generating programs that perform pattern matching
+flex-x32: on text. flex is a rewrite of the AT&T Unix lex tool (the two
+flex-x32: implementations do not share any code, though), with some extensions
+flex-x32: (and incompatibilities).
+flex-x32:
+flex-x32:
+flex-x32:
+flex-x32:
+flex-x32:
Index: flex/2.6.4-x86_32/flex-x32-pkg-install.sh
===================================================================
--- flex/2.6.4-x86_32/flex-x32-pkg-install.sh	(nonexistent)
+++ flex/2.6.4-x86_32/flex-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: flex/2.6.4-x86_32/flex-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: flex/2.6.4-x86_32
===================================================================
--- flex/2.6.4-x86_32	(nonexistent)
+++ flex/2.6.4-x86_32	(revision 5)

Property changes on: flex/2.6.4-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: flex
===================================================================
--- flex	(nonexistent)
+++ flex	(revision 5)

Property changes on: flex
___________________________________________________________________
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: gcc/12.2.0/Makefile
===================================================================
--- gcc/12.2.0/Makefile	(nonexistent)
+++ gcc/12.2.0/Makefile	(revision 5)
@@ -0,0 +1,817 @@
+
+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/GNU/gcc/gcc-12.2.0
+
+REQUIRES           = dev/binutils/2.39
+REQUIRES          += libs/isl/0.25
+REQUIRES          += libs/mpc/1.2.1
+REQUIRES          += libs/zstd/1.5.2
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+REQUIRES          += libs/isl/0.25-ppc32
+REQUIRES          += libs/mpc/1.2.1-ppc32
+REQUIRES          += libs/zstd/1.5.2-ppc32
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+REQUIRES          += libs/isl/0.25-x86_32
+REQUIRES          += libs/mpc/1.2.1-x86_32
+REQUIRES          += libs/zstd/1.5.2-x86_32
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version               = 12.2.0
+
+tar_xz_archive        = $(SRC_PACKAGE_PATH)/GNU/gcc/gcc-$(version)/gcc-$(version).tar.xz
+SRC_ARCHIVE           = $(tar_xz_archive)
+SRC_DIR               = $(TARGET_BUILD_DIR)/gcc-$(version)
+src_dir_name          = gcc-$(version)
+src_done              = $(TARGET_BUILD_DIR)/.source-done
+
+PATCHES     = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)     \
+                             $(TOOLCHAIN_RK33XX_GLIBC) \
+                             $(TOOLCHAIN_RK339X_GLIBC) \
+                             $(TOOLCHAIN_S9XX_GLIBC)   \
+                             $(TOOLCHAIN_A311X_GLIBC)  \
+                             $(TOOLCHAIN_M1000_GLIBC)),)
+OPT_PATCHES = PATCHES.aarch64
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER8LE_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+OPT_PATCHES = PATCHES.powerpc
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+OPT_PATCHES = PATCHES.x86_64
+endif
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GCC_DEV_PKG_NAME                = gcc
+GCC_DEV_PKG_VERSION             = 12.2.0
+GCC_DEV_PKG_ARCH                = $(PKGARCH)
+GCC_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GCC_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GCC_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+GCC_DEV_PKG_SHORT_DESCRIPTION   = GNU Compiler Collection
+GCC_DEV_PKG_URL                 = $(BUG_URL)
+GCC_DEV_PKG_LICENSE             = GPLv2
+GCC_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GCC_DEV_PKG_NAME)-pkg-description
+GCC_DEV_PKG_DESCRIPTION_FILE_IN = $(GCC_DEV_PKG_NAME)-pkg-description.in
+GCC_DEV_PKG_INSTALL_SCRIPT      = $(GCC_DEV_PKG_NAME)-pkg-install.sh
+
+GCC_DEV_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GCC_DEV_PKG_NAME)-package
+
+pkg_basename     = $(GCC_DEV_PKG_NAME)-$(GCC_DEV_PKG_VERSION)-$(GCC_DEV_PKG_ARCH)-$(GCC_DEV_PKG_DISTRO_NAME)-$(GCC_DEV_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
+
+#
+# NOTE: BUILD_MULTILIB_SUFFIX related to bulld machine
+#       (slacware64 - lib; ununtu64 - lib32) see $(BUILDSYSTEM)/targets.mk
+#
+export CC_FOR_BUILD       = gcc
+export CXX_FOR_BUILD      = g++
+export LD_FOR_BUILD       = ld
+export AR_FOR_BUILD       = ar
+export AS_FOR_BUILD       = as
+export NM_FOR_BUILD       = nm
+export CFLAGS_FOR_BUILD   = -I/usr/include
+export CXXFLAGS_FOR_BUILD = -I/usr/include
+export CPPFLAGS_FOR_BUILD = -I/usr/include
+export LDFLAGS_FOR_BUILD  = -L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+export GNATBIND           = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gnatbind
+export GNATLINK           = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gnatlink
+export GNATMAKE           = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gnatmake
+#
+# Do not use CCACHE for Ada/tools:
+#
+export GCC_FOR_GNAT       = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc --sysroot=$(TARGET_DEST_DIR)
+export GCC_LINK_FOR_GNAT  = $(TOOLCHAIN_PATH)/bin/$(TARGET)-g++ --sysroot=$(TARGET_DEST_DIR)
+
+export GOC_FOR_TARGET     = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gccgo --sysroot=$(TARGET_DEST_DIR)
+export GDC_FOR_TARGET     = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gdc --sysroot=$(TARGET_DEST_DIR)
+#
+# In gcc-12.2.0 the GDC_FOR_TARGET is not enough. We have to define GDC (for build):
+#
+export GDC                = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gdc --sysroot=$(TARGET_DEST_DIR)
+
+
+env_sysroot  = DESTDIR=$(GCC_DEV_PKG)
+
+
+extra_configure_switches += --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --datadir=/usr/share
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --docdir=/usr/share/doc
+
+extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
+extra_configure_switches += --enable-libstdcxx-dual-abi
+extra_configure_switches += --with-default-libstdcxx-abi=new
+extra_configure_switches += --disable-libstdcxx-pch
+extra_configure_switches += --disable-libunwind-exceptions
+extra_configure_switches += --with-linker-hash-style=gnu
+extra_configure_switches += --enable-gnu-unique-object
+extra_configure_switches += --enable-clocale=gnu
+extra_configure_switches += --enable-__cxa_atexit
+extra_configure_switches += --enable-threads=posix
+extra_configure_switches += --enable-default-ssp
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --enable-shared
+extra_configure_switches += --enable-lto
+extra_configure_switches += --enable-long-long
+
+extra_configure_switches += --with-system-zlib
+extra_configure_switches += --with-mpc=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-mpfr=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-gmp=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-isl=$(TARGET_DEST_DIR)/usr
+
+# Python 3.10 (The location to install Python modules. This path should NOT include the prefix):
+extra_configure_switches += --with-python-dir=/lib$(LIBSUFFIX)/python3.10/site-packages
+
+#
+# for target libgo:
+#
+extra_configure_switches += --enable-werror=no
+
+extra_configure_switches += --with-gnu-ld
+extra_configure_switches += --with-gnu-as
+
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-fix-cortex-a53-835769
+extra_configure_switches += --enable-fix-cortex-a53-843419
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a17
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-fix-cortex-a53-835769
+extra_configure_switches += --enable-fix-cortex-a53-843419
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a72.cortex-a53
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-fix-cortex-a53-835769
+extra_configure_switches += --enable-fix-cortex-a53-843419
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a5
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-fix-cortex-a53-835769
+extra_configure_switches += --enable-fix-cortex-a53-843419
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a73.cortex-a53
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --enable-fix-cortex-a53-835769
+extra_configure_switches += --enable-fix-cortex-a53-843419
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a9
+extra_configure_switches += --with-fpu=vfpv3
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-mode=thumb
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-mode=thumb
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a15
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-mode=thumb
+extra_configure_switches += --with-abi=aapcs-linux
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch-32=mips32r2
+extra_configure_switches += --with-arch-64=mips64r2
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-mips-plt
+extra_configure_switches += --enable-target-optspace
+extra_configure_switches += --enable-symvers=gnu
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=mips32r5
+extra_configure_switches += --with-tune=p5600
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --with-mips-plt
+extra_configure_switches += --enable-target-optspace
+extra_configure_switches += --enable-symvers=gnu
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a57
+extra_configure_switches += --with-abi=lp64
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-cpu-32=power8
+extra_configure_switches += --with-tune-32=power8
+extra_configure_switches += --with-cpu-64=power8
+extra_configure_switches += --with-tune-64=power8
+extra_configure_switches += --with-long-double-128
+# gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
+extra_configure_switches += --enable-gnu-indirect-function
+extra_configure_switches += --enable-secureplt
+extra_configure_switches += --disable-isl-version-check
+extra_configure_switches += --with-multilib-list=m64,m32
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-cpu=power8
+extra_configure_switches += --with-tune=power8
+extra_configure_switches += --with-long-double-128
+# gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
+extra_configure_switches += --enable-gnu-indirect-function
+extra_configure_switches += --enable-secureplt
+extra_configure_switches += --disable-isl-version-check
+extra_configure_switches += --disable-multilib
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-cpu-32=power9
+extra_configure_switches += --with-tune-32=power9
+extra_configure_switches += --with-cpu-64=power9
+extra_configure_switches += --with-tune-64=power9
+extra_configure_switches += --with-long-double-128
+# gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
+extra_configure_switches += --enable-gnu-indirect-function
+extra_configure_switches += --enable-secureplt
+extra_configure_switches += --disable-isl-version-check
+extra_configure_switches += --with-multilib-list=m64,m32
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-cpu=power9
+extra_configure_switches += --with-tune=power9
+extra_configure_switches += --with-long-double-128
+# gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
+extra_configure_switches += --enable-gnu-indirect-function
+extra_configure_switches += --enable-secureplt
+extra_configure_switches += --disable-isl-version-check
+extra_configure_switches += --disable-multilib
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-abi=lp64d
+extra_configure_switches += --with-arch=rv64imafdc
+extra_configure_switches += --enable-tls
+extra_configure_switches += --disable-tm-clone-registry
+extra_configure_switches += --disable-isl-version-check
+extra_configure_switches += --disable-multilib
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=i586
+extra_configure_switches += --with-tune=i586
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --with-arch=i686
+extra_configure_switches += --with-tune=i686
+extra_configure_switches += --disable-isl-version-check
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC))
+extra_configure_switches += '--with-pkgversion=$(DISTRO_NAME) $(SYSTEM_VERSION)'
+extra_configure_switches += '--with-bugurl=$(BUG_URL)'
+extra_configure_switches += --disable-isl-version-check
+extra_configure_switches += --with-multilib-list=m64,m32
+endif
+
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)     $(TOOLCHAIN_RK33XX_GLIBC)   \
+                             $(TOOLCHAIN_RK339X_GLIBC) $(TOOLCHAIN_S9XX_GLIBC)     \
+                             $(TOOLCHAIN_A311X_GLIBC)  $(TOOLCHAIN_M1000_GLIBC)    \
+                             $(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER8LE_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC) \
+                             $(TOOLCHAIN_X86_64_GLIBC)),)
+	$(call apply-opt-patches, $(SRC_DIR))
+endif
+	@sed -i 's,cat conftest.out,cat conftest.out | sed "s\,$(TARGET_DEST_DIR)\,\,g" | sed "s\,--build=$(BUILD_MACHINE_ARCH)\,--build=x86_64-radix-linux-gnu\,g",' $(SRC_DIR)/gcc/configure
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr                             \
+	  --build=$(BUILD)                          \
+	  --host=$(TARGET)                          \
+	  --target=$(TARGET)                        \
+	  $(extra_configure_switches)
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir) all
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir) info
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GCC_DEV_PKG)
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir) -j1 install $(env_sysroot)
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir) -j1 install-info $(env_sysroot)
+	@chmod 755 $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX)/libgcc_s.so.1
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@chmod 755 $(GCC_DEV_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libgcc_s.so.1
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@chmod 755 $(GCC_DEV_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libgcc_s.so.1
+endif
+	# ======= Move gdb pretty printers to the correct place =======
+	@mkdir -p $(GCC_DEV_PKG)/usr/share/gdb/auto-load/usr/lib$(LIBSUFFIX)
+	@mv $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX)/*-gdb.py \
+	    $(GCC_DEV_PKG)/usr/share/gdb/auto-load/usr/lib$(LIBSUFFIX)
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@mkdir -p $(GCC_DEV_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_PPC32_SUFFIX)
+	@mv $(GCC_DEV_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/*-gdb.py \
+	    $(GCC_DEV_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_PPC32_SUFFIX)
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@mkdir -p $(GCC_DEV_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_X86_32_SUFFIX)
+	@mv $(GCC_DEV_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/*-gdb.py \
+	    $(GCC_DEV_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_X86_32_SUFFIX)
+endif
+	# ====== Create cpp symbolic link in the '/lib' directory without LIBSUFFIX =======
+	@( cd $(GCC_DEV_PKG) ; \
+	   mkdir -p lib ; \
+	   cd lib ; \
+	   ln -sf ../usr/bin/cpp . \
+	 )
+	# ======= Install Documentation =======
+	@cp -a $(build_dir)/gcc/specs $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX)/gcc/$(TARGET)/$(version)
+	@rm -f $(GCC_DEV_PKG)/usr/share/info/dir
+	# ======= Remove info for gmp, libffi, mpc, mpfr =======
+	@rm -f $(GCC_DEV_PKG)/usr/share/info/{gmp,libffi,mpc,mpfr}.*
+	@gzip -9 $(GCC_DEV_PKG)/usr/share/info/*
+	@if [ -d $(GCC_DEV_PKG)/usr/share/man ]; then \
+	  ( cd $(GCC_DEV_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
+	@( cd $(GCC_DEV_PKG)/usr/share/man/man1 ; \
+	   ln -sf g++.1.gz c++.1.gz ; \
+	   ln -sf gcc.1.gz cc.1.gz \
+	 )
+	@( cd $(GCC_DEV_PKG)/usr/bin ; \
+	   mv g++ g++-$(version) ; \
+	   ln -sf g++-$(version) g++ ; \
+	   rm -f c++ ; \
+	   ln -sf g++ c++ ; \
+	   mv gcc gcc-$(version) ; \
+	   ln -sf gcc-$(version) gcc ; \
+	   ln -sf gcc cc ; \
+	   rm -f $(TARGET)-* ; \
+	   ln -sf g++-$(version) $(TARGET)-c++ ; \
+	   ln -sf g++-$(version) $(TARGET)-g++ ; \
+	   ln -sf gcc-$(version) $(TARGET)-gcc ; \
+	   ln -sf gcc-$(version) $(TARGET)-gcc-$(version) ; \
+	   ln -sf gcc-ar $(TARGET)-gcc-ar ; \
+	   ln -sf gcc-nm $(TARGET)-gcc-nm ; \
+	   ln -sf gcc-ranlib $(TARGET)-gcc-ranlib ; \
+	   ln -sf gccgo $(TARGET)-gccgo ; \
+	   ln -sf gdc $(TARGET)-gdc ; \
+	   mv gfortran gfortran-gcc-$(version) ; \
+	   ln -sf gfortran-gcc-$(version) gfortran ; \
+	   ln -sf gfortran-gcc-$(version) $(TARGET)-gfortran ; \
+	   ln -sf gfortran-gcc-$(version) $(TARGET)-gfortran-$(version) ; \
+	   ln -sf gfortran-gcc-$(version) $(TARGET)-g95 ; \
+	   ln -sf gfortran g95 ; \
+	   ln -sf gfortran f95 ; \
+	   ln -sf gfortran-gcc-$(version) $(TARGET)-g77 ; \
+	   ln -sf gfortran g77 ; \
+	   ln -sf gfortran f77 ; \
+	 )
+	@chmod a+x $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX)/lib*.la
+	@mkdir -p $(GCC_DEV_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING* \
+	       $(GCC_DEV_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GCC_DEV_PKG)/usr/share/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING* $(SRC_DIR)/MAI* \
+	       $(SRC_DIR)/NEWS $(SRC_DIR)/README $(SRC_DIR)/ChangeLog.jit \
+	       $(GCC_DEV_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GCC_DEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove build path from target libgo.la file =======
+	@( cd $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s, -L$(CURDIR)/$(build_dir)/$(TARGET)/libatomic/\.libs,,g" libgo.la \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s, -L$(CURDIR)/$(build_dir)/$(TARGET)/$(MULTILIB_PPC32_SUFFIX)/libatomic/\.libs,,g" libgo.la \
+	 )
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s, -L$(CURDIR)/$(build_dir)/$(TARGET)/$(MULTILIB_X86_32_SUFFIX)/libatomic/\.libs,,g" libgo.la \
+	 )
+endif
+	# ======= remove target destination path from target libtool *.la files =======
+	@( cd $(GCC_DEV_PKG)/usr/libexec/gcc/$(TARGET)/$(version) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" liblto_plugin.la \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for lib in asan cilkrts lsan tsan ubsan vtv ; do \
+	     if [ -f lib$$lib.la ] ; then \
+	       sed -i "s,$(TOOLCHAIN_PATH)/$(TARGET),/usr,g" lib$$lib.la ; \
+	     fi ; \
+	   done \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   for lib in asan cilkrts lsan tsan ubsan vtv ; do \
+	     if [ -f lib$$lib.la ] ; then \
+	       sed -i "s,$(TOOLCHAIN_PATH)/$(TARGET),/usr,g" lib$$lib.la ; \
+	     fi ; \
+	   done \
+	 )
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for lib in asan cilkrts lsan tsan ubsan vtv ; do \
+	     if [ -f lib$$lib.la ] ; then \
+	       sed -i "s,$(TOOLCHAIN_PATH)/$(TARGET),/usr,g" lib$$lib.la ; \
+	     fi ; \
+	   done \
+	 )
+endif
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	@if [ -d $(TARGET_DEST_DIR)/usr/libexec/gcc ] ; then \
+	   rm -rf $(TARGET_DEST_DIR)/usr/libexec/gcc ; \
+	 fi
+	@if [ -d $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gcc ] ; then \
+	   rm -rf $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gcc ; \
+	 fi
+	@if [ -d $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/go/$(version) ] ; then \
+	   rm -rf $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/go/$(version) ; \
+	 fi
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@if [ -d $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/go/$(version) ] ; then \
+	   rm -rf $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/go/$(version) ; \
+	 fi
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@if [ -d $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/go/$(version) ] ; then \
+	   rm -rf $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/go/$(version) ; \
+	 fi
+endif
+	$(call install-into-devenv, $(GCC_DEV_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/libexec/gcc/$(TARGET)/$(version) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" liblto_plugin.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" liblto_plugin.la \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gcc/$(TARGET)/$(version) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libcaf_single.la ; \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gcc/$(TARGET)/$(version)/$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libcaf_single.la ; \
+	 )
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/gcc/$(TARGET)/$(version)/$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libcaf_single.la ; \
+	 )
+endif
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   for lib in asan atomic cilkrts gdruntime gfortran go gomp gomp-plugin-host_nonshm gphobos itm lsan objc \
+	              quadmath mudflap mudflapth ssp ssp_nonshared stdc++ stdc++fs supc++ tsan ubsan vtv ; do \
+	     if [ -f lib$$lib.la ] ; then \
+	       sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" lib$$lib.la ; \
+	     fi ; \
+	   done \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   for lib in asan atomic cilkrts gdruntime gfortran go gomp gomp-plugin-host_nonshm gphobos itm lsan objc \
+	              quadmath mudflap mudflapth ssp ssp_nonshared stdc++ stdc++fs supc++ tsan ubsan vtv ; do \
+	     if [ -f lib$$lib.la ] ; then \
+	       sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" lib$$lib.la ; \
+	     fi ; \
+	   done \
+	 )
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for lib in asan atomic cilkrts gdruntime gfortran go gomp gomp-plugin-host_nonshm gphobos itm lsan objc \
+	              quadmath mudflap mudflapth ssp ssp_nonshared stdc++ stdc++fs supc++ tsan ubsan vtv ; do \
+	     if [ -f lib$$lib.la ] ; then \
+	       sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" lib$$lib.la ; \
+	     fi ; \
+	   done \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(GCC_DEV_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 ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC) \
+                             $(TOOLCHAIN_X86_64_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   target_rpath="/lib/../lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)" ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TOOLCHAIN_PATH)" ; then \
+	       $(PATCHELF) --set-rpath $${target_rpath} $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+else
+	@( cd $(GCC_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   target_rpath="/lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)" ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TOOLCHAIN_PATH)" ; then \
+	       $(PATCHELF) --set-rpath $${target_rpath} $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   target_rpath="/lib/../lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)" ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TOOLCHAIN_PATH)" ; then \
+	       $(PATCHELF) --set-rpath $${target_rpath} $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+	@( cd $(GCC_DEV_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   target_rpath="/lib/../lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)" ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TOOLCHAIN_PATH)" ; then \
+	       $(PATCHELF) --set-rpath $${target_rpath} $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+endif
+	@touch $@
+
+$(GCC_DEV_PKG_DESCRIPTION_FILE): $(GCC_DEV_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) $(GCC_DEV_PKG_DESCRIPTION_FILE) $(GCC_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(GCC_DEV_PKG_DESCRIPTION_FILE) $(GCC_DEV_PKG)/.DESCRIPTION
+	@cp $(GCC_DEV_PKG_INSTALL_SCRIPT) $(GCC_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GCC_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(GCC_DEV_PKG_NAME)"                            >  $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GCC_DEV_PKG_VERSION)"                          >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(GCC_DEV_PKG_ARCH)"                               >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GCC_DEV_PKG_DISTRO_NAME)"                  >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GCC_DEV_PKG_DISTRO_VERSION)"                >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(GCC_DEV_PKG_GROUP)"                             >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GCC_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(GCC_DEV_PKG_URL)"                                 >> $(GCC_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(GCC_DEV_PKG_LICENSE)"                         >> $(GCC_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GCC_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: gcc/12.2.0/PATCHES
===================================================================
--- gcc/12.2.0/PATCHES	(nonexistent)
+++ gcc/12.2.0/PATCHES	(revision 5)
@@ -0,0 +1,8 @@
+
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-build-libcpp.patch              -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-no-fixincludes.patch            -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-fixinc-gmp-outside.patch        -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-ccache-ada.patch                -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-fortran-interface.patch         -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-libstdc++-docs.patch            -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-libtool-no-rpath.patch          -p0
Index: gcc/12.2.0/PATCHES.aarch64
===================================================================
--- gcc/12.2.0/PATCHES.aarch64	(nonexistent)
+++ gcc/12.2.0/PATCHES.aarch64	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-aarch64-multilib.patch   -p0
Index: gcc/12.2.0/PATCHES.powerpc
===================================================================
--- gcc/12.2.0/PATCHES.powerpc	(nonexistent)
+++ gcc/12.2.0/PATCHES.powerpc	(revision 5)
@@ -0,0 +1,4 @@
+
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-ppc64-interpreter.patch  -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-ppc64-multilib.patch     -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-ppc64le-multilib.patch   -p0
Index: gcc/12.2.0/PATCHES.x86_64
===================================================================
--- gcc/12.2.0/PATCHES.x86_64	(nonexistent)
+++ gcc/12.2.0/PATCHES.x86_64	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-x86_64-interpreter.patch -p0
+../../../sources/GNU/gcc/gcc-12.2.0/patches/gcc-12.2.0-x86_64-multilib.patch    -p0
Index: gcc/12.2.0/gcc-pkg-description.in
===================================================================
--- gcc/12.2.0/gcc-pkg-description.in	(nonexistent)
+++ gcc/12.2.0/gcc-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------------------------------------------------------|
+gcc: GCC @VERSION@ (GNU Compiler Collection)
+gcc:
+gcc: This package contains parts of the compiler collection needed
+gcc: to compile C, C++, Objective-C/C++, D, Fortran, Ada and Go code.
+gcc:
+gcc:
+gcc: Homepage: https://gcc.gnu.org/
+gcc:
+gcc:
+gcc:
+gcc:
Index: gcc/12.2.0/gcc-pkg-install.sh
===================================================================
--- gcc/12.2.0/gcc-pkg-install.sh	(nonexistent)
+++ gcc/12.2.0/gcc-pkg-install.sh	(revision 5)
@@ -0,0 +1,121 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/cpp.info.gz          2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/cppinternals.info.gz 2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gcc.info.gz          2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gccgo.info.gz        2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gccinstall.info.gz   2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gccint.info.gz       2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gdc.info.gz          2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gfortran.info.gz     2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gnat-style.info.gz   2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gnat_rm.info.gz      2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/gnat_ugn.info.gz     2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/libgomp.info.gz      2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/libitm.info.gz       2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/libquadmath.info.gz  2>/dev/null
+  elif ! grep "(gcc)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+GNU Ada Tools
+* gnat-style: (gnat-style.info).
+                                gnat-style
+* gnat_rm: (gnat_rm.info).      gnat_rm
+* gnat_ugn: (gnat_ugn.info).    gnat_ugn
+
+GNU Libraries
+* libgomp: (libgomp).           GNU Offloading and Multi Processing Runtime 
+                                  Library.
+* libitm: (libitm).             GNU Transactional Memory Library
+* libquadmath: (libquadmath).   GCC Quad-Precision Math Library
+
+Software development
+* Cpp: (cpp).                   The GNU C preprocessor.
+* Cpplib: (cppinternals).       Cpplib internals.
+* Gccgo: (gccgo).               A GCC-based compiler for the Go language
+* g++: (gcc).                   The GNU C++ compiler.
+* gcc: (gcc).                   The GNU Compiler Collection.
+* gccinstall: (gccinstall).     Installing the GNU Compiler Collection.
+* gccint: (gccint).             Internals of the GNU Compiler Collection.
+* gcov: (gcc) Gcov.             'gcov'--a test coverage program.
+* gcov-dump: (gcc) Gcov-dump.   'gcov-dump'--an offline gcda and gcno profile 
+                                  dump tool.
+* gcov-tool: (gcc) Gcov-tool.   'gcov-tool'--an offline gcda profile 
+                                  processing program.
+* gdc: (gdc).                   A GCC-based compiler for the D language
+* gfortran: (gfortran).         The GNU Fortran Compiler.
+* lto-dump: (gcc) lto-dump.     'lto-dump'--Tool for dumping LTO object files.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/cpp.info.gz          --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/cppinternals.info.gz --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gcc.info.gz          --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gccgo.info.gz        --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gccinstall.info.gz   --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gccint.info.gz       --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gdc.info.gz          --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gfortran.info.gz     --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gnat-style.info.gz   --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gnat_rm.info.gz      --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gnat_ugn.info.gz     --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/libgomp.info.gz      --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/libitm.info.gz       --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/libquadmath.info.gz  --dir-file=usr/share/info/dir 2>/dev/null || /bin/true
+  fi
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: gcc/12.2.0/gcc-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: gcc/12.2.0
===================================================================
--- gcc/12.2.0	(nonexistent)
+++ gcc/12.2.0	(revision 5)

Property changes on: gcc/12.2.0
___________________________________________________________________
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: gcc
===================================================================
--- gcc	(nonexistent)
+++ gcc	(revision 5)

Property changes on: gcc
___________________________________________________________________
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: gcc-runtime/12.2.0/Makefile
===================================================================
--- gcc-runtime/12.2.0/Makefile	(nonexistent)
+++ gcc-runtime/12.2.0/Makefile	(revision 5)
@@ -0,0 +1,250 @@
+
+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
+
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = $(shell $(CC) -dumpversion)
+
+build_gcc_rt_pkg   = $(TARGET_BUILD_DIR)/.gcc_rt_pkg_done
+
+
+####### Targets
+
+PKG_GROUP = libs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GCC_RT_DEV_PKG_NAME                = gcc-runtime
+GCC_RT_DEV_PKG_VERSION             = 12.2.0
+GCC_RT_DEV_PKG_ARCH                = $(PKGARCH)
+GCC_RT_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GCC_RT_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GCC_RT_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+GCC_RT_DEV_PKG_SHORT_DESCRIPTION   = GNU Compiler Runtime Libraries
+GCC_RT_DEV_PKG_URL                 = $(BUG_URL)
+GCC_RT_DEV_PKG_LICENSE             = GPLv2
+GCC_RT_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GCC_RT_DEV_PKG_NAME)-pkg-description
+GCC_RT_DEV_PKG_DESCRIPTION_FILE_IN = $(GCC_RT_DEV_PKG_NAME)-pkg-description.in
+GCC_RT_DEV_PKG_INSTALL_SCRIPT      = $(GCC_RT_DEV_PKG_NAME)-pkg-install.sh
+
+GCC_RT_DEV_PKG   = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GCC_RT_DEV_PKG_NAME)-package
+
+pkg_basename     = $(GCC_RT_DEV_PKG_NAME)-$(GCC_RT_DEV_PKG_VERSION)-$(GCC_RT_DEV_PKG_ARCH)-$(GCC_RT_DEV_PKG_DISTRO_NAME)-$(GCC_RT_DEV_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_gcc_rt_pkg)
+
+PRODUCT_TARGETS  = $(products)
+#
+# Do not install 'gcc-runtime' to the target root filesystem
+#
+# ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+src_dir      = $(TOOLCHAIN_PATH)/$(TARGET)
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) \
+                             $(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+lib_compat            = yes
+MULTILIB_SUFFIX       = 32
+TARGET_MULTILIB_RPATH = /lib$(MULTILIB_SUFFIX):/usr/lib$(MULTILIB_SUFFIX):/usr/lib/../lib$(MULTILIB_SUFFIX)
+else
+lib_compat            = no
+endif
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+$(build_gcc_rt_pkg):
+	@mkdir -p $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX)
+	@( cd $(src_dir)/lib$(LIBSUFFIX) && \
+	   if [ "" != "`find -iname 'libasan*'       -exec echo '{}' \; -quit`" ] ; then cp -a libasan*       $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libatomic*'     -exec echo '{}' \; -quit`" ] ; then cp -a libatomic*     $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libcilkrts*'    -exec echo '{}' \; -quit`" ] ; then cp -a libcilkrts*    $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libgcc*'        -exec echo '{}' \; -quit`" ] ; then cp -a libgcc*        $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libgdruntime*'  -exec echo '{}' \; -quit`" ] ; then cp -a libgdruntime*  $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libgfortran*'   -exec echo '{}' \; -quit`" ] ; then cp -a libgfortran*   $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libgo*'         -exec echo '{}' \; -quit`" ] ; then cp -a libgo*         $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libgphobos*'    -exec echo '{}' \; -quit`" ] ; then cp -a libgphobos*    $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libitm*'        -exec echo '{}' \; -quit`" ] ; then cp -a libitm*        $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'liblsan*'       -exec echo '{}' \; -quit`" ] ; then cp -a liblsan*       $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libmudflap*'    -exec echo '{}' \; -quit`" ] ; then cp -a libmudflap*    $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libobjc*'       -exec echo '{}' \; -quit`" ] ; then cp -a libobjc*       $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libquadmath*'   -exec echo '{}' \; -quit`" ] ; then cp -a libquadmath*   $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libsanitizer*'  -exec echo '{}' \; -quit`" ] ; then cp -a libsanitizer*  $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libssp*'        -exec echo '{}' \; -quit`" ] ; then cp -a libssp*        $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libstdc*'       -exec echo '{}' \; -quit`" ] ; then cp -a libstdc*       $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libsupc*'       -exec echo '{}' \; -quit`" ] ; then cp -a libsupc*       $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libtsan*'       -exec echo '{}' \; -quit`" ] ; then cp -a libtsan*       $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libubsan*'      -exec echo '{}' \; -quit`" ] ; then cp -a libubsan*      $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi && \
+	   if [ "" != "`find -iname 'libvtv*'        -exec echo '{}' \; -quit`" ] ; then cp -a libvtv*        $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; fi    \
+	 )
+	@if test "$(lib_compat)" == "yes" ; then \
+	  mkdir  -p $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; \
+	  ( cd $(src_dir)/lib$(MULTILIB_SUFFIX) && \
+	    if [ "" != "`find -iname 'libasan*'       -exec echo '{}' \; -quit`" ] ; then cp -a libasan*       $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libatomic*'     -exec echo '{}' \; -quit`" ] ; then cp -a libatomic*     $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libcilkrts*'    -exec echo '{}' \; -quit`" ] ; then cp -a libcilkrts*    $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libgcc*'        -exec echo '{}' \; -quit`" ] ; then cp -a libgcc*        $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libgdruntime*'  -exec echo '{}' \; -quit`" ] ; then cp -a libgdruntime*  $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libgfortran*'   -exec echo '{}' \; -quit`" ] ; then cp -a libgfortran*   $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libgo*'         -exec echo '{}' \; -quit`" ] ; then cp -a libgo*         $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libgphobos*'    -exec echo '{}' \; -quit`" ] ; then cp -a libgphobos*    $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libitm*'        -exec echo '{}' \; -quit`" ] ; then cp -a libitm*        $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'liblsan*'       -exec echo '{}' \; -quit`" ] ; then cp -a liblsan*       $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libmudflap*'    -exec echo '{}' \; -quit`" ] ; then cp -a libmudflap*    $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libobjc*'       -exec echo '{}' \; -quit`" ] ; then cp -a libobjc*       $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libquadmath*'   -exec echo '{}' \; -quit`" ] ; then cp -a libquadmath*   $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libsanitizer*'  -exec echo '{}' \; -quit`" ] ; then cp -a libsanitizer*  $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libssp*'        -exec echo '{}' \; -quit`" ] ; then cp -a libssp*        $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libstdc*'       -exec echo '{}' \; -quit`" ] ; then cp -a libstdc*       $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libsupc*'       -exec echo '{}' \; -quit`" ] ; then cp -a libsupc*       $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libtsan*'       -exec echo '{}' \; -quit`" ] ; then cp -a libtsan*       $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libubsan*'      -exec echo '{}' \; -quit`" ] ; then cp -a libubsan*      $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi && \
+	    if [ "" != "`find -iname 'libvtv*'        -exec echo '{}' \; -quit`" ] ; then cp -a libvtv*        $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; fi    \
+	  ) ; \
+	 fi
+	@rm -f $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX)/*gdb.py
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) \
+                             $(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@rm -f $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX)/*gdb.py
+endif
+	# ======= tune linker *.la files =======
+	@( cd $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(src_dir)/lib,$(TARGET_DEST_DIR)/usr/lib,g" *.la \
+	 )
+	@if test "$(lib_compat)" == "yes" ; then \
+	  ( cd $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; \
+	    sed -i "s,$(src_dir)/lib,$(TARGET_DEST_DIR)/usr/lib,g" *.la  \
+	  ) ; \
+	 fi
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GCC_RT_DEV_PKG))
+	# ======= tune target libtool *.la scripts =======
+	@( cd $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" *.la ; \
+	 )
+	@if test "$(lib_compat)" == "yes" ; then \
+	  ( cd $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; \
+	    sed -i "s,$(TARGET_DEST_DIR),,g" *.la ; \
+	  ) ; \
+	 fi
+	# ======= Strip binaries =======
+	@( cd $(GCC_RT_DEV_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 ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GCC_RT_DEV_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(src_dir)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	@if test "$(lib_compat)" == "yes" ; then \
+	  ( cd $(GCC_RT_DEV_PKG)/usr/lib$(MULTILIB_SUFFIX) ; \
+	    for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	      rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	      if echo "$$rpath" | grep -q "$(src_dir)" ; then \
+	        $(PATCHELF) --set-rpath $(TARGET_MULTILIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	      fi ; \
+	    done ; \
+	  ) ; \
+	 fi
+endif
+	@touch $@
+
+$(GCC_RT_DEV_PKG_DESCRIPTION_FILE): $(GCC_RT_DEV_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): $(build_gcc_rt_pkg) $(GCC_RT_DEV_PKG_DESCRIPTION_FILE) $(GCC_RT_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(GCC_RT_DEV_PKG_DESCRIPTION_FILE) $(GCC_RT_DEV_PKG)/.DESCRIPTION
+	@cp $(GCC_RT_DEV_PKG_INSTALL_SCRIPT) $(GCC_RT_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(GCC_RT_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(GCC_RT_DEV_PKG_NAME)"                            >  $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GCC_RT_DEV_PKG_VERSION)"                          >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(GCC_RT_DEV_PKG_ARCH)"                               >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GCC_RT_DEV_PKG_DISTRO_NAME)"                  >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GCC_RT_DEV_PKG_DISTRO_VERSION)"                >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(GCC_RT_DEV_PKG_GROUP)"                             >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GCC_RT_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(GCC_RT_DEV_PKG_URL)"                                 >> $(GCC_RT_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(GCC_RT_DEV_PKG_LICENSE)"                         >> $(GCC_RT_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GCC_RT_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: gcc-runtime/12.2.0/README
===================================================================
--- gcc-runtime/12.2.0/README	(nonexistent)
+++ gcc-runtime/12.2.0/README	(revision 5)
@@ -0,0 +1,14 @@
+
+All packages for target root file system are built using $(TARGET_DEST_DIR)
+temporary file system which contains the mirror of whole target system
+including all header files and libs for development purposes.
+
+Before start building target libraries and applications we have to prepare
+$(TARGET_DEST_DIR) for development.
+
+The first libraries in the $(TARGET_DEST_DIR) mirror shoul be the GCC runtime
+libraries from TOOLCHAIN. This libraries will not be installed into target
+root file system. This libraries will be used only for building GNU Libc.
+
+Target root file system will containt GCC runtime libraries which will be
+built in GCC package later.
Index: gcc-runtime/12.2.0/gcc-runtime-pkg-description.in
===================================================================
--- gcc-runtime/12.2.0/gcc-runtime-pkg-description.in	(nonexistent)
+++ gcc-runtime/12.2.0/gcc-runtime-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------------------------------------------------------|
+gcc-runtime: GCC @VERSION@ (GNU Compiler Runtime Libraries)
+gcc-runtime:
+gcc-runtime: This package contains only GCC runtime libraries needed to run
+gcc-runtime: binaries linked with libgcc_s, libstdc++, ...
+gcc-runtime:
+gcc-runtime: This libraries are taken from cross toolchains and will be replaced
+gcc-runtime: with native GCC for target platform.
+gcc-runtime:
+gcc-runtime:
+gcc-runtime:
+gcc-runtime:
Index: gcc-runtime/12.2.0/gcc-runtime-pkg-install.sh
===================================================================
--- gcc-runtime/12.2.0/gcc-runtime-pkg-install.sh	(nonexistent)
+++ gcc-runtime/12.2.0/gcc-runtime-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: gcc-runtime/12.2.0/gcc-runtime-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: gcc-runtime/12.2.0
===================================================================
--- gcc-runtime/12.2.0	(nonexistent)
+++ gcc-runtime/12.2.0	(revision 5)

Property changes on: gcc-runtime/12.2.0
___________________________________________________________________
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: gcc-runtime
===================================================================
--- gcc-runtime	(nonexistent)
+++ gcc-runtime	(revision 5)

Property changes on: gcc-runtime
___________________________________________________________________
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: gdb/12.1/Makefile
===================================================================
--- gdb/12.1/Makefile	(nonexistent)
+++ gdb/12.1/Makefile	(revision 5)
@@ -0,0 +1,466 @@
+
+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/GNU/gdb
+
+REQUIRES           = dev/binutils/2.39
+REQUIRES          += dev/guile/3.0.5
+REQUIRES          += libs/readline/8.2
+REQUIRES          += libs/zlib/1.2.13
+REQUIRES          += libs/isl/0.25
+REQUIRES          += libs/mpc/1.2.1
+REQUIRES          += app/xz/5.2.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 12.1
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/gdb/gdb-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gdb-$(version)
+src_dir_name       = gdb-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GDB_DEV_PKG_NAME                = gdb
+GDB_DEV_PKG_VERSION             = 12.1
+GDB_DEV_PKG_ARCH                = $(PKGARCH)
+GDB_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GDB_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GDB_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+GDB_DEV_PKG_SHORT_DESCRIPTION   = GNU binary development tools
+GDB_DEV_PKG_URL                 = $(BUG_URL)
+GDB_DEV_PKG_LICENSE             = GPLv2
+GDB_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GDB_DEV_PKG_NAME)-pkg-description
+GDB_DEV_PKG_DESCRIPTION_FILE_IN = $(GDB_DEV_PKG_NAME)-pkg-description.in
+GDB_DEV_PKG_INSTALL_SCRIPT      = $(GDB_DEV_PKG_NAME)-pkg-install.sh
+
+GDB_DEV_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GDB_DEV_PKG_NAME)-package
+
+pkg_basename     = $(GDB_DEV_PKG_NAME)-$(GDB_DEV_PKG_VERSION)-$(GDB_DEV_PKG_ARCH)-$(GDB_DEV_PKG_DISTRO_NAME)-$(GDB_DEV_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
+
+
+#
+# NOTE: BUILD_MULTILIB_SUFFIX related to bulld machine
+#       (slacware64 - lib; ubuntu64 - lib32) see $(BUILDSYSTEM)/targets.mk
+#
+export CC_FOR_BUILD       = gcc
+export CXX_FOR_BUILD      = g++
+export LD_FOR_BUILD       = ld
+export AR_FOR_BUILD       = ar
+export AS_FOR_BUILD       = as
+export NM_FOR_BUILD       = nm
+export CFLAGS_FOR_BUILD   = -I/usr/include
+export CXXFLAGS_FOR_BUILD = -I/usr/include
+export CPPFLAGS_FOR_BUILD = -I/usr/include
+export LDFLAGS_FOR_BUILD  = -L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+env_sysroot = DESTDIR=$(GDB_DEV_PKG)
+
+
+#
+# Common controls for components:
+#
+extra_configure_switches  = --disable-dependency-tracking
+extra_configure_switches += --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --docdir=/usr/share/doc
+extra_configure_switches += --datadir=/usr/share
+
+extra_configure_switches += --with-system-readline
+extra_configure_switches += --with-system-zlib
+extra_configure_switches += --with-gmp=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-mpc=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-mpfr=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-isl=$(TARGET_DEST_DIR)/usr
+
+extra_configure_switches += --with-libexpat-type=shared
+extra_configure_switches += --with-libexpat-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-libgmp-type=shared
+extra_configure_switches += --with-libgmp-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-libmpfr-type=shared
+extra_configure_switches += --with-libmpfr-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-liblzma-type=shared
+extra_configure_switches += --with-liblzma-prefix=$(TARGET_DEST_DIR)/usr
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a17
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a5
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a53
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a9
+extra_configure_switches += --with-fpu=vfpv3
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6ULL_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a7
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7-a
+extra_configure_switches += --with-tune=cortex-a8
+extra_configure_switches += --with-fpu=neon
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
+extra_configure_switches += --enable-interwork
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=armv7ve
+extra_configure_switches += --with-tune=cortex-a15
+extra_configure_switches += --with-fpu=neon-vfpv4
+extra_configure_switches += --with-abi=aapcs-linux
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch-32=mips32r2
+extra_configure_switches += --with-arch-64=mips64r2
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --enable-werror=no
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
+extra_configure_switches += --enable-multilib
+extra_configure_switches += --disable-libssp
+extra_configure_switches += --with-arch=mips32r5
+extra_configure_switches += --with-tune=p5600
+extra_configure_switches += --with-float=hard
+extra_configure_switches += --enable-werror=no
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-arch=armv8-a
+extra_configure_switches += --with-cpu=cortex-a57
+extra_configure_switches += --with-fpu=neon-fp-armv8
+extra_configure_switches += --with-abi=lp64
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)),)
+extra_configure_switches += --with-multilib-list=m64,m32
+extra_configure_switches += --with-cpu=power8
+extra_configure_switches += --with-tune=power8
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=power8
+extra_configure_switches += --with-tune=power8
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC)),)
+extra_configure_switches += --with-multilib-list=m64,m32
+extra_configure_switches += --with-cpu=power9
+extra_configure_switches += --with-tune=power9
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC)),)
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-cpu=power9
+extra_configure_switches += --with-tune=power9
+endif
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC))
+extra_configure_switches += --disable-multilib
+extra_configure_switches += --with-abi=lp64d
+extra_configure_switches += --with-arch=rv64imafdc
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
+extra_configure_switches += --with-arch=i586
+extra_configure_switches += --with-tune=i586
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
+extra_configure_switches += --with-arch=i686
+extra_configure_switches += --with-tune=i686
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+extra_configure_switches += --with-multilib-list=m64,m32
+endif
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	# ======= -Wmissing-prototypes for C and Objective-C only =======
+	@( cd $(SRC_DIR) ; \
+	   sed -i '/^\-Wmissing\-prototypes/d' gdb/configure        ; \
+	   sed -i '/^\-Wmissing\-prototypes/d' gdbserver/configure  ; \
+	   sed -i '/^\-Wmissing\-prototypes/d' gdbsupport/configure ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr                             \
+	  --build=$(BUILD)                          \
+	  --host=$(TARGET)                          \
+	  --target=$(TARGET)                        \
+	  $(extra_configure_switches)
+	$(BUILD_ENVIRONMENT) $(MAKE) -C $(build_dir)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GDB_DEV_PKG)
+	$(BUILD_ENVIRONMENT) $(MAKE) -j1 -C $(build_dir) install $(env_sysroot)
+	# ======= None of this stuff has ever been included in this package: =======
+	@rm  -f $(GDB_DEV_PKG)/usr/lib$(LIBSUFFIX)/{libbfd*,libiberty*,libopcodes*}
+	@rm -rf $(GDB_DEV_PKG)/usr/lib$(LIBSUFFIX)
+	@rm  -f $(GDB_DEV_PKG)/usr/share/info/{annotate*,bfd*,configure*,standards*}
+	@rm -rf $(GDB_DEV_PKG)/usr/include
+	# ======= Install Documentation =======
+	@rm -f $(GDB_DEV_PKG)/usr/share/info/dir
+	@gzip -9 $(GDB_DEV_PKG)/usr/share/info/*
+	@if [ -d $(GDB_DEV_PKG)/usr/share/man ]; then \
+	  ( cd $(GDB_DEV_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 $(GDB_DEV_PKG)/usr/doc/gdb-$(version)
+	@cp -a $(SRC_DIR)/COPYING* \
+	       $(GDB_DEV_PKG)/usr/doc/gdb-$(version)
+	@mkdir -p $(GDB_DEV_PKG)/usr/share/doc/gdb-$(version)
+	@cp -a $(SRC_DIR)/COPYING* $(SRC_DIR)/MAINTAINERS $(SRC_DIR)/README* \
+	       $(GDB_DEV_PKG)/usr/share/doc/gdb-$(version)
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GDB_DEV_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GDB_DEV_PKG))
+	# ======= Strip binaries =======
+	@( cd $(GDB_DEV_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(GDB_DEV_PKG_DESCRIPTION_FILE): $(GDB_DEV_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) $(GDB_DEV_PKG_DESCRIPTION_FILE) $(GDB_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(GDB_DEV_PKG_DESCRIPTION_FILE) $(GDB_DEV_PKG)/.DESCRIPTION
+	@cp $(GDB_DEV_PKG_INSTALL_SCRIPT) $(GDB_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GDB_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(GDB_DEV_PKG_NAME)"                            >  $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GDB_DEV_PKG_VERSION)"                          >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(GDB_DEV_PKG_ARCH)"                               >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GDB_DEV_PKG_DISTRO_NAME)"                  >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GDB_DEV_PKG_DISTRO_VERSION)"                >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(GDB_DEV_PKG_GROUP)"                             >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GDB_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(GDB_DEV_PKG_URL)"                                 >> $(GDB_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(GDB_DEV_PKG_LICENSE)"                         >> $(GDB_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GDB_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: gdb/12.1/PATCHES
===================================================================
--- gdb/12.1/PATCHES	(nonexistent)
+++ gdb/12.1/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/gdb/patches/gdb-12.1-compiler-permissive.patch -p0
Index: gdb/12.1/gdb-pkg-description.in
===================================================================
--- gdb/12.1/gdb-pkg-description.in	(nonexistent)
+++ gdb/12.1/gdb-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------------------------------------------------------|
+gdb: GNU gdb @VERSION@ (GNU symbolic debugger)
+gdb:
+gdb: GDB, the GNU Project debugger, allows you to see what is going on
+gdb: inside another program while it executes - or what another program
+gdb: was doing at the moment it crashed.
+gdb:
+gdb: The program being debugged can be written in Ada, C, C++,
+gdb: Objective-C, Pascal and many other languages.
+gdb:
+gdb:
+gdb:
Index: gdb/12.1/gdb-pkg-install.sh
===================================================================
--- gdb/12.1/gdb-pkg-install.sh	(nonexistent)
+++ gdb/12.1/gdb-pkg-install.sh	(revision 5)
@@ -0,0 +1,73 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/gdb.info.gz   2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/stabs.info.gz 2>/dev/null
+  elif ! grep "(gdb)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Software development
+* Gdb: (gdb).                   The GNU debugger.
+* Stabs: (stabs).               The "stabs" debugging information format.
+* gdbserver: (gdb) Server.      The GNU debugging server.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/stabs.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/gdb.info.gz   --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: gdb/12.1/gdb-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: gdb/12.1
===================================================================
--- gdb/12.1	(nonexistent)
+++ gdb/12.1	(revision 5)

Property changes on: gdb/12.1
___________________________________________________________________
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: gdb
===================================================================
--- gdb	(nonexistent)
+++ gdb	(revision 5)

Property changes on: gdb
___________________________________________________________________
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: git/2.34.1/Makefile
===================================================================
--- git/2.34.1/Makefile	(nonexistent)
+++ git/2.34.1/Makefile	(revision 5)
@@ -0,0 +1,251 @@
+
+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/git
+
+REQUIRES           = libs/glibc/2.36
+
+REQUIRES          += app/grep/3.6
+REQUIRES          += libs/pcre2/10.36
+REQUIRES          += libs/expat/2.5.0
+REQUIRES          += net/curl/7.75.0
+REQUIRES          += secure/shadow/4.8.1
+REQUIRES          += dev/perl-modules/perl-error/0.17029
+REQUIRES          += dev/perl-modules/perl-mailtools/2.21
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.34.1
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/git/git-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/git-$(version)
+src_dir_name       = git-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GIT_PKG_NAME                = git
+GIT_PKG_VERSION             = 2.34.1
+GIT_PKG_ARCH                = $(PKGARCH)
+GIT_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GIT_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GIT_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+GIT_PKG_SHORT_DESCRIPTION   = the stupid content tracker
+GIT_PKG_URL                 = $(BUG_URL)
+GIT_PKG_LICENSE             = GPLv2
+GIT_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GIT_PKG_NAME)-pkg-description
+GIT_PKG_DESCRIPTION_FILE_IN = $(GIT_PKG_NAME)-pkg-description.in
+GIT_PKG_INSTALL_SCRIPT      = $(GIT_PKG_NAME)-pkg-install.sh
+
+GIT_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GIT_PKG_NAME)-package
+
+pkg_basename     = $(GIT_PKG_NAME)-$(GIT_PKG_VERSION)-$(GIT_PKG_ARCH)-$(GIT_PKG_DISTRO_NAME)-$(GIT_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=$(GIT_PKG)
+
+
+#
+# From Perl5 config:
+# =================
+#  INSTALLDIRS=vendor
+#  INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+#
+perl_environment += perllibdir='/usr/share/perl5/vendor_perl'
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(MAKE) $(BUILD_ENVIRONMENT) \
+	       prefix=/usr \
+	       $(perl_environment) \
+	       ASCIIDOC8=YesPlease \
+	       USE_LIBPCRE2=YesPlease \
+	       NO_PERL_CPAN_FALLBACKS=YesPlease \
+	       MAN_BOLD_LITERAL=YesPlease \
+	       INSTALL_SYMLINKS=YesPlease \
+	       all doc ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GIT_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(MAKE) $(BUILD_ENVIRONMENT) \
+	       prefix=/usr \
+	       $(perl_environment) \
+	       ASCIIDOC8=YesPlease \
+	       USE_LIBPCRE2=YesPlease \
+	       NO_PERL_CPAN_FALLBACKS=YesPlease \
+	       MAN_BOLD_LITERAL=YesPlease \
+	       INSTALL_SYMLINKS=YesPlease \
+	       install install-doc \
+	       $(env_sysroot) ; \
+	 )
+	# ======= Install Bash Completion file: =======
+	@mkdir -p $(GIT_PKG)/usr/share/bash-completion/completions
+	@cat $(SRC_DIR)/contrib/completion/git-completion.bash \
+	     > $(GIT_PKG)/usr/share/bash-completion/completions/git
+	# ======= Install Documentation =======
+	@if [ -d $(GIT_PKG)/usr/share/man ]; then \
+	  ( cd $(GIT_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 $(GIT_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING* $(SRC_DIR)/LGPL* \
+	       $(GIT_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GIT_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING* INSTALL LGPL* README* \
+	         Documentation contrib \
+	         $(GIT_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   cp -a `readlink RelNotes` $(GIT_PKG)/usr/share/doc/$(src_dir_name)/RelNotes-$(version).txt ; \
+	 )
+	@( cd $(GIT_PKG)/usr/share/doc/$(src_dir_name)/Documentation ; \
+	   rm -rf RelNotes ; \
+	   find . -name '.git*' -delete ; \
+	   find . \( -name 'GIT*' -o -name 'Coding*' -o -name 'Makefile*' \
+	             -o -name 'SubmittingPatches'  -o -name 'doc-diff'    \
+	             -o -name '*.conf' -o -name '*.dep' -o -name '*.made' \
+	             -o -name '*.txto' -o -name '*.perl' -o -name '*.rb'  \
+	             -o -name '*.sh' -o -name '*.xsl*' -o -name '*.xml'   \
+	             -o -name '*.1' -o -name '*.5' -o -name '*.7' \) -delete ; \
+	   find . -name '*.html' -exec sed -i 's,\r$$,,g' {} \; ; \
+	 )
+	@( cd $(GIT_PKG)/usr/share/doc/$(src_dir_name)/contrib ; \
+	   find . -name '.git*' -delete ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GIT_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GIT_PKG))
+	# ======= Strip binaries =======
+	@( cd $(GIT_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(GIT_PKG_DESCRIPTION_FILE): $(GIT_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) $(GIT_PKG_DESCRIPTION_FILE) $(GIT_PKG_INSTALL_SCRIPT)
+	@cp $(GIT_PKG_DESCRIPTION_FILE) $(GIT_PKG)/.DESCRIPTION
+	@cp $(GIT_PKG_INSTALL_SCRIPT) $(GIT_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GIT_PKG)/.REQUIRES
+	@echo "pkgname=$(GIT_PKG_NAME)"                            >  $(GIT_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GIT_PKG_VERSION)"                          >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "arch=$(GIT_PKG_ARCH)"                               >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GIT_PKG_DISTRO_NAME)"                  >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GIT_PKG_DISTRO_VERSION)"                >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "group=$(GIT_PKG_GROUP)"                             >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GIT_PKG_SHORT_DESCRIPTION)\"" >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "url=$(GIT_PKG_URL)"                                 >> $(GIT_PKG)/.PKGINFO ; \
+	 echo "license=$(GIT_PKG_LICENSE)"                         >> $(GIT_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GIT_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: git/2.34.1/PATCHES
===================================================================
Index: git/2.34.1/git-pkg-description.in
===================================================================
--- git/2.34.1/git-pkg-description.in	(nonexistent)
+++ git/2.34.1/git-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------------------------------------------------------|
+git: git @VERSION@ (the stupid content tracker)
+git:
+git: Git is a fast, scalable, distributed revision control system with an
+git: unusually rich command set that provides both high-level operations
+git: and full access to internals.
+git:
+git: "git" can mean anything, depending on your mood.
+git:
+git: Git was originally written by Linus Torvalds and is currently
+git: maintained by Junio C. Hamano.
+git:
Index: git/2.34.1/git-pkg-install.sh
===================================================================
--- git/2.34.1/git-pkg-install.sh	(nonexistent)
+++ git/2.34.1/git-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: git/2.34.1/git-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: git/2.34.1
===================================================================
--- git/2.34.1	(nonexistent)
+++ git/2.34.1	(revision 5)

Property changes on: git/2.34.1
___________________________________________________________________
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: git
===================================================================
--- git	(nonexistent)
+++ git	(revision 5)

Property changes on: git
___________________________________________________________________
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: gperf/3.1/Makefile
===================================================================
--- gperf/3.1/Makefile	(nonexistent)
+++ gperf/3.1/Makefile	(revision 5)
@@ -0,0 +1,217 @@
+
+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/GNU/gperf
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/12.2.0
+else
+REQUIRES           = libs/glibc/2.36
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/GNU/gperf/gperf-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/gperf-$(version)
+src_dir_name       = gperf-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GPERF_PKG_NAME                = gperf
+GPERF_PKG_VERSION             = 3.1
+GPERF_PKG_ARCH                = $(PKGARCH)
+GPERF_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GPERF_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GPERF_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+GPERF_PKG_SHORT_DESCRIPTION   = perfect hash function generator
+GPERF_PKG_URL                 = $(BUG_URL)
+GPERF_PKG_LICENSE             = GPLv3
+GPERF_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GPERF_PKG_NAME)-pkg-description
+GPERF_PKG_DESCRIPTION_FILE_IN = $(GPERF_PKG_NAME)-pkg-description.in
+GPERF_PKG_INSTALL_SCRIPT      = $(GPERF_PKG_NAME)-pkg-install.sh
+
+GPERF_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GPERF_PKG_NAME)-package
+
+pkg_basename     = $(GPERF_PKG_NAME)-$(GPERF_PKG_VERSION)-$(GPERF_PKG_ARCH)-$(GPERF_PKG_DISTRO_NAME)-$(GPERF_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=$(GPERF_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --sysconfdir=/etc
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GPERF_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@rm -f $(GPERF_PKG)/usr/share/info/dir
+	@gzip -9 $(GPERF_PKG)/usr/share/info/*
+	@if [ -d $(GPERF_PKG)/usr/share/man ]; then \
+	  ( cd $(GPERF_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 $(GPERF_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(GPERF_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GPERF_PKG)/usr/share/doc/$(src_dir_name)/html
+	@( cd $(GPERF_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   mv gperf.html html ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README* \
+	         $(GPERF_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GPERF_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GPERF_PKG))
+	# ======= Strip binaries =======
+	@( cd $(GPERF_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null \
+	 )
+	@touch $@
+
+$(GPERF_PKG_DESCRIPTION_FILE): $(GPERF_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) $(GPERF_PKG_DESCRIPTION_FILE) $(GPERF_PKG_INSTALL_SCRIPT)
+	@cp $(GPERF_PKG_DESCRIPTION_FILE) $(GPERF_PKG)/.DESCRIPTION
+	@cp $(GPERF_PKG_INSTALL_SCRIPT) $(GPERF_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GPERF_PKG)/.REQUIRES
+	@echo "pkgname=$(GPERF_PKG_NAME)"                            >  $(GPERF_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GPERF_PKG_VERSION)"                          >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "arch=$(GPERF_PKG_ARCH)"                               >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GPERF_PKG_DISTRO_NAME)"                  >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GPERF_PKG_DISTRO_VERSION)"                >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "group=$(GPERF_PKG_GROUP)"                             >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GPERF_PKG_SHORT_DESCRIPTION)\"" >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "url=$(GPERF_PKG_URL)"                                 >> $(GPERF_PKG)/.PKGINFO ; \
+	 echo "license=$(GPERF_PKG_LICENSE)"                         >> $(GPERF_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GPERF_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: gperf/3.1/PATCHES
===================================================================
Index: gperf/3.1/gperf-pkg-description.in
===================================================================
--- gperf/3.1/gperf-pkg-description.in	(nonexistent)
+++ gperf/3.1/gperf-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------------------------------------------------------|
+gperf: gperf @VERSION@ (a perfect hash function generator)
+gperf:
+gperf: gperf is a perfect hash function generator written in C++.
+gperf: It transforms an n element user-specified keyword set W into a
+gperf: perfect hash function F. gperf currently generates the reserved
+gperf: keyword recognizer for lexical analyzers in several production and
+gperf: research compilers and language processing tools, including GNU C,
+gperf: GNU C++, GNU Java, GNU Pascal, GNU Modula 3, and GNU indent.
+gperf:
+gperf: gperf was written by by Douglas C. Schmidt and Bruno Haible.
+gperf:
Index: gperf/3.1/gperf-pkg-install.sh
===================================================================
--- gperf/3.1/gperf-pkg-install.sh	(nonexistent)
+++ gperf/3.1/gperf-pkg-install.sh	(revision 5)
@@ -0,0 +1,69 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/gperf.info.gz 2>/dev/null
+  elif ! grep "(gperf)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Programming Tools
+* Gperf: (gperf).               Perfect Hash Function Generator.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/gperf.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: gperf/3.1/gperf-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: gperf/3.1
===================================================================
--- gperf/3.1	(nonexistent)
+++ gperf/3.1	(revision 5)

Property changes on: gperf/3.1
___________________________________________________________________
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: gperf
===================================================================
--- gperf	(nonexistent)
+++ gperf	(revision 5)

Property changes on: gperf
___________________________________________________________________
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: guile/3.0.5/Makefile
===================================================================
--- guile/3.0.5/Makefile	(nonexistent)
+++ guile/3.0.5/Makefile	(revision 5)
@@ -0,0 +1,340 @@
+
+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/GNU/guile
+
+REQUIRES           = libs/libffi/3.4.4
+REQUIRES          += libs/gmp/6.2.1
+REQUIRES          += libs/readline/8.2
+REQUIRES          += dev/libtool/2.4.6
+REQUIRES          += libs/libunistring/0.9.10
+REQUIRES          += libs/gc/8.0.4
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.0.5
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/guile/guile-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/guile-$(version)
+src_dir_name       = guile-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+guile_for_build    = $(TARGET_BUILD_DIR)/guile-for-build
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GUILE_PKG_NAME                = guile
+GUILE_PKG_VERSION             = 3.0.5
+GUILE_PKG_ARCH                = $(PKGARCH)
+GUILE_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GUILE_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GUILE_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+GUILE_PKG_SHORT_DESCRIPTION   = GNU extension language library
+GUILE_PKG_URL                 = $(BUG_URL)
+GUILE_PKG_LICENSE             = LGPLv3
+GUILE_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GUILE_PKG_NAME)-pkg-description
+GUILE_PKG_DESCRIPTION_FILE_IN = $(GUILE_PKG_NAME)-pkg-description.in
+GUILE_PKG_INSTALL_SCRIPT      = $(GUILE_PKG_NAME)-pkg-install.sh
+
+GUILE_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GUILE_PKG_NAME)-package
+
+pkg_basename     = $(GUILE_PKG_NAME)-$(GUILE_PKG_VERSION)-$(GUILE_PKG_ARCH)-$(GUILE_PKG_DISTRO_NAME)-$(GUILE_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
+
+
+#
+#  NOTE:
+# =======================================================================================
+#
+#  Guile compiles to bytecode for a custom virtual machine. Guile 2.2 compiles to ELF.
+#  In the future they want to do native compilation. But now Guile 2.2's ELF contains
+#  byte code for Guile's virtual machine.
+#
+#     see: https://www.gnu.org/software/guile/manual/html_node/Object-File-Format.html
+#
+#  The *.go shared object files should be excluded during sptrip/patch ELF procedure.
+#  Currently to exclude Guile's object files we use following filter:
+#
+#      grep "shared object" | grep -v "no machine" | grep ELF
+#                            ----------------------
+#
+# =======================================================================================
+#
+
+
+env_sysroot = DESTDIR=$(GUILE_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+extra_configure_switches += --with-threads
+extra_configure_switches += --disable-error-on-warning
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+# Тhе road to hellis paved with good intentions:
+extra_configure_switches += --without-libgmp-prefix
+extra_configure_switches += --without-libiconv-prefix
+extra_configure_switches += --without-libintl-prefix
+extra_configure_switches += --without-libltdl-prefix
+extra_configure_switches += --without-libreadline-prefix
+extra_configure_switches += --without-libunistring-prefix
+
+
+GUILE_LOAD_PATH    = ../../$(src_dir_name)/module
+guile_environment  = GUILE_LOAD_PATH=$(GUILE_LOAD_PATH)
+
+guile_environment += GUILE_FOR_BUILD=$(CURDIR)/$(guile_for_build)/meta/guile
+guile_environment += CC_FOR_BUILD=gcc
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	# ======= Guile For Build =======
+	@mkdir -p $(guile_for_build)
+	@( cd $(guile_for_build) ; \
+	   PKG_CONFIG_LIBDIR= \
+	   PKG_CONFIG_PATH=/usr/lib$(BUILD_MULTILIB_SUFFIX)/pkgconfig \
+	   ../$(src_dir_name)/configure --prefix=/usr --libdir=/usr/lib$(BUILD_MULTILIB_SUFFIX) ; \
+	   $(MAKE) ; \
+	 )
+	# ======= Guile For Target =======
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(guile_environment) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(guile_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GUILE_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Move debugging script to avoid ldconfig errors: =======
+	@mkdir -p $(GUILE_PKG)/usr/share/gdb/auto-load/usr/lib$(LIBSUFFIX)
+	@mv $(GUILE_PKG)/usr/lib$(LIBSUFFIX)/libguile-*-gdb.scm \
+	    $(GUILE_PKG)/usr/share/gdb/auto-load/usr/lib$(LIBSUFFIX)
+	# ======= Change timestamps on *.go and *.scm files, otherwise on multilib systems =======
+	# ======= the compiled (go) files may be detected as older than the source (scm)   =======
+	# ======= files, causing guile to attempt to recompile itself with every use:      =======
+	@touch $(TARGET_BUILD_DIR)/.guile-scm-timestamp
+	@find $(GUILE_PKG)/usr/lib$(LIBSUFFIX) -name "*.go" -exec touch -r $(TARGET_BUILD_DIR)/.guile-scm-timestamp "{}" \;
+	@find $(GUILE_PKG)/usr/share -name "*.scm" -exec touch -r $(TARGET_BUILD_DIR)/.guile-scm-timestamp "{}" \;
+	# ======= Install Documentation =======
+	@rm -f $(GUILE_PKG)/usr/share/info/dir
+	@gzip -9 $(GUILE_PKG)/usr/share/info/*
+	@if [ -d $(GUILE_PKG)/usr/share/man ]; then \
+	  ( cd $(GUILE_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 $(GUILE_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING* $(SRC_DIR)/LICENSE  \
+	       $(GUILE_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(GUILE_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING* GUILE-VERSION \
+	         HACKING LICENSE NEWS README* THANKS \
+	         $(GUILE_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(GUILE_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GUILE_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libguile-?.?.la ; \
+	 )
+	@( cd $(GUILE_PKG)/usr/lib$(LIBSUFFIX)/guile/?.?/extensions ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" guile-readline.la ; \
+	 )
+	@( cd $(GUILE_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" guile-?.?.pc \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GUILE_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libguile-?.?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libguile-?.?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/guile/?.?/extensions ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   guile-readline.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" guile-readline.la ; \
+	 )
+	# ======= 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"   guile-?.?.pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" guile-?.?.pc ; \
+	 )
+	# ======= tune guile-snarf for target system =======
+	@( cd $(GUILE_PKG)/usr/bin ; \
+	   sed -i "s,$(TOOLCHAIN_PATH).*\",gcc -std=gnu11 -E\",g" guile-snarf ; \
+	 )
+	# ======= Strip binaries excluding Guile's *.go object files =======
+	@( cd $(GUILE_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 -v "no machine" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(GUILE_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(GUILE_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GUILE_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep -v "no machine" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GUILE_PKG_DESCRIPTION_FILE): $(GUILE_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) $(GUILE_PKG_DESCRIPTION_FILE) $(GUILE_PKG_INSTALL_SCRIPT)
+	@cp $(GUILE_PKG_DESCRIPTION_FILE) $(GUILE_PKG)/.DESCRIPTION
+	@cp $(GUILE_PKG_INSTALL_SCRIPT) $(GUILE_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GUILE_PKG)/.REQUIRES
+	@echo "pkgname=$(GUILE_PKG_NAME)"                            >  $(GUILE_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GUILE_PKG_VERSION)"                          >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "arch=$(GUILE_PKG_ARCH)"                               >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GUILE_PKG_DISTRO_NAME)"                  >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GUILE_PKG_DISTRO_VERSION)"                >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "group=$(GUILE_PKG_GROUP)"                             >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GUILE_PKG_SHORT_DESCRIPTION)\"" >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "url=$(GUILE_PKG_URL)"                                 >> $(GUILE_PKG)/.PKGINFO ; \
+	 echo "license=$(GUILE_PKG_LICENSE)"                         >> $(GUILE_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GUILE_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: guile/3.0.5/PATCHES
===================================================================
--- guile/3.0.5/PATCHES	(nonexistent)
+++ guile/3.0.5/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/guile/patches/guile-3.0.5-cross.patch -p0
Index: guile/3.0.5/doc/README
===================================================================
--- guile/3.0.5/doc/README	(nonexistent)
+++ guile/3.0.5/doc/README	(revision 5)
@@ -0,0 +1,26 @@
+
+#
+#  NOTE:
+# =======================================================================================
+#
+#  Guile compiles to bytecode for a custom virtual machine. Guile 2.2 compiles to ELF.
+#  In the future they want to do native compilation. But now Guile 2.2's ELF contains
+#  byte code for Guile's virtual machine.
+#
+#     see: https://www.gnu.org/software/guile/manual/html_node/Object-File-Format.html
+#
+#  The *.go shared object files should be excluded during sptrip/patch ELF procedure.
+#  Currently to exclude Guile's object files we use following filter:
+#
+#      grep "shared object" | grep -v "no machine" | grep ELF
+#                            ----------------------
+#
+# =======================================================================================
+#
+
+#
+# GUILE_EFFECTIVE_VERSION=3.0 can be obtained by following script:
+#
+#   guile-effective-version = $(shell . $(SRC_DIR)/GUILE-VERSION ; echo $${GUILE_EFFECTIVE_VERSION} )
+#
+#
Index: guile/3.0.5/doc
===================================================================
--- guile/3.0.5/doc	(nonexistent)
+++ guile/3.0.5/doc	(revision 5)

Property changes on: guile/3.0.5/doc
___________________________________________________________________
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: guile/3.0.5/guile-pkg-description.in
===================================================================
--- guile/3.0.5/guile-pkg-description.in	(nonexistent)
+++ guile/3.0.5/guile-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------------------------------------------------------|
+guile: guile @VERSION@ (GNU extension language library)
+guile:
+guile: This is Guile, Project GNU's extension language library. Guile is an
+guile: interpreter for Scheme, packaged as a library that you can link into
+guile: your applications to give them their own scripting language. Guile
+guile: will eventually support other languages as well, giving users of
+guile: Guile-based applications a choice of languages.
+guile:
+guile:
+guile:
+guile:
Index: guile/3.0.5/guile-pkg-install.sh
===================================================================
--- guile/3.0.5/guile-pkg-install.sh	(nonexistent)
+++ guile/3.0.5/guile-pkg-install.sh	(revision 5)
@@ -0,0 +1,72 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/guile.info.gz 2>/dev/null
+    install-info --info-dir=usr/share/info usr/share/info/r5rs.info.gz  2>/dev/null
+  elif ! grep "(guile)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+The Algorithmic Language Scheme
+* Guile Reference: (guile).     The Guile reference manual.
+* R5RS: (r5rs).                 The Revised(5) Report on Scheme.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/guile.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+    install-info --delete --info-file=usr/share/info/r5rs.info.gz  --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: guile/3.0.5/guile-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: guile/3.0.5
===================================================================
--- guile/3.0.5	(nonexistent)
+++ guile/3.0.5	(revision 5)

Property changes on: guile/3.0.5
___________________________________________________________________
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: guile/3.0.5-ppc32/Makefile
===================================================================
--- guile/3.0.5-ppc32/Makefile	(nonexistent)
+++ guile/3.0.5-ppc32/Makefile	(revision 5)
@@ -0,0 +1,252 @@
+
+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/GNU/guile
+
+REQUIRES           = dev/guile/3.0.5
+REQUIRES          += libs/libffi/3.4.4-ppc32
+REQUIRES          += libs/gmp/6.2.1-ppc32
+REQUIRES          += libs/readline/8.2-ppc32
+REQUIRES          += dev/libtool/2.4.6-ppc32
+REQUIRES          += libs/libunistring/0.9.10-ppc32
+REQUIRES          += libs/gc/8.0.4-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.0.5
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/guile/guile-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/guile-$(version)
+src_dir_name       = guile-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+guile_for_build    = $(TARGET_BUILD_DIR)/guile-for-build
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GUILE_32_PKG_NAME                = guile-x32
+GUILE_32_PKG_VERSION             = 3.0.5
+GUILE_32_PKG_ARCH                = $(PKGARCH)
+GUILE_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GUILE_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GUILE_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+GUILE_32_PKG_SHORT_DESCRIPTION   = GNU extension language library
+GUILE_32_PKG_URL                 = $(BUG_URL)
+GUILE_32_PKG_LICENSE             = LGPLv3
+GUILE_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GUILE_32_PKG_NAME)-pkg-description
+GUILE_32_PKG_DESCRIPTION_FILE_IN = $(GUILE_32_PKG_NAME)-pkg-description.in
+GUILE_32_PKG_INSTALL_SCRIPT      = $(GUILE_32_PKG_NAME)-pkg-install.sh
+
+GUILE_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GUILE_32_PKG_NAME)-package
+
+pkg_basename     = $(GUILE_32_PKG_NAME)-$(GUILE_32_PKG_VERSION)-$(GUILE_32_PKG_ARCH)-$(GUILE_32_PKG_DISTRO_NAME)-$(GUILE_32_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=$(GUILE_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+extra_configure_switches += --with-threads
+extra_configure_switches += --disable-error-on-warning
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+# Тhе road to hellis paved with good intentions:
+extra_configure_switches += --without-libgmp-prefix
+extra_configure_switches += --without-libiconv-prefix
+extra_configure_switches += --without-libintl-prefix
+extra_configure_switches += --without-libltdl-prefix
+extra_configure_switches += --without-libreadline-prefix
+extra_configure_switches += --without-libunistring-prefix
+
+
+GUILE_LOAD_PATH    = ../../$(src_dir_name)/module
+guile_environment  = GUILE_LOAD_PATH=$(GUILE_LOAD_PATH)
+
+guile_environment += GUILE_FOR_BUILD=$(CURDIR)/$(guile_for_build)/meta/guile
+guile_environment += CC_FOR_BUILD=gcc
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	# ======= Guile For Build =======
+	@mkdir -p $(guile_for_build)
+	@( cd $(guile_for_build) ; \
+	   PKG_CONFIG_LIBDIR= \
+	   PKG_CONFIG_PATH=/usr/lib$(BUILD_MULTILIB_SUFFIX)/pkgconfig \
+	   ../$(src_dir_name)/configure --prefix=/usr --libdir=/usr/lib$(BUILD_MULTILIB_SUFFIX) ; \
+	   $(MAKE) ; \
+	 )
+	# ======= Guile For Target =======
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(guile_environment) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(guile_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GUILE_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(GUILE_32_PKG)/usr/include
+	@rm -rf $(GUILE_32_PKG)/usr/share
+	# ======= Move debugging script to avoid ldconfig errors: =======
+	@mkdir -p $(GUILE_32_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_PPC32_SUFFIX)
+	@mv $(GUILE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libguile-*-gdb.scm \
+	    $(GUILE_32_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_PPC32_SUFFIX)
+	# ======= Change timestamps on *.go and *.scm files, otherwise on multilib systems =======
+	# ======= the compiled (go) files may be detected as older than the source (scm)   =======
+	# ======= files, causing guile to attempt to recompile itself with every use:      =======
+	@touch $(TARGET_BUILD_DIR)/.guile-scm-timestamp
+	@find $(GUILE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) -name "*.go" -exec touch -r $(TARGET_BUILD_DIR)/.guile-scm-timestamp "{}" \;
+	@find $(GUILE_32_PKG)/usr/share -name "*.scm" -exec touch -r $(TARGET_BUILD_DIR)/.guile-scm-timestamp "{}" \;
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libguile-?.?.la ; \
+	 )
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/guile/?.?/extensions ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" guile-readline.la ; \
+	 )
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" guile-?.?.pc \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GUILE_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libguile-?.?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libguile-?.?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/guile/?.?/extensions ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   guile-readline.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" guile-readline.la ; \
+	 )
+	# ======= 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"   guile-?.?.pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" guile-?.?.pc ; \
+	 )
+	# ======= tune guile-snarf for target system =======
+	@( cd $(GUILE_32_PKG)/usr/bin/32 ; \
+	   sed -i "s,$(TOOLCHAIN_PATH).*\",gcc -m32 -std=gnu11 -E\",g" guile-snarf ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GUILE_32_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 -v "no machine" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(GUILE_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(GUILE_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep -v "no machine" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GUILE_32_PKG_DESCRIPTION_FILE): $(GUILE_32_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) $(GUILE_32_PKG_DESCRIPTION_FILE) $(GUILE_32_PKG_INSTALL_SCRIPT)
+	@cp $(GUILE_32_PKG_DESCRIPTION_FILE) $(GUILE_32_PKG)/.DESCRIPTION
+	@cp $(GUILE_32_PKG_INSTALL_SCRIPT) $(GUILE_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GUILE_32_PKG)/.REQUIRES
+	@echo "pkgname=$(GUILE_32_PKG_NAME)"                            >  $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GUILE_32_PKG_VERSION)"                          >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(GUILE_32_PKG_ARCH)"                               >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GUILE_32_PKG_DISTRO_NAME)"                  >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GUILE_32_PKG_DISTRO_VERSION)"                >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "group=$(GUILE_32_PKG_GROUP)"                             >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GUILE_32_PKG_SHORT_DESCRIPTION)\"" >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "url=$(GUILE_32_PKG_URL)"                                 >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "license=$(GUILE_32_PKG_LICENSE)"                         >> $(GUILE_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GUILE_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: guile/3.0.5-ppc32/PATCHES
===================================================================
--- guile/3.0.5-ppc32/PATCHES	(nonexistent)
+++ guile/3.0.5-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/guile/patches/guile-3.0.5-cross.patch -p0
Index: guile/3.0.5-ppc32/guile-x32-pkg-description.in
===================================================================
--- guile/3.0.5-ppc32/guile-x32-pkg-description.in	(nonexistent)
+++ guile/3.0.5-ppc32/guile-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------------------------------------------------------|
+guile-x32: guile-x32 @VERSION@ (GNU extension language library)
+guile-x32:
+guile-x32: This is Guile, Project GNU's extension language library. Guile is an
+guile-x32: interpreter for Scheme, packaged as a library that you can link into
+guile-x32: your applications to give them their own scripting language. Guile
+guile-x32: will eventually support other languages as well, giving users of
+guile-x32: Guile-based applications a choice of languages.
+guile-x32:
+guile-x32:
+guile-x32:
+guile-x32:
Index: guile/3.0.5-ppc32/guile-x32-pkg-install.sh
===================================================================
--- guile/3.0.5-ppc32/guile-x32-pkg-install.sh	(nonexistent)
+++ guile/3.0.5-ppc32/guile-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: guile/3.0.5-ppc32/guile-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: guile/3.0.5-ppc32
===================================================================
--- guile/3.0.5-ppc32	(nonexistent)
+++ guile/3.0.5-ppc32	(revision 5)

Property changes on: guile/3.0.5-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: guile/3.0.5-x86_32/Makefile
===================================================================
--- guile/3.0.5-x86_32/Makefile	(nonexistent)
+++ guile/3.0.5-x86_32/Makefile	(revision 5)
@@ -0,0 +1,250 @@
+
+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/GNU/guile
+
+REQUIRES           = dev/guile/3.0.5
+REQUIRES          += libs/libffi/3.4.4-x86_32
+REQUIRES          += libs/gmp/6.2.1-x86_32
+REQUIRES          += libs/readline/8.2-x86_32
+REQUIRES          += dev/libtool/2.4.6-x86_32
+REQUIRES          += libs/libunistring/0.9.10-x86_32
+REQUIRES          += libs/gc/8.0.4-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.0.5
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/guile/guile-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/guile-$(version)
+src_dir_name       = guile-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+guile_for_build    = $(TARGET_BUILD_DIR)/guile-for-build
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+GUILE_32_PKG_NAME                = guile-x32
+GUILE_32_PKG_VERSION             = 3.0.5
+GUILE_32_PKG_ARCH                = $(PKGARCH)
+GUILE_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+GUILE_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+GUILE_32_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+GUILE_32_PKG_SHORT_DESCRIPTION   = GNU extension language library
+GUILE_32_PKG_URL                 = $(BUG_URL)
+GUILE_32_PKG_LICENSE             = LGPLv3
+GUILE_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(GUILE_32_PKG_NAME)-pkg-description
+GUILE_32_PKG_DESCRIPTION_FILE_IN = $(GUILE_32_PKG_NAME)-pkg-description.in
+GUILE_32_PKG_INSTALL_SCRIPT      = $(GUILE_32_PKG_NAME)-pkg-install.sh
+
+GUILE_32_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(GUILE_32_PKG_NAME)-package
+
+pkg_basename     = $(GUILE_32_PKG_NAME)-$(GUILE_32_PKG_VERSION)-$(GUILE_32_PKG_ARCH)-$(GUILE_32_PKG_DISTRO_NAME)-$(GUILE_32_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=$(GUILE_32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --disable-rpath
+extra_configure_switches += --with-threads
+extra_configure_switches += --disable-error-on-warning
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+# Тhе road to hellis paved with good intentions:
+extra_configure_switches += --without-libgmp-prefix
+extra_configure_switches += --without-libiconv-prefix
+extra_configure_switches += --without-libintl-prefix
+extra_configure_switches += --without-libltdl-prefix
+extra_configure_switches += --without-libreadline-prefix
+extra_configure_switches += --without-libunistring-prefix
+
+
+GUILE_LOAD_PATH    = ../../$(src_dir_name)/module
+guile_environment  = GUILE_LOAD_PATH=$(GUILE_LOAD_PATH)
+
+guile_environment += GUILE_FOR_BUILD=$(CURDIR)/$(guile_for_build)/meta/guile
+guile_environment += CC_FOR_BUILD=gcc
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	# ======= Guile For Build =======
+	@mkdir -p $(guile_for_build)
+	@( cd $(guile_for_build) ; \
+	   PKG_CONFIG_LIBDIR= \
+	   PKG_CONFIG_PATH=/usr/lib$(BUILD_MULTILIB_SUFFIX)/pkgconfig \
+	   ../$(src_dir_name)/configure --prefix=/usr --libdir=/usr/lib$(BUILD_MULTILIB_SUFFIX) ; \
+	   $(MAKE) ; \
+	 )
+	# ======= Guile For Target =======
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(guile_environment) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(guile_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(GUILE_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(GUILE_32_PKG)/usr/include
+	@rm -rf $(GUILE_32_PKG)/usr/share
+	# ======= Move debugging script to avoid ldconfig errors: =======
+	@mkdir -p $(GUILE_32_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_X86_32_SUFFIX)
+	@mv $(GUILE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libguile-*-gdb.scm \
+	    $(GUILE_32_PKG)/usr/share/gdb/auto-load/usr/lib$(MULTILIB_X86_32_SUFFIX)
+	# ======= Change timestamps on *.go and *.scm files, otherwise on multilib systems =======
+	# ======= the compiled (go) files may be detected as older than the source (scm)   =======
+	# ======= files, causing guile to attempt to recompile itself with every use:      =======
+	@touch $(TARGET_BUILD_DIR)/.guile-scm-timestamp
+	@find $(GUILE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) -name "*.go" -exec touch -r $(TARGET_BUILD_DIR)/.guile-scm-timestamp "{}" \;
+	@find $(GUILE_32_PKG)/usr/share -name "*.scm" -exec touch -r $(TARGET_BUILD_DIR)/.guile-scm-timestamp "{}" \;
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libguile-?.?.la ; \
+	 )
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/guile/?.?/extensions ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" guile-readline.la ; \
+	 )
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" guile-?.?.pc \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(GUILE_32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libguile-?.?.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libguile-?.?.la ; \
+	 )
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/guile/?.?/extensions ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   guile-readline.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" guile-readline.la ; \
+	 )
+
+	# ======= 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"   guile-?.?.pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" guile-?.?.pc ; \
+	 )
+	# ======= tune guile-snarf for target system =======
+	@( cd $(GUILE_32_PKG)/usr/bin/32 ; \
+	   sed -i "s,$(TOOLCHAIN_PATH).*\",gcc -m32 -std=gnu11 -E\",g" guile-snarf ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(GUILE_32_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 -v "no machine" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(GUILE_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(GUILE_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(GUILE_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep -v "no machine" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(GUILE_32_PKG_DESCRIPTION_FILE): $(GUILE_32_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) $(GUILE_32_PKG_DESCRIPTION_FILE) $(GUILE_32_PKG_INSTALL_SCRIPT)
+	@cp $(GUILE_32_PKG_DESCRIPTION_FILE) $(GUILE_32_PKG)/.DESCRIPTION
+	@cp $(GUILE_32_PKG_INSTALL_SCRIPT) $(GUILE_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(GUILE_32_PKG)/.REQUIRES
+	@echo "pkgname=$(GUILE_32_PKG_NAME)"                            >  $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(GUILE_32_PKG_VERSION)"                          >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(GUILE_32_PKG_ARCH)"                               >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(GUILE_32_PKG_DISTRO_NAME)"                  >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(GUILE_32_PKG_DISTRO_VERSION)"                >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "group=$(GUILE_32_PKG_GROUP)"                             >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(GUILE_32_PKG_SHORT_DESCRIPTION)\"" >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "url=$(GUILE_32_PKG_URL)"                                 >> $(GUILE_32_PKG)/.PKGINFO ; \
+	 echo "license=$(GUILE_32_PKG_LICENSE)"                         >> $(GUILE_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(GUILE_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: guile/3.0.5-x86_32/PATCHES
===================================================================
--- guile/3.0.5-x86_32/PATCHES	(nonexistent)
+++ guile/3.0.5-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/guile/patches/guile-3.0.5-cross.patch -p0
Index: guile/3.0.5-x86_32/guile-x32-pkg-description.in
===================================================================
--- guile/3.0.5-x86_32/guile-x32-pkg-description.in	(nonexistent)
+++ guile/3.0.5-x86_32/guile-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------------------------------------------------------|
+guile-x32: guile-x32 @VERSION@ (GNU extension language library)
+guile-x32:
+guile-x32: This is Guile, Project GNU's extension language library. Guile is an
+guile-x32: interpreter for Scheme, packaged as a library that you can link into
+guile-x32: your applications to give them their own scripting language. Guile
+guile-x32: will eventually support other languages as well, giving users of
+guile-x32: Guile-based applications a choice of languages.
+guile-x32:
+guile-x32:
+guile-x32:
+guile-x32:
Index: guile/3.0.5-x86_32/guile-x32-pkg-install.sh
===================================================================
--- guile/3.0.5-x86_32/guile-x32-pkg-install.sh	(nonexistent)
+++ guile/3.0.5-x86_32/guile-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: guile/3.0.5-x86_32/guile-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: guile/3.0.5-x86_32
===================================================================
--- guile/3.0.5-x86_32	(nonexistent)
+++ guile/3.0.5-x86_32	(revision 5)

Property changes on: guile/3.0.5-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: guile
===================================================================
--- guile	(nonexistent)
+++ guile	(revision 5)

Property changes on: guile
___________________________________________________________________
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: intltool/0.51.0/Makefile
===================================================================
--- intltool/0.51.0/Makefile	(nonexistent)
+++ intltool/0.51.0/Makefile	(revision 5)
@@ -0,0 +1,207 @@
+
+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/intltool
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.51.0
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/intltool/intltool-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/intltool-$(version)
+src_dir_name       = intltool-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+INTLTOOL_PKG_NAME                = intltool
+INTLTOOL_PKG_VERSION             = 0.51.0
+INTLTOOL_PKG_ARCH                = $(PKGARCH)
+INTLTOOL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+INTLTOOL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+INTLTOOL_PKG_GROUP               = $(PKG_GROUP)
+###                               |---handy-ruler-------------------------------|
+INTLTOOL_PKG_SHORT_DESCRIPTION   = Utilities for translation support
+INTLTOOL_PKG_URL                 = $(BUG_URL)
+INTLTOOL_PKG_LICENSE             = GPLv2
+INTLTOOL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(INTLTOOL_PKG_NAME)-pkg-description
+INTLTOOL_PKG_DESCRIPTION_FILE_IN = $(INTLTOOL_PKG_NAME)-pkg-description.in
+INTLTOOL_PKG_INSTALL_SCRIPT      = $(INTLTOOL_PKG_NAME)-pkg-install.sh
+
+INTLTOOL_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(INTLTOOL_PKG_NAME)-package
+
+pkg_basename     = $(INTLTOOL_PKG_NAME)-$(INTLTOOL_PKG_VERSION)-$(INTLTOOL_PKG_ARCH)-$(INTLTOOL_PKG_DISTRO_NAME)-$(INTLTOOL_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=$(INTLTOOL_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) PERL=/usr/bin/perl ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(INTLTOOL_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(INTLTOOL_PKG)/usr/share/man ]; then \
+	  ( cd $(INTLTOOL_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 $(INTLTOOL_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(INTLTOOL_PKG)/usr/share/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(INTLTOOL_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(INTLTOOL_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING NEWS README TODO \
+	         $(INTLTOOL_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@cat $(CURDIR)/doc/README-XML-Parser \
+	     > $(INTLTOOL_PKG)/usr/share/doc/$(src_dir_name)/README-XML-Parser
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(INTLTOOL_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(INTLTOOL_PKG))
+	@touch $@
+
+$(INTLTOOL_PKG_DESCRIPTION_FILE): $(INTLTOOL_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) $(INTLTOOL_PKG_DESCRIPTION_FILE) $(INTLTOOL_PKG_INSTALL_SCRIPT)
+	@cp $(INTLTOOL_PKG_DESCRIPTION_FILE) $(INTLTOOL_PKG)/.DESCRIPTION
+	@cp $(INTLTOOL_PKG_INSTALL_SCRIPT) $(INTLTOOL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(INTLTOOL_PKG)/.REQUIRES
+	@echo "pkgname=$(INTLTOOL_PKG_NAME)"                            >  $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(INTLTOOL_PKG_VERSION)"                          >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "arch=$(INTLTOOL_PKG_ARCH)"                               >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(INTLTOOL_PKG_DISTRO_NAME)"                  >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(INTLTOOL_PKG_DISTRO_VERSION)"                >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "group=$(INTLTOOL_PKG_GROUP)"                             >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(INTLTOOL_PKG_SHORT_DESCRIPTION)\"" >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "url=$(INTLTOOL_PKG_URL)"                                 >> $(INTLTOOL_PKG)/.PKGINFO ; \
+	 echo "license=$(INTLTOOL_PKG_LICENSE)"                         >> $(INTLTOOL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(INTLTOOL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: intltool/0.51.0/PATCHES
===================================================================
--- intltool/0.51.0/PATCHES	(nonexistent)
+++ intltool/0.51.0/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/intltool/patches/intltool-0.51.0-perl.patch     -p0
+../../../sources/packages/d/intltool/patches/intltool-0.51.0-builddir.patch -p0
Index: intltool/0.51.0/doc/README-XML-Parser
===================================================================
--- intltool/0.51.0/doc/README-XML-Parser	(nonexistent)
+++ intltool/0.51.0/doc/README-XML-Parser	(revision 5)
@@ -0,0 +1,10 @@
+
+Before using the intltool you have to install XML::Parser Perl module.
+
+To install XML::Parser you can make use following command as root:
+
+# cpan-install XML::Parser
+
+Enjoy.
+
+
Index: intltool/0.51.0/doc
===================================================================
--- intltool/0.51.0/doc	(nonexistent)
+++ intltool/0.51.0/doc	(revision 5)

Property changes on: intltool/0.51.0/doc
___________________________________________________________________
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: intltool/0.51.0/intltool-pkg-description.in
===================================================================
--- intltool/0.51.0/intltool-pkg-description.in	(nonexistent)
+++ intltool/0.51.0/intltool-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------------------------------------------------------|
+intltool: intltool @VERSION@ (Utilities for translation support)
+intltool:
+intltool: This package contains scripts and autoconf files for
+intltool: internationalizing data.
+intltool:
+intltool: Homepage: https://edge.launchpad.net/intltool
+intltool:
+intltool:
+intltool:
+intltool:
+intltool:
Index: intltool/0.51.0/intltool-pkg-install.sh
===================================================================
--- intltool/0.51.0/intltool-pkg-install.sh	(nonexistent)
+++ intltool/0.51.0/intltool-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: intltool/0.51.0/intltool-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: intltool/0.51.0
===================================================================
--- intltool/0.51.0	(nonexistent)
+++ intltool/0.51.0	(revision 5)

Property changes on: intltool/0.51.0
___________________________________________________________________
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: intltool
===================================================================
--- intltool	(nonexistent)
+++ intltool	(revision 5)

Property changes on: intltool
___________________________________________________________________
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: kernel/a1x/6.0.7-headers/Makefile
===================================================================
--- kernel/a1x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/a1x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_CB1X)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/a1x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/a1x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/a1x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/a1x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/a1x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/a1x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/a1x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/a1x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/a1x/6.0.7-headers
===================================================================
--- kernel/a1x/6.0.7-headers	(nonexistent)
+++ kernel/a1x/6.0.7-headers	(revision 5)

Property changes on: kernel/a1x/6.0.7-headers
___________________________________________________________________
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: kernel/a1x
===================================================================
--- kernel/a1x	(nonexistent)
+++ kernel/a1x	(revision 5)

Property changes on: kernel/a1x
___________________________________________________________________
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: kernel/a2x/6.0.7-headers/Makefile
===================================================================
--- kernel/a2x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/a2x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/a2x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/a2x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/a2x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/a2x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/a2x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/a2x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/a2x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/a2x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/a2x/6.0.7-headers
===================================================================
--- kernel/a2x/6.0.7-headers	(nonexistent)
+++ kernel/a2x/6.0.7-headers	(revision 5)

Property changes on: kernel/a2x/6.0.7-headers
___________________________________________________________________
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: kernel/a2x
===================================================================
--- kernel/a2x	(nonexistent)
+++ kernel/a2x	(revision 5)

Property changes on: kernel/a2x
___________________________________________________________________
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: kernel/a311x/6.0.7-headers/Makefile
===================================================================
--- kernel/a311x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/a311x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_KHADAS_VIM3)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/a311x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/a311x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/a311x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/a311x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/a311x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/a311x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/a311x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/a311x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/a311x/6.0.7-headers
===================================================================
--- kernel/a311x/6.0.7-headers	(nonexistent)
+++ kernel/a311x/6.0.7-headers	(revision 5)

Property changes on: kernel/a311x/6.0.7-headers
___________________________________________________________________
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: kernel/a311x
===================================================================
--- kernel/a311x	(nonexistent)
+++ kernel/a311x	(revision 5)

Property changes on: kernel/a311x
___________________________________________________________________
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: kernel/am335x/6.0.7-headers/Makefile
===================================================================
--- kernel/am335x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/am335x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BONE_BLACK)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/am335x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/am335x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/am335x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/am335x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/am335x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/am335x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/am335x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/am335x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/am335x/6.0.7-headers
===================================================================
--- kernel/am335x/6.0.7-headers	(nonexistent)
+++ kernel/am335x/6.0.7-headers	(revision 5)

Property changes on: kernel/am335x/6.0.7-headers
___________________________________________________________________
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: kernel/am335x
===================================================================
--- kernel/am335x	(nonexistent)
+++ kernel/am335x	(revision 5)

Property changes on: kernel/am335x
___________________________________________________________________
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: kernel/h3/6.0.7-headers/Makefile
===================================================================
--- kernel/h3/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/h3/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/h3/6.0.7-headers/PATCHES
===================================================================
Index: kernel/h3/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/h3/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/h3/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/h3/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/h3/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/h3/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/h3/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/h3/6.0.7-headers
===================================================================
--- kernel/h3/6.0.7-headers	(nonexistent)
+++ kernel/h3/6.0.7-headers	(revision 5)

Property changes on: kernel/h3/6.0.7-headers
___________________________________________________________________
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: kernel/h3
===================================================================
--- kernel/h3	(nonexistent)
+++ kernel/h3	(revision 5)

Property changes on: kernel/h3
___________________________________________________________________
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: kernel/h5/6.0.7-headers/Makefile
===================================================================
--- kernel/h5/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/h5/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,134 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/h5/6.0.7-headers/PATCHES
===================================================================
Index: kernel/h5/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/h5/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/h5/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/h5/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/h5/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/h5/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/h5/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/h5/6.0.7-headers
===================================================================
--- kernel/h5/6.0.7-headers	(nonexistent)
+++ kernel/h5/6.0.7-headers	(revision 5)

Property changes on: kernel/h5/6.0.7-headers
___________________________________________________________________
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: kernel/h5
===================================================================
--- kernel/h5	(nonexistent)
+++ kernel/h5	(revision 5)

Property changes on: kernel/h5
___________________________________________________________________
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: kernel/imx6/6.0.7-headers/Makefile
===================================================================
--- kernel/imx6/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/imx6/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,134 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/imx6/6.0.7-headers/PATCHES
===================================================================
Index: kernel/imx6/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/imx6/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/imx6/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/imx6/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/imx6/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/imx6/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/imx6/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/imx6/6.0.7-headers
===================================================================
--- kernel/imx6/6.0.7-headers	(nonexistent)
+++ kernel/imx6/6.0.7-headers	(revision 5)

Property changes on: kernel/imx6/6.0.7-headers
___________________________________________________________________
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: kernel/imx6
===================================================================
--- kernel/imx6	(nonexistent)
+++ kernel/imx6	(revision 5)

Property changes on: kernel/imx6
___________________________________________________________________
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: kernel/jz47xx/6.0.7-headers/Makefile
===================================================================
--- kernel/jz47xx/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/jz47xx/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_CI20)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
+ARCH = mips
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/jz47xx/6.0.7-headers/PATCHES
===================================================================
Index: kernel/jz47xx/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/jz47xx/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/jz47xx/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/jz47xx/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/jz47xx/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/jz47xx/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/jz47xx/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/jz47xx/6.0.7-headers
===================================================================
--- kernel/jz47xx/6.0.7-headers	(nonexistent)
+++ kernel/jz47xx/6.0.7-headers	(revision 5)

Property changes on: kernel/jz47xx/6.0.7-headers
___________________________________________________________________
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: kernel/jz47xx
===================================================================
--- kernel/jz47xx	(nonexistent)
+++ kernel/jz47xx	(revision 5)

Property changes on: kernel/jz47xx
___________________________________________________________________
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: kernel/m1000/5.4.211-5.7.226-headers/Makefile
===================================================================
--- kernel/m1000/5.4.211-5.7.226-headers/Makefile	(nonexistent)
+++ kernel/m1000/5.4.211-5.7.226-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_M1)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/Baikal/M1000
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.211-5.7.226
+modules_version    = 5.4.211
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/Baikal/M1000/linux-m1-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-m1-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 5.4.211
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/m1000/5.4.211-5.7.226-headers/PATCHES
===================================================================
Index: kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/m1000/5.4.211-5.7.226-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/m1000/5.4.211-5.7.226-headers
===================================================================
--- kernel/m1000/5.4.211-5.7.226-headers	(nonexistent)
+++ kernel/m1000/5.4.211-5.7.226-headers	(revision 5)

Property changes on: kernel/m1000/5.4.211-5.7.226-headers
___________________________________________________________________
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: kernel/m1000/6.0.7-headers/Makefile
===================================================================
--- kernel/m1000/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/m1000/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_M1)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/m1000/6.0.7-headers/PATCHES
===================================================================
Index: kernel/m1000/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/m1000/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/m1000/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/m1000/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/m1000/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/m1000/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/m1000/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/m1000/6.0.7-headers
===================================================================
--- kernel/m1000/6.0.7-headers	(nonexistent)
+++ kernel/m1000/6.0.7-headers	(revision 5)

Property changes on: kernel/m1000/6.0.7-headers
___________________________________________________________________
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: kernel/m1000
===================================================================
--- kernel/m1000	(nonexistent)
+++ kernel/m1000	(revision 5)

Property changes on: kernel/m1000
___________________________________________________________________
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: kernel/omap543x/6.0.7-headers/Makefile
===================================================================
--- kernel/omap543x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/omap543x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/omap543x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/omap543x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/omap543x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/omap543x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/omap543x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/omap543x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/omap543x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/omap543x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/omap543x/6.0.7-headers
===================================================================
--- kernel/omap543x/6.0.7-headers	(nonexistent)
+++ kernel/omap543x/6.0.7-headers	(revision 5)

Property changes on: kernel/omap543x/6.0.7-headers
___________________________________________________________________
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: kernel/omap543x
===================================================================
--- kernel/omap543x	(nonexistent)
+++ kernel/omap543x	(revision 5)

Property changes on: kernel/omap543x
___________________________________________________________________
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: kernel/p5600/5.15.61-5.9.31-headers/Makefile
===================================================================
--- kernel/p5600/5.15.61-5.9.31-headers/Makefile	(nonexistent)
+++ kernel/p5600/5.15.61-5.9.31-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_T1)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/Baikal/T1000
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.15.61-5.9.31
+modules_version    = 5.15.61
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/Baikal/T1000/linux-t1-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-t1-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
+ARCH = mips
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 5.15.61
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/p5600/5.15.61-5.9.31-headers/PATCHES
===================================================================
Index: kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/p5600/5.15.61-5.9.31-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/p5600/5.15.61-5.9.31-headers
===================================================================
--- kernel/p5600/5.15.61-5.9.31-headers	(nonexistent)
+++ kernel/p5600/5.15.61-5.9.31-headers	(revision 5)

Property changes on: kernel/p5600/5.15.61-5.9.31-headers
___________________________________________________________________
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: kernel/p5600/6.0.7-headers/Makefile
===================================================================
--- kernel/p5600/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/p5600/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_T1)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
+ARCH = mips
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/p5600/6.0.7-headers/PATCHES
===================================================================
Index: kernel/p5600/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/p5600/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/p5600/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/p5600/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/p5600/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/p5600/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/p5600/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/p5600/6.0.7-headers
===================================================================
--- kernel/p5600/6.0.7-headers	(nonexistent)
+++ kernel/p5600/6.0.7-headers	(revision 5)

Property changes on: kernel/p5600/6.0.7-headers
___________________________________________________________________
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: kernel/p5600
===================================================================
--- kernel/p5600	(nonexistent)
+++ kernel/p5600	(revision 5)

Property changes on: kernel/p5600
___________________________________________________________________
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: kernel/power8/6.0.7-headers/Makefile
===================================================================
--- kernel/power8/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/power8/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,135 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER8LE_GLIBC)),)
+ARCH = powerpc
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/power8/6.0.7-headers/PATCHES
===================================================================
Index: kernel/power8/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/power8/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/power8/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/power8/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/power8/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/power8/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/power8/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/power8/6.0.7-headers
===================================================================
--- kernel/power8/6.0.7-headers	(nonexistent)
+++ kernel/power8/6.0.7-headers	(revision 5)

Property changes on: kernel/power8/6.0.7-headers
___________________________________________________________________
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: kernel/power8
===================================================================
--- kernel/power8	(nonexistent)
+++ kernel/power8	(revision 5)

Property changes on: kernel/power8
___________________________________________________________________
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: kernel/power9/6.0.7-headers/Makefile
===================================================================
--- kernel/power9/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/power9/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,135 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+ARCH = powerpc
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/power9/6.0.7-headers/PATCHES
===================================================================
Index: kernel/power9/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/power9/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/power9/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/power9/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/power9/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/power9/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/power9/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/power9/6.0.7-headers
===================================================================
--- kernel/power9/6.0.7-headers	(nonexistent)
+++ kernel/power9/6.0.7-headers	(revision 5)

Property changes on: kernel/power9/6.0.7-headers
___________________________________________________________________
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: kernel/power9
===================================================================
--- kernel/power9	(nonexistent)
+++ kernel/power9	(revision 5)

Property changes on: kernel/power9
___________________________________________________________________
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: kernel/riscv64/6.0.7-headers/Makefile
===================================================================
--- kernel/riscv64/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/riscv64/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_SIFIVE_U740)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+ARCH = riscv
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/riscv64/6.0.7-headers/PATCHES
===================================================================
Index: kernel/riscv64/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/riscv64/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/riscv64/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/riscv64/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/riscv64/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/riscv64/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/riscv64/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/riscv64/6.0.7-headers
===================================================================
--- kernel/riscv64/6.0.7-headers	(nonexistent)
+++ kernel/riscv64/6.0.7-headers	(revision 5)

Property changes on: kernel/riscv64/6.0.7-headers
___________________________________________________________________
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: kernel/riscv64
===================================================================
--- kernel/riscv64	(nonexistent)
+++ kernel/riscv64	(revision 5)

Property changes on: kernel/riscv64
___________________________________________________________________
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: kernel/rk328x/6.0.7-headers/Makefile
===================================================================
--- kernel/rk328x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/rk328x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/rk328x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/rk328x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/rk328x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/rk328x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/rk328x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/rk328x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/rk328x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/rk328x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/rk328x/6.0.7-headers
===================================================================
--- kernel/rk328x/6.0.7-headers	(nonexistent)
+++ kernel/rk328x/6.0.7-headers	(revision 5)

Property changes on: kernel/rk328x/6.0.7-headers
___________________________________________________________________
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: kernel/rk328x
===================================================================
--- kernel/rk328x	(nonexistent)
+++ kernel/rk328x	(revision 5)

Property changes on: kernel/rk328x
___________________________________________________________________
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: kernel/rk339x/6.0.7-headers/Makefile
===================================================================
--- kernel/rk339x/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/rk339x/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/rk339x/6.0.7-headers/PATCHES
===================================================================
Index: kernel/rk339x/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/rk339x/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/rk339x/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/rk339x/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/rk339x/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/rk339x/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/rk339x/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/rk339x/6.0.7-headers
===================================================================
--- kernel/rk339x/6.0.7-headers	(nonexistent)
+++ kernel/rk339x/6.0.7-headers	(revision 5)

Property changes on: kernel/rk339x/6.0.7-headers
___________________________________________________________________
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: kernel/rk339x
===================================================================
--- kernel/rk339x	(nonexistent)
+++ kernel/rk339x	(revision 5)

Property changes on: kernel/rk339x
___________________________________________________________________
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: kernel/rk33xx/6.0.7-headers/Makefile
===================================================================
--- kernel/rk33xx/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/rk33xx/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,132 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_RK3328_CC)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/rk33xx/6.0.7-headers/PATCHES
===================================================================
Index: kernel/rk33xx/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/rk33xx/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/rk33xx/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/rk33xx/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/rk33xx/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/rk33xx/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/rk33xx/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/rk33xx/6.0.7-headers
===================================================================
--- kernel/rk33xx/6.0.7-headers	(nonexistent)
+++ kernel/rk33xx/6.0.7-headers	(revision 5)

Property changes on: kernel/rk33xx/6.0.7-headers
___________________________________________________________________
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: kernel/rk33xx
===================================================================
--- kernel/rk33xx	(nonexistent)
+++ kernel/rk33xx	(revision 5)

Property changes on: kernel/rk33xx
___________________________________________________________________
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: kernel/s8xx/6.0.7-headers/Makefile
===================================================================
--- kernel/s8xx/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/s8xx/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
+ARCH = arm
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/s8xx/6.0.7-headers/PATCHES
===================================================================
Index: kernel/s8xx/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/s8xx/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/s8xx/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/s8xx/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/s8xx/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/s8xx/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/s8xx/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/s8xx/6.0.7-headers
===================================================================
--- kernel/s8xx/6.0.7-headers	(nonexistent)
+++ kernel/s8xx/6.0.7-headers	(revision 5)

Property changes on: kernel/s8xx/6.0.7-headers
___________________________________________________________________
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: kernel/s8xx
===================================================================
--- kernel/s8xx	(nonexistent)
+++ kernel/s8xx	(revision 5)

Property changes on: kernel/s8xx
___________________________________________________________________
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: kernel/s9xx/6.0.7-headers/Makefile
===================================================================
--- kernel/s9xx/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/s9xx/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,139 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/s9xx/6.0.7-headers/PATCHES
===================================================================
Index: kernel/s9xx/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/s9xx/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/s9xx/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/s9xx/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/s9xx/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/s9xx/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/s9xx/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/s9xx/6.0.7-headers
===================================================================
--- kernel/s9xx/6.0.7-headers	(nonexistent)
+++ kernel/s9xx/6.0.7-headers	(revision 5)

Property changes on: kernel/s9xx/6.0.7-headers
___________________________________________________________________
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: kernel/s9xx
===================================================================
--- kernel/s9xx	(nonexistent)
+++ kernel/s9xx	(revision 5)

Property changes on: kernel/s9xx
___________________________________________________________________
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: kernel/x86/6.0.7-headers/Makefile
===================================================================
--- kernel/x86/6.0.7-headers/Makefile	(nonexistent)
+++ kernel/x86/6.0.7-headers/Makefile	(revision 5)
@@ -0,0 +1,135 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = base/radix-system
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+build_kh_pkg = $(TARGET_BUILD_DIR)/.kernel_headers_pkg_done
+
+
+PATCHES = PATCHES
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) $(TOOLCHAIN_I686_GLIBC) \
+                             $(TOOLCHAIN_I586_GLIBC)),)
+ARCH = x86
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+KH_DEV_PKG_NAME                = kernel-headers
+KH_DEV_PKG_VERSION             = 6.0.7
+KH_DEV_PKG_ARCH                = $(PKGARCH)
+KH_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KH_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KH_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+KH_DEV_PKG_SHORT_DESCRIPTION   = Linux kernel header files
+KH_DEV_PKG_URL                 = $(BUG_URL)
+KH_DEV_PKG_LICENSE             = GPLv2
+KH_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-pkg-description
+KH_DEV_PKG_DESCRIPTION_FILE_IN = $(KH_DEV_PKG_NAME)-pkg-description.in
+KH_DEV_PKG_INSTALL_SCRIPT      = $(KH_DEV_PKG_NAME)-pkg-install.sh
+
+
+KH_DEV_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KH_DEV_PKG_NAME)-package
+
+pkg_basename     = $(KH_DEV_PKG_NAME)-$(KH_DEV_PKG_VERSION)-$(KH_DEV_PKG_ARCH)-$(KH_DEV_PKG_DISTRO_NAME)-$(KH_DEV_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_kh_pkg)
+
+PRODUCT_TARGETS  = $(products)
+
+ROOTFS_TARGETS   = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
+	@touch $(SRC_DIR)/.config
+	@$(MAKE) -C $(SRC_DIR) \
+	            ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	            include/generated/uapi/linux/version.h
+
+$(KH_DEV_PKG)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
+	@mkdir -p $(KH_DEV_PKG)/usr
+	$(MAKE) -j1 -C $(SRC_DIR) headers_install \
+	             ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_PREFIX) \
+	             INSTALL_HDR_PATH=$(KH_DEV_PKG)/usr
+	@touch $@
+
+$(build_kh_pkg): $(KH_DEV_PKG)/usr/include/linux/autoconf.h
+	@( cd $(KH_DEV_PKG)/usr/include ; \
+	   for file in `find . -name *.install*` ; do \
+	     rm -f $$file; \
+	   done )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(KH_DEV_PKG))
+	@touch $@
+
+$(KH_DEV_PKG_DESCRIPTION_FILE): $(KH_DEV_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@KERNEL_VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(build_kh_pkg) $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KH_DEV_PKG_DESCRIPTION_FILE) $(KH_DEV_PKG)/.DESCRIPTION
+	@cp $(KH_DEV_PKG_INSTALL_SCRIPT) $(KH_DEV_PKG)/.INSTALL
+	@$(BUILD_BIN_PKG_REQUIRES) $(KH_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KH_DEV_PKG_NAME)"                            >  $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KH_DEV_PKG_VERSION)"                          >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KH_DEV_PKG_ARCH)"                               >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KH_DEV_PKG_DISTRO_NAME)"                  >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KH_DEV_PKG_DISTRO_VERSION)"                >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KH_DEV_PKG_GROUP)"                             >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KH_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KH_DEV_PKG_URL)"                                 >> $(KH_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KH_DEV_PKG_LICENSE)"                         >> $(KH_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KH_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel/x86/6.0.7-headers/PATCHES
===================================================================
Index: kernel/x86/6.0.7-headers/kernel-headers-pkg-description.in
===================================================================
--- kernel/x86/6.0.7-headers/kernel-headers-pkg-description.in	(nonexistent)
+++ kernel/x86/6.0.7-headers/kernel-headers-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------------------------------------------------------|
+kernel-headers: Linux @KERNEL_VERSION@ Header Files
+kernel-headers:
+kernel-headers: Linus Torvalds' Linux kernel header files.
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
+kernel-headers:
Index: kernel/x86/6.0.7-headers/kernel-headers-pkg-install.sh
===================================================================
--- kernel/x86/6.0.7-headers/kernel-headers-pkg-install.sh	(nonexistent)
+++ kernel/x86/6.0.7-headers/kernel-headers-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel/x86/6.0.7-headers/kernel-headers-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel/x86/6.0.7-headers
===================================================================
--- kernel/x86/6.0.7-headers	(nonexistent)
+++ kernel/x86/6.0.7-headers	(revision 5)

Property changes on: kernel/x86/6.0.7-headers
___________________________________________________________________
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: kernel/x86
===================================================================
--- kernel/x86	(nonexistent)
+++ kernel/x86	(revision 5)

Property changes on: kernel/x86
___________________________________________________________________
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: kernel
===================================================================
--- kernel	(nonexistent)
+++ kernel	(revision 5)

Property changes on: kernel
___________________________________________________________________
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: kernel-headers/Makefile
===================================================================
--- kernel-headers/Makefile	(nonexistent)
+++ kernel-headers/Makefile	(revision 5)
@@ -0,0 +1,154 @@
+
+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
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+REQUIRES           = dev/kernel/x86/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
+REQUIRES           = dev/kernel/x86/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
+REQUIRES           = dev/kernel/a1x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
+REQUIRES           = dev/kernel/a2x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
+REQUIRES           = dev/kernel/h3/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
+REQUIRES           = dev/kernel/h5/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
+REQUIRES           = dev/kernel/rk328x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
+REQUIRES           = dev/kernel/rk33xx/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
+REQUIRES           = dev/kernel/rk339x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
+REQUIRES           = dev/kernel/s8xx/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
+REQUIRES           = dev/kernel/s9xx/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
+REQUIRES           = dev/kernel/a311x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
+REQUIRES           = dev/kernel/imx6/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
+REQUIRES           = dev/kernel/am335x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
+REQUIRES           = dev/kernel/omap543x/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
+REQUIRES           = dev/kernel/jz47xx/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
+REQUIRES           = dev/kernel/p5600/5.15.61-5.9.31-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
+REQUIRES           = dev/kernel/m1000/5.4.211-5.7.226-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER8LE_GLIBC)),)
+REQUIRES           = dev/kernel/power8/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+REQUIRES           = dev/kernel/power9/6.0.7-headers
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+REQUIRES           = dev/kernel/riscv64/6.0.7-headers
+endif
+
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+BUILD_TARGETS      = $(install_target)
+
+
+include ../../build-system/core.mk
+
+
+$(install_target):
+	@touch $@
Index: kernel-headers
===================================================================
--- kernel-headers	(nonexistent)
+++ kernel-headers	(revision 5)

Property changes on: kernel-headers
___________________________________________________________________
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: kernel-source/baikal-m1/5.4.211-5.7.226/Makefile
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226/Makefile	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_BAIKAL_M1)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/Baikal/M1000
+
+REQUIRES           = boot/kernel/baikal-m1/5.4.211-5.7.226
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.211-5.7.226
+subversion         =
+modules_version    = 5.4.211
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/Baikal/M1000/linux-m1-$(full_version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/usr/src/linux-m1-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config             = $(TARGET_DEST_DIR)/bootfs/config
+readme_in          = $(CURDIR)/doc/README.in
+
+devel_source_done  = $(TARGET_BUILD_DIR)/.devel_source_done
+
+
+PATCHES = PATCHES
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 5.4.211
+KERNEL_DEV_PKG_ARCH                = $(PKGARCH)
+KERNEL_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KERNEL_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KERNEL_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+KERNEL_DEV_PKG_SHORT_DESCRIPTION   = Linux Kernel Source
+KERNEL_DEV_PKG_URL                 = $(BUG_URL)
+KERNEL_DEV_PKG_LICENSE             = GPLv2
+KERNEL_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-pkg-description
+KERNEL_DEV_PKG_DESCRIPTION_FILE_IN = $(KERNEL_DEV_PKG_NAME)-pkg-description.in
+KERNEL_DEV_PKG_INSTALL_SCRIPT      = $(KERNEL_DEV_PKG_NAME)-pkg-install.sh
+
+KERNEL_DEV_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-package
+
+build_kernel_pkg   = $(TARGET_BUILD_DIR)/.kernel_pkg_done
+
+pkg_basename       = $(KERNEL_DEV_PKG_NAME)-$(KERNEL_DEV_PKG_VERSION)-$(KERNEL_DEV_PKG_ARCH)-$(KERNEL_DEV_PKG_DISTRO_NAME)-$(KERNEL_DEV_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      = $(devel_source_done)
+BUILD_TARGETS     += $(build_kernel_pkg)
+
+PRODUCT_TARGETS    = $(products)
+
+ROOTFS_TARGETS     = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(devel_source_done): $(src_done)
+	@cp $(config) $(SRC_DIR)/.config
+	@touch $@
+
+$(build_kernel_pkg): $(devel_source_done)
+	@mkdir -p $(KERNEL_DEV_PKG)/usr/src
+	# ======= Install kernel sources =======
+	@cat $(readme_in) | \
+	     sed 's,@KERNEL_SOURCE@,linux-m1-$(full_version),' \
+	     > $(KERNEL_DEV_PKG)/usr/src/README.linux-m1-$(full_version)
+	@cp -a $(SRC_DIR) $(KERNEL_DEV_PKG)/usr/src
+	@mkdir -p $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)
+	@( cd $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)  ; \
+	   ln -sf ../../../usr/src/linux-m1-$(full_version) build  ; \
+	   ln -sf ../../../usr/src/linux-m1-$(full_version) source ; \
+	 )
+	@touch $@
+
+$(KERNEL_DEV_PKG_DESCRIPTION_FILE): $(KERNEL_DEV_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): $(build_kernel_pkg) $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG)/.DESCRIPTION
+	@cp $(KERNEL_DEV_PKG_INSTALL_SCRIPT) $(KERNEL_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KERNEL_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KERNEL_DEV_PKG_NAME)"                            >  $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KERNEL_DEV_PKG_VERSION)"                          >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KERNEL_DEV_PKG_ARCH)"                               >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KERNEL_DEV_PKG_DISTRO_NAME)"                  >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KERNEL_DEV_PKG_DISTRO_VERSION)"                >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KERNEL_DEV_PKG_GROUP)"                             >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KERNEL_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KERNEL_DEV_PKG_URL)"                                 >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KERNEL_DEV_PKG_LICENSE)"                         >> $(KERNEL_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KERNEL_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel-source/baikal-m1/5.4.211-5.7.226/PATCHES
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226/PATCHES	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../../sources/Linux/Baikal/M1000/patches/linux-m1-5.4.211-5.7.226-host-limits.patch -p0
Index: kernel-source/baikal-m1/5.4.211-5.7.226/doc/README.in
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226/doc/README.in	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226/doc/README.in	(revision 5)
@@ -0,0 +1,52 @@
+
+How to Build External Modules
+-----------------------------
+
+To build external modules, you must have a prebuilt kernel available that contains
+the configuration and header files used in the build. Also, the kernel must have been
+built with modules enabled.
+
+Radix cross Linux provides a 'kernel-source' package installed here.
+
+This kernel source not ready for build modules out-of-tree because Radix cross Linux
+provides only cross-compiled packages.
+
+To prepare kernel source you have to do following:
+
+    $ cd /usr/src/@KERNEL_SOURCE@
+    $ make oldconfig
+    $ make modules_prepare
+
+ If you are using a Radix cross Linux distribution kernel,
+there will be a 'kernel-source' package for the kernel you are running provided by
+Radix cross Linux distribution.
+
+This will make sure the kernel contains the information required. The target exists
+solely as a simple way to prepare a kernel source tree for building external modules.
+
+NOTE: 'modules_prepare' will not build Module.symvers even if CONFIG_MODVERSIONS is set;
+therefore, a full kernel build needs to be executed to make module versioning work.
+
+
+Command Syntax
+--------------
+
+The command to build an external module is:
+
+    $ make -C <path_to_kernel_src> M=$PWD
+
+The kbuild system knows that an external module is being built due to the 'M=<dir>'
+option given in the command.
+
+To build against the running kernel use:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD
+
+Then to install the module(s) just built, add the target 'modules_install' to the command:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
+
+
+For mode details please look at
+  https://www.kernel.org/doc/html/latest/kbuild/modules.html
+page.
Index: kernel-source/baikal-m1/5.4.211-5.7.226/doc
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226/doc	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226/doc	(revision 5)

Property changes on: kernel-source/baikal-m1/5.4.211-5.7.226/doc
___________________________________________________________________
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: kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-pkg-description.in
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-pkg-description.in	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-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------------------------------------------------------|
+kernel-source: Linux @VERSION@ Kernel Source
+kernel-source:
+kernel-source: Linux kernel source for development and build modules out-of-tree.
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
Index: kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh	(revision 5)
@@ -0,0 +1,65 @@
+#!/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...
+}
+
+preserve_perms() {
+  NEW="$1"
+  OLD="$(dirname $NEW)/$(basename $NEW .new)"
+  if [ -e $OLD ]; then
+    cp -a $OLD ${NEW}.incoming
+    cat $NEW > ${NEW}.incoming
+    touch -r $NEW ${NEW}.incoming
+    mv ${NEW}.incoming $NEW
+  fi
+  install_file $NEW
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel-source/baikal-m1/5.4.211-5.7.226/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel-source/baikal-m1/5.4.211-5.7.226
===================================================================
--- kernel-source/baikal-m1/5.4.211-5.7.226	(nonexistent)
+++ kernel-source/baikal-m1/5.4.211-5.7.226	(revision 5)

Property changes on: kernel-source/baikal-m1/5.4.211-5.7.226
___________________________________________________________________
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: kernel-source/baikal-m1
===================================================================
--- kernel-source/baikal-m1	(nonexistent)
+++ kernel-source/baikal-m1	(revision 5)

Property changes on: kernel-source/baikal-m1
___________________________________________________________________
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: kernel-source/ebox-3350dx2/6.0.7/Makefile
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7/Makefile	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_EBOX_3350DX2)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/ebox-3350dx2/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(full_version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/usr/src/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config             = $(TARGET_DEST_DIR)/bootfs/config
+readme_in          = $(CURDIR)/doc/README.in
+
+devel_source_done  = $(TARGET_BUILD_DIR)/.devel_source_done
+
+
+PATCHES = PATCHES
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
+ARCH = i386
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+KERNEL_DEV_PKG_ARCH                = $(PKGARCH)
+KERNEL_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KERNEL_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KERNEL_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+KERNEL_DEV_PKG_SHORT_DESCRIPTION   = Linux Kernel Source
+KERNEL_DEV_PKG_URL                 = $(BUG_URL)
+KERNEL_DEV_PKG_LICENSE             = GPLv2
+KERNEL_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-pkg-description
+KERNEL_DEV_PKG_DESCRIPTION_FILE_IN = $(KERNEL_DEV_PKG_NAME)-pkg-description.in
+KERNEL_DEV_PKG_INSTALL_SCRIPT      = $(KERNEL_DEV_PKG_NAME)-pkg-install.sh
+
+KERNEL_DEV_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-package
+
+build_kernel_pkg   = $(TARGET_BUILD_DIR)/.kernel_pkg_done
+
+pkg_basename       = $(KERNEL_DEV_PKG_NAME)-$(KERNEL_DEV_PKG_VERSION)-$(KERNEL_DEV_PKG_ARCH)-$(KERNEL_DEV_PKG_DISTRO_NAME)-$(KERNEL_DEV_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      = $(devel_source_done)
+BUILD_TARGETS     += $(build_kernel_pkg)
+
+PRODUCT_TARGETS    = $(products)
+
+ROOTFS_TARGETS     = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(devel_source_done): $(src_done)
+	@cp $(config) $(SRC_DIR)/.config
+	@touch $@
+
+$(build_kernel_pkg): $(devel_source_done)
+	@mkdir -p $(KERNEL_DEV_PKG)/usr/src
+	# ======= Install kernel sources =======
+	@cat $(readme_in) | \
+	     sed 's,@KERNEL_SOURCE@,linux-$(full_version),' \
+	     > $(KERNEL_DEV_PKG)/usr/src/README.linux-$(full_version)
+	@cp -a $(SRC_DIR) $(KERNEL_DEV_PKG)/usr/src
+	@mkdir -p $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)
+	@( cd $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) build  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) source ; \
+	 )
+	@touch $@
+
+$(KERNEL_DEV_PKG_DESCRIPTION_FILE): $(KERNEL_DEV_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): $(build_kernel_pkg) $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG)/.DESCRIPTION
+	@cp $(KERNEL_DEV_PKG_INSTALL_SCRIPT) $(KERNEL_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KERNEL_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KERNEL_DEV_PKG_NAME)"                            >  $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KERNEL_DEV_PKG_VERSION)"                          >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KERNEL_DEV_PKG_ARCH)"                               >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KERNEL_DEV_PKG_DISTRO_NAME)"                  >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KERNEL_DEV_PKG_DISTRO_VERSION)"                >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KERNEL_DEV_PKG_GROUP)"                             >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KERNEL_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KERNEL_DEV_PKG_URL)"                                 >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KERNEL_DEV_PKG_LICENSE)"                         >> $(KERNEL_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KERNEL_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel-source/ebox-3350dx2/6.0.7/PATCHES
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7/PATCHES	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch  -p0
Index: kernel-source/ebox-3350dx2/6.0.7/doc/README.in
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7/doc/README.in	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7/doc/README.in	(revision 5)
@@ -0,0 +1,52 @@
+
+How to Build External Modules
+-----------------------------
+
+To build external modules, you must have a prebuilt kernel available that contains
+the configuration and header files used in the build. Also, the kernel must have been
+built with modules enabled.
+
+Radix cross Linux provides a 'kernel-source' package installed here.
+
+This kernel source not ready for build modules out-of-tree because Radix cross Linux
+provides only cross-compiled packages.
+
+To prepare kernel source you have to do following:
+
+    $ cd /usr/src/@KERNEL_SOURCE@
+    $ make oldconfig
+    $ make modules_prepare
+
+ If you are using a Radix cross Linux distribution kernel,
+there will be a 'kernel-source' package for the kernel you are running provided by
+Radix cross Linux distribution.
+
+This will make sure the kernel contains the information required. The target exists
+solely as a simple way to prepare a kernel source tree for building external modules.
+
+NOTE: 'modules_prepare' will not build Module.symvers even if CONFIG_MODVERSIONS is set;
+therefore, a full kernel build needs to be executed to make module versioning work.
+
+
+Command Syntax
+--------------
+
+The command to build an external module is:
+
+    $ make -C <path_to_kernel_src> M=$PWD
+
+The kbuild system knows that an external module is being built due to the 'M=<dir>'
+option given in the command.
+
+To build against the running kernel use:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD
+
+Then to install the module(s) just built, add the target 'modules_install' to the command:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
+
+
+For mode details please look at
+  https://www.kernel.org/doc/html/latest/kbuild/modules.html
+page.
Index: kernel-source/ebox-3350dx2/6.0.7/doc
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7/doc	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7/doc	(revision 5)

Property changes on: kernel-source/ebox-3350dx2/6.0.7/doc
___________________________________________________________________
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: kernel-source/ebox-3350dx2/6.0.7/kernel-source-pkg-description.in
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7/kernel-source-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------------------------------------------------------|
+kernel-source: Linux @VERSION@ Kernel Source
+kernel-source:
+kernel-source: Linux kernel source for development and build modules out-of-tree.
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
Index: kernel-source/ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -0,0 +1,65 @@
+#!/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...
+}
+
+preserve_perms() {
+  NEW="$1"
+  OLD="$(dirname $NEW)/$(basename $NEW .new)"
+  if [ -e $OLD ]; then
+    cp -a $OLD ${NEW}.incoming
+    cat $NEW > ${NEW}.incoming
+    touch -r $NEW ${NEW}.incoming
+    mv ${NEW}.incoming $NEW
+  fi
+  install_file $NEW
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel-source/ebox-3350dx2/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel-source/ebox-3350dx2/6.0.7
===================================================================
--- kernel-source/ebox-3350dx2/6.0.7	(nonexistent)
+++ kernel-source/ebox-3350dx2/6.0.7	(revision 5)

Property changes on: kernel-source/ebox-3350dx2/6.0.7
___________________________________________________________________
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: kernel-source/ebox-3350dx2
===================================================================
--- kernel-source/ebox-3350dx2	(nonexistent)
+++ kernel-source/ebox-3350dx2	(revision 5)

Property changes on: kernel-source/ebox-3350dx2
___________________________________________________________________
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: kernel-source/intel-pc32/6.0.7/Makefile
===================================================================
--- kernel-source/intel-pc32/6.0.7/Makefile	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC32)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/intel-pc32/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(full_version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/usr/src/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config             = $(TARGET_DEST_DIR)/bootfs/config
+readme_in          = $(CURDIR)/doc/README.in
+
+devel_source_done  = $(TARGET_BUILD_DIR)/.devel_source_done
+
+
+PATCHES = PATCHES
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
+ARCH = i386
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+KERNEL_DEV_PKG_ARCH                = $(PKGARCH)
+KERNEL_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KERNEL_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KERNEL_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+KERNEL_DEV_PKG_SHORT_DESCRIPTION   = Linux Kernel Source
+KERNEL_DEV_PKG_URL                 = $(BUG_URL)
+KERNEL_DEV_PKG_LICENSE             = GPLv2
+KERNEL_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-pkg-description
+KERNEL_DEV_PKG_DESCRIPTION_FILE_IN = $(KERNEL_DEV_PKG_NAME)-pkg-description.in
+KERNEL_DEV_PKG_INSTALL_SCRIPT      = $(KERNEL_DEV_PKG_NAME)-pkg-install.sh
+
+KERNEL_DEV_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-package
+
+build_kernel_pkg   = $(TARGET_BUILD_DIR)/.kernel_pkg_done
+
+pkg_basename       = $(KERNEL_DEV_PKG_NAME)-$(KERNEL_DEV_PKG_VERSION)-$(KERNEL_DEV_PKG_ARCH)-$(KERNEL_DEV_PKG_DISTRO_NAME)-$(KERNEL_DEV_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      = $(devel_source_done)
+BUILD_TARGETS     += $(build_kernel_pkg)
+
+PRODUCT_TARGETS    = $(products)
+
+ROOTFS_TARGETS     = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(devel_source_done): $(src_done)
+	@cp $(config) $(SRC_DIR)/.config
+	@touch $@
+
+$(build_kernel_pkg): $(devel_source_done)
+	@mkdir -p $(KERNEL_DEV_PKG)/usr/src
+	# ======= Install kernel sources =======
+	@cat $(readme_in) | \
+	     sed 's,@KERNEL_SOURCE@,linux-$(full_version),' \
+	     > $(KERNEL_DEV_PKG)/usr/src/README.linux-$(full_version)
+	@cp -a $(SRC_DIR) $(KERNEL_DEV_PKG)/usr/src
+	@mkdir -p $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)
+	@( cd $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) build  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) source ; \
+	 )
+	@touch $@
+
+$(KERNEL_DEV_PKG_DESCRIPTION_FILE): $(KERNEL_DEV_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): $(build_kernel_pkg) $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG)/.DESCRIPTION
+	@cp $(KERNEL_DEV_PKG_INSTALL_SCRIPT) $(KERNEL_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KERNEL_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KERNEL_DEV_PKG_NAME)"                            >  $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KERNEL_DEV_PKG_VERSION)"                          >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KERNEL_DEV_PKG_ARCH)"                               >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KERNEL_DEV_PKG_DISTRO_NAME)"                  >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KERNEL_DEV_PKG_DISTRO_VERSION)"                >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KERNEL_DEV_PKG_GROUP)"                             >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KERNEL_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KERNEL_DEV_PKG_URL)"                                 >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KERNEL_DEV_PKG_LICENSE)"                         >> $(KERNEL_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KERNEL_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel-source/intel-pc32/6.0.7/PATCHES
===================================================================
--- kernel-source/intel-pc32/6.0.7/PATCHES	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch  -p0
Index: kernel-source/intel-pc32/6.0.7/doc/README.in
===================================================================
--- kernel-source/intel-pc32/6.0.7/doc/README.in	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7/doc/README.in	(revision 5)
@@ -0,0 +1,52 @@
+
+How to Build External Modules
+-----------------------------
+
+To build external modules, you must have a prebuilt kernel available that contains
+the configuration and header files used in the build. Also, the kernel must have been
+built with modules enabled.
+
+Radix cross Linux provides a 'kernel-source' package installed here.
+
+This kernel source not ready for build modules out-of-tree because Radix cross Linux
+provides only cross-compiled packages.
+
+To prepare kernel source you have to do following:
+
+    $ cd /usr/src/@KERNEL_SOURCE@
+    $ make oldconfig
+    $ make modules_prepare
+
+ If you are using a Radix cross Linux distribution kernel,
+there will be a 'kernel-source' package for the kernel you are running provided by
+Radix cross Linux distribution.
+
+This will make sure the kernel contains the information required. The target exists
+solely as a simple way to prepare a kernel source tree for building external modules.
+
+NOTE: 'modules_prepare' will not build Module.symvers even if CONFIG_MODVERSIONS is set;
+therefore, a full kernel build needs to be executed to make module versioning work.
+
+
+Command Syntax
+--------------
+
+The command to build an external module is:
+
+    $ make -C <path_to_kernel_src> M=$PWD
+
+The kbuild system knows that an external module is being built due to the 'M=<dir>'
+option given in the command.
+
+To build against the running kernel use:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD
+
+Then to install the module(s) just built, add the target 'modules_install' to the command:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
+
+
+For mode details please look at
+  https://www.kernel.org/doc/html/latest/kbuild/modules.html
+page.
Index: kernel-source/intel-pc32/6.0.7/doc
===================================================================
--- kernel-source/intel-pc32/6.0.7/doc	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7/doc	(revision 5)

Property changes on: kernel-source/intel-pc32/6.0.7/doc
___________________________________________________________________
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: kernel-source/intel-pc32/6.0.7/kernel-source-pkg-description.in
===================================================================
--- kernel-source/intel-pc32/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7/kernel-source-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------------------------------------------------------|
+kernel-source: Linux @VERSION@ Kernel Source
+kernel-source:
+kernel-source: Linux kernel source for development and build modules out-of-tree.
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
Index: kernel-source/intel-pc32/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- kernel-source/intel-pc32/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -0,0 +1,65 @@
+#!/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...
+}
+
+preserve_perms() {
+  NEW="$1"
+  OLD="$(dirname $NEW)/$(basename $NEW .new)"
+  if [ -e $OLD ]; then
+    cp -a $OLD ${NEW}.incoming
+    cat $NEW > ${NEW}.incoming
+    touch -r $NEW ${NEW}.incoming
+    mv ${NEW}.incoming $NEW
+  fi
+  install_file $NEW
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel-source/intel-pc32/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel-source/intel-pc32/6.0.7
===================================================================
--- kernel-source/intel-pc32/6.0.7	(nonexistent)
+++ kernel-source/intel-pc32/6.0.7	(revision 5)

Property changes on: kernel-source/intel-pc32/6.0.7
___________________________________________________________________
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: kernel-source/intel-pc32
===================================================================
--- kernel-source/intel-pc32	(nonexistent)
+++ kernel-source/intel-pc32	(revision 5)

Property changes on: kernel-source/intel-pc32
___________________________________________________________________
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: kernel-source/intel-pc64/6.0.7/Makefile
===================================================================
--- kernel-source/intel-pc64/6.0.7/Makefile	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/intel-pc64/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(full_version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/usr/src/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config             = $(TARGET_DEST_DIR)/bootfs/config
+readme_in          = $(CURDIR)/doc/README.in
+
+devel_source_done  = $(TARGET_BUILD_DIR)/.devel_source_done
+
+
+PATCHES = PATCHES
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+ARCH = x86_64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+KERNEL_DEV_PKG_ARCH                = $(PKGARCH)
+KERNEL_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KERNEL_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KERNEL_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+KERNEL_DEV_PKG_SHORT_DESCRIPTION   = Linux Kernel Source
+KERNEL_DEV_PKG_URL                 = $(BUG_URL)
+KERNEL_DEV_PKG_LICENSE             = GPLv2
+KERNEL_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-pkg-description
+KERNEL_DEV_PKG_DESCRIPTION_FILE_IN = $(KERNEL_DEV_PKG_NAME)-pkg-description.in
+KERNEL_DEV_PKG_INSTALL_SCRIPT      = $(KERNEL_DEV_PKG_NAME)-pkg-install.sh
+
+KERNEL_DEV_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-package
+
+build_kernel_pkg   = $(TARGET_BUILD_DIR)/.kernel_pkg_done
+
+pkg_basename       = $(KERNEL_DEV_PKG_NAME)-$(KERNEL_DEV_PKG_VERSION)-$(KERNEL_DEV_PKG_ARCH)-$(KERNEL_DEV_PKG_DISTRO_NAME)-$(KERNEL_DEV_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      = $(devel_source_done)
+BUILD_TARGETS     += $(build_kernel_pkg)
+
+PRODUCT_TARGETS    = $(products)
+
+ROOTFS_TARGETS     = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(devel_source_done): $(src_done)
+	@cp $(config) $(SRC_DIR)/.config
+	@touch $@
+
+$(build_kernel_pkg): $(devel_source_done)
+	@mkdir -p $(KERNEL_DEV_PKG)/usr/src
+	# ======= Install kernel sources =======
+	@cat $(readme_in) | \
+	     sed 's,@KERNEL_SOURCE@,linux-$(full_version),' \
+	     > $(KERNEL_DEV_PKG)/usr/src/README.linux-$(full_version)
+	@cp -a $(SRC_DIR) $(KERNEL_DEV_PKG)/usr/src
+	@mkdir -p $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)
+	@( cd $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) build  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) source ; \
+	 )
+	@touch $@
+
+$(KERNEL_DEV_PKG_DESCRIPTION_FILE): $(KERNEL_DEV_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): $(build_kernel_pkg) $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG)/.DESCRIPTION
+	@cp $(KERNEL_DEV_PKG_INSTALL_SCRIPT) $(KERNEL_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KERNEL_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KERNEL_DEV_PKG_NAME)"                            >  $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KERNEL_DEV_PKG_VERSION)"                          >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KERNEL_DEV_PKG_ARCH)"                               >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KERNEL_DEV_PKG_DISTRO_NAME)"                  >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KERNEL_DEV_PKG_DISTRO_VERSION)"                >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KERNEL_DEV_PKG_GROUP)"                             >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KERNEL_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KERNEL_DEV_PKG_URL)"                                 >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KERNEL_DEV_PKG_LICENSE)"                         >> $(KERNEL_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KERNEL_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel-source/intel-pc64/6.0.7/PATCHES
===================================================================
--- kernel-source/intel-pc64/6.0.7/PATCHES	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch  -p0
Index: kernel-source/intel-pc64/6.0.7/doc/README.in
===================================================================
--- kernel-source/intel-pc64/6.0.7/doc/README.in	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7/doc/README.in	(revision 5)
@@ -0,0 +1,52 @@
+
+How to Build External Modules
+-----------------------------
+
+To build external modules, you must have a prebuilt kernel available that contains
+the configuration and header files used in the build. Also, the kernel must have been
+built with modules enabled.
+
+Radix cross Linux provides a 'kernel-source' package installed here.
+
+This kernel source not ready for build modules out-of-tree because Radix cross Linux
+provides only cross-compiled packages.
+
+To prepare kernel source you have to do following:
+
+    $ cd /usr/src/@KERNEL_SOURCE@
+    $ make oldconfig
+    $ make modules_prepare
+
+ If you are using a Radix cross Linux distribution kernel,
+there will be a 'kernel-source' package for the kernel you are running provided by
+Radix cross Linux distribution.
+
+This will make sure the kernel contains the information required. The target exists
+solely as a simple way to prepare a kernel source tree for building external modules.
+
+NOTE: 'modules_prepare' will not build Module.symvers even if CONFIG_MODVERSIONS is set;
+therefore, a full kernel build needs to be executed to make module versioning work.
+
+
+Command Syntax
+--------------
+
+The command to build an external module is:
+
+    $ make -C <path_to_kernel_src> M=$PWD
+
+The kbuild system knows that an external module is being built due to the 'M=<dir>'
+option given in the command.
+
+To build against the running kernel use:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD
+
+Then to install the module(s) just built, add the target 'modules_install' to the command:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
+
+
+For mode details please look at
+  https://www.kernel.org/doc/html/latest/kbuild/modules.html
+page.
Index: kernel-source/intel-pc64/6.0.7/doc
===================================================================
--- kernel-source/intel-pc64/6.0.7/doc	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7/doc	(revision 5)

Property changes on: kernel-source/intel-pc64/6.0.7/doc
___________________________________________________________________
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: kernel-source/intel-pc64/6.0.7/kernel-source-pkg-description.in
===================================================================
--- kernel-source/intel-pc64/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7/kernel-source-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------------------------------------------------------|
+kernel-source: Linux @VERSION@ Kernel Source
+kernel-source:
+kernel-source: Linux kernel source for development and build modules out-of-tree.
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
Index: kernel-source/intel-pc64/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- kernel-source/intel-pc64/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -0,0 +1,65 @@
+#!/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...
+}
+
+preserve_perms() {
+  NEW="$1"
+  OLD="$(dirname $NEW)/$(basename $NEW .new)"
+  if [ -e $OLD ]; then
+    cp -a $OLD ${NEW}.incoming
+    cat $NEW > ${NEW}.incoming
+    touch -r $NEW ${NEW}.incoming
+    mv ${NEW}.incoming $NEW
+  fi
+  install_file $NEW
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel-source/intel-pc64/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel-source/intel-pc64/6.0.7
===================================================================
--- kernel-source/intel-pc64/6.0.7	(nonexistent)
+++ kernel-source/intel-pc64/6.0.7	(revision 5)

Property changes on: kernel-source/intel-pc64/6.0.7
___________________________________________________________________
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: kernel-source/intel-pc64
===================================================================
--- kernel-source/intel-pc64	(nonexistent)
+++ kernel-source/intel-pc64	(revision 5)

Property changes on: kernel-source/intel-pc64
___________________________________________________________________
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: kernel-source/leez-p710/6.0.7/Makefile
===================================================================
--- kernel-source/leez-p710/6.0.7/Makefile	(nonexistent)
+++ kernel-source/leez-p710/6.0.7/Makefile	(revision 5)
@@ -0,0 +1,133 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_LEEZ_P710)
+
+NEED_ABS_PATH      = true
+
+COMPONENT_IS_3PP   = true
+
+
+include ../../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/Linux/v6.x
+
+REQUIRES           = boot/kernel/leez-p710/6.0.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.7
+subversion         =
+modules_version    = 6.0.7
+full_version       = $(version)
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/Linux/v6.x/linux-$(full_version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/usr/src/linux-$(full_version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config             = $(TARGET_DEST_DIR)/bootfs/config
+readme_in          = $(CURDIR)/doc/README.in
+
+devel_source_done  = $(TARGET_BUILD_DIR)/.devel_source_done
+
+
+PATCHES = PATCHES
+
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
+ARCH = arm64
+endif
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+
+
+####### Targets
+
+
+PKG_GROUP = dev
+
+KERNEL_DEV_PKG_NAME                = kernel-source
+KERNEL_DEV_PKG_VERSION             = 6.0.7
+KERNEL_DEV_PKG_ARCH                = $(PKGARCH)
+KERNEL_DEV_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+KERNEL_DEV_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+KERNEL_DEV_PKG_GROUP               = $(PKG_GROUP)
+###                                 |---handy-ruler-------------------------------|
+KERNEL_DEV_PKG_SHORT_DESCRIPTION   = Linux Kernel Source
+KERNEL_DEV_PKG_URL                 = $(BUG_URL)
+KERNEL_DEV_PKG_LICENSE             = GPLv2
+KERNEL_DEV_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-pkg-description
+KERNEL_DEV_PKG_DESCRIPTION_FILE_IN = $(KERNEL_DEV_PKG_NAME)-pkg-description.in
+KERNEL_DEV_PKG_INSTALL_SCRIPT      = $(KERNEL_DEV_PKG_NAME)-pkg-install.sh
+
+KERNEL_DEV_PKG     = $(CURDIR)/$(TARGET_BUILD_DIR)/$(KERNEL_DEV_PKG_NAME)-package
+
+build_kernel_pkg   = $(TARGET_BUILD_DIR)/.kernel_pkg_done
+
+pkg_basename       = $(KERNEL_DEV_PKG_NAME)-$(KERNEL_DEV_PKG_VERSION)-$(KERNEL_DEV_PKG_ARCH)-$(KERNEL_DEV_PKG_DISTRO_NAME)-$(KERNEL_DEV_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      = $(devel_source_done)
+BUILD_TARGETS     += $(build_kernel_pkg)
+
+PRODUCT_TARGETS    = $(products)
+
+ROOTFS_TARGETS     = $(pkg_archive)
+
+
+include ../../../../build-system/core.mk
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(devel_source_done): $(src_done)
+	@cp $(config) $(SRC_DIR)/.config
+	@touch $@
+
+$(build_kernel_pkg): $(devel_source_done)
+	@mkdir -p $(KERNEL_DEV_PKG)/usr/src
+	# ======= Install kernel sources =======
+	@cat $(readme_in) | \
+	     sed 's,@KERNEL_SOURCE@,linux-$(full_version),' \
+	     > $(KERNEL_DEV_PKG)/usr/src/README.linux-$(full_version)
+	@cp -a $(SRC_DIR) $(KERNEL_DEV_PKG)/usr/src
+	@mkdir -p $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)
+	@( cd $(KERNEL_DEV_PKG)/lib/modules/$(modules_version)  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) build  ; \
+	   ln -sf ../../../usr/src/linux-$(full_version) source ; \
+	 )
+	@touch $@
+
+$(KERNEL_DEV_PKG_DESCRIPTION_FILE): $(KERNEL_DEV_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): $(build_kernel_pkg) $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG_INSTALL_SCRIPT)
+	@cp $(KERNEL_DEV_PKG_DESCRIPTION_FILE) $(KERNEL_DEV_PKG)/.DESCRIPTION
+	@cp $(KERNEL_DEV_PKG_INSTALL_SCRIPT) $(KERNEL_DEV_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(KERNEL_DEV_PKG)/.REQUIRES
+	@echo "pkgname=$(KERNEL_DEV_PKG_NAME)"                            >  $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(KERNEL_DEV_PKG_VERSION)"                          >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "arch=$(KERNEL_DEV_PKG_ARCH)"                               >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distroname=$(KERNEL_DEV_PKG_DISTRO_NAME)"                  >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "distrover=$(KERNEL_DEV_PKG_DISTRO_VERSION)"                >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "group=$(KERNEL_DEV_PKG_GROUP)"                             >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(KERNEL_DEV_PKG_SHORT_DESCRIPTION)\"" >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "url=$(KERNEL_DEV_PKG_URL)"                                 >> $(KERNEL_DEV_PKG)/.PKGINFO ; \
+	 echo "license=$(KERNEL_DEV_PKG_LICENSE)"                         >> $(KERNEL_DEV_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(KERNEL_DEV_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: kernel-source/leez-p710/6.0.7/PATCHES
===================================================================
--- kernel-source/leez-p710/6.0.7/PATCHES	(nonexistent)
+++ kernel-source/leez-p710/6.0.7/PATCHES	(revision 5)
@@ -0,0 +1,5 @@
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-dwmac-rk3399.patch  -p0
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-host-limits.patch   -p0
+
+../../../../sources/Linux/v6.x/patches/linux-6.0.7-leez-p710-spi.patch -p0
Index: kernel-source/leez-p710/6.0.7/doc/README.in
===================================================================
--- kernel-source/leez-p710/6.0.7/doc/README.in	(nonexistent)
+++ kernel-source/leez-p710/6.0.7/doc/README.in	(revision 5)
@@ -0,0 +1,52 @@
+
+How to Build External Modules
+-----------------------------
+
+To build external modules, you must have a prebuilt kernel available that contains
+the configuration and header files used in the build. Also, the kernel must have been
+built with modules enabled.
+
+Radix cross Linux provides a 'kernel-source' package installed here.
+
+This kernel source not ready for build modules out-of-tree because Radix cross Linux
+provides only cross-compiled packages.
+
+To prepare kernel source you have to do following:
+
+    $ cd /usr/src/@KERNEL_SOURCE@
+    $ make oldconfig
+    $ make modules_prepare
+
+ If you are using a Radix cross Linux distribution kernel,
+there will be a 'kernel-source' package for the kernel you are running provided by
+Radix cross Linux distribution.
+
+This will make sure the kernel contains the information required. The target exists
+solely as a simple way to prepare a kernel source tree for building external modules.
+
+NOTE: 'modules_prepare' will not build Module.symvers even if CONFIG_MODVERSIONS is set;
+therefore, a full kernel build needs to be executed to make module versioning work.
+
+
+Command Syntax
+--------------
+
+The command to build an external module is:
+
+    $ make -C <path_to_kernel_src> M=$PWD
+
+The kbuild system knows that an external module is being built due to the 'M=<dir>'
+option given in the command.
+
+To build against the running kernel use:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD
+
+Then to install the module(s) just built, add the target 'modules_install' to the command:
+
+    $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
+
+
+For mode details please look at
+  https://www.kernel.org/doc/html/latest/kbuild/modules.html
+page.
Index: kernel-source/leez-p710/6.0.7/doc
===================================================================
--- kernel-source/leez-p710/6.0.7/doc	(nonexistent)
+++ kernel-source/leez-p710/6.0.7/doc	(revision 5)

Property changes on: kernel-source/leez-p710/6.0.7/doc
___________________________________________________________________
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: kernel-source/leez-p710/6.0.7/kernel-source-pkg-description.in
===================================================================
--- kernel-source/leez-p710/6.0.7/kernel-source-pkg-description.in	(nonexistent)
+++ kernel-source/leez-p710/6.0.7/kernel-source-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------------------------------------------------------|
+kernel-source: Linux @VERSION@ Kernel Source
+kernel-source:
+kernel-source: Linux kernel source for development and build modules out-of-tree.
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
+kernel-source:
Index: kernel-source/leez-p710/6.0.7/kernel-source-pkg-install.sh
===================================================================
--- kernel-source/leez-p710/6.0.7/kernel-source-pkg-install.sh	(nonexistent)
+++ kernel-source/leez-p710/6.0.7/kernel-source-pkg-install.sh	(revision 5)
@@ -0,0 +1,65 @@
+#!/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...
+}
+
+preserve_perms() {
+  NEW="$1"
+  OLD="$(dirname $NEW)/$(basename $NEW .new)"
+  if [ -e $OLD ]; then
+    cp -a $OLD ${NEW}.incoming
+    cat $NEW > ${NEW}.incoming
+    touch -r $NEW ${NEW}.incoming
+    mv ${NEW}.incoming $NEW
+  fi
+  install_file $NEW
+}
+
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: kernel-source/leez-p710/6.0.7/kernel-source-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: kernel-source/leez-p710/6.0.7
===================================================================
--- kernel-source/leez-p710/6.0.7	(nonexistent)
+++ kernel-source/leez-p710/6.0.7	(revision 5)

Property changes on: kernel-source/leez-p710/6.0.7
___________________________________________________________________
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: kernel-source/leez-p710
===================================================================
--- kernel-source/leez-p710	(nonexistent)
+++ kernel-source/leez-p710	(revision 5)

Property changes on: kernel-source/leez-p710
___________________________________________________________________
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: kernel-source
===================================================================
--- kernel-source	(nonexistent)
+++ kernel-source	(revision 5)

Property changes on: kernel-source
___________________________________________________________________
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: libtool/2.4.6/Makefile
===================================================================
--- libtool/2.4.6/Makefile	(nonexistent)
+++ libtool/2.4.6/Makefile	(revision 5)
@@ -0,0 +1,268 @@
+
+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/GNU/libtool
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/12.2.0
+else
+REQUIRES           = libs/glibc/2.36
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.6
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/libtool/libtool-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libtool-$(version)
+src_dir_name       = libtool-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBTOOL_PKG_NAME                = libtool
+LIBTOOL_PKG_VERSION             = 2.4.6
+LIBTOOL_PKG_ARCH                = $(PKGARCH)
+LIBTOOL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBTOOL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBTOOL_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+LIBTOOL_PKG_SHORT_DESCRIPTION   = generic library support script
+LIBTOOL_PKG_URL                 = $(BUG_URL)
+LIBTOOL_PKG_LICENSE             = GPLv2
+LIBTOOL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBTOOL_PKG_NAME)-pkg-description
+LIBTOOL_PKG_DESCRIPTION_FILE_IN = $(LIBTOOL_PKG_NAME)-pkg-description.in
+LIBTOOL_PKG_INSTALL_SCRIPT      = $(LIBTOOL_PKG_NAME)-pkg-install.sh
+
+LIBTOOL_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBTOOL_PKG_NAME)-package
+
+pkg_basename     = $(LIBTOOL_PKG_NAME)-$(LIBTOOL_PKG_VERSION)-$(LIBTOOL_PKG_ARCH)-$(LIBTOOL_PKG_DISTRO_NAME)-$(LIBTOOL_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=$(LIBTOOL_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+GCC_VERSION = $(shell $(CC) -dumpversion)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBTOOL_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@rm -f $(LIBTOOL_PKG)/usr/share/info/dir
+	@gzip -9 $(LIBTOOL_PKG)/usr/share/info/*
+	@if [ -d $(LIBTOOL_PKG)/usr/share/man ]; then \
+	  ( cd $(LIBTOOL_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 $(LIBTOOL_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBTOOL_PKG)/usr/share/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(LIBTOOL_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(LIBTOOL_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO \
+	         $(LIBTOOL_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LIBTOOL_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBTOOL_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libltdl.la  \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBTOOL_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libltdl.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libltdl.la \
+	 )
+	# ======= Tune /usr/bin/libtool for target system =======
+	@( cd $(LIBTOOL_PKG)/usr/bin ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libtool ; \
+	   sed -i "s,$(TOOLCHAIN_PATH),/usr,g" libtool ; \
+	   sed -i "s,AS=.*,AS=\"as\",g" libtool ; \
+	   sed -i "s,build_alias=.*,build_alias=$(TARGET),g" libtool ; \
+	   sed -i "s,build=.*,build=$(TARGET),g" libtool ; \
+	   sed -i "s,NM=.*,NM=\"/usr/bin/nm -B\",g" libtool ; \
+	   sed -i "s,AR=.*,AR=\"ar\",g" libtool ; \
+	   sed -i "s,STRIP=.*,STRIP=\"strip\",g" libtool ; \
+	   sed -i "s,RANLIB=.*,RANLIB=\"ranlib\",g" libtool ; \
+	   sed -i "s,LTCC=.*,LTCC=\"gcc\",g" libtool ; \
+	   sed -i "s,LTCFLAGS=.*,LTCFLAGS=\"$(ARCH_FLAGS)\",g" libtool ; \
+	   sed -i "s,sys_lib_search_path_spec=.*,sys_lib_search_path_spec=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION) /usr/$(TARGET)/lib /usr/lib /lib\",g" libtool ; \
+	   sed -i "s,sys_lib_dlsearch_path_spec=.*,sys_lib_dlsearch_path_spec=\"/lib /usr/lib /usr/$(TARGET)/lib /usr/lib/seamonkey \",g" libtool ; \
+	   sed -i "s,old_striplib=.*,old_striplib=\"strip --strip-debug\",g" libtool ; \
+	   sed -i "s,striplib=.*,striplib=\"strip --strip-unneeded\",g" libtool ; \
+	   sed -i "s,LD=.*,LD=\"/usr/$(TARGET)/bin/ld\",g" libtool ; \
+	   sed -i "s,CC=.*,CC=\"gcc\",g" libtool ; \
+	 )
+	# ======= Tune /usr/bin/libtool for FORTRAN compiler (build machine depended) =======
+	@( cd $(LIBTOOL_PKG)/usr/bin ; \
+	   begin=`grep -n "BEGIN LIBTOOL TAG CONFIG: FC" libtool | cut -f 1 -d ':'` ; \
+	   end=`grep -n "END LIBTOOL TAG CONFIG: FC" libtool | cut -f 1 -d ':'` ; \
+	   sed -i "$$begin,$$end s,compiler_lib_search_dirs=.*,compiler_lib_search_dirs=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION) /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/../../../../lib /lib/../lib /usr/lib/../lib /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/../../../../$(TARGET)/lib /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/../../..\",g" libtool ; \
+	   sed -i "$$begin,$$end s,predep_objects=.*,predep_objects=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32/crti.o /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/crtbeginS.o\",g" libtool ; \
+	   sed -i "$$begin,$$end s,postdep_objects=.*,postdep_objects=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/crtendS.o /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32/crtn.o\",g" libtool ; \
+	   sed -i "$$begin,$$end s,compiler_lib_search_path=.*,compiler_lib_search_path=\"-L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION) -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/../../../../$(TARGET)/lib -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/../../..\",g" libtool ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBTOOL_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(LIBTOOL_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(LIBTOOL_PKG_DESCRIPTION_FILE): $(LIBTOOL_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) $(LIBTOOL_PKG_DESCRIPTION_FILE) $(LIBTOOL_PKG_INSTALL_SCRIPT)
+	@cp $(LIBTOOL_PKG_DESCRIPTION_FILE) $(LIBTOOL_PKG)/.DESCRIPTION
+	@cp $(LIBTOOL_PKG_INSTALL_SCRIPT) $(LIBTOOL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBTOOL_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBTOOL_PKG_NAME)"                            >  $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBTOOL_PKG_VERSION)"                          >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBTOOL_PKG_ARCH)"                               >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBTOOL_PKG_DISTRO_NAME)"                  >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBTOOL_PKG_DISTRO_VERSION)"                >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBTOOL_PKG_GROUP)"                             >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBTOOL_PKG_SHORT_DESCRIPTION)\"" >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBTOOL_PKG_URL)"                                 >> $(LIBTOOL_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBTOOL_PKG_LICENSE)"                         >> $(LIBTOOL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LIBTOOL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: libtool/2.4.6/PATCHES
===================================================================
--- libtool/2.4.6/PATCHES	(nonexistent)
+++ libtool/2.4.6/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/libtool/patches/libtool-2.4.6-no-moved-warning.patch -p0
Index: libtool/2.4.6/libtool-pkg-description.in
===================================================================
--- libtool/2.4.6/libtool-pkg-description.in	(nonexistent)
+++ libtool/2.4.6/libtool-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------------------------------------------------------|
+libtool: libtool @VERSION@ (a generic library support script)
+libtool:
+libtool: This is GNU Libtool, a generic library support script. Libtool hides
+libtool: the complexity of using shared libraries behind a consistent,
+libtool: portable interface. To use libtool, add the new generic library
+libtool: building commands to your Makefile, Makefile.in, or Makefile.am.
+libtool: See the documentation for details.
+libtool:
+libtool: You must install the "m4" package to be able to use libtool.
+libtool:
+libtool:
Index: libtool/2.4.6/libtool-pkg-install.sh
===================================================================
--- libtool/2.4.6/libtool-pkg-install.sh	(nonexistent)
+++ libtool/2.4.6/libtool-pkg-install.sh	(revision 5)
@@ -0,0 +1,75 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/libtool.info.gz 2>/dev/null
+  elif fgrep "(libtool)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+    GOOD=yes # It seems to be entered in the /usr/share/info/dir already
+    /bin/true
+  else # add the info to the dir file directly:
+  cat << EOF >> usr/share/info/dir
+
+Individual utilities
+* libtool-invocation: (libtool)Invoking libtool.
+                                                Running the 'libtool' script.
+* libtoolize: (libtool)Invoking libtoolize.     Adding libtool support.
+
+Software development
+* Libtool: (libtool).           Generic shared library support script.
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: libtool/2.4.6/libtool-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: libtool/2.4.6
===================================================================
--- libtool/2.4.6	(nonexistent)
+++ libtool/2.4.6	(revision 5)

Property changes on: libtool/2.4.6
___________________________________________________________________
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: libtool/2.4.6-ppc32/Makefile
===================================================================
--- libtool/2.4.6-ppc32/Makefile	(nonexistent)
+++ libtool/2.4.6-ppc32/Makefile	(revision 5)
@@ -0,0 +1,197 @@
+
+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/GNU/libtool
+
+REQUIRES           = dev/libtool/2.4.6
+REQUIRES          += libs/glibc/2.36-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.6
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/libtool/libtool-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libtool-$(version)
+src_dir_name       = libtool-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBTOOL32_PKG_NAME                = libtool-x32
+LIBTOOL32_PKG_VERSION             = 2.4.6
+LIBTOOL32_PKG_ARCH                = $(PKGARCH)
+LIBTOOL32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBTOOL32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBTOOL32_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+LIBTOOL32_PKG_SHORT_DESCRIPTION   = generic library support script
+LIBTOOL32_PKG_URL                 = $(BUG_URL)
+LIBTOOL32_PKG_LICENSE             = GPLv2
+LIBTOOL32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBTOOL32_PKG_NAME)-pkg-description
+LIBTOOL32_PKG_DESCRIPTION_FILE_IN = $(LIBTOOL32_PKG_NAME)-pkg-description.in
+LIBTOOL32_PKG_INSTALL_SCRIPT      = $(LIBTOOL32_PKG_NAME)-pkg-install.sh
+
+LIBTOOL32_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBTOOL32_PKG_NAME)-package
+
+pkg_basename     = $(LIBTOOL32_PKG_NAME)-$(LIBTOOL32_PKG_VERSION)-$(LIBTOOL32_PKG_ARCH)-$(LIBTOOL32_PKG_DISTRO_NAME)-$(LIBTOOL32_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=$(LIBTOOL32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_PPC32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+GCC_VERSION = $(shell $(CC) -dumpversion)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBTOOL32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@mkdir -p $(LIBTOOL32_PKG)/usr/bin/32
+	@( cd $(LIBTOOL32_PKG)/usr/bin ; \
+	   find . -type f | xargs mv -t 32 ; \
+	 )
+	@rm -rf $(LIBTOOL32_PKG)/usr/include
+	@rm -rf $(LIBTOOL32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBTOOL32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libltdl.la  \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBTOOL32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libltdl.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libltdl.la \
+	 )
+	# ======= Tune /usr/bin/32/libtool for target system =======
+	@( cd $(LIBTOOL32_PKG)/usr/bin/32 ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libtool ; \
+	   sed -i "s,$(TOOLCHAIN_PATH),/usr,g" libtool ; \
+	   sed -i "s,AS=.*,AS=\"as\",g" libtool ; \
+	   sed -i "s,build_alias=.*,build_alias=$(TARGET32),g" libtool ; \
+	   sed -i "s,build=.*,build=$(TARGET32),g" libtool ; \
+	   sed -i "s,NM=.*,NM=\"/usr/bin/nm -B\",g" libtool ; \
+	   sed -i "s,AR=.*,AR=\"ar\",g" libtool ; \
+	   sed -i "s,STRIP=.*,STRIP=\"strip\",g" libtool ; \
+	   sed -i "s,RANLIB=.*,RANLIB=\"ranlib\",g" libtool ; \
+	   sed -i "s,LTCC=.*,LTCC=\"gcc -m32\",g" libtool ; \
+	   sed -i "s,LTCFLAGS=.*,LTCFLAGS=\"$(ARCH_FLAGS)\",g" libtool ; \
+	   sed -i "s,sys_lib_search_path_spec=.*,sys_lib_search_path_spec=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32 /usr/$(TARGET)/lib32 /usr/lib32 /lib32\",g" libtool ; \
+	   sed -i "s,sys_lib_dlsearch_path_spec=.*,sys_lib_dlsearch_path_spec=\"/lib32 /usr/lub32 /lib /usr/lib /usr/$(TARGET)/lib32 /usr/lib32/seamonkey \",g" libtool ; \
+	   sed -i "s,old_striplib=.*,old_striplib=\"strip --strip-debug\",g" libtool ; \
+	   sed -i "s,striplib=.*,striplib=\"strip --strip-unneeded\",g" libtool ; \
+	   sed -i "s,LD=.*,LD=\"/usr/$(TARGET)/bin/ld\",g" libtool ; \
+	   sed -i "s,CC=.*,CC=\"gcc -m32\",g" libtool ; \
+	 )
+	# ======= Tune /usr/bin/32/libtool for FORTRAN compiler (build machine depended) =======
+	@( cd $(LIBTOOL32_PKG)/usr/bin/32 ; \
+	   begin=`grep -n "BEGIN LIBTOOL TAG CONFIG: FC" libtool | cut -f 1 -d ':'` ; \
+	   end=`grep -n "END LIBTOOL TAG CONFIG: FC" libtool | cut -f 1 -d ':'` ; \
+	   sed -i "$$begin,$$end s,compiler_lib_search_dirs=.*,compiler_lib_search_dirs=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32 /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32 /lib/../lib32 /usr/lib/../lib32 /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../$(TARGET)/lib32 /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../..\",g" libtool ; \
+	   sed -i "$$begin,$$end s,predep_objects=.*,predep_objects=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32/crti.o /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/crtbeginS.o\",g" libtool ; \
+	   sed -i "$$begin,$$end s,postdep_objects=.*,postdep_objects=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/crtendS.o /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32/crtn.o\",g" libtool ; \
+	   sed -i "$$begin,$$end s,compiler_lib_search_path=.*,compiler_lib_search_path=\"-L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32 -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../$(TARGET)/lib32 -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../..\",g" libtool ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBTOOL32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(LIBTOOL32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(LIBTOOL32_PKG_DESCRIPTION_FILE): $(LIBTOOL32_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) $(LIBTOOL32_PKG_DESCRIPTION_FILE) $(LIBTOOL32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBTOOL32_PKG_DESCRIPTION_FILE) $(LIBTOOL32_PKG)/.DESCRIPTION
+	@cp $(LIBTOOL32_PKG_INSTALL_SCRIPT) $(LIBTOOL32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBTOOL32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBTOOL32_PKG_NAME)"                            >  $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBTOOL32_PKG_VERSION)"                          >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBTOOL32_PKG_ARCH)"                               >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBTOOL32_PKG_DISTRO_NAME)"                  >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBTOOL32_PKG_DISTRO_VERSION)"                >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBTOOL32_PKG_GROUP)"                             >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBTOOL32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBTOOL32_PKG_URL)"                                 >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBTOOL32_PKG_LICENSE)"                         >> $(LIBTOOL32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LIBTOOL32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: libtool/2.4.6-ppc32/PATCHES
===================================================================
--- libtool/2.4.6-ppc32/PATCHES	(nonexistent)
+++ libtool/2.4.6-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/libtool/patches/libtool-2.4.6-no-moved-warning.patch -p0
Index: libtool/2.4.6-ppc32/libtool-x32-pkg-description.in
===================================================================
--- libtool/2.4.6-ppc32/libtool-x32-pkg-description.in	(nonexistent)
+++ libtool/2.4.6-ppc32/libtool-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------------------------------------------------------|
+libtool-x32: libtool-x32 @VERSION@ (a generic library support script)
+libtool-x32:
+libtool-x32: This is GNU Libtool, a generic library support script. Libtool hides
+libtool-x32: the complexity of using shared libraries behind a consistent,
+libtool-x32: portable interface. To use libtool, add the new generic library
+libtool-x32: building commands to your Makefile, Makefile.in, or Makefile.am.
+libtool-x32: See the documentation for details.
+libtool-x32:
+libtool-x32: You must install the "m4" package to be able to use libtool.
+libtool-x32:
+libtool-x32:
Index: libtool/2.4.6-ppc32/libtool-x32-pkg-install.sh
===================================================================
--- libtool/2.4.6-ppc32/libtool-x32-pkg-install.sh	(nonexistent)
+++ libtool/2.4.6-ppc32/libtool-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: libtool/2.4.6-ppc32/libtool-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: libtool/2.4.6-ppc32
===================================================================
--- libtool/2.4.6-ppc32	(nonexistent)
+++ libtool/2.4.6-ppc32	(revision 5)

Property changes on: libtool/2.4.6-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: libtool/2.4.6-x86_32/Makefile
===================================================================
--- libtool/2.4.6-x86_32/Makefile	(nonexistent)
+++ libtool/2.4.6-x86_32/Makefile	(revision 5)
@@ -0,0 +1,194 @@
+
+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/GNU/libtool
+
+REQUIRES           = dev/libtool/2.4.6
+REQUIRES          += libs/glibc/2.36-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.4.6
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/libtool/libtool-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libtool-$(version)
+src_dir_name       = libtool-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LIBTOOL32_PKG_NAME                = libtool-x32
+LIBTOOL32_PKG_VERSION             = 2.4.6
+LIBTOOL32_PKG_ARCH                = $(PKGARCH)
+LIBTOOL32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LIBTOOL32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LIBTOOL32_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+LIBTOOL32_PKG_SHORT_DESCRIPTION   = generic library support script
+LIBTOOL32_PKG_URL                 = $(BUG_URL)
+LIBTOOL32_PKG_LICENSE             = GPLv2
+LIBTOOL32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LIBTOOL32_PKG_NAME)-pkg-description
+LIBTOOL32_PKG_DESCRIPTION_FILE_IN = $(LIBTOOL32_PKG_NAME)-pkg-description.in
+LIBTOOL32_PKG_INSTALL_SCRIPT      = $(LIBTOOL32_PKG_NAME)-pkg-install.sh
+
+LIBTOOL32_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LIBTOOL32_PKG_NAME)-package
+
+pkg_basename     = $(LIBTOOL32_PKG_NAME)-$(LIBTOOL32_PKG_VERSION)-$(LIBTOOL32_PKG_ARCH)-$(LIBTOOL32_PKG_DISTRO_NAME)-$(LIBTOOL32_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=$(LIBTOOL32_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+GCC_VERSION = $(shell $(CC) -dumpversion)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LIBTOOL32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@mkdir -p $(LIBTOOL32_PKG)/usr/bin/32
+	@( cd $(LIBTOOL32_PKG)/usr/bin ; \
+	   find . -type f | xargs mv -t 32 ; \
+	 )
+	@rm -rf $(LIBTOOL32_PKG)/usr/include
+	@rm -rf $(LIBTOOL32_PKG)/usr/share
+	# ======= remove toolchain path from target libtool *.la files =======
+	@( cd $(LIBTOOL32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libltdl.la  \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LIBTOOL32_PKG))
+	# ======= tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libltdl.la ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libltdl.la \
+	 )
+	# ======= Tune /usr/bin/32/libtool for target system =======
+	@( cd $(LIBTOOL32_PKG)/usr/bin/32 ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libtool ; \
+	   sed -i "s,$(TOOLCHAIN_PATH),/usr,g" libtool ; \
+	   sed -i "s,AS=.*,AS=\"as\",g" libtool ; \
+	   sed -i "s,build_alias=.*,build_alias=$(TARGET32),g" libtool ; \
+	   sed -i "s,build=.*,build=$(TARGET32),g" libtool ; \
+	   sed -i "s,NM=.*,NM=\"/usr/bin/nm -B\",g" libtool ; \
+	   sed -i "s,AR=.*,AR=\"ar\",g" libtool ; \
+	   sed -i "s,STRIP=.*,STRIP=\"strip\",g" libtool ; \
+	   sed -i "s,RANLIB=.*,RANLIB=\"ranlib\",g" libtool ; \
+	   sed -i "s,LTCC=.*,LTCC=\"gcc -m32\",g" libtool ; \
+	   sed -i "s,LTCFLAGS=.*,LTCFLAGS=\"$(ARCH_FLAGS)\",g" libtool ; \
+	   sed -i "s,sys_lib_search_path_spec=.*,sys_lib_search_path_spec=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32 /usr/$(TARGET)/lib32 /usr/lib32 /lib32\",g" libtool ; \
+	   sed -i "s,sys_lib_dlsearch_path_spec=.*,sys_lib_dlsearch_path_spec=\"/lib32 /usr/lub32 /lib /usr/lib /usr/$(TARGET)/lib32 /usr/lib32/seamonkey \",g" libtool ; \
+	   sed -i "s,old_striplib=.*,old_striplib=\"strip --strip-debug\",g" libtool ; \
+	   sed -i "s,striplib=.*,striplib=\"strip --strip-unneeded\",g" libtool ; \
+	   sed -i "s,LD=.*,LD=\"/usr/$(TARGET)/bin/ld\",g" libtool ; \
+	   sed -i "s,CC=.*,CC=\"gcc -m32\",g" libtool ; \
+	 )
+	# ======= Tune /usr/bin/32/libtool for FORTRAN compiler (build machine depended) =======
+	@( cd $(LIBTOOL32_PKG)/usr/bin/32 ; \
+	   begin=`grep -n "BEGIN LIBTOOL TAG CONFIG: FC" libtool | cut -f 1 -d ':'` ; \
+	   end=`grep -n "END LIBTOOL TAG CONFIG: FC" libtool | cut -f 1 -d ':'` ; \
+	   sed -i "$$begin,$$end s,compiler_lib_search_dirs=.*,compiler_lib_search_dirs=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32 /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32 /lib/../lib32 /usr/lib/../lib32 /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../$(TARGET)/lib32 /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../..\",g" libtool ; \
+	   sed -i "$$begin,$$end s,predep_objects=.*,predep_objects=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32/crti.o /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/crtbeginS.o\",g" libtool ; \
+	   sed -i "$$begin,$$end s,postdep_objects=.*,postdep_objects=\"/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/crtendS.o /usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32/crtn.o\",g" libtool ; \
+	   sed -i "$$begin,$$end s,compiler_lib_search_path=.*,compiler_lib_search_path=\"-L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32 -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../lib32 -L/lib/../lib32 -L/usr/lib/../lib32 -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../../../$(TARGET)/lib32 -L/usr/lib/gcc/$(TARGET)/$(GCC_VERSION)/32/../../../..\",g" libtool ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LIBTOOL32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(LIBTOOL32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(LIBTOOL32_PKG_DESCRIPTION_FILE): $(LIBTOOL32_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) $(LIBTOOL32_PKG_DESCRIPTION_FILE) $(LIBTOOL32_PKG_INSTALL_SCRIPT)
+	@cp $(LIBTOOL32_PKG_DESCRIPTION_FILE) $(LIBTOOL32_PKG)/.DESCRIPTION
+	@cp $(LIBTOOL32_PKG_INSTALL_SCRIPT) $(LIBTOOL32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LIBTOOL32_PKG)/.REQUIRES
+	@echo "pkgname=$(LIBTOOL32_PKG_NAME)"                            >  $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LIBTOOL32_PKG_VERSION)"                          >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LIBTOOL32_PKG_ARCH)"                               >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LIBTOOL32_PKG_DISTRO_NAME)"                  >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LIBTOOL32_PKG_DISTRO_VERSION)"                >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "group=$(LIBTOOL32_PKG_GROUP)"                             >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LIBTOOL32_PKG_SHORT_DESCRIPTION)\"" >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "url=$(LIBTOOL32_PKG_URL)"                                 >> $(LIBTOOL32_PKG)/.PKGINFO ; \
+	 echo "license=$(LIBTOOL32_PKG_LICENSE)"                         >> $(LIBTOOL32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LIBTOOL32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: libtool/2.4.6-x86_32/PATCHES
===================================================================
--- libtool/2.4.6-x86_32/PATCHES	(nonexistent)
+++ libtool/2.4.6-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/GNU/libtool/patches/libtool-2.4.6-no-moved-warning.patch -p0
Index: libtool/2.4.6-x86_32/libtool-x32-pkg-description.in
===================================================================
--- libtool/2.4.6-x86_32/libtool-x32-pkg-description.in	(nonexistent)
+++ libtool/2.4.6-x86_32/libtool-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------------------------------------------------------|
+libtool-x32: libtool-x32 @VERSION@ (a generic library support script)
+libtool-x32:
+libtool-x32: This is GNU Libtool, a generic library support script. Libtool hides
+libtool-x32: the complexity of using shared libraries behind a consistent,
+libtool-x32: portable interface. To use libtool, add the new generic library
+libtool-x32: building commands to your Makefile, Makefile.in, or Makefile.am.
+libtool-x32: See the documentation for details.
+libtool-x32:
+libtool-x32: You must install the "m4" package to be able to use libtool.
+libtool-x32:
+libtool-x32:
Index: libtool/2.4.6-x86_32/libtool-x32-pkg-install.sh
===================================================================
--- libtool/2.4.6-x86_32/libtool-x32-pkg-install.sh	(nonexistent)
+++ libtool/2.4.6-x86_32/libtool-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: libtool/2.4.6-x86_32/libtool-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: libtool/2.4.6-x86_32
===================================================================
--- libtool/2.4.6-x86_32	(nonexistent)
+++ libtool/2.4.6-x86_32	(revision 5)

Property changes on: libtool/2.4.6-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: libtool
===================================================================
--- libtool	(nonexistent)
+++ libtool	(revision 5)

Property changes on: libtool
___________________________________________________________________
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: llvm/13.0.0/Makefile
===================================================================
--- llvm/13.0.0/Makefile	(nonexistent)
+++ llvm/13.0.0/Makefile	(revision 5)
@@ -0,0 +1,618 @@
+
+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
+
+NOT_PARALLEL       = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/llvm
+
+REQUIRES           = dev/gcc/12.2.0
+REQUIRES          += libs/libffi/3.4.4
+REQUIRES          += libs/elfutils/0.187
+REQUIRES          += libs/libxml2/2.9.9
+REQUIRES          += libs/libedit/20191231-3.1
+REQUIRES          += libs/ncurses/6.3
+REQUIRES          += dev/python2/2.7.18
+REQUIRES          += dev/python3/3.10.8
+REQUIRES          += dev/lua/5.4.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 13.0.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/llvm/llvm-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/llvm-$(version)
+src_dir_name       = llvm-$(version)
+doc_dir_name       = llvm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config_dir         = $(CURDIR)/config
+
+PATCHES = PATCHES
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC))
+OPT_PATCHES = PATCHES.p5600
+endif
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LLVM_PKG_NAME                = llvm
+LLVM_PKG_VERSION             = 13.0.0
+LLVM_PKG_ARCH                = $(PKGARCH)
+LLVM_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LLVM_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LLVM_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+LLVM_PKG_SHORT_DESCRIPTION   = LLVM compiler toolkit
+LLVM_PKG_URL                 = $(BUG_URL)
+LLVM_PKG_LICENSE             = custom
+LLVM_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LLVM_PKG_NAME)-pkg-description
+LLVM_PKG_DESCRIPTION_FILE_IN = $(LLVM_PKG_NAME)-pkg-description.in
+LLVM_PKG_INSTALL_SCRIPT      = $(LLVM_PKG_NAME)-pkg-install.sh
+
+LLVM_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LLVM_PKG_NAME)-package
+
+pkg_basename     = $(LLVM_PKG_NAME)-$(LLVM_PKG_VERSION)-$(LLVM_PKG_ARCH)-$(LLVM_PKG_DISTRO_NAME)-$(LLVM_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=$(LLVM_PKG)
+
+
+JOBS := $(shell echo 'if( $(NUMPROCS) > 2) { $(NUMPROCS) / 2 } else { 1 }' | bc)
+LLVM_JOBS := -j$(JOBS) -l$(JOBS)
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+CC_NO_WARNINGS   = -Wno-old-style-declaration -Wno-array-bounds -Wno-deprecated-declarations
+CC_NO_WARNINGS  += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CC_NO_WARNINGS  += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CC_NO_WARNINGS  += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CC_NO_WARNINGS  += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes -Wno-extra
+CC_NO_WARNINGS  += -Wno-uninitialized -Wno-type-limits -Wno-unused-variable -Wno-return-type
+
+CXX_NO_WARNINGS  = -Wno-pessimizing-move -Wno-array-bounds -Wno-deprecated-declarations
+CXX_NO_WARNINGS += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CXX_NO_WARNINGS += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CXX_NO_WARNINGS += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CXX_NO_WARNINGS += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes -Wno-extra
+CXX_NO_WARNINGS += -Wno-uninitialized -Wno-type-limits -Wno-unused-variable -Wno-return-type
+
+
+configure_switches  = -DBUG_REPORT_URL='https://llvm.org'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+#
+# CMAKE passes the same {ASM|C}_DEFINES to the C and ASM compilers
+# by the SET(CMAKE_TARGET_DEFINITIONS ..) function.  This is a bad
+# practice for GNU Assembler.  GNU AS  compiler doesn't understand
+# options like -D_GNU_SOURCE .
+#
+configure_switches += -DCMAKE_ASM_COMPILER='$(CROSS_PREFIX)gcc'
+
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DGOLD_EXECUTABLE='$(CROSS_PREFIX)ld.gold'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS:STRING='--sysroot=$(TARGET_DEST_DIR) $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CC_NO_WARNINGS)'
+configure_switches += -DCMAKE_CXX_FLAGS:STRING='--sysroot=$(TARGET_DEST_DIR) $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CXX_NO_WARNINGS)'
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) \
+                             $(TOOLCHAIN_P5600_GLIBC)),)
+explicit_atomic = -latomic
+else
+explicit_atomic =
+endif
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -Wl,-rpath,$(TARGET_BIN_RPATH) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) $(explicit_atomic)'
+
+configure_switches += -DCMAKE_SKIP_INSTALL_RPATH=NO
+configure_switches += -DCMAKE_SKIP_RPATH=YES
+
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
+configure_switches += -DCMAKE_C_FLAGS_RELEASE='-O2 -DNDEBUG'
+configure_switches += -DCMAKE_CXX_FLAGS_RELEASE='-O2 -DNDEBUG'
+configure_switches += -DCMAKE_ASM_FLAGS_RELEASE='-O2 -DNDEBUG'
+endif
+
+configure_switches += -DLLVM_CCACHE_BUILD=ON
+configure_switches += -DCCACHE_PROGRAM=$(CCACHE)
+configure_switches += -DLLVM_CCACHE_DIR:STRING='$(CACHED_CC_OUTPUT)'
+configure_switches += -DLLVM_CCACHE_PARAMS:STRING='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)'
+
+configure_switches += -DCMAKE_SYSTEM_NAME:STRING='Linux'
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+configure_switches += -DCMAKE_INSTALL_BINDIR=bin
+configure_switches += -DCMAKE_INSTALL_LIBDIR=lib$(LIBSUFFIX)
+configure_switches += -DCMAKE_INSTALL_LIBEXECDIR=libexec
+configure_switches += -DCMAKE_INSTALL_MANDIR='share/man'
+configure_switches += -DCMAKE_INSTALL_DOCDIR='share/doc/$(doc_dir_name)'
+
+configure_switches += -DLLVM_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLIBCXXABI_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLIBCXX_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLIBUNWIND_LIBDIR_SUFFIX=$(LIBSUFFIX)
+
+configure_switches += -DCMAKE_BUILD_TYPE=Release
+configure_switches += -DBUILD_SHARED_LIBS=ON
+configure_switches += -DLLVM_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DLIBCXX_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_ZLIB=ON
+configure_switches += -DLLVM_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXXABI_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXX_ENABLE_ASSERTIONS=OFF
+
+configure_switches += -DLLVM_INSTALL_UTILS=ON
+
+configure_switches += -DCOMPILER_RT_CAN_EXECUTE_TESTS=OFF
+configure_switches += -DCOMPILER_RT_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXXABI_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXX_INCLUDE_TESTS=OFF
+configure_switches += -DLLDB_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_GO_TESTS=OFF
+configure_switches += -DCLANG_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_BUILD_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_TESTS=OFF
+
+configure_switches += -DLIBCXXABI_ENABLE_PIC=ON
+configure_switches += -DLLVM_ENABLE_PIC=ON
+
+configure_switches += -DLLVM_BINUTILS_INCDIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCLANG_RESOURCE_DIR='../lib$(LIBSUFFIX)/clang/$(version)'
+configure_switches += -DLLVM_TARGETS_TO_BUILD='host;AMDGPU;BPF'
+configure_switches += -DLLDB_USE_SYSTEM_SIX=1
+
+#
+# libunwind:
+#
+configure_switches += -DLIBUNWIND_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBUNWIND_ENABLE_SHARED=ON
+configure_switches += -DLIBUNWIND_ENABLE_STATIC=OFF
+
+
+#
+# Settings:
+#
+__ENABLE_CLANGD__      = yes
+__ENABLE_LLDB_SERVER__ = yes
+
+__ENABLE_LIBUNWIND__   = no
+__ENABLE_OPENMP__      = yes
+
+#
+# Configuring:
+#
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) \
+                             $(TOOLCHAIN_P5600_GLIBC)  \
+                             $(TOOLCHAIN_RISCV64_GLIBC)),)
+__ENABLE_LLDB_SERVER__ = no
+endif
+
+#
+# Evaluation:
+#
+ifeq ($(__ENABLE_CLANGD__),yes)
+clangd = ON
+else
+clangd = OFF
+endif
+ifeq ($(__ENABLE_LLDB_SERVER__),yes)
+lldb-server = ON
+else
+lldb-server = OFF
+endif
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+libunwind = ;libunwind
+else
+libunwind =
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+openmp = ;openmp
+else
+openmp =
+endif
+
+
+configure_switches += -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;lldb;lld;compiler-rt;polly$(openmp)$(libunwind)'
+
+configure_switches += -DCLANG_ENABLE_CLANGD=$(clangd)
+configure_switches += -DLLDB_TOOL_LLDB_SERVER_BUILD=$(lldb-server)
+
+
+PYTHON_VERSION = 3.10
+
+configure_switches += -DPython3_EXECUTABLE=$(PYTHON3)
+configure_switches += -DPython3_INCLUDE_DIRS=$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)
+configure_switches += -DPython3_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libpython$(PYTHON_VERSION).so
+
+configure_switches += -DLLDB_ENABLE_PYTHON=On
+configure_switches += -DLLDB_PYTHON_RELATIVE_PATH=lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages
+
+configure_switches += -DZLIB_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DZLIB_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libz.so
+
+configure_switches += -DLIBLZMA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBLZMA_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/liblzma.so
+
+configure_switches += -DLIBXML2_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include/libxml2
+configure_switches += -DLIBXML2_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libxml2.so
+
+configure_switches += -DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=False
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libelf.so
+
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_LIBRARY_DIR=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)
+configure_switches += -DFFI_LIBRARY_PATH=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libffi.so
+
+configure_switches += -DLLDB_ENABLE_LUA=ON
+configure_switches += -DLUA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLUA_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/liblua.so
+configure_switches += -DLUA_MATH_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libm.so
+
+configure_switches += -DLLDB_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_TERMINFO=ON
+
+configure_switches += -DTERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+configure_switches += -DCOMPILER_RT_TERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+
+configure_switches += -DCURSES_CURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libcursesw.so
+configure_switches += -DCURSES_FORM_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libformw.so
+configure_switches += -DCURSES_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCURSES_NCURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libncursesw.so
+configure_switches += -DPANEL_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libpanelw.so
+
+configure_switches += -Dpkgcfg_lib_NCURSES_ncurses=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libncursesw.so
+configure_switches += -Dpkgcfg_lib_NCURSES_tinfo=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+
+configure_switches += -DLLDB_ENABLE_CURSES=On
+
+configure_switches += -DLLVM_BUILD_DOCS=OFF
+
+configure_switches += -DCMAKE_CROSSCOMPILING=True
+
+configure_switches += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TARGET)
+configure_switches += -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(TARGET)
+configure_switches += -DLLVM_HOST_TRIPLE=$(TARGET)
+
+configure_switches += -DLLVM_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-tblgen
+configure_switches += -DLLVM_CONFIG_PATH:STRING=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-config
+configure_switches += -DCLANG_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tblgen
+configure_switches += -DLLDB_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/lldb-tblgen
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+ifneq ($(OPT_PATCHES),)
+	$(call apply-opt-patches, $(SRC_DIR))
+endif
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(TARGET_BUILD_DIR)/build-machine
+	@( cd $(TARGET_BUILD_DIR)/build-machine ; \
+	   cmake -Wno-dev \
+	         -G Ninja -DLLVM_ENABLE_PROJECTS='clang;lldb' \
+	                  -DCMAKE_BUILD_TYPE=Release \
+	                  -DLLVM_LIBDIR_SUFFIX=$(LIBSUFFIX) \
+	                  -DLLVM_INCLUDE_TESTS=OFF \
+	                  -DLLVM_CCACHE_BUILD=ON \
+	                  -DCCACHE_PROGRAM=$(CCACHE) \
+	                  -DLLVM_CCACHE_DIR:STRING='$(CACHED_CC_OUTPUT)' \
+	                  -DLLVM_CCACHE_PARAMS:STRING='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)' \
+	                  -DCMAKE_C_FLAGS:STRING='-I/usr/include $(CC_NO_WARNINGS)' \
+	                  -DCMAKE_CXX_FLAGS:STRING='-I/usr/include $(CXX_NO_WARNINGS)' \
+	                  ../llvm-$(version)/llvm ; \
+	   ninja  llvm-tblgen ; \
+	   ninja clang-tblgen ; \
+	   ninja  lldb-tblgen ; \
+	   ninja  llvm-config ; \
+	 )
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) \
+	     cmake -Wno-dev --trace-expand \
+                   -G Ninja $(configure_switches) ../llvm-$(version)/llvm 2> CMakeTrace.txt ; \
+	 )
+	@( cd $(build_dir) ; \
+	   ninja $(LLVM_JOBS) all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LLVM_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) \
+                             $(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@for header in config ; do \
+	   mv $(LLVM_PKG)/usr/include/clang/Config/$$header{,-64}.h ; \
+	   cp -a $(config_dir)/$$header.h $(LLVM_PKG)/usr/include/clang/Config/$$header.h ; \
+	 done
+	@for header in llvm-config ; do \
+	   mv $(LLVM_PKG)/usr/include/llvm/Config/$$header{,-64}.h ; \
+	   cp -a $(config_dir)/$$header.h $(LLVM_PKG)/usr/include/llvm/Config/$$header.h ; \
+	 done
+endif
+	@( cd $(LLVM_PKG)/usr/bin ; \
+	   ln -sf clang   $(TARGET)-clang   ; \
+	   ln -sf clang++ $(TARGET)-clang++ ; \
+	 )
+	@( cd $(TARGET_BUILD_DIR)/build/bin ; \
+	   cp -a clang-tblgen $(LLVM_PKG)/usr/bin ; \
+	 )
+	# ======= Install $(TARGET)-llvm-config =======
+	@( cd $(TARGET_BUILD_DIR)/build-machine/bin ; \
+	   cp -a clang-tblgen $(LLVM_PKG)/usr/bin/$(TARGET)-clang-tblgen ; \
+	   cp -a llvm-tblgen  $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-tblgen  ; \
+	   cp -a lldb-tblgen  $(LLVM_PKG)/usr/bin/$(TARGET)-lldb-tblgen  ; \
+	   cp -a llvm-config  $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-config  ; \
+	 )
+	# ======= Install clang-static-analyzer =======
+	@( cd $(LLVM_PKG)/usr/bin ; \
+	   for i in ccc c++ ; do \
+	     ln -sf ../libexec/$$i-analyzer $$i-analyzer ; \
+	   done ; \
+	 )
+	# ======= Remove bundled python-six =======
+	@rm -f $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/six.py
+	# ======= Install Python bindings =======
+	@mkdir -p $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages
+	@$(PYTHON2)    -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages/clang
+	@$(PYTHON2) -O -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages/clang
+	# ======= Install Python3 bindings =======
+	@mkdir -p $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	# ======= Compile bindings by Python3 =======
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/share/clang
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/share/clang
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/share/opt-viewer
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/share/opt-viewer
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/share/scan-view
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/share/scan-view
+	# ======= Install Documentation =======
+	@( cd $(LLVM_PKG)/usr/share/man/man1 ; \
+	   chmod 644 *.1 ; \
+	 )
+	@if [ -d $(LLVM_PKG)/usr/share/man ] ; then \
+	  ( cd $(LLVM_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
+	# ======= Install Licenses only into /usr/doc =======
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/{clang,clang-tools-extra,compiler-rt}
+	@( cd $(SRC_DIR) ; \
+	   cp -a clang/{CODE_OWNERS,LICENSE}* \
+	         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/clang ; \
+	   cp -a clang-tools-extra/{CODE_OWNERS,LICENSE}* \
+	         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/clang-tools-extra ; \
+	   cp -a compiler-rt/{CODE_OWNERS,LICENSE}* \
+	         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/compiler-rt ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lld
+	@( cd $(SRC_DIR) ; cp -a lld/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lld ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lldb
+	@( cd $(SRC_DIR) ; cp -a lldb/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lldb ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/llvm
+	@( cd $(SRC_DIR) ; cp -a llvm/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/llvm ; \
+	 )
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/libunwind
+	@( cd $(SRC_DIR) ; cp -a libunwind/LICENSE* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/libunwind ; \
+	 )
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/openmp
+	@( cd $(SRC_DIR) ; cp -a openmp/LICENSE* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/openmp ; \
+	 )
+endif
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/polly
+	@( cd $(SRC_DIR) ; cp -a polly/LICENSE* \
+	                   $(LLVM_PKG)/usr/doc/$(doc_dir_name)/polly ; \
+	 )
+	# ======= Install README files into /usr/share/doc =======
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/{clang,clang-tools-extra,compiler-rt}
+	@( cd $(SRC_DIR) ; \
+	   cp -a {CONTRIBUTING,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	   cp -a clang/{CODE_OWNERS,INSTALL,LICENSE,NOTES,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/clang ; \
+	   cp -a clang-tools-extra/{CODE_OWNERS,LICENSE,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/clang-tools-extra ; \
+	   cp -a compiler-rt/{CODE_OWNERS,CREDITS,LICENSE,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/compiler-rt ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lld
+	@( cd $(SRC_DIR) ; cp -a lld/{CODE_OWNERS,LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lld ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lldb
+	@( cd $(SRC_DIR) ; cp -a lldb/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lldb ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/llvm
+	@( cd $(SRC_DIR) ; cp -a llvm/{CODE_OWNERS,CREDITS,LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/llvm ; \
+	 )
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/libunwind
+	@( cd $(SRC_DIR) ; cp -a libunwind/{LICENSE}* \
+	                         libunwind/docs/{BuildingLibunwind,README,index}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/libunwind ; \
+	 )
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/openmp
+	@( cd $(SRC_DIR) ; cp -a openmp/{CREDITS,LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/openmp ; \
+	 )
+endif
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/polly
+	@( cd $(SRC_DIR) ; cp -a polly/{CREDITS,LICENSE,README}* \
+	                   $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/polly ; \
+	 )
+	# ======= Install ChangeLog if exists =======
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Remove build-dir from cmake files =======
+	@( cd $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),/usr,g' polly/PollyConfig.cmake ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LLVM_PKG))
+	# ======= Remove $(TARGET)-llvm-config from target package =======
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-clang-tblgen
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-tblgen
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-lldb-tblgen
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-config
+	# ======= Strip Binaries =======
+	@( cd $(LLVM_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 $@
+
+$(LLVM_PKG_DESCRIPTION_FILE): $(LLVM_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) $(LLVM_PKG_DESCRIPTION_FILE) $(LLVM_PKG_INSTALL_SCRIPT)
+	@cp $(LLVM_PKG_DESCRIPTION_FILE) $(LLVM_PKG)/.DESCRIPTION
+	@cp $(LLVM_PKG_INSTALL_SCRIPT) $(LLVM_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LLVM_PKG)/.REQUIRES
+	@echo "pkgname=$(LLVM_PKG_NAME)"                            >  $(LLVM_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LLVM_PKG_VERSION)"                          >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "arch=$(LLVM_PKG_ARCH)"                               >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LLVM_PKG_DISTRO_NAME)"                  >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LLVM_PKG_DISTRO_VERSION)"                >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "group=$(LLVM_PKG_GROUP)"                             >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LLVM_PKG_SHORT_DESCRIPTION)\"" >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "url=$(LLVM_PKG_URL)"                                 >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "license=$(LLVM_PKG_LICENSE)"                         >> $(LLVM_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LLVM_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: llvm/13.0.0/PATCHES
===================================================================
--- llvm/13.0.0/PATCHES	(nonexistent)
+++ llvm/13.0.0/PATCHES	(revision 5)
@@ -0,0 +1,15 @@
+
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clang-gnu-triple.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clang-set-revision.patch   -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clangd-riscv64.patch       -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-ppc64.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-synonyms.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-lldb-riscv64.patch         -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-lldb-set-revision.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-64bit-atomic.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-pass-variables.patch  -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-ppc64.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-versioning.patch      -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-polly-hack.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-python3.patch              -p0
+
Index: llvm/13.0.0/PATCHES.p5600
===================================================================
--- llvm/13.0.0/PATCHES.p5600	(nonexistent)
+++ llvm/13.0.0/PATCHES.p5600	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-p5600.patch    -p0
+
Index: llvm/13.0.0/config/config.h
===================================================================
--- llvm/13.0.0/config/config.h	(nonexistent)
+++ llvm/13.0.0/config/config.h	(revision 5)
@@ -0,0 +1,10 @@
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "config-32.h"
+#elif __WORDSIZE == 64
+#include "config-64.h"
+#else
+#error "Unknown word size"
+#endif
Index: llvm/13.0.0/config/llvm-config.h
===================================================================
--- llvm/13.0.0/config/llvm-config.h	(nonexistent)
+++ llvm/13.0.0/config/llvm-config.h	(revision 5)
@@ -0,0 +1,10 @@
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "llvm-config-32.h"
+#elif __WORDSIZE == 64
+#include "llvm-config-64.h"
+#else
+#error "Unknown word size"
+#endif
Index: llvm/13.0.0/config
===================================================================
--- llvm/13.0.0/config	(nonexistent)
+++ llvm/13.0.0/config	(revision 5)

Property changes on: llvm/13.0.0/config
___________________________________________________________________
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: llvm/13.0.0/llvm-pkg-description.in
===================================================================
--- llvm/13.0.0/llvm-pkg-description.in	(nonexistent)
+++ llvm/13.0.0/llvm-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------------------------------------------------------|
+llvm: llvm @VERSION@ (LLVM compiler toolkit)
+llvm:
+llvm: Low Level Virtual Machine is a toolkit for the construction of
+llvm: highly optimized compilers, optimizers, and runtime environments.
+llvm:
+llvm: This package also includes the clang frontend for the C family of
+llvm: languages:  C, C++, Objective-C, and Objective-C++
+llvm:
+llvm: Homepage: http://llvm.org
+llvm:
+llvm:
Index: llvm/13.0.0/llvm-pkg-install.sh
===================================================================
--- llvm/13.0.0/llvm-pkg-install.sh	(nonexistent)
+++ llvm/13.0.0/llvm-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: llvm/13.0.0/llvm-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: llvm/13.0.0
===================================================================
--- llvm/13.0.0	(nonexistent)
+++ llvm/13.0.0	(revision 5)

Property changes on: llvm/13.0.0
___________________________________________________________________
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: llvm/13.0.0-ppc32/Makefile
===================================================================
--- llvm/13.0.0-ppc32/Makefile	(nonexistent)
+++ llvm/13.0.0-ppc32/Makefile	(revision 5)
@@ -0,0 +1,449 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+NOT_PARALLEL       = true
+
+CREATE_PPC32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/llvm
+
+REQUIRES           = dev/llvm/13.0.0
+REQUIRES          += libs/libffi/3.4.4-ppc32
+REQUIRES          += libs/elfutils/0.187-ppc32
+REQUIRES          += libs/libxml2/2.9.9-ppc32
+REQUIRES          += libs/libedit/20191231-3.1-ppc32
+REQUIRES          += libs/ncurses/6.3-ppc32
+REQUIRES          += dev/python2/2.7.18-ppc32
+REQUIRES          += dev/python3/3.10.8-ppc32
+REQUIRES          += dev/lua/5.4.2-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 13.0.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/llvm/llvm-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/llvm-$(version)
+src_dir_name       = llvm-$(version)
+doc_dir_name       = llvm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LLVM_32_PKG_NAME                = llvm-x32
+LLVM_32_PKG_VERSION             = 13.0.0
+LLVM_32_PKG_ARCH                = $(PKGARCH)
+LLVM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LLVM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LLVM_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+LLVM_32_PKG_SHORT_DESCRIPTION   = LLVM compiler toolkit
+LLVM_32_PKG_URL                 = $(BUG_URL)
+LLVM_32_PKG_LICENSE             = custom
+LLVM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-pkg-description
+LLVM_32_PKG_DESCRIPTION_FILE_IN = $(LLVM_32_PKG_NAME)-pkg-description.in
+LLVM_32_PKG_INSTALL_SCRIPT      = $(LLVM_32_PKG_NAME)-pkg-install.sh
+
+LLVM_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-package
+
+pkg_basename     = $(LLVM_32_PKG_NAME)-$(LLVM_32_PKG_VERSION)-$(LLVM_32_PKG_ARCH)-$(LLVM_32_PKG_DISTRO_NAME)-$(LLVM_32_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=$(LLVM_32_PKG)
+
+
+JOBS := $(shell echo 'if( $(NUMPROCS) > 2) { $(NUMPROCS) / 2 } else { 1 }' | bc)
+LLVM_JOBS := -j$(JOBS) -l$(JOBS)
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)
+
+CC_NO_WARNINGS   = -Wno-old-style-declaration -Wno-array-bounds -Wno-deprecated-declarations
+CC_NO_WARNINGS  += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CC_NO_WARNINGS  += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CC_NO_WARNINGS  += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CC_NO_WARNINGS  += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes -Wno-extra
+CC_NO_WARNINGS  += -Wno-uninitialized -Wno-type-limits -Wno-unused-variable -Wno-return-type
+
+CXX_NO_WARNINGS  = -Wno-pessimizing-move -Wno-array-bounds -Wno-deprecated-declarations
+CXX_NO_WARNINGS += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CXX_NO_WARNINGS += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CXX_NO_WARNINGS += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CXX_NO_WARNINGS += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes -Wno-extra
+CXX_NO_WARNINGS += -Wno-uninitialized -Wno-type-limits -Wno-unused-variable -Wno-return-type
+
+
+configure_switches  = -DBUG_REPORT_URL='https://llvm.org'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+#
+# CMAKE passes the same {ASM|C}_DEFINES to the C and ASM compilers
+# by the SET(CMAKE_TARGET_DEFINITIONS ..) function.  This is a bad
+# practice for GNU Assembler.  GNU AS  compiler doesn't understand
+# options like -D_GNU_SOURCE .
+#
+configure_switches += -DCMAKE_ASM_COMPILER='$(CROSS_PREFIX)gcc'
+
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DGOLD_EXECUTABLE='$(CROSS_PREFIX)ld.gold'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS:STRING='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CC_NO_WARNINGS)'
+configure_switches += -DCMAKE_CXX_FLAGS:STRING='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CXX_NO_WARNINGS)'
+
+explicit_atomic = -latomic
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_BIN_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) $(explicit_atomic)'
+
+configure_switches += -DCMAKE_SKIP_INSTALL_RPATH=NO
+configure_switches += -DCMAKE_SKIP_RPATH=YES
+
+configure_switches += -DLLVM_CCACHE_BUILD=ON
+configure_switches += -DCCACHE_PROGRAM=$(CCACHE)
+configure_switches += -DLLVM_CCACHE_DIR:STRING='$(CACHED_CC_OUTPUT)'
+configure_switches += -DLLVM_CCACHE_PARAMS:STRING='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)'
+
+configure_switches += -DCMAKE_SYSTEM_NAME:STRING='Linux'
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+configure_switches += -DCMAKE_INSTALL_BINDIR=bin/32
+configure_switches += -DCMAKE_INSTALL_LIBDIR=lib$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DCMAKE_INSTALL_LIBEXECDIR=libexec/32
+configure_switches += -DCMAKE_INSTALL_MANDIR='share/man'
+configure_switches += -DCMAKE_INSTALL_DOCDIR='share/doc/$(doc_dir_name)'
+
+configure_switches += -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLIBCXXABI_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLIBCXX_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLIBUNWIND_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+
+configure_switches += -DCMAKE_BUILD_TYPE=Release
+configure_switches += -DBUILD_SHARED_LIBS=ON
+configure_switches += -DLLVM_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DLIBCXX_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_ZLIB=ON
+configure_switches += -DLLVM_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXXABI_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXX_ENABLE_ASSERTIONS=OFF
+
+configure_switches += -DLLVM_INSTALL_UTILS=ON
+
+configure_switches += -DCOMPILER_RT_CAN_EXECUTE_TESTS=OFF
+configure_switches += -DCOMPILER_RT_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXXABI_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXX_INCLUDE_TESTS=OFF
+configure_switches += -DLLDB_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_GO_TESTS=OFF
+configure_switches += -DCLANG_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_BUILD_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_TESTS=OFF
+
+configure_switches += -DLIBCXXABI_ENABLE_PIC=ON
+configure_switches += -DLLVM_ENABLE_PIC=ON
+
+configure_switches += -DLLVM_BINUTILS_INCDIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCLANG_RESOURCE_DIR='../../lib$(MULTILIB_PPC32_SUFFIX)/clang/$(version)'
+configure_switches += -DLLVM_TARGETS_TO_BUILD='host;AMDGPU;BPF'
+configure_switches += -DLLDB_USE_SYSTEM_SIX=1
+
+#
+# libunwind:
+#
+configure_switches += -DLIBUNWIND_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBUNWIND_ENABLE_SHARED=ON
+configure_switches += -DLIBUNWIND_ENABLE_STATIC=OFF
+
+
+#
+# Settings:
+#
+__ENABLE_CLANGD__      = no
+__ENABLE_LLDB_SERVER__ = no
+
+__ENABLE_LIBUNWIND__   = no
+__ENABLE_OPENMP__      = no
+
+
+#
+# Evaluation:
+#
+ifeq ($(__ENABLE_CLANGD__),yes)
+clangd = ON
+else
+clangd = OFF
+endif
+ifeq ($(__ENABLE_LLDB_SERVER__),yes)
+lldb-server = ON
+else
+lldb-server = OFF
+endif
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+libunwind = ;libunwind
+else
+libunwind =
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+openmp = ;openmp
+else
+openmp =
+endif
+
+
+configure_switches += -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;lldb;lld;compiler-rt;polly$(openmp)$(libunwind)'
+
+configure_switches += -DCLANG_ENABLE_CLANGD=$(clangd)
+configure_switches += -DLLDB_TOOL_LLDB_SERVER_BUILD=$(lldb-server)
+
+
+PYTHON_VERSION = 3.10
+
+configure_switches += -DPython3_EXECUTABLE=$(PYTHON3)
+configure_switches += -DPython3_INCLUDE_DIRS=$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)
+configure_switches += -DPython3_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libpython$(PYTHON_VERSION).so
+
+configure_switches += -DLLDB_ENABLE_PYTHON=On
+configure_switches += -DLLDB_PYTHON_RELATIVE_PATH=lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+
+configure_switches += -DZLIB_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DZLIB_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libz.so
+
+configure_switches += -DLIBLZMA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBLZMA_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/liblzma.so
+
+configure_switches += -DLIBXML2_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include/libxml2
+configure_switches += -DLIBXML2_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libxml2.so
+
+configure_switches += -DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=False
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libelf.so
+
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_LIBRARY_DIR=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DFFI_LIBRARY_PATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libffi.so
+
+configure_switches += -DLLDB_ENABLE_LUA=ON
+configure_switches += -DLUA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLUA_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/liblua.so
+configure_switches += -DLUA_MATH_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libm.so
+
+configure_switches += -DLLDB_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_LIBEDIT=ON
+
+configure_switches += -DLLVM_ENABLE_TERMINFO=ON
+configure_switches += -DTERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+configure_switches += -DCOMPILER_RT_TERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+
+configure_switches += -DCURSES_CURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libcursesw.so
+configure_switches += -DCURSES_FORM_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libformw.so
+configure_switches += -DCURSES_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCURSES_NCURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libncursesw.so
+configure_switches += -DPANEL_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libpanelw.so
+
+configure_switches += -Dpkgcfg_lib_NCURSES_ncurses:FILEPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libncursesw.so
+configure_switches += -Dpkgcfg_lib_NCURSES_tinfo:FILEPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+
+configure_switches += -DLLDB_ENABLE_CURSES=On
+
+configure_switches += -DLLVM_BUILD_DOCS=OFF
+
+configure_switches += -DCMAKE_CROSSCOMPILING=True
+
+configure_switches += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DLLVM_HOST_TRIPLE=$(TARGET32)
+
+configure_switches += -DLLVM_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-tblgen
+configure_switches += -DLLVM_CONFIG_PATH:STRING=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-config
+configure_switches += -DCLANG_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tblgen
+configure_switches += -DLLDB_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/lldb-tblgen
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(TARGET_BUILD_DIR)/build-machine
+	@( cd $(TARGET_BUILD_DIR)/build-machine ; \
+	   cmake -Wno-dev \
+	         -G Ninja -DLLVM_ENABLE_PROJECTS='clang;lldb' \
+	                  -DCMAKE_BUILD_TYPE=Release \
+	                  -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX) \
+	                  -DLLVM_INCLUDE_TESTS=OFF \
+	                  -DLLVM_CCACHE_BUILD=ON \
+	                  -DCCACHE_PROGRAM=$(CCACHE) \
+	                  -DLLVM_CCACHE_DIR:STRING='$(CACHED_CC_OUTPUT)' \
+	                  -DLLVM_CCACHE_PARAMS:STRING='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)' \
+	                  -DCMAKE_C_FLAGS:STRING='-I/usr/include $(CC_NO_WARNINGS)' \
+	                  -DCMAKE_CXX_FLAGS:STRING='-I/usr/include $(CXX_NO_WARNINGS)' \
+	                  ../llvm-$(version)/llvm ; \
+	   ninja  llvm-tblgen ; \
+	   ninja clang-tblgen ; \
+	   ninja  lldb-tblgen ; \
+	   ninja  llvm-config ; \
+	 )
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) \
+	     cmake -Wno-dev --trace-expand \
+                   -G Ninja $(configure_switches) ../llvm-$(version)/llvm 2> CMakeTrace.txt ; \
+	 )
+	@( cd $(build_dir) ; \
+	   ninja $(LLVM_JOBS) all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LLVM_32_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   ln -sf clang   $(TARGET32)-clang   ; \
+	   ln -sf clang++ $(TARGET32)-clang++ ; \
+	 )
+	@( cd $(TARGET_BUILD_DIR)/build/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin ; \
+	 )
+	# ======= Move 32-Bit binaries into /usr/bin/32 directory =======
+	@mkdir -p $(LLVM_32_PKG)/usr/bin/32
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   find . -type f | xargs mv -t 32 ; \
+	   find . -type l | xargs mv -t 32 ; \
+	 )
+	# ======= Install $(TARGET32)-llvm-config =======
+	@( cd $(TARGET_BUILD_DIR)/build-machine/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-clang-tblgen ; \
+	   cp -a llvm-tblgen  $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-llvm-tblgen  ; \
+	   cp -a lldb-tblgen  $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-lldb-tblgen  ; \
+	   cp -a llvm-config  $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-llvm-config  ; \
+	 )
+	# ======= Save config.h and llvm-config.h =======
+	@for header in config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/clang/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/llvm/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@rm -rf $(LLVM_32_PKG)/usr/include
+	@rm -rf $(LLVM_32_PKG)/usr/libexec
+	@rm -rf $(LLVM_32_PKG)/usr/share
+	# ======= Restore config-32.h and llvm-config-32.h =======
+	@mkdir -p $(LLVM_32_PKG)/usr/include/{clang,llvm}/Config
+	@for header in config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/clang/Config/$$header-32.h ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/llvm/Config/$$header-32.h ; \
+	 done
+	# ======= Remove bundled python-six =======
+	@rm -f $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/six.py
+	# ======= Install Python bindings =======
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7 $(PYTHON2)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7 $(PYTHON2) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/clang
+	# ======= Install Python3 bindings =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb ; \
+	   ln -sf ../../../../bin/32/lldb-argdumper ; \
+	 )
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	# ======= Remove build-dir from cmake files =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),/usr,g' polly/PollyConfig.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),,g'      llvm/LLVMExports.cmake ; \
+	   sed -i 's,$(TARGET_DEST_DIR),,g'          llvm/LLVMExports.cmake ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LLVM_32_PKG))
+	# ======= Remove $(TARGET32)-llvm-config from target package =======
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-clang-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-lldb-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-config
+	# ======= Strip Binaries =======
+	@( cd $(LLVM_32_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 $@
+
+$(LLVM_32_PKG_DESCRIPTION_FILE): $(LLVM_32_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) $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG_INSTALL_SCRIPT)
+	@cp $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG)/.DESCRIPTION
+	@cp $(LLVM_32_PKG_INSTALL_SCRIPT) $(LLVM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LLVM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LLVM_32_PKG_NAME)"                            >  $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LLVM_32_PKG_VERSION)"                          >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LLVM_32_PKG_ARCH)"                               >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LLVM_32_PKG_DISTRO_NAME)"                  >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LLVM_32_PKG_DISTRO_VERSION)"                >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LLVM_32_PKG_GROUP)"                             >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LLVM_32_PKG_SHORT_DESCRIPTION)\"" >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LLVM_32_PKG_URL)"                                 >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LLVM_32_PKG_LICENSE)"                         >> $(LLVM_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LLVM_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: llvm/13.0.0-ppc32/PATCHES
===================================================================
--- llvm/13.0.0-ppc32/PATCHES	(nonexistent)
+++ llvm/13.0.0-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,13 @@
+
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clang-gnu-triple.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clang-set-revision.patch   -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-p5600.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-ppc64.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-synonyms.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-lldb-set-revision.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-64bit-atomic.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-pass-variables.patch  -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-ppc64.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-versioning.patch      -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-polly-hack.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-scan-build-py-x32.patch    -p0
Index: llvm/13.0.0-ppc32/llvm-x32-pkg-description.in
===================================================================
--- llvm/13.0.0-ppc32/llvm-x32-pkg-description.in	(nonexistent)
+++ llvm/13.0.0-ppc32/llvm-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------------------------------------------------------|
+llvm-x32: llvm-x32 @VERSION@ (LLVM compiler toolkit)
+llvm-x32:
+llvm-x32: Low Level Virtual Machine is a toolkit for the construction of
+llvm-x32: highly optimized compilers, optimizers, and runtime environments.
+llvm-x32:
+llvm-x32: This package also includes the clang frontend for the C family of
+llvm-x32: languages:  C, C++, Objective-C, and Objective-C++
+llvm-x32:
+llvm-x32: Homepage: http://llvm.org
+llvm-x32:
+llvm-x32:
Index: llvm/13.0.0-ppc32/llvm-x32-pkg-install.sh
===================================================================
--- llvm/13.0.0-ppc32/llvm-x32-pkg-install.sh	(nonexistent)
+++ llvm/13.0.0-ppc32/llvm-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: llvm/13.0.0-ppc32/llvm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: llvm/13.0.0-ppc32
===================================================================
--- llvm/13.0.0-ppc32	(nonexistent)
+++ llvm/13.0.0-ppc32	(revision 5)

Property changes on: llvm/13.0.0-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: llvm/13.0.0-x86_32/Makefile
===================================================================
--- llvm/13.0.0-x86_32/Makefile	(nonexistent)
+++ llvm/13.0.0-x86_32/Makefile	(revision 5)
@@ -0,0 +1,444 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_INTEL_PC64)
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+NOT_PARALLEL       = true
+
+CREATE_X86_32_PACKAGE = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/llvm
+
+REQUIRES           = dev/llvm/13.0.0
+REQUIRES          += libs/libffi/3.4.4-x86_32
+REQUIRES          += libs/elfutils/0.187-x86_32
+REQUIRES          += libs/libxml2/2.9.9-x86_32
+REQUIRES          += libs/libedit/20191231-3.1-x86_32
+REQUIRES          += libs/ncurses/6.3-x86_32
+REQUIRES          += dev/python2/2.7.18-x86_32
+REQUIRES          += dev/python3/3.10.8-x86_32
+REQUIRES          += dev/lua/5.4.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 13.0.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/llvm/llvm-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/llvm-$(version)
+src_dir_name       = llvm-$(version)
+doc_dir_name       = llvm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LLVM_32_PKG_NAME                = llvm-x32
+LLVM_32_PKG_VERSION             = 13.0.0
+LLVM_32_PKG_ARCH                = $(PKGARCH)
+LLVM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LLVM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LLVM_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+LLVM_32_PKG_SHORT_DESCRIPTION   = LLVM compiler toolkit
+LLVM_32_PKG_URL                 = $(BUG_URL)
+LLVM_32_PKG_LICENSE             = custom
+LLVM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-pkg-description
+LLVM_32_PKG_DESCRIPTION_FILE_IN = $(LLVM_32_PKG_NAME)-pkg-description.in
+LLVM_32_PKG_INSTALL_SCRIPT      = $(LLVM_32_PKG_NAME)-pkg-install.sh
+
+LLVM_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-package
+
+pkg_basename     = $(LLVM_32_PKG_NAME)-$(LLVM_32_PKG_VERSION)-$(LLVM_32_PKG_ARCH)-$(LLVM_32_PKG_DISTRO_NAME)-$(LLVM_32_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=$(LLVM_32_PKG)
+
+
+JOBS := $(shell echo 'if( $(NUMPROCS) > 2) { $(NUMPROCS) / 2 } else { 1 }' | bc)
+LLVM_JOBS := -j$(JOBS) -l$(JOBS)
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+CC_NO_WARNINGS   = -Wno-old-style-declaration -Wno-array-bounds -Wno-deprecated-declarations
+CC_NO_WARNINGS  += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CC_NO_WARNINGS  += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CC_NO_WARNINGS  += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CC_NO_WARNINGS  += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes -Wno-extra
+CC_NO_WARNINGS  += -Wno-uninitialized -Wno-type-limits -Wno-unused-variable -Wno-return-type
+
+CXX_NO_WARNINGS  = -Wno-pessimizing-move -Wno-array-bounds -Wno-deprecated-declarations
+CXX_NO_WARNINGS += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CXX_NO_WARNINGS += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CXX_NO_WARNINGS += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CXX_NO_WARNINGS += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes -Wno-extra
+CXX_NO_WARNINGS += -Wno-uninitialized -Wno-type-limits -Wno-unused-variable -Wno-return-type
+
+
+configure_switches  = -DBUG_REPORT_URL='https://llvm.org'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+#
+# CMAKE passes the same {ASM|C}_DEFINES to the C and ASM compilers
+# by the SET(CMAKE_TARGET_DEFINITIONS ..) function.  This is a bad
+# practice for GNU Assembler.  GNU AS  compiler doesn't understand
+# options like -D_GNU_SOURCE .
+#
+configure_switches += -DCMAKE_ASM_COMPILER='$(CROSS_PREFIX)gcc'
+
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DGOLD_EXECUTABLE='$(CROSS_PREFIX)ld.gold'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS:STRING='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CC_NO_WARNINGS)'
+configure_switches += -DCMAKE_CXX_FLAGS:STRING='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CXX_NO_WARNINGS)'
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_BIN_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+
+configure_switches += -DCMAKE_SKIP_INSTALL_RPATH=NO
+configure_switches += -DCMAKE_SKIP_RPATH=YES
+
+configure_switches += -DLLVM_CCACHE_BUILD=ON
+configure_switches += -DCCACHE_PROGRAM=$(CCACHE)
+configure_switches += -DLLVM_CCACHE_DIR:STRING='$(CACHED_CC_OUTPUT)'
+configure_switches += -DLLVM_CCACHE_PARAMS:STRING='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)'
+
+configure_switches += -DCMAKE_SYSTEM_NAME:STRING='Linux'
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+configure_switches += -DCMAKE_INSTALL_BINDIR=bin/32
+configure_switches += -DCMAKE_INSTALL_LIBDIR=lib$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DCMAKE_INSTALL_LIBEXECDIR=libexec/32
+configure_switches += -DCMAKE_INSTALL_MANDIR='share/man'
+configure_switches += -DCMAKE_INSTALL_DOCDIR='share/doc/$(doc_dir_name)'
+
+configure_switches += -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLIBCXXABI_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLIBCXX_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLIBUNWIND_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+
+configure_switches += -DCMAKE_BUILD_TYPE=Release
+configure_switches += -DBUILD_SHARED_LIBS=ON
+configure_switches += -DLLVM_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DLIBCXX_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_ZLIB=ON
+configure_switches += -DLLVM_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXXABI_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXX_ENABLE_ASSERTIONS=OFF
+
+configure_switches += -DLLVM_INSTALL_UTILS=ON
+
+configure_switches += -DCOMPILER_RT_CAN_EXECUTE_TESTS=OFF
+configure_switches += -DCOMPILER_RT_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXXABI_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXX_INCLUDE_TESTS=OFF
+configure_switches += -DLLDB_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_GO_TESTS=OFF
+configure_switches += -DCLANG_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_BUILD_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_TESTS=OFF
+
+configure_switches += -DLIBCXXABI_ENABLE_PIC=ON
+configure_switches += -DLLVM_ENABLE_PIC=ON
+
+configure_switches += -DLLVM_BINUTILS_INCDIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCLANG_RESOURCE_DIR='../../lib$(MULTILIB_X86_32_SUFFIX)/clang/$(version)'
+configure_switches += -DLLVM_TARGETS_TO_BUILD='host;AMDGPU;BPF'
+configure_switches += -DLLDB_USE_SYSTEM_SIX=1
+
+#
+# libunwind:
+#
+configure_switches += -DLIBUNWIND_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBUNWIND_ENABLE_SHARED=ON
+configure_switches += -DLIBUNWIND_ENABLE_STATIC=OFF
+
+
+#
+# Settings:
+#
+__ENABLE_CLANGD__      = yes
+__ENABLE_LLDB_SERVER__ = yes
+
+__ENABLE_LIBUNWIND__   = no
+__ENABLE_OPENMP__      = yes
+
+
+#
+# Evaluation:
+#
+ifeq ($(__ENABLE_CLANGD__),yes)
+clangd = ON
+else
+clangd = OFF
+endif
+ifeq ($(__ENABLE_LLDB_SERVER__),yes)
+lldb-server = ON
+else
+lldb-server = OFF
+endif
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+libunwind = ;libunwind
+else
+libunwind =
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+openmp = ;openmp
+else
+openmp =
+endif
+
+
+configure_switches += -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;lldb;lld;compiler-rt;polly$(openmp)$(libunwind)'
+
+configure_switches += -DCLANG_ENABLE_CLANGD=$(clangd)
+configure_switches += -DLLDB_TOOL_LLDB_SERVER_BUILD=$(lldb-server)
+
+
+PYTHON_VERSION = 3.10
+
+configure_switches += -DPython3_EXECUTABLE=$(PYTHON3)
+configure_switches += -DPython3_INCLUDE_DIRS=$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)
+configure_switches += -DPython3_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libpython$(PYTHON_VERSION).so
+
+configure_switches += -DLLDB_ENABLE_PYTHON=On
+configure_switches += -DLLDB_PYTHON_RELATIVE_PATH=lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+
+configure_switches += -DZLIB_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DZLIB_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libz.so
+
+configure_switches += -DLIBLZMA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBLZMA_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/liblzma.so
+
+configure_switches += -DLIBXML2_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include/libxml2
+configure_switches += -DLIBXML2_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libxml2.so
+
+configure_switches += -DLIBOMPTARGET_BUILD_AMDGCN_BCLIB=False
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libelf.so
+
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_LIBRARY_DIR=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DFFI_LIBRARY_PATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libffi.so
+
+configure_switches += -DLLDB_ENABLE_LUA=ON
+configure_switches += -DLUA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLUA_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/liblua.so
+configure_switches += -DLUA_MATH_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libm.so
+
+configure_switches += -DLLDB_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_LIBEDIT=ON
+
+configure_switches += -DLLVM_ENABLE_TERMINFO=ON
+configure_switches += -DTERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+configure_switches += -DCOMPILER_RT_TERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+
+configure_switches += -DCURSES_CURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libcursesw.so
+configure_switches += -DCURSES_FORM_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libformw.so
+configure_switches += -DCURSES_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCURSES_NCURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libncursesw.so
+configure_switches += -DPANEL_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libpanelw.so
+
+configure_switches += -Dpkgcfg_lib_NCURSES_ncurses=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libncursesw.so
+configure_switches += -Dpkgcfg_lib_NCURSES_tinfo=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+
+configure_switches += -DLLDB_ENABLE_CURSES=On
+
+configure_switches += -DLLVM_BUILD_DOCS=OFF
+
+configure_switches += -DCMAKE_CROSSCOMPILING=True
+
+configure_switches += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DLLVM_HOST_TRIPLE=$(TARGET32)
+
+configure_switches += -DLLVM_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-tblgen
+configure_switches += -DLLVM_CONFIG_PATH:STRING=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-config
+configure_switches += -DCLANG_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tblgen
+configure_switches += -DLLDB_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/lldb-tblgen
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(TARGET_BUILD_DIR)/build-machine
+	@( cd $(TARGET_BUILD_DIR)/build-machine ; \
+	   cmake -Wno-dev \
+	         -G Ninja -DLLVM_ENABLE_PROJECTS='clang;lldb' \
+	                  -DCMAKE_BUILD_TYPE=Release \
+	                  -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX) \
+	                  -DLLVM_INCLUDE_TESTS=OFF \
+	                  -DLLVM_CCACHE_BUILD=ON \
+	                  -DCCACHE_PROGRAM=$(CCACHE) \
+	                  -DLLVM_CCACHE_DIR:STRING='$(CACHED_CC_OUTPUT)' \
+	                  -DLLVM_CCACHE_PARAMS:STRING='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)' \
+	                  -DCMAKE_C_FLAGS:STRING='-I/usr/include $(CC_NO_WARNINGS)' \
+	                  -DCMAKE_CXX_FLAGS:STRING='-I/usr/include $(CXX_NO_WARNINGS)' \
+	                  ../llvm-$(version)/llvm ; \
+	   ninja  llvm-tblgen ; \
+	   ninja clang-tblgen ; \
+	   ninja  lldb-tblgen ; \
+	   ninja  llvm-config ; \
+	 )
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) \
+	     cmake -Wno-dev --trace-expand \
+                   -G Ninja $(configure_switches) ../llvm-$(version)/llvm 2> CMakeTrace.txt ; \
+	 )
+	@( cd $(build_dir) ; \
+	   ninja $(LLVM_JOBS) all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LLVM_32_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   ln -sf clang   $(TARGET32)-clang   ; \
+	   ln -sf clang++ $(TARGET32)-clang++ ; \
+	 )
+	@( cd $(TARGET_BUILD_DIR)/build/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin ; \
+	 )
+	# ======= Move 32-Bit binaries into /usr/bin/32 directory =======
+	@mkdir -p $(LLVM_32_PKG)/usr/bin/32
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   find . -type f | xargs mv -t 32 ; \
+	   find . -type l | xargs mv -t 32 ; \
+	 )
+	# ======= Install $(TARGET32)-llvm-config =======
+	@( cd $(TARGET_BUILD_DIR)/build-machine/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-clang-tblgen ; \
+	   cp -a llvm-tblgen  $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-llvm-tblgen  ; \
+	   cp -a lldb-tblgen  $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-lldb-tblgen  ; \
+	   cp -a llvm-config  $(LLVM_32_PKG)/usr/bin/32/$(TARGET32)-llvm-config  ; \
+	 )
+	# ======= Save config.h and llvm-config.h =======
+	@for header in config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/clang/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/llvm/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@rm -rf $(LLVM_32_PKG)/usr/include
+	@rm -rf $(LLVM_32_PKG)/usr/libexec
+	@rm -rf $(LLVM_32_PKG)/usr/share
+	# ======= Restore config-32.h and llvm-config-32.h =======
+	@mkdir -p $(LLVM_32_PKG)/usr/include/{clang,llvm}/Config
+	@for header in config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/clang/Config/$$header-32.h ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/llvm/Config/$$header-32.h ; \
+	 done
+	# ======= Remove bundled python-six =======
+	@rm -f $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/six.py
+	# ======= Install Python bindings =======
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7 $(PYTHON2)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7 $(PYTHON2) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/clang
+	# ======= Install Python3 bindings =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb ; \
+	   ln -sf ../../../../bin/32/lldb-argdumper ; \
+	 )
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	# ======= Remove build-dir from cmake files =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),/usr,g' polly/PollyConfig.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),,g'      llvm/LLVMExports.cmake ; \
+	   sed -i 's,$(TARGET_DEST_DIR),,g'          llvm/LLVMExports.cmake ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LLVM_32_PKG))
+	# ======= Remove $(TARGET32)-llvm-config from target package =======
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-clang-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-lldb-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-config
+	# ======= Strip Binaries =======
+	@( cd $(LLVM_32_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 $@
+
+$(LLVM_32_PKG_DESCRIPTION_FILE): $(LLVM_32_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) $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG_INSTALL_SCRIPT)
+	@cp $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG)/.DESCRIPTION
+	@cp $(LLVM_32_PKG_INSTALL_SCRIPT) $(LLVM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LLVM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LLVM_32_PKG_NAME)"                            >  $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LLVM_32_PKG_VERSION)"                          >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LLVM_32_PKG_ARCH)"                               >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LLVM_32_PKG_DISTRO_NAME)"                  >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LLVM_32_PKG_DISTRO_VERSION)"                >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LLVM_32_PKG_GROUP)"                             >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LLVM_32_PKG_SHORT_DESCRIPTION)\"" >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LLVM_32_PKG_URL)"                                 >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LLVM_32_PKG_LICENSE)"                         >> $(LLVM_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LLVM_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: llvm/13.0.0-x86_32/PATCHES
===================================================================
--- llvm/13.0.0-x86_32/PATCHES	(nonexistent)
+++ llvm/13.0.0-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,13 @@
+
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clang-gnu-triple.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-clang-set-revision.patch   -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-p5600.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-ppc64.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-compiler-rt-synonyms.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-lldb-set-revision.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-64bit-atomic.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-pass-variables.patch  -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-ppc64.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-llvm-versioning.patch      -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-polly-hack.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-13.0.0-scan-build-py-x32.patch    -p0
Index: llvm/13.0.0-x86_32/llvm-x32-pkg-description.in
===================================================================
--- llvm/13.0.0-x86_32/llvm-x32-pkg-description.in	(nonexistent)
+++ llvm/13.0.0-x86_32/llvm-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------------------------------------------------------|
+llvm-x32: llvm-x32 @VERSION@ (LLVM compiler toolkit)
+llvm-x32:
+llvm-x32: Low Level Virtual Machine is a toolkit for the construction of
+llvm-x32: highly optimized compilers, optimizers, and runtime environments.
+llvm-x32:
+llvm-x32: This package also includes the clang frontend for the C family of
+llvm-x32: languages:  C, C++, Objective-C, and Objective-C++
+llvm-x32:
+llvm-x32: Homepage: http://llvm.org
+llvm-x32:
+llvm-x32:
Index: llvm/13.0.0-x86_32/llvm-x32-pkg-install.sh
===================================================================
--- llvm/13.0.0-x86_32/llvm-x32-pkg-install.sh	(nonexistent)
+++ llvm/13.0.0-x86_32/llvm-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: llvm/13.0.0-x86_32/llvm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: llvm/13.0.0-x86_32
===================================================================
--- llvm/13.0.0-x86_32	(nonexistent)
+++ llvm/13.0.0-x86_32	(revision 5)

Property changes on: llvm/13.0.0-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: llvm/15.0.4/Makefile
===================================================================
--- llvm/15.0.4/Makefile	(nonexistent)
+++ llvm/15.0.4/Makefile	(revision 5)
@@ -0,0 +1,781 @@
+
+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/llvm
+
+REQUIRES           = dev/gcc/12.2.0
+REQUIRES          += libs/libffi/3.4.4
+REQUIRES          += libs/elfutils/0.187
+REQUIRES          += libs/libxml2/2.9.9
+REQUIRES          += libs/libedit/20191231-3.1
+REQUIRES          += libs/ncurses/6.3
+REQUIRES          += dev/python2/2.7.18
+REQUIRES          += dev/python3/3.10.8
+REQUIRES          += dev/lua/5.4.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 15.0.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/llvm/llvm-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/llvm-$(version)
+src_dir_name       = llvm-$(version)
+doc_dir_name       = llvm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+config_dir         = $(CURDIR)/config
+
+PATCHES = PATCHES
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC))
+OPT_PATCHES = PATCHES.p5600
+endif
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LLVM_PKG_NAME                = llvm
+LLVM_PKG_VERSION             = 15.0.4
+LLVM_PKG_ARCH                = $(PKGARCH)
+LLVM_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LLVM_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LLVM_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+LLVM_PKG_SHORT_DESCRIPTION   = LLVM compiler toolkit
+LLVM_PKG_URL                 = $(BUG_URL)
+LLVM_PKG_LICENSE             = custom
+LLVM_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LLVM_PKG_NAME)-pkg-description
+LLVM_PKG_DESCRIPTION_FILE_IN = $(LLVM_PKG_NAME)-pkg-description.in
+LLVM_PKG_INSTALL_SCRIPT      = $(LLVM_PKG_NAME)-pkg-install.sh
+
+LLVM_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LLVM_PKG_NAME)-package
+
+pkg_basename     = $(LLVM_PKG_NAME)-$(LLVM_PKG_VERSION)-$(LLVM_PKG_ARCH)-$(LLVM_PKG_DISTRO_NAME)-$(LLVM_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=$(LLVM_PKG)
+
+
+JOBS := $(shell echo 'if( $(NUMPROCS) > 2) { $(NUMPROCS) / 2 } else { 1 }' | bc)
+LLVM_JOBS := -j$(JOBS) -l$(JOBS)
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+BUILD_BIN_RPATH  = /lib$(BUILD_MULTILIB_SUFFIX):/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+CFLAGS += -flarge-source-files
+
+CC_NO_WARNINGS   = -Wno-old-style-declaration -Wno-array-bounds -Wno-deprecated-declarations
+CC_NO_WARNINGS  += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CC_NO_WARNINGS  += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CC_NO_WARNINGS  += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CC_NO_WARNINGS  += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes
+CC_NO_WARNINGS  += -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-value -Wno-type-limits
+CC_NO_WARNINGS  += -Wno-enum-compare -Wno-sign-compare -Wno-unused-variable -Wno-return-type
+CC_NO_WARNINGS  += -Wno-psabi -Wno-stringop-overflow
+
+CXX_NO_WARNINGS  = -Wno-pessimizing-move -Wno-array-bounds -Wno-deprecated-declarations
+CXX_NO_WARNINGS += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CXX_NO_WARNINGS += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CXX_NO_WARNINGS += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CXX_NO_WARNINGS += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes
+CXX_NO_WARNINGS += -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-value -Wno-type-limits
+CXX_NO_WARNINGS += -Wno-enum-compare -Wno-sign-compare -Wno-unused-variable -Wno-return-type
+CXX_NO_WARNINGS += -Wno-psabi -Wno-stringop-overflow -Wno-nonnull -Wno-dangling-pointer
+CXX_NO_WARNINGS += -Wno-alloc-size-larger-than -Wno-missing-attributes -Wno-free-nonheap-object
+CXX_NO_WARNINGS += -Wno-variadic-macros -Wno-format-nonliteral -Wno-parentheses -Wno-sized-deallocation
+CXX_NO_WARNINGS += -Wno-overflow -Wno-builtin-declaration-mismatch -Wno-prio-ctor-dtor
+
+
+configure_switches  = -DBUG_REPORT_URL='https://llvm.org'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+#
+# CMAKE passes the same {ASM|C}_DEFINES to the C and ASM compilers
+# by the SET(CMAKE_TARGET_DEFINITIONS ..) function.  This is a bad
+# practice for GNU Assembler.  GNU AS  compiler doesn't understand
+# options like -D_GNU_SOURCE .
+#
+configure_switches += -DCMAKE_ASM_COMPILER='$(CROSS_PREFIX)gcc'
+
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DGOLD_EXECUTABLE='$(CROSS_PREFIX)ld.gold'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS='--sysroot=$(TARGET_DEST_DIR) $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CC_NO_WARNINGS)'
+configure_switches += -DCMAKE_CXX_FLAGS='--sysroot=$(TARGET_DEST_DIR) $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CXX_NO_WARNINGS)'
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) \
+                             $(TOOLCHAIN_P5600_GLIBC)  \
+                             $(TOOLCHAIN_RISCV64_GLIBC)),)
+explicit_atomic = -latomic
+else
+explicit_atomic =
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) \
+                             $(TOOLCHAIN_P5600_GLIBC)),)
+configure_switches += -DLIBOMP_LIBFLAGS='-latomic'
+endif
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -Wl,-rpath,$(TARGET_BIN_RPATH) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) $(explicit_atomic)'
+
+configure_switches += -DCMAKE_SKIP_INSTALL_RPATH=NO
+configure_switches += -DCMAKE_SKIP_RPATH=YES
+
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
+configure_switches += -DCMAKE_C_FLAGS_RELEASE='-O2 -DNDEBUG'
+configure_switches += -DCMAKE_CXX_FLAGS_RELEASE='-O2 -DNDEBUG'
+configure_switches += -DCMAKE_ASM_FLAGS_RELEASE='-O2 -DNDEBUG'
+endif
+
+configure_switches += -DLLVM_CCACHE_BUILD=ON
+configure_switches += -DCCACHE_PROGRAM=$(CCACHE)
+configure_switches += -DLLVM_CCACHE_DIR='$(CACHED_CC_OUTPUT)'
+configure_switches += -DLLVM_CCACHE_PARAMS='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)'
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+configure_switches += -DCMAKE_INSTALL_BINDIR=bin
+configure_switches += -DCMAKE_INSTALL_LIBDIR=lib$(LIBSUFFIX)
+configure_switches += -DCMAKE_INSTALL_LIBEXECDIR=libexec
+configure_switches += -DCMAKE_INSTALL_MANDIR='share/man'
+configure_switches += -DCMAKE_INSTALL_DOCDIR='share/doc/$(doc_dir_name)'
+
+configure_switches += -DLLVM_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLIBCXXABI_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLIBCXX_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLIBUNWIND_LIBDIR_SUFFIX=$(LIBSUFFIX)
+configure_switches += -DLLDB_LUA_RELATIVE_PATH=lib$(LIBSUFFIX)/lua/5.4
+
+configure_switches += -DCMAKE_BUILD_TYPE=Release
+configure_switches += -DBUILD_SHARED_LIBS=ON
+configure_switches += -DLLVM_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DLIBCXX_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_ZLIB=ON
+configure_switches += -DLLVM_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXXABI_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXX_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBOMP_ENABLE_ASSERTIONS=OFF
+
+configure_switches += -DLLVM_INSTALL_UTILS=ON
+
+configure_switches += -DCOMPILER_RT_CAN_EXECUTE_TESTS=OFF
+configure_switches += -DCOMPILER_RT_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXXABI_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXX_INCLUDE_TESTS=OFF
+configure_switches += -DLLDB_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_GO_TESTS=OFF
+configure_switches += -DCLANG_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_BUILD_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_TESTS=OFF
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+configure_switches += -DLIBCXXABI_ENABLE_PIC=ON
+configure_switches += -DLLVM_ENABLE_PIC=ON
+endif
+
+#
+# Libc++ 15.0.0 looze std::__1::basic_string symbol during build shared library for ARM 32-bit:
+# ============================================================================================
+#
+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)),)
+configure_switches += -DLIBCXXABI_ENABLE_SHARED=OFF
+configure_switches += -DLIBCXX_ENABLE_SHARED=OFF
+endif
+
+configure_switches += -DLLVM_BINUTILS_INCDIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCLANG_RESOURCE_DIR='../lib$(LIBSUFFIX)/clang/$(version)'
+configure_switches += -DLLDB_USE_SYSTEM_SIX=1
+
+#
+# libunwind:
+#
+configure_switches += -DLIBUNWIND_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBUNWIND_ENABLE_SHARED=ON
+configure_switches += -DLIBUNWIND_ENABLE_STATIC=OFF
+
+
+#
+# Settings:
+#
+__ENABLE_CLANGD__      = yes
+__ENABLE_LLDB_SERVER__ = yes
+
+__ENABLE_LIBUNWIND__   = no
+__ENABLE_OPENMP__      = yes
+
+
+__ENABLE_AMDGPU__      = yes
+__ENABLE_BPF__         = yes
+
+#
+# Configuring:
+#
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) \
+                             $(TOOLCHAIN_P5600_GLIBC)  \
+                             $(TOOLCHAIN_RISCV64_GLIBC)),)
+__ENABLE_LLDB_SERVER__ = no
+endif
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+configure_switches += -DLIBOMPTARGET_BUILD_AMDGPU_PLUGIN=OFF
+configure_switches += -DLIBOMPTARGET_BUILD_CUDA_PLUGIN=OFF
+endif
+
+#
+# Evaluation:
+#
+ifeq ($(__ENABLE_CLANGD__),yes)
+clangd = ON
+else
+clangd = OFF
+endif
+ifeq ($(__ENABLE_LLDB_SERVER__),yes)
+lldb-server = ON
+else
+lldb-server = OFF
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+openmp = openmp
+else
+openmp =
+endif
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+libunwind = libunwind
+else
+libunwind =
+endif
+
+ifeq ($(__ENABLE_AMDGPU__),yes)
+amdgpu = AMDGPU
+else
+amdgpu =
+endif
+ifeq ($(__ENABLE_BPF__),yes)
+bpf = BPF
+else
+bpf =
+endif
+
+#
+# Available progects:
+#   bolt;clang;clang-tools-extra;compiler-rt;cross-project-tests;libc;libclc;libcxx;libcxxabi;libunwind;lld;lldb;mlir;openmp;polly;pstl;flang
+#
+# Available runtimes:
+#   compiler-rt;libc;libcxx;libcxxabi;libunwind;openmp
+#
+
+configure_switches += -DLLVM_TARGETS_TO_BUILD='host;$(amdgpu);$(bpf)'
+
+configure_switches += -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;libcxx;libcxxabi;lld;lldb;mlir;polly;pstl'
+configure_switches += -DLLVM_ENABLE_RUNTIMES='$(openmp);$(libunwind)'
+
+configure_switches += -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB=OFF
+
+configure_switches += -DCLANG_ENABLE_CLANGD=$(clangd)
+configure_switches += -DLLDB_TOOL_LLDB_SERVER_BUILD=$(lldb-server)
+
+
+PYTHON_VERSION = 3.10
+
+configure_switches += -DPython3_EXECUTABLE=$(PYTHON3)
+configure_switches += -DPython3_INCLUDE_DIRS=$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)
+configure_switches += -DPython3_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libpython$(PYTHON_VERSION).so
+
+configure_switches += -DPERL_EXECUTABLE=$(PERL)
+configure_switches += -DPKG_CONFIG_EXECUTABLE=/usr/bin/pkg-config
+
+configure_switches += -DLLDB_ENABLE_PYTHON=On
+configure_switches += -DLLDB_PYTHON_RELATIVE_PATH=lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages
+configure_switches += -DLLDB_PYTHON_EXE_RELATIVE_PATH=$(PYTHON3)
+configure_switches += -DLLDB_PYTHON_EXT_SUFFIX='.so'
+
+configure_switches += -DZLIB_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DZLIB_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libz.so
+
+configure_switches += -DLIBLZMA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBLZMA_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/liblzma.so
+
+configure_switches += -Dzstd_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -Dzstd_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libzstd.so
+
+configure_switches += -DLIBXML2_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include/libxml2
+configure_switches += -DLIBXML2_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libxml2.so
+
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBOMPTARGET_DEP_LIBELF_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libelf.so
+
+configure_switches += -DLIBOMPTARGET_DEP_LIBFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBOMPTARGET_DEP_LIBFFI_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libffi.so
+
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_LIBRARY_DIR=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)
+configure_switches += -DFFI_LIBRARY_PATH=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libffi.so
+configure_switches += -DFFI_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libffi.so
+
+configure_switches += -DLLDB_ENABLE_LUA=ON
+configure_switches += -DLUA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLUA_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/liblua.so
+configure_switches += -DLUA_MATH_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libm.so
+
+configure_switches += -DLLDB_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_TERMINFO=ON
+
+configure_switches += -DTERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+configure_switches += -DCOMPILER_RT_TERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+configure_switches += -DTerminfo_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+
+configure_switches += -DCURSES_CURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libcursesw.so
+configure_switches += -DCURSES_FORM_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libformw.so
+configure_switches += -DCURSES_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCURSES_NCURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libncursesw.so
+configure_switches += -DPANEL_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libpanelw.so
+
+configure_switches += -Dpkgcfg_lib_NCURSES_ncurses=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libncursesw.so
+configure_switches += -Dpkgcfg_lib_NCURSES_tinfo=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/libtinfo.so
+
+configure_switches += -DLLDB_ENABLE_CURSES=On
+
+configure_switches += -DLLVM_BUILD_DOCS=OFF
+
+configure_switches += -DCMAKE_CROSSCOMPILING=True
+
+configure_switches += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TARGET)
+configure_switches += -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(TARGET)
+configure_switches += -DLLVM_HOST_TRIPLE=$(TARGET)
+
+configure_switches += -DLLVM_BUILD_LLVM_DYLIB=ON
+
+configure_switches += -DLLVM_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-tblgen
+configure_switches += -DLLVM_CONFIG_PATH=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-config
+configure_switches += -DCLANG_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tblgen
+configure_switches += -DCLANG_PSEUDO_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-pseudo-gen
+configure_switches += -DCLANG_TIDY_CONFUSABLE_CHARS_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tidy-confusable-chars-gen
+configure_switches += -DLLDB_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/lldb-tblgen
+configure_switches += -DMLIR_LINALG_ODS_YAML_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-linalg-ods-yaml-gen
+configure_switches += -DMLIR_PDLL_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-pdll
+configure_switches += -DMLIR_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-tblgen
+
+
+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)),)
+llvm-config-targets = ARM
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)     $(TOOLCHAIN_RK33XX_GLIBC) \
+                             $(TOOLCHAIN_RK339X_GLIBC) $(TOOLCHAIN_S9XX_GLIBC)   \
+                             $(TOOLCHAIN_A311X_GLIBC)  $(TOOLCHAIN_M1000_GLIBC)),)
+llvm-config-targets = AArch64
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) $(TOOLCHAIN_P5600_GLIBC)),)
+llvm-config-targets = Mips
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+llvm-config-targets = PowerPC
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+llvm-config-targets = PowerPC
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+llvm-config-targets = RISCV
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+llvm-config-targets = X86
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+llvm-config-targets = X86
+endif
+
+
+#
+# NOTE:
+# ====
+#
+#   CMAKE_SYSTEM_PROCESSOR cannot be defined by command line option:
+#
+toolchain-file = $(CURDIR)/$(TARGET_BUILD_DIR)/toolchain.cmake
+
+configure_switches += -DCMAKE_TOOLCHAIN_FILE=$(toolchain-file)
+
+cpu_arch = $(word 1,$(subst -, ,$(TARGET)))
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+ifneq ($(OPT_PATCHES),)
+	$(call apply-opt-patches, $(SRC_DIR))
+endif
+	$(APPLY_PATCHES)
+	@echo "set(CMAKE_SYSTEM_NAME Linux)"                  > $(toolchain-file)
+	@echo "set(CMAKE_SYSTEM_PROCESSOR $(cpu_arch))"      >> $(toolchain-file)
+	@echo "set(CMAKE_SYSROOT $(TARGET_DEST_DIR))"        >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)"  >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)"  >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)"  >> $(toolchain-file)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(TARGET_BUILD_DIR)/build-machine
+	@( cd $(TARGET_BUILD_DIR)/build-machine ; \
+	   cmake -Wno-dev \
+	         -G Ninja -DLLVM_ENABLE_PROJECTS='clang;lldb;clang-tools-extra;mlir' \
+	                  -DCMAKE_BUILD_TYPE=Release \
+	                  -DLLVM_LIBDIR_SUFFIX=$(LIBSUFFIX) \
+	                  -DLLVM_TARGETS_TO_BUILD='$(llvm-config-targets);$(amdgpu);$(bpf)' \
+	                  -DLLVM_BUILD_LLVM_DYLIB=ON \
+	                  -DLLVM_ENABLE_RTTI=ON \
+	                  -DLLVM_INCLUDE_TESTS=OFF \
+	                  -DLLVM_CCACHE_BUILD=ON \
+	                  -DCCACHE_PROGRAM=$(CCACHE) \
+	                  -DLLVM_CCACHE_DIR='$(CACHED_CC_OUTPUT)' \
+	                  -DLLVM_CCACHE_PARAMS='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)' \
+	                  -DCMAKE_SKIP_INSTALL_RPATH=YES \
+	                  -DCMAKE_SKIP_RPATH=YES \
+	                  -DCMAKE_EXE_LINKER_FLAGS='-Wl,-rpath,$(BUILD_BIN_RPATH) -L/lib$(BUILD_MULTILIB_SUFFIX) -L/usr/lib$(BUILD_MULTILIB_SUFFIX)' \
+	                  -DCMAKE_C_FLAGS='-I/usr/include -flarge-source-files $(CC_NO_WARNINGS)' \
+	                  -DCMAKE_CXX_FLAGS='-I/usr/include -flarge-source-files $(CXX_NO_WARNINGS)' \
+	                  ../llvm-$(version)/llvm ; \
+	   ninja  llvm-tblgen ; \
+	   ninja clang-tblgen ; \
+	   ninja clang-pseudo-gen ; \
+	   ninja clang-tidy-confusable-chars-gen ; \
+	   ninja  lldb-tblgen ; \
+	   ninja  llvm-config ; \
+	   ninja  mlir-linalg-ods-yaml-gen ; \
+	   ninja  mlir-pdll ; \
+	   ninja  mlir-tblgen ; \
+	 )
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) \
+	     cmake -Wno-dev --trace-expand \
+                   -G Ninja $(configure_switches) ../llvm-$(version)/llvm 2> CMakeTrace.txt ; \
+	 )
+	@( cd $(build_dir) ; \
+	   ninja $(LLVM_JOBS) all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LLVM_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) \
+                             $(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@for header in config ; do \
+	   mv $(LLVM_PKG)/usr/include/clang/Config/$$header{,-64}.h ; \
+	   cp -a $(config_dir)/$$header.h $(LLVM_PKG)/usr/include/clang/Config/$$header.h ; \
+	 done
+	@for header in Config ; do \
+	   mv $(LLVM_PKG)/usr/include/lldb/Host/$$header{,-64}.h ; \
+	   cp -a $(config_dir)/$$header.h $(LLVM_PKG)/usr/include/lldb/Host/$$header.h ; \
+	 done
+	@for header in llvm-config ; do \
+	   mv $(LLVM_PKG)/usr/include/llvm/Config/$$header{,-64}.h ; \
+	   cp -a $(config_dir)/$$header.h $(LLVM_PKG)/usr/include/llvm/Config/$$header.h ; \
+	 done
+endif
+	@( cd $(LLVM_PKG)/usr/bin ; \
+	   ln -sf clang   $(TARGET)-clang   ; \
+	   ln -sf clang++ $(TARGET)-clang++ ; \
+	 )
+	@( cd $(TARGET_BUILD_DIR)/build/bin ; \
+	   cp -a clang-tblgen $(LLVM_PKG)/usr/bin ; \
+	 )
+	# ======= Install $(TARGET)-llvm-config =======
+	@( cd $(TARGET_BUILD_DIR)/build-machine/bin ; \
+	   cp -a clang-tblgen $(LLVM_PKG)/usr/bin/$(TARGET)-clang-tblgen ; \
+	   cp -a llvm-tblgen  $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-tblgen  ; \
+	   cp -a lldb-tblgen  $(LLVM_PKG)/usr/bin/$(TARGET)-lldb-tblgen  ; \
+	   cp -a llvm-config  $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-config  ; \
+	 )
+	# ======= Install clang-static-analyzer =======
+	@( cd $(LLVM_PKG)/usr/bin ; \
+	   for i in ccc c++ ; do \
+	     ln -sf ../libexec/$$i-analyzer $$i-analyzer ; \
+	   done ; \
+	 )
+	# ======= Remove bundled python-six =======
+	@rm -f $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/six.py
+	# ======= Install Python bindings =======
+	@mkdir -p $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages
+	@$(PYTHON2)    -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages/clang
+	@$(PYTHON2) -O -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages/clang
+	# ======= Install Python3 bindings =======
+	@mkdir -p $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	# ======= Compile bindings by Python3 =======
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/share/clang
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/share/clang
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/share/opt-viewer
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/share/opt-viewer
+	@$(PYTHON3)    -m compileall $(LLVM_PKG)/usr/share/scan-view
+	@$(PYTHON3) -O -m compileall $(LLVM_PKG)/usr/share/scan-view
+	# ======= Install Documentation =======
+	@( cd $(LLVM_PKG)/usr/share/man/man1 ; \
+	   chmod 644 *.1 ; \
+	 )
+	@if [ -d $(LLVM_PKG)/usr/share/man ] ; then \
+	  ( cd $(LLVM_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
+	# ======= Install Licenses only into /usr/doc =======
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/{clang,clang-tools-extra,compiler-rt}
+	@( cd $(SRC_DIR) ; \
+	   cp -a clang/{CODE_OWNERS,LICENSE}* \
+	         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/clang ; \
+	   cp -a clang-tools-extra/{CODE_OWNERS,LICENSE}* \
+	         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/clang-tools-extra ; \
+	   cp -a compiler-rt/{CODE_OWNERS,LICENSE}* \
+	         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/compiler-rt ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lld
+	@( cd $(SRC_DIR) ; cp -a lld/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lld ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lldb
+	@( cd $(SRC_DIR) ; cp -a lldb/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/lldb ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/llvm
+	@( cd $(SRC_DIR) ; cp -a llvm/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/llvm ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/mlir
+	@( cd $(SRC_DIR) ; cp -a mlir/LICENSE* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/mlir ; \
+	 )
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/libunwind
+	@( cd $(SRC_DIR) ; cp -a libunwind/LICENSE* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/libunwind ; \
+	 )
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/openmp
+	@( cd $(SRC_DIR) ; cp -a openmp/LICENSE* \
+	                         $(LLVM_PKG)/usr/doc/$(doc_dir_name)/openmp ; \
+	 )
+endif
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/polly
+	@( cd $(SRC_DIR) ; cp -a polly/LICENSE* \
+	                   $(LLVM_PKG)/usr/doc/$(doc_dir_name)/polly ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/doc/$(doc_dir_name)/pstl
+	@( cd $(SRC_DIR) ; cp -a pstl/LICENSE* \
+	                   $(LLVM_PKG)/usr/doc/$(doc_dir_name)/pstl ; \
+	 )
+	# ======= Install README files into /usr/share/doc =======
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/{clang,clang-tools-extra,compiler-rt}
+	@( cd $(SRC_DIR) ; \
+	   cp -a {CONTRIBUTING,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	   cp -a clang/{CODE_OWNERS,INSTALL,LICENSE,NOTES,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/clang ; \
+	   cp -a clang-tools-extra/{CODE_OWNERS,LICENSE,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/clang-tools-extra ; \
+	   cp -a compiler-rt/{CODE_OWNERS,CREDITS,LICENSE,README}* \
+	         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/compiler-rt ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lld
+	@( cd $(SRC_DIR) ; cp -a lld/{CODE_OWNERS,LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lld ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lldb
+	@( cd $(SRC_DIR) ; cp -a lldb/{CODE_OWNERS,LICENSE}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/lldb ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/llvm
+	@( cd $(SRC_DIR) ; cp -a llvm/{CODE_OWNERS,CREDITS,LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/llvm ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/mlir
+	@( cd $(SRC_DIR) ; cp -a mlir/{LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/mlir ; \
+	 )
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/libunwind
+	@( cd $(SRC_DIR) ; cp -a libunwind/{LICENSE}* \
+	                         libunwind/docs/{BuildingLibunwind,README,index}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/libunwind ; \
+	 )
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/openmp
+	@( cd $(SRC_DIR) ; cp -a openmp/{CREDITS,LICENSE,README}* \
+	                         $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/openmp ; \
+	 )
+endif
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/polly
+	@( cd $(SRC_DIR) ; cp -a polly/{CREDITS,LICENSE,README}* \
+	                   $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/polly ; \
+	 )
+	@mkdir -p $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/pstl
+	@( cd $(SRC_DIR) ; cp -a pstl/{CREDITS,LICENSE,README}* \
+	                   $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)/pstl ; \
+	 )
+	# ======= Install ChangeLog if exists =======
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(LLVM_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Remove build-dir from cmake files =======
+	@( cd $(LLVM_PKG)/usr/lib$(LIBSUFFIX)/cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),/usr,g'                            polly/PollyConfig.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir)/tools/mlir/include,/usr/include,g'  mlir/MLIRConfig.cmake  ; \
+	   sed -i 's,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g'                  mlir/MLIRConfig.cmake  ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LLVM_PKG))
+	# ======= Remove $(TARGET)-llvm-config from target package =======
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-clang-tblgen
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-tblgen
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-lldb-tblgen
+	@rm -f $(LLVM_PKG)/usr/bin/$(TARGET)-llvm-config
+	# ======= Strip Binaries =======
+	@( cd $(LLVM_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 $@
+
+$(LLVM_PKG_DESCRIPTION_FILE): $(LLVM_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) $(LLVM_PKG_DESCRIPTION_FILE) $(LLVM_PKG_INSTALL_SCRIPT)
+	@cp $(LLVM_PKG_DESCRIPTION_FILE) $(LLVM_PKG)/.DESCRIPTION
+	@cp $(LLVM_PKG_INSTALL_SCRIPT) $(LLVM_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LLVM_PKG)/.REQUIRES
+	@echo "pkgname=$(LLVM_PKG_NAME)"                            >  $(LLVM_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LLVM_PKG_VERSION)"                          >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "arch=$(LLVM_PKG_ARCH)"                               >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LLVM_PKG_DISTRO_NAME)"                  >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LLVM_PKG_DISTRO_VERSION)"                >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "group=$(LLVM_PKG_GROUP)"                             >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LLVM_PKG_SHORT_DESCRIPTION)\"" >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "url=$(LLVM_PKG_URL)"                                 >> $(LLVM_PKG)/.PKGINFO ; \
+	 echo "license=$(LLVM_PKG_LICENSE)"                         >> $(LLVM_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LLVM_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: llvm/15.0.4/PATCHES
===================================================================
--- llvm/15.0.4/PATCHES	(nonexistent)
+++ llvm/15.0.4/PATCHES	(revision 5)
@@ -0,0 +1,18 @@
+
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clang-gnu-triple.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clang-set-revision.patch   -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clangd-riscv64.patch       -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-ppc64.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-synonyms.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-mips.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-riscv64.patch         -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-set-revision.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-64bit-atomic.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-ppc64.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-versioning.patch      -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-install-symlink.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-lua-version.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-openmp-perl.patch          -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-polly-hack.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-python3.patch              -p0
+
Index: llvm/15.0.4/PATCHES.p5600
===================================================================
--- llvm/15.0.4/PATCHES.p5600	(nonexistent)
+++ llvm/15.0.4/PATCHES.p5600	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-p5600.patch    -p0
+
Index: llvm/15.0.4/config/Config.h
===================================================================
--- llvm/15.0.4/config/Config.h	(nonexistent)
+++ llvm/15.0.4/config/Config.h	(revision 5)
@@ -0,0 +1,10 @@
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "Config-32.h"
+#elif __WORDSIZE == 64
+#include "Config-64.h"
+#else
+#error "Unknown word size"
+#endif
Index: llvm/15.0.4/config/config.h
===================================================================
--- llvm/15.0.4/config/config.h	(nonexistent)
+++ llvm/15.0.4/config/config.h	(revision 5)
@@ -0,0 +1,10 @@
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "config-32.h"
+#elif __WORDSIZE == 64
+#include "config-64.h"
+#else
+#error "Unknown word size"
+#endif
Index: llvm/15.0.4/config/llvm-config.h
===================================================================
--- llvm/15.0.4/config/llvm-config.h	(nonexistent)
+++ llvm/15.0.4/config/llvm-config.h	(revision 5)
@@ -0,0 +1,10 @@
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include "llvm-config-32.h"
+#elif __WORDSIZE == 64
+#include "llvm-config-64.h"
+#else
+#error "Unknown word size"
+#endif
Index: llvm/15.0.4/config
===================================================================
--- llvm/15.0.4/config	(nonexistent)
+++ llvm/15.0.4/config	(revision 5)

Property changes on: llvm/15.0.4/config
___________________________________________________________________
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: llvm/15.0.4/llvm-pkg-description.in
===================================================================
--- llvm/15.0.4/llvm-pkg-description.in	(nonexistent)
+++ llvm/15.0.4/llvm-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------------------------------------------------------|
+llvm: llvm @VERSION@ (LLVM compiler toolkit)
+llvm:
+llvm: Low Level Virtual Machine is a toolkit for the construction of
+llvm: highly optimized compilers, optimizers, and runtime environments.
+llvm:
+llvm: This package also includes the clang frontend for the C family of
+llvm: languages:  C, C++, Objective-C, and Objective-C++
+llvm:
+llvm: Homepage: http://llvm.org
+llvm:
+llvm:
Index: llvm/15.0.4/llvm-pkg-install.sh
===================================================================
--- llvm/15.0.4/llvm-pkg-install.sh	(nonexistent)
+++ llvm/15.0.4/llvm-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: llvm/15.0.4/llvm-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: llvm/15.0.4
===================================================================
--- llvm/15.0.4	(nonexistent)
+++ llvm/15.0.4	(revision 5)

Property changes on: llvm/15.0.4
___________________________________________________________________
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: llvm/15.0.4-ppc32/Makefile
===================================================================
--- llvm/15.0.4-ppc32/Makefile	(nonexistent)
+++ llvm/15.0.4-ppc32/Makefile	(revision 5)
@@ -0,0 +1,542 @@
+
+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/llvm
+
+REQUIRES           = dev/llvm/15.0.4
+REQUIRES          += libs/libffi/3.4.4-ppc32
+REQUIRES          += libs/elfutils/0.187-ppc32
+REQUIRES          += libs/libxml2/2.9.9-ppc32
+REQUIRES          += libs/libedit/20191231-3.1-ppc32
+REQUIRES          += libs/ncurses/6.3-ppc32
+REQUIRES          += dev/python2/2.7.18-ppc32
+REQUIRES          += dev/python3/3.10.8-ppc32
+REQUIRES          += dev/lua/5.4.2-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 15.0.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/llvm/llvm-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/llvm-$(version)
+src_dir_name       = llvm-$(version)
+doc_dir_name       = llvm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LLVM_32_PKG_NAME                = llvm-x32
+LLVM_32_PKG_VERSION             = 15.0.4
+LLVM_32_PKG_ARCH                = $(PKGARCH)
+LLVM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LLVM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LLVM_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+LLVM_32_PKG_SHORT_DESCRIPTION   = LLVM compiler toolkit
+LLVM_32_PKG_URL                 = $(BUG_URL)
+LLVM_32_PKG_LICENSE             = custom
+LLVM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-pkg-description
+LLVM_32_PKG_DESCRIPTION_FILE_IN = $(LLVM_32_PKG_NAME)-pkg-description.in
+LLVM_32_PKG_INSTALL_SCRIPT      = $(LLVM_32_PKG_NAME)-pkg-install.sh
+
+LLVM_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-package
+
+pkg_basename     = $(LLVM_32_PKG_NAME)-$(LLVM_32_PKG_VERSION)-$(LLVM_32_PKG_ARCH)-$(LLVM_32_PKG_DISTRO_NAME)-$(LLVM_32_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=$(LLVM_32_PKG)
+
+
+JOBS := $(shell echo 'if( $(NUMPROCS) > 2) { $(NUMPROCS) / 2 } else { 1 }' | bc)
+LLVM_JOBS := -j$(JOBS) -l$(JOBS)
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib/../lib$(MULTILIB_PPC32_SUFFIX)
+
+BUILD_BIN_RPATH  = /lib$(BUILD_MULTILIB_SUFFIX):/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+CFLAGS += -flarge-source-files
+
+CC_NO_WARNINGS   = -Wno-old-style-declaration -Wno-array-bounds -Wno-deprecated-declarations
+CC_NO_WARNINGS  += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CC_NO_WARNINGS  += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CC_NO_WARNINGS  += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CC_NO_WARNINGS  += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes
+CC_NO_WARNINGS  += -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-value -Wno-type-limits
+CC_NO_WARNINGS  += -Wno-enum-compare -Wno-sign-compare -Wno-unused-variable -Wno-return-type
+CC_NO_WARNINGS  += -Wno-psabi -Wno-stringop-overflow
+
+CXX_NO_WARNINGS  = -Wno-pessimizing-move -Wno-array-bounds -Wno-deprecated-declarations
+CXX_NO_WARNINGS += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CXX_NO_WARNINGS += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CXX_NO_WARNINGS += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CXX_NO_WARNINGS += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes
+CXX_NO_WARNINGS += -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-value -Wno-type-limits
+CXX_NO_WARNINGS += -Wno-enum-compare -Wno-sign-compare -Wno-unused-variable -Wno-return-type
+CXX_NO_WARNINGS += -Wno-psabi -Wno-stringop-overflow -Wno-nonnull -Wno-dangling-pointer
+CXX_NO_WARNINGS += -Wno-alloc-size-larger-than -Wno-missing-attributes -Wno-free-nonheap-object
+CXX_NO_WARNINGS += -Wno-variadic-macros -Wno-format-nonliteral -Wno-parentheses -Wno-sized-deallocation
+CXX_NO_WARNINGS += -Wno-overflow -Wno-builtin-declaration-mismatch -Wno-prio-ctor-dtor
+
+
+configure_switches  = -DBUG_REPORT_URL='https://llvm.org'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+#
+# CMAKE passes the same {ASM|C}_DEFINES to the C and ASM compilers
+# by the SET(CMAKE_TARGET_DEFINITIONS ..) function.  This is a bad
+# practice for GNU Assembler.  GNU AS  compiler doesn't understand
+# options like -D_GNU_SOURCE .
+#
+configure_switches += -DCMAKE_ASM_COMPILER='$(CROSS_PREFIX)gcc'
+
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DGOLD_EXECUTABLE='$(CROSS_PREFIX)ld.gold'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CC_NO_WARNINGS)'
+configure_switches += -DCMAKE_CXX_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CXX_NO_WARNINGS)'
+
+explicit_atomic = -latomic
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_BIN_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) $(explicit_atomic)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX) $(explicit_atomic)'
+
+configure_switches += -DCMAKE_SKIP_INSTALL_RPATH=NO
+configure_switches += -DCMAKE_SKIP_RPATH=YES
+
+configure_switches += -DLLVM_CCACHE_BUILD=ON
+configure_switches += -DCCACHE_PROGRAM=$(CCACHE)
+configure_switches += -DLLVM_CCACHE_DIR='$(CACHED_CC_OUTPUT)'
+configure_switches += -DLLVM_CCACHE_PARAMS='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)'
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+configure_switches += -DCMAKE_INSTALL_BINDIR=bin/32
+configure_switches += -DCMAKE_INSTALL_LIBDIR=lib$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DCMAKE_INSTALL_LIBEXECDIR=libexec/32
+configure_switches += -DCMAKE_INSTALL_MANDIR='share/man'
+configure_switches += -DCMAKE_INSTALL_DOCDIR='share/doc/$(doc_dir_name)'
+
+configure_switches += -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLIBCXXABI_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLIBCXX_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLIBUNWIND_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DLLDB_LUA_RELATIVE_PATH=lib$(MULTILIB_PPC32_SUFFIX)/lua/5.4
+
+configure_switches += -DCMAKE_BUILD_TYPE=Release
+configure_switches += -DBUILD_SHARED_LIBS=ON
+configure_switches += -DLLVM_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DLIBCXX_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_ZLIB=ON
+configure_switches += -DLLVM_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXXABI_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXX_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBOMP_ENABLE_ASSERTIONS=OFF
+
+configure_switches += -DLLVM_INSTALL_UTILS=ON
+
+configure_switches += -DCOMPILER_RT_CAN_EXECUTE_TESTS=OFF
+configure_switches += -DCOMPILER_RT_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXXABI_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXX_INCLUDE_TESTS=OFF
+configure_switches += -DLLDB_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_GO_TESTS=OFF
+configure_switches += -DCLANG_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_BUILD_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_TESTS=OFF
+
+configure_switches += -DLIBCXXABI_ENABLE_PIC=ON
+configure_switches += -DLLVM_ENABLE_PIC=ON
+
+configure_switches += -DLLVM_BINUTILS_INCDIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCLANG_RESOURCE_DIR='../../lib$(MULTILIB_PPC32_SUFFIX)/clang/$(version)'
+configure_switches += -DLLDB_USE_SYSTEM_SIX=1
+
+#
+# libunwind:
+#
+configure_switches += -DLIBUNWIND_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBUNWIND_ENABLE_SHARED=ON
+configure_switches += -DLIBUNWIND_ENABLE_STATIC=OFF
+
+
+#
+# Settings:
+#
+__ENABLE_CLANGD__      = no
+__ENABLE_LLDB_SERVER__ = no
+
+__ENABLE_LIBUNWIND__   = no
+__ENABLE_OPENMP__      = yes
+
+
+__ENABLE_AMDGPU__      = yes
+__ENABLE_BPF__         = yes
+
+#
+# Evaluation:
+#
+ifeq ($(__ENABLE_CLANGD__),yes)
+clangd = ON
+else
+clangd = OFF
+endif
+ifeq ($(__ENABLE_LLDB_SERVER__),yes)
+lldb-server = ON
+else
+lldb-server = OFF
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+openmp = openmp
+else
+openmp =
+endif
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+libunwind = libunwind
+else
+libunwind =
+endif
+
+ifeq ($(__ENABLE_AMDGPU__),yes)
+amdgpu = AMDGPU
+else
+amdgpu =
+endif
+ifeq ($(__ENABLE_BPF__),yes)
+bpf = BPF
+else
+bpf =
+endif
+
+
+configure_switches += -DLLVM_TARGETS_TO_BUILD='host;$(amdgpu);$(bpf)'
+
+configure_switches += -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;libcxx;libcxxabi;lld;lldb;mlir;polly;pstl'
+configure_switches += -DLLVM_ENABLE_RUNTIMES='$(openmp);$(libunwind)'
+
+configure_switches += -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB=OFF
+
+configure_switches += -DCLANG_ENABLE_CLANGD=$(clangd)
+configure_switches += -DLLDB_TOOL_LLDB_SERVER_BUILD=$(lldb-server)
+
+
+PYTHON_VERSION = 3.10
+
+configure_switches += -DPython3_EXECUTABLE=$(PYTHON3)
+configure_switches += -DPython3_INCLUDE_DIRS=$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)
+configure_switches += -DPython3_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libpython$(PYTHON_VERSION).so
+
+configure_switches += -DLLDB_ENABLE_PYTHON=On
+configure_switches += -DLLDB_PYTHON_RELATIVE_PATH=lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+configure_switches += -DLLDB_PYTHON_EXE_RELATIVE_PATH=$(PYTHON3)
+configure_switches += -DLLDB_PYTHON_EXT_SUFFIX='.so'
+
+configure_switches += -DPERL_EXECUTABLE=$(PERL)
+configure_switches += -DPKG_CONFIG_EXECUTABLE=/usr/bin/pkg-config
+
+configure_switches += -DZLIB_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DZLIB_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libz.so
+
+configure_switches += -DLIBLZMA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBLZMA_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/liblzma.so
+
+configure_switches += -Dzstd_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -Dzstd_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libzstd.so
+
+configure_switches += -DLIBXML2_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include/libxml2
+configure_switches += -DLIBXML2_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libxml2.so
+
+configure_switches += -DOPENMP_STANDALONE_BUILD=ON
+configure_switches += -DOPENMP_ENABLE_LIBOMPTARGET=OFF
+configure_switches += -DOPENMP_LIBDIR_SUFFIX='$(MULTILIB_PPC32_SUFFIX)'
+
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_LIBRARY_DIR=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)
+configure_switches += -DFFI_LIBRARY_PATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libffi.so
+configure_switches += -DFFI_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libffi.so
+
+configure_switches += -DLLDB_ENABLE_LUA=ON
+configure_switches += -DLUA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLUA_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/liblua.so
+configure_switches += -DLUA_MATH_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libm.so
+
+configure_switches += -DLLDB_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_TERMINFO=ON
+
+configure_switches += -DTERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+configure_switches += -DCOMPILER_RT_TERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+configure_switches += -DTerminfo_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+
+configure_switches += -DCURSES_CURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libcursesw.so
+configure_switches += -DCURSES_FORM_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libformw.so
+configure_switches += -DCURSES_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCURSES_NCURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libncursesw.so
+configure_switches += -DPANEL_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libpanelw.so
+
+configure_switches += -Dpkgcfg_lib_NCURSES_ncurses=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libncursesw.so
+configure_switches += -Dpkgcfg_lib_NCURSES_tinfo=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libtinfo.so
+
+configure_switches += -DLLDB_ENABLE_CURSES=On
+
+configure_switches += -DLLVM_BUILD_DOCS=OFF
+
+configure_switches += -DCMAKE_CROSSCOMPILING=True
+
+configure_switches += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DLLVM_HOST_TRIPLE=$(TARGET32)
+
+configure_switches += -DLLVM_BUILD_LLVM_DYLIB=ON
+
+configure_switches += -DLLVM_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-tblgen
+configure_switches += -DLLVM_CONFIG_PATH=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-config
+configure_switches += -DCLANG_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tblgen
+configure_switches += -DCLANG_PSEUDO_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-pseudo-gen
+configure_switches += -DCLANG_TIDY_CONFUSABLE_CHARS_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tidy-confusable-chars-gen
+configure_switches += -DLLDB_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/lldb-tblgen
+configure_switches += -DMLIR_LINALG_ODS_YAML_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-linalg-ods-yaml-gen
+configure_switches += -DMLIR_PDLL_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-pdll
+configure_switches += -DMLIR_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-tblgen
+
+
+llvm-config-targets = PowerPC
+
+
+#
+# NOTE:
+# ====
+#
+#   CMAKE_SYSTEM_PROCESSOR cannot be defined by command line option:
+#
+toolchain-file = $(CURDIR)/$(TARGET_BUILD_DIR)/toolchain.cmake
+
+configure_switches += -DCMAKE_TOOLCHAIN_FILE=$(toolchain-file)
+
+cpu_arch = $(word 1,$(subst -, ,$(TARGET32)))
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@echo "set(CMAKE_SYSTEM_NAME Linux)"                  > $(toolchain-file)
+	@echo "set(CMAKE_SYSTEM_PROCESSOR $(cpu_arch))"      >> $(toolchain-file)
+	@echo "set(CMAKE_SYSROOT $(TARGET_DEST_DIR))"        >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)"  >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)"  >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)"  >> $(toolchain-file)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(TARGET_BUILD_DIR)/build-machine
+	@( cd $(TARGET_BUILD_DIR)/build-machine ; \
+	   cmake -Wno-dev \
+	         -G Ninja -DLLVM_ENABLE_PROJECTS='clang;lldb;clang-tools-extra;mlir' \
+	                  -DCMAKE_BUILD_TYPE=Release \
+	                  -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_PPC32_SUFFIX) \
+	                  -DLLVM_TARGETS_TO_BUILD='$(llvm-config-targets);$(amdgpu);$(bpf)' \
+	                  -DLLVM_BUILD_LLVM_DYLIB=ON \
+	                  -DLLVM_ENABLE_RTTI=ON \
+	                  -DLLVM_INCLUDE_TESTS=OFF \
+	                  -DLLVM_CCACHE_BUILD=ON \
+	                  -DCCACHE_PROGRAM=$(CCACHE) \
+	                  -DLLVM_CCACHE_DIR='$(CACHED_CC_OUTPUT)' \
+	                  -DLLVM_CCACHE_PARAMS='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)' \
+	                  -DCMAKE_SKIP_INSTALL_RPATH=YES \
+	                  -DCMAKE_SKIP_RPATH=YES \
+	                  -DCMAKE_EXE_LINKER_FLAGS='-Wl,-rpath,$(BUILD_BIN_RPATH) -L/lib$(BUILD_MULTILIB_SUFFIX) -L/usr/lib$(BUILD_MULTILIB_SUFFIX)' \
+	                  -DCMAKE_C_FLAGS='-I/usr/include -flarge-source-files $(CC_NO_WARNINGS)' \
+	                  -DCMAKE_CXX_FLAGS='-I/usr/include -flarge-source-files $(CXX_NO_WARNINGS)' \
+	                  ../llvm-$(version)/llvm ; \
+	   ninja  llvm-tblgen ; \
+	   ninja clang-tblgen ; \
+	   ninja clang-pseudo-gen ; \
+	   ninja clang-tidy-confusable-chars-gen ; \
+	   ninja  lldb-tblgen ; \
+	   ninja  llvm-config ; \
+	   ninja  mlir-linalg-ods-yaml-gen ; \
+	   ninja  mlir-pdll ; \
+	   ninja  mlir-tblgen ; \
+	 )
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) \
+	     cmake -Wno-dev --trace-expand \
+                   -G Ninja $(configure_switches) ../llvm-$(version)/llvm 2> CMakeTrace.txt ; \
+	 )
+	@( cd $(build_dir) ; \
+	   ninja $(LLVM_JOBS) all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LLVM_32_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   ln -sf clang   $(TARGET32)-clang   ; \
+	   ln -sf clang++ $(TARGET32)-clang++ ; \
+	 )
+	@( cd $(TARGET_BUILD_DIR)/build/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin ; \
+	 )
+	# ======= Move 32-Bit binaries into /usr/bin/32 directory =======
+	@mkdir -p $(LLVM_32_PKG)/usr/bin/32
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   find . -maxdepth 1 -type f | xargs mv -t 32 ; \
+	   find . -maxdepth 1 -type l | xargs mv -t 32 ; \
+	 )
+	# ======= Install $(TARGET32)-llvm-config =======
+	@( cd $(TARGET_BUILD_DIR)/build-machine/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin/$(TARGET32)-clang-tblgen ; \
+	   cp -a llvm-tblgen  $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-tblgen  ; \
+	   cp -a lldb-tblgen  $(LLVM_32_PKG)/usr/bin/$(TARGET32)-lldb-tblgen  ; \
+	   cp -a llvm-config  $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-config  ; \
+	 )
+	@( cd $(LLVM_32_PKG)/usr/bin/32 ; \
+	   for file in clang-tblgen llvm-tblgen lldb-tblgen llvm-config ; do \
+	     ln -sf ../$(TARGET32)-$${file} . ; \
+	   done ; \
+	 )
+	# ======= Save config.h and llvm-config.h =======
+	@for header in config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/clang/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@for header in Config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/lldb/Host/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/llvm/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@rm -rf $(LLVM_32_PKG)/usr/include
+	@rm -rf $(LLVM_32_PKG)/usr/libexec
+	@rm -rf $(LLVM_32_PKG)/usr/share
+	# ======= Restore config-32.h and llvm-config-32.h =======
+	@mkdir -p $(LLVM_32_PKG)/usr/include/lldb/Host
+	@mkdir -p $(LLVM_32_PKG)/usr/include/{clang,llvm}/Config
+	@for header in config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/clang/Config/$$header-32.h ; \
+	 done
+	@for header in Config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/lldb/Host/$$header-32.h ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/llvm/Config/$$header-32.h ; \
+	 done
+	# ======= Remove bundled python-six =======
+	@rm -f $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/six.py
+	# ======= Install Python bindings =======
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7 $(PYTHON2)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7 $(PYTHON2) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/clang
+	# ======= Install Python3 bindings =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb ; \
+	   ln -sf ../../../../bin/32/lldb-argdumper ; \
+	 )
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	# ======= Remove build-dir from cmake files =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),/usr,g'                            polly/PollyConfig.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),,g'                                 llvm/LLVMExports.cmake ; \
+	   sed -i 's,$(TARGET_DEST_DIR),,g'                                     llvm/LLVMExports.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir)/tools/mlir/include,/usr/include,g'  mlir/MLIRConfig.cmake  ; \
+	   sed -i 's,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g'                  mlir/MLIRConfig.cmake  ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LLVM_32_PKG))
+	# ======= Remove $(TARGET32)-llvm-config from target package =======
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-clang-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-llvm-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-lldb-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-llvm-config
+	# ======= Strip Binaries =======
+	@( cd $(LLVM_32_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 $@
+
+$(LLVM_32_PKG_DESCRIPTION_FILE): $(LLVM_32_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) $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG_INSTALL_SCRIPT)
+	@cp $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG)/.DESCRIPTION
+	@cp $(LLVM_32_PKG_INSTALL_SCRIPT) $(LLVM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LLVM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LLVM_32_PKG_NAME)"                            >  $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LLVM_32_PKG_VERSION)"                          >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LLVM_32_PKG_ARCH)"                               >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LLVM_32_PKG_DISTRO_NAME)"                  >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LLVM_32_PKG_DISTRO_VERSION)"                >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LLVM_32_PKG_GROUP)"                             >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LLVM_32_PKG_SHORT_DESCRIPTION)\"" >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LLVM_32_PKG_URL)"                                 >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LLVM_32_PKG_LICENSE)"                         >> $(LLVM_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LLVM_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: llvm/15.0.4-ppc32/PATCHES
===================================================================
--- llvm/15.0.4-ppc32/PATCHES	(nonexistent)
+++ llvm/15.0.4-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,17 @@
+
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clang-gnu-triple.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clang-set-revision.patch   -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-ppc64.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-synonyms.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-mips.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-riscv64.patch         -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-set-revision.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-64bit-atomic.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-ppc64.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-versioning.patch      -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-install-symlink.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-lua-version.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-openmp-perl.patch          -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-polly-hack.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-scan-build-py-x32.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-pstl-x32.patch             -p0
Index: llvm/15.0.4-ppc32/llvm-x32-pkg-description.in
===================================================================
--- llvm/15.0.4-ppc32/llvm-x32-pkg-description.in	(nonexistent)
+++ llvm/15.0.4-ppc32/llvm-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------------------------------------------------------|
+llvm-x32: llvm-x32 @VERSION@ (LLVM compiler toolkit)
+llvm-x32:
+llvm-x32: Low Level Virtual Machine is a toolkit for the construction of
+llvm-x32: highly optimized compilers, optimizers, and runtime environments.
+llvm-x32:
+llvm-x32: This package also includes the clang frontend for the C family of
+llvm-x32: languages:  C, C++, Objective-C, and Objective-C++
+llvm-x32:
+llvm-x32: Homepage: http://llvm.org
+llvm-x32:
+llvm-x32:
Index: llvm/15.0.4-ppc32/llvm-x32-pkg-install.sh
===================================================================
--- llvm/15.0.4-ppc32/llvm-x32-pkg-install.sh	(nonexistent)
+++ llvm/15.0.4-ppc32/llvm-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: llvm/15.0.4-ppc32/llvm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: llvm/15.0.4-ppc32
===================================================================
--- llvm/15.0.4-ppc32	(nonexistent)
+++ llvm/15.0.4-ppc32	(revision 5)

Property changes on: llvm/15.0.4-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: llvm/15.0.4-x86_32/Makefile
===================================================================
--- llvm/15.0.4-x86_32/Makefile	(nonexistent)
+++ llvm/15.0.4-x86_32/Makefile	(revision 5)
@@ -0,0 +1,537 @@
+
+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/llvm
+
+REQUIRES           = dev/llvm/15.0.4
+REQUIRES          += libs/libffi/3.4.4-x86_32
+REQUIRES          += libs/elfutils/0.187-x86_32
+REQUIRES          += libs/libxml2/2.9.9-x86_32
+REQUIRES          += libs/libedit/20191231-3.1-x86_32
+REQUIRES          += libs/ncurses/6.3-x86_32
+REQUIRES          += dev/python2/2.7.18-x86_32
+REQUIRES          += dev/python3/3.10.8-x86_32
+REQUIRES          += dev/lua/5.4.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 15.0.4
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/llvm/llvm-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/llvm-$(version)
+src_dir_name       = llvm-$(version)
+doc_dir_name       = llvm-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LLVM_32_PKG_NAME                = llvm-x32
+LLVM_32_PKG_VERSION             = 15.0.4
+LLVM_32_PKG_ARCH                = $(PKGARCH)
+LLVM_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LLVM_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LLVM_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+LLVM_32_PKG_SHORT_DESCRIPTION   = LLVM compiler toolkit
+LLVM_32_PKG_URL                 = $(BUG_URL)
+LLVM_32_PKG_LICENSE             = custom
+LLVM_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-pkg-description
+LLVM_32_PKG_DESCRIPTION_FILE_IN = $(LLVM_32_PKG_NAME)-pkg-description.in
+LLVM_32_PKG_INSTALL_SCRIPT      = $(LLVM_32_PKG_NAME)-pkg-install.sh
+
+LLVM_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LLVM_32_PKG_NAME)-package
+
+pkg_basename     = $(LLVM_32_PKG_NAME)-$(LLVM_32_PKG_VERSION)-$(LLVM_32_PKG_ARCH)-$(LLVM_32_PKG_DISTRO_NAME)-$(LLVM_32_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=$(LLVM_32_PKG)
+
+
+JOBS := $(shell echo 'if( $(NUMPROCS) > 2) { $(NUMPROCS) / 2 } else { 1 }' | bc)
+LLVM_JOBS := -j$(JOBS) -l$(JOBS)
+
+
+TARGET_BIN_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib/../lib$(MULTILIB_X86_32_SUFFIX)
+
+BUILD_BIN_RPATH  = /lib$(BUILD_MULTILIB_SUFFIX):/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+CFLAGS += -flarge-source-files
+
+CC_NO_WARNINGS   = -Wno-old-style-declaration -Wno-array-bounds -Wno-deprecated-declarations
+CC_NO_WARNINGS  += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CC_NO_WARNINGS  += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CC_NO_WARNINGS  += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CC_NO_WARNINGS  += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes
+CC_NO_WARNINGS  += -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-value -Wno-type-limits
+CC_NO_WARNINGS  += -Wno-enum-compare -Wno-sign-compare -Wno-unused-variable -Wno-return-type
+CC_NO_WARNINGS  += -Wno-psabi -Wno-stringop-overflow
+
+CXX_NO_WARNINGS  = -Wno-pessimizing-move -Wno-array-bounds -Wno-deprecated-declarations
+CXX_NO_WARNINGS += -Wno-cast-function-type -Wno-format-overflow -Wno-unused-but-set-variable
+CXX_NO_WARNINGS += -Wno-unused-function -Wimplicit-fallthrough=0 -Wno-misleading-indentation
+CXX_NO_WARNINGS += -Wno-strict-aliasing -Wno-empty-body -Wno-pedantic -Wno-sign-conversion
+CXX_NO_WARNINGS += -Wno-unused-parameter -Wno-shadow -Wno-address -Wno-attributes
+CXX_NO_WARNINGS += -Wno-uninitialized -Wno-maybe-uninitialized -Wno-unused-value -Wno-type-limits
+CXX_NO_WARNINGS += -Wno-enum-compare -Wno-sign-compare -Wno-unused-variable -Wno-return-type
+CXX_NO_WARNINGS += -Wno-psabi -Wno-stringop-overflow -Wno-nonnull -Wno-dangling-pointer
+CXX_NO_WARNINGS += -Wno-alloc-size-larger-than -Wno-missing-attributes -Wno-free-nonheap-object
+CXX_NO_WARNINGS += -Wno-variadic-macros -Wno-format-nonliteral -Wno-parentheses -Wno-sized-deallocation
+CXX_NO_WARNINGS += -Wno-overflow -Wno-builtin-declaration-mismatch -Wno-prio-ctor-dtor
+
+
+configure_switches  = -DBUG_REPORT_URL='https://llvm.org'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+#
+# CMAKE passes the same {ASM|C}_DEFINES to the C and ASM compilers
+# by the SET(CMAKE_TARGET_DEFINITIONS ..) function.  This is a bad
+# practice for GNU Assembler.  GNU AS  compiler doesn't understand
+# options like -D_GNU_SOURCE .
+#
+configure_switches += -DCMAKE_ASM_COMPILER='$(CROSS_PREFIX)gcc'
+
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DGOLD_EXECUTABLE='$(CROSS_PREFIX)ld.gold'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CC_NO_WARNINGS)'
+configure_switches += -DCMAKE_CXX_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS) $(CXX_NO_WARNINGS)'
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_BIN_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -m32 -Wl,-rpath,$(TARGET_LIB_RPATH) -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+
+configure_switches += -DCMAKE_SKIP_INSTALL_RPATH=NO
+configure_switches += -DCMAKE_SKIP_RPATH=YES
+
+configure_switches += -DLLVM_CCACHE_BUILD=ON
+configure_switches += -DCCACHE_PROGRAM=$(CCACHE)
+configure_switches += -DLLVM_CCACHE_DIR='$(CACHED_CC_OUTPUT)'
+configure_switches += -DLLVM_CCACHE_PARAMS='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)'
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+configure_switches += -DCMAKE_INSTALL_BINDIR=bin/32
+configure_switches += -DCMAKE_INSTALL_LIBDIR=lib$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DCMAKE_INSTALL_LIBEXECDIR=libexec/32
+configure_switches += -DCMAKE_INSTALL_MANDIR='share/man'
+configure_switches += -DCMAKE_INSTALL_DOCDIR='share/doc/$(doc_dir_name)'
+
+configure_switches += -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLIBCXXABI_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLIBCXX_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLIBUNWIND_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DLLDB_LUA_RELATIVE_PATH=lib$(MULTILIB_X86_32_SUFFIX)/lua/5.4
+
+configure_switches += -DCMAKE_BUILD_TYPE=Release
+configure_switches += -DBUILD_SHARED_LIBS=ON
+configure_switches += -DLLVM_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DLIBCXX_ENABLE_RTTI=ON
+configure_switches += -DLLVM_ENABLE_ZLIB=ON
+configure_switches += -DLLVM_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXXABI_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBCXX_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBOMP_ENABLE_ASSERTIONS=OFF
+
+configure_switches += -DLLVM_INSTALL_UTILS=ON
+
+configure_switches += -DCOMPILER_RT_CAN_EXECUTE_TESTS=OFF
+configure_switches += -DCOMPILER_RT_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXXABI_INCLUDE_TESTS=OFF
+configure_switches += -DLIBCXX_INCLUDE_TESTS=OFF
+configure_switches += -DLLDB_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_GO_TESTS=OFF
+configure_switches += -DCLANG_INCLUDE_TESTS=OFF
+configure_switches += -DLLVM_BUILD_TESTS=OFF
+configure_switches += -DLLVM_INCLUDE_TESTS=OFF
+
+configure_switches += -DLIBCXXABI_ENABLE_PIC=ON
+configure_switches += -DLLVM_ENABLE_PIC=ON
+
+configure_switches += -DLLVM_BINUTILS_INCDIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCLANG_RESOURCE_DIR='../../lib$(MULTILIB_X86_32_SUFFIX)/clang/$(version)'
+configure_switches += -DLLDB_USE_SYSTEM_SIX=1
+
+#
+# libunwind:
+#
+configure_switches += -DLIBUNWIND_ENABLE_ASSERTIONS=OFF
+configure_switches += -DLIBUNWIND_ENABLE_SHARED=ON
+configure_switches += -DLIBUNWIND_ENABLE_STATIC=OFF
+
+
+#
+# Settings:
+#
+__ENABLE_CLANGD__      = yes
+__ENABLE_LLDB_SERVER__ = yes
+
+__ENABLE_LIBUNWIND__   = no
+__ENABLE_OPENMP__      = yes
+
+
+__ENABLE_AMDGPU__      = yes
+__ENABLE_BPF__         = yes
+
+#
+# Evaluation:
+#
+ifeq ($(__ENABLE_CLANGD__),yes)
+clangd = ON
+else
+clangd = OFF
+endif
+ifeq ($(__ENABLE_LLDB_SERVER__),yes)
+lldb-server = ON
+else
+lldb-server = OFF
+endif
+ifeq ($(__ENABLE_OPENMP__),yes)
+openmp = openmp
+else
+openmp =
+endif
+ifeq ($(__ENABLE_LIBUNWIND__),yes)
+libunwind = libunwind
+else
+libunwind =
+endif
+
+ifeq ($(__ENABLE_AMDGPU__),yes)
+amdgpu = AMDGPU
+else
+amdgpu =
+endif
+ifeq ($(__ENABLE_BPF__),yes)
+bpf = BPF
+else
+bpf =
+endif
+
+
+configure_switches += -DLLVM_TARGETS_TO_BUILD='host;$(amdgpu);$(bpf)'
+
+configure_switches += -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;libcxx;libcxxabi;lld;lldb;mlir;polly;pstl'
+configure_switches += -DLLVM_ENABLE_RUNTIMES='$(openmp);$(libunwind)'
+
+configure_switches += -DLIBOMPTARGET_BUILD_DEVICERTL_BCLIB=OFF
+
+configure_switches += -DCLANG_ENABLE_CLANGD=$(clangd)
+configure_switches += -DLLDB_TOOL_LLDB_SERVER_BUILD=$(lldb-server)
+
+
+PYTHON_VERSION = 3.10
+
+configure_switches += -DPython3_EXECUTABLE=$(PYTHON3)
+configure_switches += -DPython3_INCLUDE_DIRS=$(TARGET_DEST_DIR)/usr/include/python$(PYTHON_VERSION)
+configure_switches += -DPython3_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libpython$(PYTHON_VERSION).so
+
+configure_switches += -DLLDB_ENABLE_PYTHON=On
+configure_switches += -DLLDB_PYTHON_RELATIVE_PATH=lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+configure_switches += -DLLDB_PYTHON_EXE_RELATIVE_PATH=$(PYTHON3)
+configure_switches += -DLLDB_PYTHON_EXT_SUFFIX='.so'
+
+configure_switches += -DPERL_EXECUTABLE=$(PERL)
+configure_switches += -DPKG_CONFIG_EXECUTABLE=/usr/bin/pkg-config
+
+configure_switches += -DZLIB_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DZLIB_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libz.so
+
+configure_switches += -DLIBLZMA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLIBLZMA_LIBRARY_RELEASE=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/liblzma.so
+
+configure_switches += -Dzstd_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -Dzstd_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libzstd.so
+
+configure_switches += -DLIBXML2_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include/libxml2
+configure_switches += -DLIBXML2_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libxml2.so
+
+configure_switches += -DOPENMP_STANDALONE_BUILD=ON
+configure_switches += -DOPENMP_ENABLE_LIBOMPTARGET=OFF
+configure_switches += -DOPENMP_LIBDIR_SUFFIX='$(MULTILIB_X86_32_SUFFIX)'
+
+configure_switches += -DLLVM_ENABLE_FFI=ON
+configure_switches += -DFFI_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DFFI_LIBRARY_DIR=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)
+configure_switches += -DFFI_LIBRARY_PATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libffi.so
+configure_switches += -DFFI_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libffi.so
+
+configure_switches += -DLLDB_ENABLE_LUA=ON
+configure_switches += -DLUA_INCLUDE_DIR=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DLUA_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/liblua.so
+configure_switches += -DLUA_MATH_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libm.so
+
+configure_switches += -DLLDB_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_LIBEDIT=ON
+configure_switches += -DLLVM_ENABLE_TERMINFO=ON
+
+configure_switches += -DTERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+configure_switches += -DCOMPILER_RT_TERMINFO_LIB=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+configure_switches += -DTerminfo_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+
+configure_switches += -DCURSES_CURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libcursesw.so
+configure_switches += -DCURSES_FORM_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libformw.so
+configure_switches += -DCURSES_INCLUDE_PATH=$(TARGET_DEST_DIR)/usr/include
+configure_switches += -DCURSES_NCURSES_LIBRARY=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libncursesw.so
+configure_switches += -DPANEL_LIBRARIES=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libpanelw.so
+
+configure_switches += -Dpkgcfg_lib_NCURSES_ncurses=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libncursesw.so
+configure_switches += -Dpkgcfg_lib_NCURSES_tinfo=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libtinfo.so
+
+configure_switches += -DLLDB_ENABLE_CURSES=On
+
+configure_switches += -DLLVM_BUILD_DOCS=OFF
+
+configure_switches += -DCMAKE_CROSSCOMPILING=True
+
+configure_switches += -DLLVM_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(TARGET32)
+configure_switches += -DLLVM_HOST_TRIPLE=$(TARGET32)
+
+configure_switches += -DLLVM_BUILD_LLVM_DYLIB=ON
+
+configure_switches += -DLLVM_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-tblgen
+configure_switches += -DLLVM_CONFIG_PATH=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/llvm-config
+configure_switches += -DCLANG_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tblgen
+configure_switches += -DCLANG_PSEUDO_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-pseudo-gen
+configure_switches += -DCLANG_TIDY_CONFUSABLE_CHARS_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/clang-tidy-confusable-chars-gen
+configure_switches += -DLLDB_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/lldb-tblgen
+configure_switches += -DMLIR_LINALG_ODS_YAML_GEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-linalg-ods-yaml-gen
+configure_switches += -DMLIR_PDLL_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-pdll
+configure_switches += -DMLIR_TABLEGEN=$(CURDIR)/$(TARGET_BUILD_DIR)/build-machine/bin/mlir-tblgen
+
+
+llvm-config-targets = X86
+
+
+#
+# NOTE:
+# ====
+#
+#   CMAKE_SYSTEM_PROCESSOR cannot be defined by command line option:
+#
+toolchain-file = $(CURDIR)/$(TARGET_BUILD_DIR)/toolchain.cmake
+
+configure_switches += -DCMAKE_TOOLCHAIN_FILE=$(toolchain-file)
+
+cpu_arch = $(word 1,$(subst -, ,$(TARGET32)))
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@echo "set(CMAKE_SYSTEM_NAME Linux)"                  > $(toolchain-file)
+	@echo "set(CMAKE_SYSTEM_PROCESSOR $(cpu_arch))"      >> $(toolchain-file)
+	@echo "set(CMAKE_SYSROOT $(TARGET_DEST_DIR))"        >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)"  >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)"  >> $(toolchain-file)
+	@echo "set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)"  >> $(toolchain-file)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(TARGET_BUILD_DIR)/build-machine
+	@( cd $(TARGET_BUILD_DIR)/build-machine ; \
+	   cmake -Wno-dev \
+	         -G Ninja -DLLVM_ENABLE_PROJECTS='clang;lldb;clang-tools-extra;mlir' \
+	                  -DCMAKE_BUILD_TYPE=Release \
+	                  -DLLVM_LIBDIR_SUFFIX=$(MULTILIB_X86_32_SUFFIX) \
+	                  -DLLVM_TARGETS_TO_BUILD='$(llvm-config-targets);$(amdgpu);$(bpf)' \
+	                  -DLLVM_BUILD_LLVM_DYLIB=ON \
+	                  -DLLVM_ENABLE_RTTI=ON \
+	                  -DLLVM_INCLUDE_TESTS=OFF \
+	                  -DLLVM_CCACHE_BUILD=ON \
+	                  -DCCACHE_PROGRAM=$(CCACHE) \
+	                  -DLLVM_CCACHE_DIR='$(CACHED_CC_OUTPUT)' \
+	                  -DLLVM_CCACHE_PARAMS='CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_BASEDIR=$(CCACHE_BASEDIR)' \
+	                  -DCMAKE_SKIP_INSTALL_RPATH=YES \
+	                  -DCMAKE_SKIP_RPATH=YES \
+	                  -DCMAKE_EXE_LINKER_FLAGS='-Wl,-rpath,$(BUILD_BIN_RPATH) -L/lib$(BUILD_MULTILIB_SUFFIX) -L/usr/lib$(BUILD_MULTILIB_SUFFIX)' \
+	                  -DCMAKE_C_FLAGS='-I/usr/include -flarge-source-files $(CC_NO_WARNINGS)' \
+	                  -DCMAKE_CXX_FLAGS='-I/usr/include -flarge-source-files $(CXX_NO_WARNINGS)' \
+	                  ../llvm-$(version)/llvm ; \
+	   ninja  llvm-tblgen ; \
+	   ninja clang-tblgen ; \
+	   ninja clang-pseudo-gen ; \
+	   ninja clang-tidy-confusable-chars-gen ; \
+	   ninja  lldb-tblgen ; \
+	   ninja  llvm-config ; \
+	   ninja  mlir-linalg-ods-yaml-gen ; \
+	   ninja  mlir-pdll ; \
+	   ninja  mlir-tblgen ; \
+	 )
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) \
+	     cmake -Wno-dev --trace-expand \
+	           -G Ninja $(configure_switches) ../llvm-$(version)/llvm 2> CMakeTrace.txt ; \
+	 )
+	@( cd $(build_dir) ; \
+	   ninja $(LLVM_JOBS) all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LLVM_32_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   ln -sf clang   $(TARGET32)-clang   ; \
+	   ln -sf clang++ $(TARGET32)-clang++ ; \
+	 )
+	@( cd $(TARGET_BUILD_DIR)/build/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin ; \
+	 )
+	# ======= Move 32-Bit binaries into /usr/bin/32 directory =======
+	@mkdir -p $(LLVM_32_PKG)/usr/bin/32
+	@( cd $(LLVM_32_PKG)/usr/bin ; \
+	   find . -maxdepth 1 -type f | xargs mv -t 32 ; \
+	   find . -maxdepth 1 -type l | xargs mv -t 32 ; \
+	 )
+	# ======= Install $(TARGET32)-llvm-config =======
+	@( cd $(TARGET_BUILD_DIR)/build-machine/bin ; \
+	   cp -a clang-tblgen $(LLVM_32_PKG)/usr/bin/$(TARGET32)-clang-tblgen ; \
+	   cp -a llvm-tblgen  $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-tblgen  ; \
+	   cp -a lldb-tblgen  $(LLVM_32_PKG)/usr/bin/$(TARGET32)-lldb-tblgen  ; \
+	   cp -a llvm-config  $(LLVM_32_PKG)/usr/bin/$(TARGET32)-llvm-config  ; \
+	 )
+	@( cd $(LLVM_32_PKG)/usr/bin/32 ; \
+	   for file in clang-tblgen llvm-tblgen lldb-tblgen llvm-config ; do \
+	     ln -sf ../$(TARGET32)-$${file} . ; \
+	   done ; \
+	 )
+	# ======= Save config.h and llvm-config.h =======
+	@for header in config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/clang/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@for header in Config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/lldb/Host/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(LLVM_32_PKG)/usr/include/llvm/Config/$$header.h $(TARGET_BUILD_DIR) ; \
+	 done
+	@rm -rf $(LLVM_32_PKG)/usr/include
+	@rm -rf $(LLVM_32_PKG)/usr/libexec
+	@rm -rf $(LLVM_32_PKG)/usr/share
+	# ======= Restore config-32.h and llvm-config-32.h =======
+	@mkdir -p $(LLVM_32_PKG)/usr/include/lldb/Host
+	@mkdir -p $(LLVM_32_PKG)/usr/include/{clang,llvm}/Config
+	@for header in config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/clang/Config/$$header-32.h ; \
+	 done
+	@for header in Config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/lldb/Host/$$header-32.h ; \
+	 done
+	@for header in llvm-config ; do \
+	   cp -a $(TARGET_BUILD_DIR)/$$header.h $(LLVM_32_PKG)/usr/include/llvm/Config/$$header-32.h ; \
+	 done
+	# ======= Remove bundled python-six =======
+	@rm -f $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/six.py
+	# ======= Install Python bindings =======
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7 $(PYTHON2)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7 $(PYTHON2) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/clang
+	# ======= Install Python3 bindings =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb ; \
+	   ln -sf ../../../../bin/32/lldb-argdumper ; \
+	 )
+	@mkdir -p $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@cp -a $(SRC_DIR)/clang/bindings/python/clang $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/clang
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3)    -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	@PYTHONPATH=$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION) $(PYTHON3) -O -m compileall $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON_VERSION)/site-packages/lldb
+	# ======= Remove build-dir from cmake files =======
+	@( cd $(LLVM_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),/usr,g'                            polly/PollyConfig.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir),,g'                                 llvm/LLVMExports.cmake ; \
+	   sed -i 's,$(TARGET_DEST_DIR),,g'                                     llvm/LLVMExports.cmake ; \
+	   sed -i 's,$(CURDIR)/$(build_dir)/tools/mlir/include,/usr/include,g'  mlir/MLIRConfig.cmake  ; \
+	   sed -i 's,$(CURDIR)/$(TARGET_BUILD_DIR),/usr/src,g'                  mlir/MLIRConfig.cmake  ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LLVM_32_PKG))
+	# ======= Remove $(TARGET32)-llvm-config from target package =======
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-clang-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-llvm-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-lldb-tblgen
+	@rm -f $(LLVM_32_PKG)/usr/bin{,/32}/$(TARGET32)-llvm-config
+	# ======= Strip Binaries =======
+	@( cd $(LLVM_32_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 $@
+
+$(LLVM_32_PKG_DESCRIPTION_FILE): $(LLVM_32_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) $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG_INSTALL_SCRIPT)
+	@cp $(LLVM_32_PKG_DESCRIPTION_FILE) $(LLVM_32_PKG)/.DESCRIPTION
+	@cp $(LLVM_32_PKG_INSTALL_SCRIPT) $(LLVM_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LLVM_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LLVM_32_PKG_NAME)"                            >  $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LLVM_32_PKG_VERSION)"                          >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LLVM_32_PKG_ARCH)"                               >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LLVM_32_PKG_DISTRO_NAME)"                  >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LLVM_32_PKG_DISTRO_VERSION)"                >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LLVM_32_PKG_GROUP)"                             >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LLVM_32_PKG_SHORT_DESCRIPTION)\"" >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LLVM_32_PKG_URL)"                                 >> $(LLVM_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LLVM_32_PKG_LICENSE)"                         >> $(LLVM_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LLVM_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: llvm/15.0.4-x86_32/PATCHES
===================================================================
--- llvm/15.0.4-x86_32/PATCHES	(nonexistent)
+++ llvm/15.0.4-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,17 @@
+
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clang-gnu-triple.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-clang-set-revision.patch   -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-ppc64.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-synonyms.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-compiler-rt-mips.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-riscv64.patch         -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-set-revision.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-64bit-atomic.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-ppc64.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-versioning.patch      -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-llvm-install-symlink.patch -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-lldb-lua-version.patch     -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-openmp-perl.patch          -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-polly-hack.patch           -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-scan-build-py-x32.patch    -p0
+../../../sources/packages/d/llvm/patches/llvm-15.0.4-pstl-x32.patch             -p0
Index: llvm/15.0.4-x86_32/llvm-x32-pkg-description.in
===================================================================
--- llvm/15.0.4-x86_32/llvm-x32-pkg-description.in	(nonexistent)
+++ llvm/15.0.4-x86_32/llvm-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------------------------------------------------------|
+llvm-x32: llvm-x32 @VERSION@ (LLVM compiler toolkit)
+llvm-x32:
+llvm-x32: Low Level Virtual Machine is a toolkit for the construction of
+llvm-x32: highly optimized compilers, optimizers, and runtime environments.
+llvm-x32:
+llvm-x32: This package also includes the clang frontend for the C family of
+llvm-x32: languages:  C, C++, Objective-C, and Objective-C++
+llvm-x32:
+llvm-x32: Homepage: http://llvm.org
+llvm-x32:
+llvm-x32:
Index: llvm/15.0.4-x86_32/llvm-x32-pkg-install.sh
===================================================================
--- llvm/15.0.4-x86_32/llvm-x32-pkg-install.sh	(nonexistent)
+++ llvm/15.0.4-x86_32/llvm-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: llvm/15.0.4-x86_32/llvm-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: llvm/15.0.4-x86_32
===================================================================
--- llvm/15.0.4-x86_32	(nonexistent)
+++ llvm/15.0.4-x86_32	(revision 5)

Property changes on: llvm/15.0.4-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: llvm
===================================================================
--- llvm	(nonexistent)
+++ llvm	(revision 5)

Property changes on: llvm
___________________________________________________________________
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: lua/5.4.2/Makefile
===================================================================
--- lua/5.4.2/Makefile	(nonexistent)
+++ lua/5.4.2/Makefile	(revision 5)
@@ -0,0 +1,234 @@
+
+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/a/lua
+
+REQUIRES           = libs/readline/8.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.2
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/a/lua/lua-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/lua-$(version)
+src_dir_name       = lua-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+multilib_header    = $(CURDIR)/multilib-header/luaconf.h
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LUA_PKG_NAME                = lua
+LUA_PKG_VERSION             = 5.4.2
+LUA_PKG_ARCH                = $(PKGARCH)
+LUA_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LUA_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LUA_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+LUA_PKG_SHORT_DESCRIPTION   = embeddable scripting language
+LUA_PKG_URL                 = $(BUG_URL)
+LUA_PKG_LICENSE             = MIT
+LUA_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LUA_PKG_NAME)-pkg-description
+LUA_PKG_DESCRIPTION_FILE_IN = $(LUA_PKG_NAME)-pkg-description.in
+LUA_PKG_INSTALL_SCRIPT      = $(LUA_PKG_NAME)-pkg-install.sh
+
+LUA_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LUA_PKG_NAME)-package
+
+pkg_basename     = $(LUA_PKG_NAME)-$(LUA_PKG_VERSION)-$(LUA_PKG_ARCH)-$(LUA_PKG_DISTRO_NAME)-$(LUA_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
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "/#define LUA_CDIR/s:lib/lua/:lib$(LIBSUFFIX)/lua/:" src/luaconf.h \
+	   sed -i "/INSTALL_LIB/s:/lib:/lib$(LIBSUFFIX):"  Makefile ; \
+	   sed -i "/INSTALL_CMOD/s:/lib:/lib$(LIBSUFFIX):" Makefile ; \
+	   sed -i "/INSTALL_LIB/s:/lib:/lib$(LIBSUFFIX):"  lua.pc ; \
+	   sed -i "/INSTALL_CMOD/s:/lib:/lib$(LIBSUFFIX):" lua.pc ; \
+	   sed -i "/libdir/s:/lib:/lib$(LIBSUFFIX):"       lua.pc ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) linux-readline
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LUA_PKG)/usr/bin
+	@mkdir -p $(LUA_PKG)/usr/include
+	@mkdir -p $(LUA_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	@mkdir -p $(LUA_PKG)/usr/share/man/man1
+	@mkdir -p $(LUA_PKG)/usr/share/lua/`echo $(version) | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'`
+	@mkdir -p $(LUA_PKG)/usr/lib$(LIBSUFFIX)/lua/`echo $(version) | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'`
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a lua luac $(LUA_PKG)/usr/bin ; \
+	   cp -a liblua.so* $(LUA_PKG)/usr/lib$(LIBSUFFIX) ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a liblua.a $(LUA_PKG)/usr/lib$(LIBSUFFIX) ; \
+	 )
+endif
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a lauxlib.h lua.h lua.hpp lualib.h $(LUA_PKG)/usr/include ; \
+	 )
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC) \
+                             $(TOOLCHAIN_X86_64_GLIBC)),)
+	@cp -a $(SRC_DIR)/src/luaconf.h $(LUA_PKG)/usr/include/luaconf-64.h
+	@cp -a $(multilib_header) $(LUA_PKG)/usr/include
+else
+	@cp -a $(SRC_DIR)/src/luaconf.h $(LUA_PKG)/usr/include
+endif
+	@cp -a $(SRC_DIR)/lua.pc $(LUA_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig
+	# ======= Install Documentation =======
+	@( cd $(SRC_DIR)/doc ; \
+	   cp -a *.1 \
+	         $(LUA_PKG)/usr/share/man/man1 ; \
+	 )
+	@if [ -d $(LUA_PKG)/usr/share/man ]; then \
+	  ( cd $(LUA_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 $(LUA_PKG)/usr/share/doc/$(src_dir_name)/html
+	@( cd $(SRC_DIR) ; \
+	   sed -i "s:doc/:html/:" README ; \
+	   cp -a README \
+	         $(LUA_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR)/doc ; \
+	   cp -a *.html *.gif *.png *.css \
+	         $(LUA_PKG)/usr/share/doc/$(src_dir_name)/html ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LUA_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" lua.pc ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(LUA_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(LUA_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(LUA_PKG_DESCRIPTION_FILE): $(LUA_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) $(LUA_PKG_DESCRIPTION_FILE) $(LUA_PKG_INSTALL_SCRIPT)
+	@cp $(LUA_PKG_DESCRIPTION_FILE) $(LUA_PKG)/.DESCRIPTION
+	@cp $(LUA_PKG_INSTALL_SCRIPT) $(LUA_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LUA_PKG)/.REQUIRES
+	@echo "pkgname=$(LUA_PKG_NAME)"                            >  $(LUA_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LUA_PKG_VERSION)"                          >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "arch=$(LUA_PKG_ARCH)"                               >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LUA_PKG_DISTRO_NAME)"                  >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LUA_PKG_DISTRO_VERSION)"                >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "group=$(LUA_PKG_GROUP)"                             >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LUA_PKG_SHORT_DESCRIPTION)\"" >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "url=$(LUA_PKG_URL)"                                 >> $(LUA_PKG)/.PKGINFO ; \
+	 echo "license=$(LUA_PKG_LICENSE)"                         >> $(LUA_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LUA_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: lua/5.4.2/PATCHES
===================================================================
--- lua/5.4.2/PATCHES	(nonexistent)
+++ lua/5.4.2/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/a/lua/patches/lua-5.4.2.patch -p0
Index: lua/5.4.2/lua-pkg-description.in
===================================================================
--- lua/5.4.2/lua-pkg-description.in	(nonexistent)
+++ lua/5.4.2/lua-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------------------------------------------------------|
+lua: lua @VERSION@ (Lua is a powerful, embeddable scripting language)
+lua:
+lua: Lua combines simple procedural syntax with powerful data description
+lua: constructs based on associative arrays and extensible semantics.
+lua: Lua is dynamically typed, runs by interpreting bytecode for a
+lua: register-based virtual machine, and has automatic memory management
+lua: with incremental garbage collection, making it ideal for
+lua: configuration, scripting, and rapid prototyping.
+lua:
+lua:
+lua:
Index: lua/5.4.2/lua-pkg-install.sh
===================================================================
--- lua/5.4.2/lua-pkg-install.sh	(nonexistent)
+++ lua/5.4.2/lua-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: lua/5.4.2/lua-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lua/5.4.2/multilib-header/luaconf.h
===================================================================
--- lua/5.4.2/multilib-header/luaconf.h	(nonexistent)
+++ lua/5.4.2/multilib-header/luaconf.h	(revision 5)
@@ -0,0 +1,20 @@
+
+/*****************************
+  luaconf.h - Multilib Header
+ *****************************/
+
+#ifndef __MULTILIB__LUACONF_H__
+#define __MULTILIB__LUACONF_H__
+
+#if defined(__x86_64__)    || \
+    defined(__sparc64__)   || \
+    defined(__arch64__)    || \
+    defined(__powerpc64__) || \
+    defined(__riscv_xlen) && __riscv_xlen == 64 || \
+    defined (__s390x__)
+#include "luaconf-64.h"
+#else
+#include "luaconf-32.h"
+#endif
+
+#endif /* __MULTILIB__LUACONF_H__ */
Index: lua/5.4.2/multilib-header
===================================================================
--- lua/5.4.2/multilib-header	(nonexistent)
+++ lua/5.4.2/multilib-header	(revision 5)

Property changes on: lua/5.4.2/multilib-header
___________________________________________________________________
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: lua/5.4.2
===================================================================
--- lua/5.4.2	(nonexistent)
+++ lua/5.4.2	(revision 5)

Property changes on: lua/5.4.2
___________________________________________________________________
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: lua/5.4.2-ppc32/Makefile
===================================================================
--- lua/5.4.2-ppc32/Makefile	(nonexistent)
+++ lua/5.4.2-ppc32/Makefile	(revision 5)
@@ -0,0 +1,153 @@
+
+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/a/lua
+
+REQUIRES           = dev/lua/5.4.2
+REQUIRES          += libs/readline/8.2-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.2
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/a/lua/lua-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/lua-$(version)
+src_dir_name       = lua-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LUA_32_PKG_NAME                = lua-x32
+LUA_32_PKG_VERSION             = 5.4.2
+LUA_32_PKG_ARCH                = $(PKGARCH)
+LUA_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LUA_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LUA_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+LUA_32_PKG_SHORT_DESCRIPTION   = embeddable scripting language
+LUA_32_PKG_URL                 = $(BUG_URL)
+LUA_32_PKG_LICENSE             = MIT
+LUA_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LUA_32_PKG_NAME)-pkg-description
+LUA_32_PKG_DESCRIPTION_FILE_IN = $(LUA_32_PKG_NAME)-pkg-description.in
+LUA_32_PKG_INSTALL_SCRIPT      = $(LUA_32_PKG_NAME)-pkg-install.sh
+
+LUA_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LUA_32_PKG_NAME)-package
+
+pkg_basename     = $(LUA_32_PKG_NAME)-$(LUA_32_PKG_VERSION)-$(LUA_32_PKG_ARCH)-$(LUA_32_PKG_DISTRO_NAME)-$(LUA_32_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
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "/#define LUA_CDIR/s:lib/lua/:lib$(MULTILIB_PPC32_SUFFIX)/lua/:" src/luaconf.h ; \
+	   sed -i "/INSTALL_LIB/s:/lib:/lib$(MULTILIB_PPC32_SUFFIX):"  Makefile ; \
+	   sed -i "/INSTALL_CMOD/s:/lib:/lib$(MULTILIB_PPC32_SUFFIX):" Makefile ; \
+	   sed -i "/INSTALL_LIB/s:/lib:/lib$(MULTILIB_PPC32_SUFFIX):"  lua.pc ; \
+	   sed -i "/INSTALL_CMOD/s:/lib:/lib$(MULTILIB_PPC32_SUFFIX):" lua.pc ; \
+	   sed -i "/libdir/s:/lib:/lib$(MULTILIB_PPC32_SUFFIX):"       lua.pc ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) linux-readline
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LUA_32_PKG)/usr/bin/32
+	@mkdir -p $(LUA_32_PKG)/usr/include
+	@mkdir -p $(LUA_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig
+	@mkdir -p $(LUA_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/lua/`echo $(version) | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'`
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a lua luac $(LUA_32_PKG)/usr/bin/32 ; \
+	   cp -a liblua.so* $(LUA_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a liblua.a $(LUA_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	 )
+endif
+	@cp -a $(SRC_DIR)/src/luaconf.h $(LUA_32_PKG)/usr/include/luaconf-32.h
+	@cp -a $(SRC_DIR)/lua.pc $(LUA_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LUA_32_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" lua.pc ; \
+	 )
+	# ======= Strip bineries =======
+	@( cd $(LUA_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(LUA_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(LUA_32_PKG_DESCRIPTION_FILE): $(LUA_32_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) $(LUA_32_PKG_DESCRIPTION_FILE) $(LUA_32_PKG_INSTALL_SCRIPT)
+	@cp $(LUA_32_PKG_DESCRIPTION_FILE) $(LUA_32_PKG)/.DESCRIPTION
+	@cp $(LUA_32_PKG_INSTALL_SCRIPT) $(LUA_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LUA_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LUA_32_PKG_NAME)"                            >  $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LUA_32_PKG_VERSION)"                          >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LUA_32_PKG_ARCH)"                               >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LUA_32_PKG_DISTRO_NAME)"                  >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LUA_32_PKG_DISTRO_VERSION)"                >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LUA_32_PKG_GROUP)"                             >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LUA_32_PKG_SHORT_DESCRIPTION)\"" >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LUA_32_PKG_URL)"                                 >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LUA_32_PKG_LICENSE)"                         >> $(LUA_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LUA_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: lua/5.4.2-ppc32/PATCHES
===================================================================
--- lua/5.4.2-ppc32/PATCHES	(nonexistent)
+++ lua/5.4.2-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/a/lua/patches/lua-5.4.2.patch -p0
Index: lua/5.4.2-ppc32/lua-x32-pkg-description.in
===================================================================
--- lua/5.4.2-ppc32/lua-x32-pkg-description.in	(nonexistent)
+++ lua/5.4.2-ppc32/lua-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------------------------------------------------------|
+lua-x32: lua-x32 @VERSION@ (Lua is a powerful, embeddable scripting language)
+lua-x32:
+lua-x32: Lua combines simple procedural syntax with powerful data description
+lua-x32: constructs based on associative arrays and extensible semantics.
+lua-x32: Lua is dynamically typed, runs by interpreting bytecode for a
+lua-x32: register-based virtual machine, and has automatic memory management
+lua-x32: with incremental garbage collection, making it ideal for
+lua-x32: configuration, scripting, and rapid prototyping.
+lua-x32:
+lua-x32:
+lua-x32:
Index: lua/5.4.2-ppc32/lua-x32-pkg-install.sh
===================================================================
--- lua/5.4.2-ppc32/lua-x32-pkg-install.sh	(nonexistent)
+++ lua/5.4.2-ppc32/lua-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: lua/5.4.2-ppc32/lua-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lua/5.4.2-ppc32
===================================================================
--- lua/5.4.2-ppc32	(nonexistent)
+++ lua/5.4.2-ppc32	(revision 5)

Property changes on: lua/5.4.2-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: lua/5.4.2-x86_32/Makefile
===================================================================
--- lua/5.4.2-x86_32/Makefile	(nonexistent)
+++ lua/5.4.2-x86_32/Makefile	(revision 5)
@@ -0,0 +1,150 @@
+
+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/a/lua
+
+REQUIRES           = dev/lua/5.4.2
+REQUIRES          += libs/readline/8.2-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.4.2
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/a/lua/lua-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/lua-$(version)
+src_dir_name       = lua-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+LUA_32_PKG_NAME                = lua-x32
+LUA_32_PKG_VERSION             = 5.4.2
+LUA_32_PKG_ARCH                = $(PKGARCH)
+LUA_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+LUA_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+LUA_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+LUA_32_PKG_SHORT_DESCRIPTION   = embeddable scripting language
+LUA_32_PKG_URL                 = $(BUG_URL)
+LUA_32_PKG_LICENSE             = MIT
+LUA_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(LUA_32_PKG_NAME)-pkg-description
+LUA_32_PKG_DESCRIPTION_FILE_IN = $(LUA_32_PKG_NAME)-pkg-description.in
+LUA_32_PKG_INSTALL_SCRIPT      = $(LUA_32_PKG_NAME)-pkg-install.sh
+
+LUA_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(LUA_32_PKG_NAME)-package
+
+pkg_basename     = $(LUA_32_PKG_NAME)-$(LUA_32_PKG_VERSION)-$(LUA_32_PKG_ARCH)-$(LUA_32_PKG_DISTRO_NAME)-$(LUA_32_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
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   sed -i "/#define LUA_CDIR/s:lib/lua/:lib$(MULTILIB_X86_32_SUFFIX)/lua/:" src/luaconf.h ; \
+	   sed -i "/INSTALL_LIB/s:/lib:/lib$(MULTILIB_X86_32_SUFFIX):"  Makefile ; \
+	   sed -i "/INSTALL_CMOD/s:/lib:/lib$(MULTILIB_X86_32_SUFFIX):" Makefile ; \
+	   sed -i "/INSTALL_LIB/s:/lib:/lib$(MULTILIB_X86_32_SUFFIX):"  lua.pc ; \
+	   sed -i "/INSTALL_CMOD/s:/lib:/lib$(MULTILIB_X86_32_SUFFIX):" lua.pc ; \
+	   sed -i "/libdir/s:/lib:/lib$(MULTILIB_X86_32_SUFFIX):"       lua.pc ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) linux-readline
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(LUA_32_PKG)/usr/bin/32
+	@mkdir -p $(LUA_32_PKG)/usr/include
+	@mkdir -p $(LUA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig
+	@mkdir -p $(LUA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/lua/`echo $(version) | sed 's/\([0-9][.0-9][0-9]*\)\([\.].*\)/\1/'`
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a lua luac $(LUA_32_PKG)/usr/bin/32 ; \
+	   cp -a liblua.so* $(LUA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(SRC_DIR)/src ; \
+	   cp -a liblua.a $(LUA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	 )
+endif
+	@cp -a $(SRC_DIR)/src/luaconf.h $(LUA_32_PKG)/usr/include/luaconf-32.h
+	@cp -a $(SRC_DIR)/lua.pc $(LUA_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(LUA_32_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" lua.pc ; \
+	 )
+	# ======= Strip bineries =======
+	@( cd $(LUA_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(LUA_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(LUA_32_PKG_DESCRIPTION_FILE): $(LUA_32_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) $(LUA_32_PKG_DESCRIPTION_FILE) $(LUA_32_PKG_INSTALL_SCRIPT)
+	@cp $(LUA_32_PKG_DESCRIPTION_FILE) $(LUA_32_PKG)/.DESCRIPTION
+	@cp $(LUA_32_PKG_INSTALL_SCRIPT) $(LUA_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(LUA_32_PKG)/.REQUIRES
+	@echo "pkgname=$(LUA_32_PKG_NAME)"                            >  $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(LUA_32_PKG_VERSION)"                          >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(LUA_32_PKG_ARCH)"                               >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(LUA_32_PKG_DISTRO_NAME)"                  >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(LUA_32_PKG_DISTRO_VERSION)"                >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "group=$(LUA_32_PKG_GROUP)"                             >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(LUA_32_PKG_SHORT_DESCRIPTION)\"" >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "url=$(LUA_32_PKG_URL)"                                 >> $(LUA_32_PKG)/.PKGINFO ; \
+	 echo "license=$(LUA_32_PKG_LICENSE)"                         >> $(LUA_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(LUA_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: lua/5.4.2-x86_32/PATCHES
===================================================================
--- lua/5.4.2-x86_32/PATCHES	(nonexistent)
+++ lua/5.4.2-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/a/lua/patches/lua-5.4.2.patch -p0
Index: lua/5.4.2-x86_32/lua-x32-pkg-description.in
===================================================================
--- lua/5.4.2-x86_32/lua-x32-pkg-description.in	(nonexistent)
+++ lua/5.4.2-x86_32/lua-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------------------------------------------------------|
+lua-x32: lua-x32 @VERSION@ (Lua is a powerful, embeddable scripting language)
+lua-x32:
+lua-x32: Lua combines simple procedural syntax with powerful data description
+lua-x32: constructs based on associative arrays and extensible semantics.
+lua-x32: Lua is dynamically typed, runs by interpreting bytecode for a
+lua-x32: register-based virtual machine, and has automatic memory management
+lua-x32: with incremental garbage collection, making it ideal for
+lua-x32: configuration, scripting, and rapid prototyping.
+lua-x32:
+lua-x32:
+lua-x32:
Index: lua/5.4.2-x86_32/lua-x32-pkg-install.sh
===================================================================
--- lua/5.4.2-x86_32/lua-x32-pkg-install.sh	(nonexistent)
+++ lua/5.4.2-x86_32/lua-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: lua/5.4.2-x86_32/lua-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: lua/5.4.2-x86_32
===================================================================
--- lua/5.4.2-x86_32	(nonexistent)
+++ lua/5.4.2-x86_32	(revision 5)

Property changes on: lua/5.4.2-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: lua
===================================================================
--- lua	(nonexistent)
+++ lua	(revision 5)

Property changes on: lua
___________________________________________________________________
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: m4/1.4.19/Makefile
===================================================================
--- m4/1.4.19/Makefile	(nonexistent)
+++ m4/1.4.19/Makefile	(revision 5)
@@ -0,0 +1,210 @@
+
+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/GNU/m4
+
+REQUIRES           = libs/glibc/2.36
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.4.19
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/m4/m4-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/m4-$(version)
+src_dir_name       = m4-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+M4_PKG_NAME                = m4
+M4_PKG_VERSION             = 1.4.19
+M4_PKG_ARCH                = $(PKGARCH)
+M4_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+M4_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+M4_PKG_GROUP               = $(PKG_GROUP)
+###                         |---handy-ruler-------------------------------|
+M4_PKG_SHORT_DESCRIPTION   = UNIX macro processor
+M4_PKG_URL                 = $(BUG_URL)
+M4_PKG_LICENSE             = GPLv3
+M4_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(M4_PKG_NAME)-pkg-description
+M4_PKG_DESCRIPTION_FILE_IN = $(M4_PKG_NAME)-pkg-description.in
+M4_PKG_INSTALL_SCRIPT      = $(M4_PKG_NAME)-pkg-install.sh
+
+M4_PKG           = $(CURDIR)/$(TARGET_BUILD_DIR)/$(M4_PKG_NAME)-package
+
+pkg_basename     = $(M4_PKG_NAME)-$(M4_PKG_VERSION)-$(M4_PKG_ARCH)-$(M4_PKG_DISTRO_NAME)-$(M4_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=$(M4_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build-aux
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(M4_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@rm -f $(M4_PKG)/usr/share/info/dir
+	@gzip -9 $(M4_PKG)/usr/share/info/*
+	@if [ -d $(M4_PKG)/usr/share/man ]; then \
+	  ( cd $(M4_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 $(M4_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(M4_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(M4_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS BACKLOG COPYING INSTALL NEWS README THANKS TODO \
+	         $(M4_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(M4_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(M4_PKG))
+	# ======= Strip binaries =======
+	@( cd $(M4_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null \
+	 )
+	@touch $@
+
+$(M4_PKG_DESCRIPTION_FILE): $(M4_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) $(M4_PKG_DESCRIPTION_FILE) $(M4_PKG_INSTALL_SCRIPT)
+	@cp $(M4_PKG_DESCRIPTION_FILE) $(M4_PKG)/.DESCRIPTION
+	@cp $(M4_PKG_INSTALL_SCRIPT) $(M4_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(M4_PKG)/.REQUIRES
+	@echo "pkgname=$(M4_PKG_NAME)"                            >  $(M4_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(M4_PKG_VERSION)"                          >> $(M4_PKG)/.PKGINFO ; \
+	 echo "arch=$(M4_PKG_ARCH)"                               >> $(M4_PKG)/.PKGINFO ; \
+	 echo "distroname=$(M4_PKG_DISTRO_NAME)"                  >> $(M4_PKG)/.PKGINFO ; \
+	 echo "distrover=$(M4_PKG_DISTRO_VERSION)"                >> $(M4_PKG)/.PKGINFO ; \
+	 echo "group=$(M4_PKG_GROUP)"                             >> $(M4_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(M4_PKG_SHORT_DESCRIPTION)\"" >> $(M4_PKG)/.PKGINFO ; \
+	 echo "url=$(M4_PKG_URL)"                                 >> $(M4_PKG)/.PKGINFO ; \
+	 echo "license=$(M4_PKG_LICENSE)"                         >> $(M4_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(M4_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: m4/1.4.19/PATCHES
===================================================================
Index: m4/1.4.19/m4-pkg-description.in
===================================================================
--- m4/1.4.19/m4-pkg-description.in	(nonexistent)
+++ m4/1.4.19/m4-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------------------------------------------------------|
+m4: m4 @VERSION@ (an implementation of the UNIX macro processor)
+m4:
+m4: This is GNU m4, a program which copies its input to the
+m4: output, expanding macros as it goes. m4 has built-in functions
+m4: for including named files, running commands, doing integer
+m4: arithmetic, manipulating text in various ways, recursion, etc...
+m4: Macros can also be user-defined, and can take any number of
+m4: arguments.
+m4:
+m4: GNU 'm4' was originally written by Rene Seindal, from Denmark.
+m4:
Index: m4/1.4.19/m4-pkg-install.sh
===================================================================
--- m4/1.4.19/m4-pkg-install.sh	(nonexistent)
+++ m4/1.4.19/m4-pkg-install.sh	(revision 5)
@@ -0,0 +1,69 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/m4.info.gz 2>/dev/null
+  elif ! grep "m4" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Text creation and manipulation
+* M4: (m4).                     A powerful macro processor.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/m4.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: m4/1.4.19/m4-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: m4/1.4.19
===================================================================
--- m4/1.4.19	(nonexistent)
+++ m4/1.4.19	(revision 5)

Property changes on: m4/1.4.19
___________________________________________________________________
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: m4
===================================================================
--- m4	(nonexistent)
+++ m4	(revision 5)

Property changes on: m4
___________________________________________________________________
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: make/4.3.1/Makefile
===================================================================
--- make/4.3.1/Makefile	(nonexistent)
+++ make/4.3.1/Makefile	(revision 5)
@@ -0,0 +1,219 @@
+
+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/GNU/make
+
+REQUIRES           = app/bash/5.2
+REQUIRES          += dev/guile/3.0.5
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 4.3.1
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/GNU/make/make-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/make-$(version)
+src_dir_name       = make-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MAKE_PKG_NAME                = make
+MAKE_PKG_VERSION             = 4.3.1
+MAKE_PKG_ARCH                = $(PKGARCH)
+MAKE_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MAKE_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MAKE_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+MAKE_PKG_SHORT_DESCRIPTION   = GNU make utility
+MAKE_PKG_URL                 = $(BUG_URL)
+MAKE_PKG_LICENSE             = GPLv3
+MAKE_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MAKE_PKG_NAME)-pkg-description
+MAKE_PKG_DESCRIPTION_FILE_IN = $(MAKE_PKG_NAME)-pkg-description.in
+MAKE_PKG_INSTALL_SCRIPT      = $(MAKE_PKG_NAME)-pkg-install.sh
+
+MAKE_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MAKE_PKG_NAME)-package
+
+pkg_basename     = $(MAKE_PKG_NAME)-$(MAKE_PKG_VERSION)-$(MAKE_PKG_ARCH)-$(MAKE_PKG_DISTRO_NAME)-$(MAKE_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=$(MAKE_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --disable-dependency-tracking
+extra_configure_switches += --with-guile=yes
+
+
+CFLAGS += -Wstringop-overflow=0
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MAKE_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(MAKE_PKG)/usr/bin ; \
+	   rm -f gmake ; \
+	   ln -sf make gmake ; \
+	 )
+	# ======= Install Documentation =======
+	@rm -f $(MAKE_PKG)/usr/share/info/dir
+	@gzip -9 $(MAKE_PKG)/usr/share/info/*
+	@if [ -d $(MAKE_PKG)/usr/share/man ]; then \
+	  ( cd $(MAKE_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 $(MAKE_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(MAKE_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(MAKE_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README* \
+	         $(MAKE_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(MAKE_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MAKE_PKG))
+	# ======= Strip binaries =======
+	@( cd $(MAKE_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null \
+	 )
+	@touch $@
+
+$(MAKE_PKG_DESCRIPTION_FILE): $(MAKE_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) $(MAKE_PKG_DESCRIPTION_FILE) $(MAKE_PKG_INSTALL_SCRIPT)
+	@cp $(MAKE_PKG_DESCRIPTION_FILE) $(MAKE_PKG)/.DESCRIPTION
+	@cp $(MAKE_PKG_INSTALL_SCRIPT) $(MAKE_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MAKE_PKG)/.REQUIRES
+	@echo "pkgname=$(MAKE_PKG_NAME)"                            >  $(MAKE_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MAKE_PKG_VERSION)"                          >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "arch=$(MAKE_PKG_ARCH)"                               >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MAKE_PKG_DISTRO_NAME)"                  >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MAKE_PKG_DISTRO_VERSION)"                >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "group=$(MAKE_PKG_GROUP)"                             >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MAKE_PKG_SHORT_DESCRIPTION)\"" >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "url=$(MAKE_PKG_URL)"                                 >> $(MAKE_PKG)/.PKGINFO ; \
+	 echo "license=$(MAKE_PKG_LICENSE)"                         >> $(MAKE_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(MAKE_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: make/4.3.1/PATCHES
===================================================================
--- make/4.3.1/PATCHES	(nonexistent)
+++ make/4.3.1/PATCHES	(revision 5)
@@ -0,0 +1,4 @@
+
+../../../sources/GNU/make/patches/make-4.3.1-alloca.patch -p0
+../../../sources/GNU/make/patches/make-4.3.1-getcwd.patch -p0
+../../../sources/GNU/make/patches/make-4.3.1-gnulib.patch -p0
Index: make/4.3.1/make-pkg-description.in
===================================================================
--- make/4.3.1/make-pkg-description.in	(nonexistent)
+++ make/4.3.1/make-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------------------------------------------------------|
+make: make @VERSION@ (GNU make utility to maintain groups of programs)
+make:
+make: This is the GNU implementation of make, which was written by Richard
+make: Stallman and Roland McGrath.  The purpose of the make utility is to
+make: determine automatically which pieces of a large program need to be
+make: recompiled, and issue the commands to recompile them.
+make:
+make: This is needed to compile just about any major C program, including
+make: the Linux kernel.
+make:
+make:
Index: make/4.3.1/make-pkg-install.sh
===================================================================
--- make/4.3.1/make-pkg-install.sh	(nonexistent)
+++ make/4.3.1/make-pkg-install.sh	(revision 5)
@@ -0,0 +1,69 @@
+#!/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() {
+  #
+  # NOTE:
+  #   'install-info' can work using relative paths and we can make use build machine
+  #   utility during installation to the some partition and use target 'install-info'
+  #   during installation directly on the running target machine.
+  #
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --info-dir=usr/share/info usr/share/info/make.info.gz 2>/dev/null
+  elif ! grep "(make)" usr/share/info/dir 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> usr/share/info/dir
+
+Software development
+* Make: (make).                 Remake files automatically.
+EOF
+  fi
+}
+
+# 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() {
+  if [ -x /usr/bin/install-info ] ; then
+    install-info --delete --info-file=usr/share/info/make.info.gz --dir-file=usr/share/info/dir 2> /dev/null || /bin/true
+  fi
+}
+
+# arg 1:  the old package version
+post_remove() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: make/4.3.1/make-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: make/4.3.1
===================================================================
--- make/4.3.1	(nonexistent)
+++ make/4.3.1	(revision 5)

Property changes on: make/4.3.1
___________________________________________________________________
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: make
===================================================================
--- make	(nonexistent)
+++ make	(revision 5)

Property changes on: make
___________________________________________________________________
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: mercurial/6.0.1/Makefile
===================================================================
--- mercurial/6.0.1/Makefile	(nonexistent)
+++ mercurial/6.0.1/Makefile	(revision 5)
@@ -0,0 +1,261 @@
+
+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/mercurial
+
+REQUIRES           = dev/python3-modules/pip/22.2.2
+REQUIRES          += libs/zstd/1.5.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 6.0.1
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/mercurial/mercurial-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/mercurial-$(version)
+src_dir_name       = mercurial-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MERCURIAL_PKG_NAME                = mercurial
+MERCURIAL_PKG_VERSION             = 6.0.1
+MERCURIAL_PKG_ARCH                = $(PKGARCH)
+MERCURIAL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MERCURIAL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MERCURIAL_PKG_GROUP               = $(PKG_GROUP)
+###                                |---handy-ruler-------------------------------|
+MERCURIAL_PKG_SHORT_DESCRIPTION   = a distributed source management system
+MERCURIAL_PKG_URL                 = $(BUG_URL)
+MERCURIAL_PKG_LICENSE             = GPLv2
+MERCURIAL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MERCURIAL_PKG_NAME)-pkg-description
+MERCURIAL_PKG_DESCRIPTION_FILE_IN = $(MERCURIAL_PKG_NAME)-pkg-description.in
+MERCURIAL_PKG_INSTALL_SCRIPT      = $(MERCURIAL_PKG_NAME)-pkg-install.sh
+
+MERCURIAL_PKG    = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MERCURIAL_PKG_NAME)-package
+
+pkg_basename     = $(MERCURIAL_PKG_NAME)-$(MERCURIAL_PKG_VERSION)-$(MERCURIAL_PKG_ARCH)-$(MERCURIAL_PKG_DISTRO_NAME)-$(MERCURIAL_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=$(MERCURIAL_PKG)
+
+
+PYTHON3_VERSION = 3.10
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   CC='$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR) $(CFLAGS) -fPIC $(ARCH_FLAGS) $(LDFLAGS)' \
+	   CXX='$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) $(CFLAGS) -fPIC $(ARCH_FLAGS) $(LDFLAGS)' \
+	   LDSHARED='$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR) -pthread -shared -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)' \
+	   $(PYTHON3) setup.py build ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -C contrib/chg PREFIX=/usr all ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MERCURIAL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   CC='$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR) $(CFLAGS) -fPIC $(ARCH_FLAGS) $(LDFLAGS)' \
+	   CXX='$(CROSS_PREFIX)g++ --sysroot=$(TARGET_DEST_DIR) $(CFLAGS) -fPIC $(ARCH_FLAGS) $(LDFLAGS)' \
+	   LDSHARED='$(CROSS_PREFIX)gcc --sysroot=$(TARGET_DEST_DIR) -pthread -shared -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)' \
+	   $(PYTHON3) setup.py install \
+	     --prefix=/usr \
+	     --install-purelib=/usr/lib$(LIBSUFFIX) \
+	     --install-platlib=/usr/lib$(LIBSUFFIX) \
+	     --install-lib=/usr/lib$(LIBSUFFIX)/python$(PYTHON3_VERSION)/site-packages \
+	     --optimize=1 \
+	     --root=$(MERCURIAL_PKG) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -C contrib/chg install PREFIX=/usr $(env_sysroot) ; \
+	   install -m755 contrib/hg-ssh $(MERCURIAL_PKG)/usr/bin ; \
+	 )
+	@( cd $(MERCURIAL_PKG)/usr/bin ; \
+	   sed -i 's,$(BUILDSYSTEM),,' hg ; \
+	 )
+	# ======= Install hgk: =======
+	@mkdir -p $(MERCURIAL_PKG)/etc/mercurial/hgrc.d
+	@cat $(CURDIR)/config/hgk.rc > $(MERCURIAL_PKG)/etc/mercurial/hgrc.d/hgk.rc.new
+	@mkdir -p $(MERCURIAL_PKG)/usr/libexec/mercurial
+	@( cd $(SRC_DIR) ; \
+	   cp -a contrib/hgk $(MERCURIAL_PKG)/usr/libexec/mercurial ; \
+	   chmod 0755 $(MERCURIAL_PKG)/usr/libexec/mercurial/hgk ; \
+	 )
+	# ======= Install Bash and zsh completion: =======
+	@( cd $(SRC_DIR) ; \
+	   mkdir -p $(MERCURIAL_PKG)/usr/share/bash-completion/completions/ ; \
+	   cp -a contrib/bash_completion $(MERCURIAL_PKG)/usr/share/bash-completion/completions/hg ; \
+	   chmod 644 $(MERCURIAL_PKG)/usr/share/bash-completion/completions/hg ; \
+	   mkdir -p $(MERCURIAL_PKG)/usr/share/zsh/site-functions ; \
+	   cp -a contrib/zsh_completion $(MERCURIAL_PKG)/usr/share/zsh/site-functions/_mercurial ; \
+	   chmod 644 $(MERCURIAL_PKG)/usr/share/zsh/site-functions/_mercurial ; \
+	 )
+	# ======= Install Vim extentions: =======
+	@( cd $(SRC_DIR) ; \
+	   mkdir -p $(MERCURIAL_PKG)/usr/share/vim/vimfiles/syntax ; \
+	   cp -a contrib/vim/HGAnnotate.vim $(MERCURIAL_PKG)/usr/share/vim/vimfiles/syntax ; \
+	   chmod 644 $(MERCURIAL_PKG)/usr/share/vim/vimfiles/syntax/* ; \
+	 )
+	# ======= Install Emacs Lisp extentions: =======
+	@( cd $(SRC_DIR) ; \
+	   mkdir -p $(MERCURIAL_PKG)/usr/share/emacs/site-lisp ; \
+	   cp -a contrib/mercurial.el contrib/mq.el $(MERCURIAL_PKG)/usr/share/emacs/site-lisp ; \
+	   chmod 644 $(MERCURIAL_PKG)/usr/share/emacs/site-lisp/* ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(MERCURIAL_PKG)/usr/share/man/man{1,5,8}
+	@( cd $(SRC_DIR)/doc ; \
+	   cp -a hg.1 $(MERCURIAL_PKG)/usr/share/man/man1 ; \
+	   cp -a hg-ssh.8 $(MERCURIAL_PKG)/usr/share/man/man8 ; \
+	   cp -a hgignore.5 hgrc.5 $(MERCURIAL_PKG)/usr/share/man/man5 ; \
+	   chmod 644 $(MERCURIAL_PKG)/usr/share/man/man{1,5,8}/* ; \
+	 )
+	@if [ -d $(MERCURIAL_PKG)/usr/share/man ]; then \
+	  ( cd $(MERCURIAL_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 $(MERCURIAL_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/CONTRIBUTORS $(SRC_DIR)/COPYING \
+	       $(MERCURIAL_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(MERCURIAL_PKG)/usr/share/doc/$(src_dir_name)/html
+	@( cd $(SRC_DIR) ; \
+	   cp -a CONTRIBUTORS COPYING PKG-INFO README* \
+	         $(MERCURIAL_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR)/doc ; \
+	   cp -a *.{html,css} \
+	         $(MERCURIAL_PKG)/usr/share/doc/$(src_dir_name)/html \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(MERCURIAL_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MERCURIAL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(MERCURIAL_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 $@
+
+$(MERCURIAL_PKG_DESCRIPTION_FILE): $(MERCURIAL_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) $(MERCURIAL_PKG_DESCRIPTION_FILE) $(MERCURIAL_PKG_INSTALL_SCRIPT)
+	@cp $(MERCURIAL_PKG_DESCRIPTION_FILE) $(MERCURIAL_PKG)/.DESCRIPTION
+	@cp $(MERCURIAL_PKG_INSTALL_SCRIPT) $(MERCURIAL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MERCURIAL_PKG)/.REQUIRES
+	@echo "pkgname=$(MERCURIAL_PKG_NAME)"                            >  $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MERCURIAL_PKG_VERSION)"                          >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "arch=$(MERCURIAL_PKG_ARCH)"                               >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MERCURIAL_PKG_DISTRO_NAME)"                  >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MERCURIAL_PKG_DISTRO_VERSION)"                >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "group=$(MERCURIAL_PKG_GROUP)"                             >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MERCURIAL_PKG_SHORT_DESCRIPTION)\"" >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "url=$(MERCURIAL_PKG_URL)"                                 >> $(MERCURIAL_PKG)/.PKGINFO ; \
+	 echo "license=$(MERCURIAL_PKG_LICENSE)"                         >> $(MERCURIAL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(MERCURIAL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: mercurial/6.0.1/PATCHES
===================================================================
Index: mercurial/6.0.1/config/hgk.rc
===================================================================
--- mercurial/6.0.1/config/hgk.rc	(nonexistent)
+++ mercurial/6.0.1/config/hgk.rc	(revision 5)
@@ -0,0 +1,6 @@
+[extensions]
+# enable hgk extension ('hg help' shows 'view' as a command)
+hgk =
+[hgk]
+
+path=/usr/libexec/mercurial/hgk
Index: mercurial/6.0.1/config
===================================================================
--- mercurial/6.0.1/config	(nonexistent)
+++ mercurial/6.0.1/config	(revision 5)

Property changes on: mercurial/6.0.1/config
___________________________________________________________________
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: mercurial/6.0.1/mercurial-pkg-description.in
===================================================================
--- mercurial/6.0.1/mercurial-pkg-description.in	(nonexistent)
+++ mercurial/6.0.1/mercurial-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------------------------------------------------------|
+mercurial: mercurial @VERSION@ (a distributed source management system)
+mercurial:
+mercurial: Mercurial is a cross-platform, distributed source management tool
+mercurial: for software developers. It is written in Python, with a binary
+mercurial: diff implementation written in C. Its major features include high-
+mercurial: performance; serverless, fully distributed collaborative
+mercurial: development; robust handling of both plain text and binary files;
+mercurial: advanced branching and merging capabilities.
+mercurial:
+mercurial: Homepage: https://www.mercurial-scm.org
+mercurial:
Index: mercurial/6.0.1/mercurial-pkg-install.sh
===================================================================
--- mercurial/6.0.1/mercurial-pkg-install.sh	(nonexistent)
+++ mercurial/6.0.1/mercurial-pkg-install.sh	(revision 5)
@@ -0,0 +1,54 @@
+#!/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() {
+  install_file etc/mercurial/hgrc.d/hgk.rc.new
+  rm -f etc/mercurial/hgrc.d/hgk.rc.new
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: mercurial/6.0.1/mercurial-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: mercurial/6.0.1
===================================================================
--- mercurial/6.0.1	(nonexistent)
+++ mercurial/6.0.1	(revision 5)

Property changes on: mercurial/6.0.1
___________________________________________________________________
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: mercurial
===================================================================
--- mercurial	(nonexistent)
+++ mercurial	(revision 5)

Property changes on: mercurial
___________________________________________________________________
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: meson/0.61.0/Makefile
===================================================================
--- meson/0.61.0/Makefile	(nonexistent)
+++ meson/0.61.0/Makefile	(revision 5)
@@ -0,0 +1,204 @@
+
+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/meson
+
+REQUIRES           = dev/python3/3.10.8
+REQUIRES          += dev/ninja/1.10.2
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.61.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/meson/meson-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/meson-$(version)
+src_dir_name       = meson-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+MESON_PKG_NAME                = meson
+MESON_PKG_VERSION             = 0.61.0
+MESON_PKG_ARCH                = $(PKGARCH)
+MESON_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+MESON_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+MESON_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+MESON_PKG_SHORT_DESCRIPTION   = A high performance build system
+MESON_PKG_URL                 = $(BUG_URL)
+MESON_PKG_LICENSE             = Apache-v2.0
+MESON_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(MESON_PKG_NAME)-pkg-description
+MESON_PKG_DESCRIPTION_FILE_IN = $(MESON_PKG_NAME)-pkg-description.in
+MESON_PKG_INSTALL_SCRIPT      = $(MESON_PKG_NAME)-pkg-install.sh
+
+MESON_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(MESON_PKG_NAME)-package
+
+pkg_basename     = $(MESON_PKG_NAME)-$(MESON_PKG_VERSION)-$(MESON_PKG_ARCH)-$(MESON_PKG_DISTRO_NAME)-$(MESON_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=$(MESON_PKG)
+
+
+PYTHON3_VERSION = 3.10
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(PYTHON3) setup.py build ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(MESON_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(PYTHON3) setup.py install \
+	     --prefix=/usr \
+	     --install-lib=/usr/lib$(LIBSUFFIX)/python$(PYTHON3_VERSION)/site-packages \
+	     --root=$(MESON_PKG) ; \
+	 )
+	@( cd $(MESON_PKG)/usr/bin ; \
+	   sed -i 's,$(BUILDSYSTEM),,' meson ; \
+	 )
+	# ======= Install Documentation =======
+	@if [ -d $(MESON_PKG)/usr/share/man ]; then \
+	  ( cd $(MESON_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 $(MESON_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(MESON_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(MESON_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a CODEOWNERS COPYING README* \
+	         $(MESON_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(MESON_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(MESON_PKG))
+	@touch $@
+
+$(MESON_PKG_DESCRIPTION_FILE): $(MESON_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) $(MESON_PKG_DESCRIPTION_FILE) $(MESON_PKG_INSTALL_SCRIPT)
+	@cp $(MESON_PKG_DESCRIPTION_FILE) $(MESON_PKG)/.DESCRIPTION
+	@cp $(MESON_PKG_INSTALL_SCRIPT) $(MESON_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(MESON_PKG)/.REQUIRES
+	@echo "pkgname=$(MESON_PKG_NAME)"                            >  $(MESON_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(MESON_PKG_VERSION)"                          >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "arch=$(MESON_PKG_ARCH)"                               >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "distroname=$(MESON_PKG_DISTRO_NAME)"                  >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "distrover=$(MESON_PKG_DISTRO_VERSION)"                >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "group=$(MESON_PKG_GROUP)"                             >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(MESON_PKG_SHORT_DESCRIPTION)\"" >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "url=$(MESON_PKG_URL)"                                 >> $(MESON_PKG)/.PKGINFO ; \
+	 echo "license=$(MESON_PKG_LICENSE)"                         >> $(MESON_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(MESON_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: meson/0.61.0/PATCHES
===================================================================
--- meson/0.61.0/PATCHES	(nonexistent)
+++ meson/0.61.0/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/meson/patches/meson-0.61.0-gnome-module.patch -p0
Index: meson/0.61.0/meson-pkg-description.in
===================================================================
--- meson/0.61.0/meson-pkg-description.in	(nonexistent)
+++ meson/0.61.0/meson-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------------------------------------------------------|
+meson: meson @VERSION@ (A high performance build system)
+meson:
+meson: Meson is a cross-platform build system designed to be both as fast
+meson: and as user friendly as possible. It supports many languages and
+meson: compilers, including GCC and Clang. Its build definitions are
+meson: written in a simple non-turing complete domain specific language.
+meson:
+meson: Homepage: http://mesonbuild.com
+meson:
+meson:
+meson:
Index: meson/0.61.0/meson-pkg-install.sh
===================================================================
--- meson/0.61.0/meson-pkg-install.sh	(nonexistent)
+++ meson/0.61.0/meson-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: meson/0.61.0/meson-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: meson/0.61.0
===================================================================
--- meson/0.61.0	(nonexistent)
+++ meson/0.61.0	(revision 5)

Property changes on: meson/0.61.0
___________________________________________________________________
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: meson
===================================================================
--- meson	(nonexistent)
+++ meson	(revision 5)

Property changes on: meson
___________________________________________________________________
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: ninja/1.10.2/Makefile
===================================================================
--- ninja/1.10.2/Makefile	(nonexistent)
+++ ninja/1.10.2/Makefile	(revision 5)
@@ -0,0 +1,235 @@
+
+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/ninja
+
+REQUIRES           = libs/glibc/2.36
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.10.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/ninja/ninja-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ninja-$(version)
+src_dir_name       = ninja-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+NINJA_PKG_NAME                = ninja
+NINJA_PKG_VERSION             = 1.10.2
+NINJA_PKG_ARCH                = $(PKGARCH)
+NINJA_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+NINJA_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+NINJA_PKG_GROUP               = $(PKG_GROUP)
+###                            |---handy-ruler-------------------------------|
+NINJA_PKG_SHORT_DESCRIPTION   = build system with a focus on speed
+NINJA_PKG_URL                 = $(BUG_URL)
+NINJA_PKG_LICENSE             = Apache-v2.0
+NINJA_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(NINJA_PKG_NAME)-pkg-description
+NINJA_PKG_DESCRIPTION_FILE_IN = $(NINJA_PKG_NAME)-pkg-description.in
+NINJA_PKG_INSTALL_SCRIPT      = $(NINJA_PKG_NAME)-pkg-install.sh
+
+NINJA_PKG        = $(CURDIR)/$(TARGET_BUILD_DIR)/$(NINJA_PKG_NAME)-package
+
+pkg_basename     = $(NINJA_PKG_NAME)-$(NINJA_PKG_VERSION)-$(NINJA_PKG_ARCH)-$(NINJA_PKG_DISTRO_NAME)-$(NINJA_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=$(NINJA_PKG)
+
+
+configure_switches  = -DCMAKE_BUILD_TYPE='RelWithDebInfo'
+
+configure_switches += -DCMAKE_C_COMPILER='$(CROSS_PREFIX)gcc'
+configure_switches += -DCMAKE_CXX_COMPILER='$(CROSS_PREFIX)g++'
+configure_switches += -DCMAKE_LINKER='$(CROSS_PREFIX)ld'
+configure_switches += -DCMAKE_AR='$(CROSS_PREFIX)ar'
+configure_switches += -DCMAKE_NM='$(CROSS_PREFIX)nm'
+configure_switches += -DCMAKE_RANLIB='$(CROSS_PREFIX)ranlib'
+configure_switches += -DCMAKE_OBJCOPY='$(CROSS_PREFIX)objcopy'
+configure_switches += -DCMAKE_OBJDUMP='$(CROSS_PREFIX)objdump'
+configure_switches += -DCMAKE_STRIP='$(CROSS_PREFIX)strip'
+
+configure_switches += -DCMAKE_C_FLAGS='--sysroot=$(TARGET_DEST_DIR) $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS)'
+configure_switches += -DCMAKE_CXX_FLAGS='--sysroot=$(TARGET_DEST_DIR) $(CFLAGS) $(ARCH_FLAGS) $(ARCH_DEFS) $(HW_FLAGS)'
+
+configure_switches += -DCMAKE_EXE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)'
+configure_switches += -DCMAKE_MODULE_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)'
+configure_switches += -DCMAKE_SHARED_LINKER_FLAGS='--sysroot=$(TARGET_DEST_DIR) -L$(TARGET_DEST_DIR)/lib$(LIBSUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)'
+
+ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
+configure_switches += -DCMAKE_C_FLAGS_RELEASE='-O2 -DNDEBUG'
+configure_switches += -DCMAKE_CXX_FLAGS_RELEASE='-O2 -DNDEBUG'
+configure_switches += -DCMAKE_ASM_FLAGS_RELEASE='-O2 -DNDEBUG'
+endif
+
+configure_switches += -DCMAKE_INSTALL_PREFIX=/usr
+
+configure_switches += -DBUILD_TESTING=no
+configure_switches += -DRE2C=$(shell which re2c)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) cmake $(configure_switches) ../$(src_dir_name) ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(NINJA_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(SRC_DIR) ; \
+	   install -D -m0644 misc/bash-completion $(NINJA_PKG)/usr/share/bash-completion/completions/ninja ; \
+	   install -D -m0644 misc/zsh-completion  $(NINJA_PKG)/usr/share/zsh/site-functions/_ninja         ; \
+	   install -D -m0644 misc/ninja.vim       $(NINJA_PKG)/usr/share/vim/vimfiles/syntax/ninja.vim     ; \
+	   install -D -m0644 misc/ninja-mode.el   $(NINJA_PKG)/usr/share/emacs/site-lisp/ninja-mode.el     ; \
+	 )
+	# ======= Install Documentation =======
+	@if [ -d $(NINJA_PKG)/usr/share/man ]; then \
+	  ( cd $(NINJA_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 $(NINJA_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(NINJA_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(NINJA_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING README* RELEASING \
+	         $(NINJA_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(NINJA_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(NINJA_PKG))
+	# ======= Strip binaries =======
+	@( cd $(NINJA_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(NINJA_PKG_DESCRIPTION_FILE): $(NINJA_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) $(NINJA_PKG_DESCRIPTION_FILE) $(NINJA_PKG_INSTALL_SCRIPT)
+	@cp $(NINJA_PKG_DESCRIPTION_FILE) $(NINJA_PKG)/.DESCRIPTION
+	@cp $(NINJA_PKG_INSTALL_SCRIPT) $(NINJA_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(NINJA_PKG)/.REQUIRES
+	@echo "pkgname=$(NINJA_PKG_NAME)"                            >  $(NINJA_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(NINJA_PKG_VERSION)"                          >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "arch=$(NINJA_PKG_ARCH)"                               >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "distroname=$(NINJA_PKG_DISTRO_NAME)"                  >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "distrover=$(NINJA_PKG_DISTRO_VERSION)"                >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "group=$(NINJA_PKG_GROUP)"                             >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(NINJA_PKG_SHORT_DESCRIPTION)\"" >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "url=$(NINJA_PKG_URL)"                                 >> $(NINJA_PKG)/.PKGINFO ; \
+	 echo "license=$(NINJA_PKG_LICENSE)"                         >> $(NINJA_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(NINJA_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: ninja/1.10.2/PATCHES
===================================================================
--- ninja/1.10.2/PATCHES	(nonexistent)
+++ ninja/1.10.2/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+#../../../sources/packages/d/ninja/patches/ninja-1.10.2-Kitware.patch      -p0
+../../../sources/packages/d/ninja/patches/ninja-1.10.2-no-check-lto.patch -p0
Index: ninja/1.10.2/ninja-pkg-description.in
===================================================================
--- ninja/1.10.2/ninja-pkg-description.in	(nonexistent)
+++ ninja/1.10.2/ninja-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------------------------------------------------------|
+ninja: ninja @VERSION@ (build system with a focus on speed)
+ninja:
+ninja: Ninja is a small build system with a focus on speed. It differs
+ninja: from other build systems in two major respects: it is designed
+ninja: to have its input files generated by a higher-level build system,
+ninja: and it is designed to run builds as fast as possible.
+ninja:
+ninja: ninja home: https://ninja-build.org/
+ninja:    Kitware: https://github.com/Kitware/ninja/
+ninja:
+ninja:
Index: ninja/1.10.2/ninja-pkg-install.sh
===================================================================
--- ninja/1.10.2/ninja-pkg-install.sh	(nonexistent)
+++ ninja/1.10.2/ninja-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: ninja/1.10.2/ninja-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ninja/1.10.2
===================================================================
--- ninja/1.10.2	(nonexistent)
+++ ninja/1.10.2	(revision 5)

Property changes on: ninja/1.10.2
___________________________________________________________________
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: ninja
===================================================================
--- ninja	(nonexistent)
+++ ninja	(revision 5)

Property changes on: ninja
___________________________________________________________________
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: orc/0.4.33.1/Makefile
===================================================================
--- orc/0.4.33.1/Makefile	(nonexistent)
+++ orc/0.4.33.1/Makefile	(revision 5)
@@ -0,0 +1,339 @@
+
+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/orc
+
+ifeq ($(__USE_BUILT_GCC_LIBS__),yes)
+REQUIRES           = dev/gcc/12.2.0
+else
+REQUIRES           = libs/glibc/2.36
+endif
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.4.33.1
+short_version      = $(shell echo $(version) | cut -f 1,2 -d '.' )
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/orc/orc-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/orc-$(version)
+src_dir_name       = orc-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+cross_file         = $(TARGET_BUILD_DIR)/$(TARGET)-cross
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+ORC_PKG_NAME                = orc
+ORC_PKG_VERSION             = 0.4.33.1
+ORC_PKG_ARCH                = $(PKGARCH)
+ORC_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+ORC_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+ORC_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+ORC_PKG_SHORT_DESCRIPTION   = Optimized Inner Loop Runtime Compiler
+ORC_PKG_URL                 = $(BUG_URL)
+ORC_PKG_LICENSE             = custom
+ORC_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(ORC_PKG_NAME)-pkg-description
+ORC_PKG_DESCRIPTION_FILE_IN = $(ORC_PKG_NAME)-pkg-description.in
+ORC_PKG_INSTALL_SCRIPT      = $(ORC_PKG_NAME)-pkg-install.sh
+
+ORC_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(ORC_PKG_NAME)-package
+
+pkg_basename     = $(ORC_PKG_NAME)-$(ORC_PKG_VERSION)-$(ORC_PKG_ARCH)-$(ORC_PKG_DISTRO_NAME)-$(ORC_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+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=$(ORC_PKG)
+
+
+ENABLE_GTK_DOCUMENTATION  = yes
+ENABLE_ORC_TEST_LIBRARY   = yes
+
+
+#
+# https://mesonbuild.com/Reference-tables.html :
+# =============================================
+#
+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)),)
+cpu_name = arm
+endian   = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)     $(TOOLCHAIN_RK33XX_GLIBC) \
+                             $(TOOLCHAIN_RK339X_GLIBC) $(TOOLCHAIN_S9XX_GLIBC)   \
+                             $(TOOLCHAIN_A311X_GLIBC)  $(TOOLCHAIN_M1000_GLIBC)),)
+cpu_name = aarch64
+endian   = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC) $(TOOLCHAIN_P5600_GLIBC)),)
+cpu_name = mips
+endian   = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+cpu_name = ppc64
+endian   = big
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+cpu_name = ppc64
+endian   = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+cpu_name = riscv64
+endian   = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+cpu_name = x86
+endian   = little
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+cpu_name = x86_64
+endian   = little
+endif
+
+ifeq ($(ENABLE_GTK_DOCUMENTATION),yes)
+extra_configure_switches += -Dgtk_doc=enabled
+else
+extra_configure_switches += -Dgtk_doc=disabled
+endif
+
+ifeq ($(ENABLE_ORC_TEST_LIBRARY),yes)
+extra_configure_switches += -Dorc-test=enabled
+else
+extra_configure_switches += -Dorc-test=disabled
+endif
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --default-library=both
+else
+extra_configure_switches += --default-library=shared
+endif
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@echo ""                                            >  $(cross_file)
+	@echo "[build_machine]"                             >> $(cross_file)
+	@echo "system = '$(shell uname -s | tr 'L' 'l')'"   >> $(cross_file)
+	@echo "cpu_family = '$(shell uname -m)'"            >> $(cross_file)
+	@echo "cpu = '$(shell uname -m)'"                   >> $(cross_file)
+	@echo "endian = '$(shell lscpu | grep Endian | tr -s ' ' | cut -f3 -d' ' | tr 'L' 'l')'" >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[host_machine]"                              >> $(cross_file)
+	@echo "system = 'linux'"                            >> $(cross_file)
+	@echo "cpu_family = '$(cpu_name)'"                  >> $(cross_file)
+	@echo "cpu = '$(cpu_name)'"                         >> $(cross_file)
+	@echo "endian = '$(endian)'"                        >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[target_machine]"                            >> $(cross_file)
+	@echo "system = 'linux'"                            >> $(cross_file)
+	@echo "cpu_family = '$(cpu_name)'"                  >> $(cross_file)
+	@echo "cpu = '$(cpu_name)'"                         >> $(cross_file)
+	@echo "endian = '$(endian)'"                        >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[properties]"                                >> $(cross_file)
+	@echo "sys_root = '$(TARGET_DEST_DIR)'"             >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[binaries]"                                  >> $(cross_file)
+	@echo "c = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc'"   >> $(cross_file)
+	@echo "cpp = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-g++'" >> $(cross_file)
+	@echo "ar = '$(AR)'"                                >> $(cross_file)
+	@echo "strip = '$(STRIP)'"                          >> $(cross_file)
+	@echo "pkgconfig = 'pkg-config'"                    >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@PKG_CONFIG_PATH= \
+	   meson setup \
+	    --prefix=/usr \
+	    --libdir=lib$(LIBSUFFIX) \
+	    --libexecdir=/usr/libexec \
+	    --bindir=/usr/bin \
+	    --sbindir=/usr/sbin \
+	    --includedir=/usr/include \
+	    --datadir=/usr/share \
+	    --mandir=/usr/share/man \
+	    --sysconfdir=/etc \
+	    --localstatedir=/var \
+	    --buildtype=release    \
+	    -Dc_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`"         \
+	    -Dc_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)" | tr -s ' '`"   \
+	    -Dcpp_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`"       \
+	    -Dcpp_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)" | tr -s ' '`" \
+	    -Dtests=disabled            \
+	    $(extra_configure_switches) \
+	    --cross-file=$(cross_file) $(SRC_DIR) $(build_dir)
+	@cd $(build_dir) && ninja -v
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(ORC_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@if [ -d $(ORC_PKG)/usr/share/man ]; then \
+	  ( cd $(ORC_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 $(ORC_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/COPYING \
+	       $(ORC_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(ORC_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a COPYING README RELEASE ROADMAP TODO \
+	         $(ORC_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+ifeq ($(ENABLE_GTK_DOCUMENTATION),yes)
+	@( cd $(ORC_PKG)/usr/share/doc/$(src_dir_name) ; \
+	   ln -sf ../../gtk-doc/html/orc html ; \
+	 )
+endif
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(ORC_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(ORC_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" orc-$(short_version).pc ; \
+	 )
+ifeq ($(ENABLE_ORC_TEST_LIBRARY),yes)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" orc-test-$(short_version).pc ; \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(ORC_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(ORC_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(ORC_PKG_DESCRIPTION_FILE): $(ORC_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) $(ORC_PKG_DESCRIPTION_FILE) $(ORC_PKG_INSTALL_SCRIPT)
+	@cp $(ORC_PKG_DESCRIPTION_FILE) $(ORC_PKG)/.DESCRIPTION
+	@cp $(ORC_PKG_INSTALL_SCRIPT) $(ORC_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(ORC_PKG)/.REQUIRES
+	@echo "pkgname=$(ORC_PKG_NAME)"                            >  $(ORC_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(ORC_PKG_VERSION)"                          >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "arch=$(ORC_PKG_ARCH)"                               >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "distroname=$(ORC_PKG_DISTRO_NAME)"                  >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "distrover=$(ORC_PKG_DISTRO_VERSION)"                >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "group=$(ORC_PKG_GROUP)"                             >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(ORC_PKG_SHORT_DESCRIPTION)\"" >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "url=$(ORC_PKG_URL)"                                 >> $(ORC_PKG)/.PKGINFO ; \
+	 echo "license=$(ORC_PKG_LICENSE)"                         >> $(ORC_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(ORC_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: orc/0.4.33.1/PATCHES
===================================================================
Index: orc/0.4.33.1/orc-pkg-description.in
===================================================================
--- orc/0.4.33.1/orc-pkg-description.in	(nonexistent)
+++ orc/0.4.33.1/orc-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------------------------------------------------------|
+orc: orc @VERSION@ (Optimized Inner Loop Runtime Compiler)
+orc:
+orc: Orc is a library and set of tools for compiling and executing
+orc: very simple programs that operate on arrays of data. The "language"
+orc: is a generic assembly language that represents many of the features
+orc: available in SIMD architectures, including saturated addition and
+orc: subtraction, and many arithmetic operations.
+orc:
+orc: Cgit: https://cgit.freedesktop.org/gstreamer/orc
+orc:
+orc:
Index: orc/0.4.33.1/orc-pkg-install.sh
===================================================================
--- orc/0.4.33.1/orc-pkg-install.sh	(nonexistent)
+++ orc/0.4.33.1/orc-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: orc/0.4.33.1/orc-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: orc/0.4.33.1
===================================================================
--- orc/0.4.33.1	(nonexistent)
+++ orc/0.4.33.1	(revision 5)

Property changes on: orc/0.4.33.1
___________________________________________________________________
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: orc/0.4.33.1-ppc32/Makefile
===================================================================
--- orc/0.4.33.1-ppc32/Makefile	(nonexistent)
+++ orc/0.4.33.1-ppc32/Makefile	(revision 5)
@@ -0,0 +1,227 @@
+
+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/orc
+
+REQUIRES           = dev/orc/0.4.33.1
+REQUIRES          += libs/glibc/2.36-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.4.33.1
+short_version      = $(shell echo $(version) | cut -f 1,2 -d '.' )
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/orc/orc-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/orc-$(version)
+src_dir_name       = orc-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+cross_file         = $(TARGET_BUILD_DIR)/$(TARGET32)-cross
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+ORC_32_PKG_NAME                = orc-x32
+ORC_32_PKG_VERSION             = 0.4.33.1
+ORC_32_PKG_ARCH                = $(PKGARCH)
+ORC_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+ORC_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+ORC_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+ORC_32_PKG_SHORT_DESCRIPTION   = Optimized Inner Loop Runtime Compiler
+ORC_32_PKG_URL                 = $(BUG_URL)
+ORC_32_PKG_LICENSE             = custom
+ORC_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(ORC_32_PKG_NAME)-pkg-description
+ORC_32_PKG_DESCRIPTION_FILE_IN = $(ORC_32_PKG_NAME)-pkg-description.in
+ORC_32_PKG_INSTALL_SCRIPT      = $(ORC_32_PKG_NAME)-pkg-install.sh
+
+ORC_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(ORC_32_PKG_NAME)-package
+
+pkg_basename     = $(ORC_32_PKG_NAME)-$(ORC_32_PKG_VERSION)-$(ORC_32_PKG_ARCH)-$(ORC_32_PKG_DISTRO_NAME)-$(ORC_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+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=$(ORC_32_PKG)
+
+
+ENABLE_GTK_DOCUMENTATION  = no
+ENABLE_ORC_TEST_LIBRARY   = yes
+
+
+cpu_name = ppc
+endian   = big
+
+
+ifeq ($(ENABLE_GTK_DOCUMENTATION),yes)
+extra_configure_switches += -Dgtk_doc=enabled
+else
+extra_configure_switches += -Dgtk_doc=disabled
+endif
+
+ifeq ($(ENABLE_ORC_TEST_LIBRARY),yes)
+extra_configure_switches += -Dorc-test=enabled
+else
+extra_configure_switches += -Dorc-test=disabled
+endif
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --default-library=both
+else
+extra_configure_switches += --default-library=shared
+endif
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@echo ""                                            >  $(cross_file)
+	@echo "[build_machine]"                             >> $(cross_file)
+	@echo "system = '$(shell uname -s | tr 'L' 'l')'"   >> $(cross_file)
+	@echo "cpu_family = '$(shell uname -m)'"            >> $(cross_file)
+	@echo "cpu = '$(shell uname -m)'"                   >> $(cross_file)
+	@echo "endian = '$(shell lscpu | grep Endian | tr -s ' ' | cut -f3 -d' ' | tr 'L' 'l')'" >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[host_machine]"                              >> $(cross_file)
+	@echo "system = 'linux'"                            >> $(cross_file)
+	@echo "cpu_family = '$(cpu_name)'"                  >> $(cross_file)
+	@echo "cpu = '$(cpu_name)'"                         >> $(cross_file)
+	@echo "endian = '$(endian)'"                        >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[target_machine]"                            >> $(cross_file)
+	@echo "system = 'linux'"                            >> $(cross_file)
+	@echo "cpu_family = '$(cpu_name)'"                  >> $(cross_file)
+	@echo "cpu = '$(cpu_name)'"                         >> $(cross_file)
+	@echo "endian = '$(endian)'"                        >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[properties]"                                >> $(cross_file)
+	@echo "sys_root = '$(TARGET_DEST_DIR)'"             >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[binaries]"                                  >> $(cross_file)
+	@echo "c = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc'"   >> $(cross_file)
+	@echo "cpp = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-g++'" >> $(cross_file)
+	@echo "ar = '$(AR)'"                                >> $(cross_file)
+	@echo "strip = '$(STRIP)'"                          >> $(cross_file)
+	@echo "pkgconfig = 'pkg-config'"                    >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@PKG_CONFIG_PATH= \
+	   meson setup \
+	    --prefix=/usr \
+	    --libdir=lib$(MULTILIB_PPC32_SUFFIX) \
+	    --libexecdir=/usr/libexec \
+	    --bindir=/usr/bin/32 \
+	    --sbindir=/usr/sbin \
+	    --includedir=/usr/include \
+	    --datadir=/usr/share \
+	    --mandir=/usr/share/man \
+	    --sysconfdir=/etc \
+	    --localstatedir=/var \
+	    --buildtype=release    \
+	    -Dc_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`"              \
+	    -Dc_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) -m32 $(LDFLAGS)" | tr -s ' '`"   \
+	    -Dcpp_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`"            \
+	    -Dcpp_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) -m32 $(LDFLAGS)" | tr -s ' '`" \
+	    -Dtests=disabled            \
+	    $(extra_configure_switches) \
+	    --cross-file=$(cross_file) $(SRC_DIR) $(build_dir)
+	@cd $(build_dir) && ninja -v
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(ORC_32_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@rm -rf $(ORC_32_PKG)/usr/include
+	@rm -rf $(ORC_32_PKG)/usr/share
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(ORC_32_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" orc-$(short_version).pc ; \
+	 )
+ifeq ($(ENABLE_ORC_TEST_LIBRARY),yes)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" orc-test-$(short_version).pc ; \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(ORC_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(ORC_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(ORC_32_PKG_DESCRIPTION_FILE): $(ORC_32_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) $(ORC_32_PKG_DESCRIPTION_FILE) $(ORC_32_PKG_INSTALL_SCRIPT)
+	@cp $(ORC_32_PKG_DESCRIPTION_FILE) $(ORC_32_PKG)/.DESCRIPTION
+	@cp $(ORC_32_PKG_INSTALL_SCRIPT) $(ORC_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(ORC_32_PKG)/.REQUIRES
+	@echo "pkgname=$(ORC_32_PKG_NAME)"                            >  $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(ORC_32_PKG_VERSION)"                          >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(ORC_32_PKG_ARCH)"                               >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(ORC_32_PKG_DISTRO_NAME)"                  >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(ORC_32_PKG_DISTRO_VERSION)"                >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "group=$(ORC_32_PKG_GROUP)"                             >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(ORC_32_PKG_SHORT_DESCRIPTION)\"" >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "url=$(ORC_32_PKG_URL)"                                 >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "license=$(ORC_32_PKG_LICENSE)"                         >> $(ORC_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(ORC_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: orc/0.4.33.1-ppc32/PATCHES
===================================================================
Index: orc/0.4.33.1-ppc32/orc-x32-pkg-description.in
===================================================================
--- orc/0.4.33.1-ppc32/orc-x32-pkg-description.in	(nonexistent)
+++ orc/0.4.33.1-ppc32/orc-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------------------------------------------------------|
+orc-x32: orc-x32 @VERSION@ (Optimized Inner Loop Runtime Compiler)
+orc-x32:
+orc-x32: Orc is a library and set of tools for compiling and executing
+orc-x32: very simple programs that operate on arrays of data. The "language"
+orc-x32: is a generic assembly language that represents many of the features
+orc-x32: available in SIMD architectures, including saturated addition and
+orc-x32: subtraction, and many arithmetic operations.
+orc-x32:
+orc-x32: Cgit: https://cgit.freedesktop.org/gstreamer/orc
+orc-x32:
+orc-x32:
Index: orc/0.4.33.1-ppc32/orc-x32-pkg-install.sh
===================================================================
--- orc/0.4.33.1-ppc32/orc-x32-pkg-install.sh	(nonexistent)
+++ orc/0.4.33.1-ppc32/orc-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: orc/0.4.33.1-ppc32/orc-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: orc/0.4.33.1-ppc32
===================================================================
--- orc/0.4.33.1-ppc32	(nonexistent)
+++ orc/0.4.33.1-ppc32	(revision 5)

Property changes on: orc/0.4.33.1-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: orc/0.4.33.1-x86_32/Makefile
===================================================================
--- orc/0.4.33.1-x86_32/Makefile	(nonexistent)
+++ orc/0.4.33.1-x86_32/Makefile	(revision 5)
@@ -0,0 +1,224 @@
+
+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/orc
+
+REQUIRES           = dev/orc/0.4.33.1
+REQUIRES          += libs/glibc/2.36-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.4.33.1
+short_version      = $(shell echo $(version) | cut -f 1,2 -d '.' )
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/orc/orc-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/orc-$(version)
+src_dir_name       = orc-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+cross_file         = $(TARGET_BUILD_DIR)/$(TARGET32)-cross
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+ORC_32_PKG_NAME                = orc-x32
+ORC_32_PKG_VERSION             = 0.4.33.1
+ORC_32_PKG_ARCH                = $(PKGARCH)
+ORC_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+ORC_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+ORC_32_PKG_GROUP               = $(PKG_GROUP)
+###                             |---handy-ruler-------------------------------|
+ORC_32_PKG_SHORT_DESCRIPTION   = Optimized Inner Loop Runtime Compiler
+ORC_32_PKG_URL                 = $(BUG_URL)
+ORC_32_PKG_LICENSE             = custom
+ORC_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(ORC_32_PKG_NAME)-pkg-description
+ORC_32_PKG_DESCRIPTION_FILE_IN = $(ORC_32_PKG_NAME)-pkg-description.in
+ORC_32_PKG_INSTALL_SCRIPT      = $(ORC_32_PKG_NAME)-pkg-install.sh
+
+ORC_32_PKG       = $(CURDIR)/$(TARGET_BUILD_DIR)/$(ORC_32_PKG_NAME)-package
+
+pkg_basename     = $(ORC_32_PKG_NAME)-$(ORC_32_PKG_VERSION)-$(ORC_32_PKG_ARCH)-$(ORC_32_PKG_DISTRO_NAME)-$(ORC_32_PKG_DISTRO_VERSION)
+
+pkg_archive      = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+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=$(ORC_32_PKG)
+
+
+ENABLE_GTK_DOCUMENTATION  = no
+ENABLE_ORC_TEST_LIBRARY   = yes
+
+
+cpu_name = x86
+endian   = little
+
+
+ifeq ($(ENABLE_GTK_DOCUMENTATION),yes)
+extra_configure_switches += -Dgtk_doc=enabled
+else
+extra_configure_switches += -Dgtk_doc=disabled
+endif
+
+ifeq ($(ENABLE_ORC_TEST_LIBRARY),yes)
+extra_configure_switches += -Dorc-test=enabled
+else
+extra_configure_switches += -Dorc-test=disabled
+endif
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --default-library=both
+else
+extra_configure_switches += --default-library=shared
+endif
+
+
+TARGET_LIB_RPATH = /lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+
+LDFLAGS += -Wl,-rpath,$(TARGET_LIB_RPATH)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@echo ""                                            >  $(cross_file)
+	@echo "[build_machine]"                             >> $(cross_file)
+	@echo "system = '$(shell uname -s | tr 'L' 'l')'"   >> $(cross_file)
+	@echo "cpu_family = '$(shell uname -m)'"            >> $(cross_file)
+	@echo "cpu = '$(shell uname -m)'"                   >> $(cross_file)
+	@echo "endian = '$(shell lscpu | grep Endian | tr -s ' ' | cut -f3 -d' ' | tr 'L' 'l')'" >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[host_machine]"                              >> $(cross_file)
+	@echo "system = 'linux'"                            >> $(cross_file)
+	@echo "cpu_family = '$(cpu_name)'"                  >> $(cross_file)
+	@echo "cpu = '$(cpu_name)'"                         >> $(cross_file)
+	@echo "endian = '$(endian)'"                        >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[target_machine]"                            >> $(cross_file)
+	@echo "system = 'linux'"                            >> $(cross_file)
+	@echo "cpu_family = '$(cpu_name)'"                  >> $(cross_file)
+	@echo "cpu = '$(cpu_name)'"                         >> $(cross_file)
+	@echo "endian = '$(endian)'"                        >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[properties]"                                >> $(cross_file)
+	@echo "sys_root = '$(TARGET_DEST_DIR)'"             >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@echo "[binaries]"                                  >> $(cross_file)
+	@echo "c = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc'"   >> $(cross_file)
+	@echo "cpp = '$(TOOLCHAIN_PATH)/bin/$(TARGET)-g++'" >> $(cross_file)
+	@echo "ar = '$(AR)'"                                >> $(cross_file)
+	@echo "strip = '$(STRIP)'"                          >> $(cross_file)
+	@echo "pkgconfig = 'pkg-config'"                    >> $(cross_file)
+	@echo ""                                            >> $(cross_file)
+	@PKG_CONFIG_PATH= \
+	   meson setup \
+	    --prefix=/usr \
+	    --libdir=lib$(MULTILIB_X86_32_SUFFIX) \
+	    --libexecdir=/usr/libexec \
+	    --bindir=/usr/bin/32 \
+	    --sbindir=/usr/sbin \
+	    --includedir=/usr/include \
+	    --datadir=/usr/share \
+	    --mandir=/usr/share/man \
+	    --sysconfdir=/etc \
+	    --localstatedir=/var \
+	    --buildtype=release    \
+	    -Dc_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`"              \
+	    -Dc_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) -m32 $(LDFLAGS)" | tr -s ' '`"   \
+	    -Dcpp_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)" | tr -s ' '`"            \
+	    -Dcpp_link_args="`echo -n "--sysroot=$(TARGET_DEST_DIR) -m32 $(LDFLAGS)" | tr -s ' '`" \
+	    -Dtests=disabled            \
+	    $(extra_configure_switches) \
+	    --cross-file=$(cross_file) $(SRC_DIR) $(build_dir)
+	@cd $(build_dir) && ninja -v
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(ORC_32_PKG)
+	@cd $(build_dir) && $(env_sysroot) ninja install
+	@rm -rf $(ORC_32_PKG)/usr/include
+	@rm -rf $(ORC_32_PKG)/usr/share
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(ORC_32_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" orc-$(short_version).pc ; \
+	 )
+ifeq ($(ENABLE_ORC_TEST_LIBRARY),yes)
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" orc-test-$(short_version).pc ; \
+	 )
+endif
+	# ======= Strip binaries =======
+	@( cd $(ORC_32_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(ORC_32_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+	@touch $@
+
+$(ORC_32_PKG_DESCRIPTION_FILE): $(ORC_32_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) $(ORC_32_PKG_DESCRIPTION_FILE) $(ORC_32_PKG_INSTALL_SCRIPT)
+	@cp $(ORC_32_PKG_DESCRIPTION_FILE) $(ORC_32_PKG)/.DESCRIPTION
+	@cp $(ORC_32_PKG_INSTALL_SCRIPT) $(ORC_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(ORC_32_PKG)/.REQUIRES
+	@echo "pkgname=$(ORC_32_PKG_NAME)"                            >  $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(ORC_32_PKG_VERSION)"                          >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(ORC_32_PKG_ARCH)"                               >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(ORC_32_PKG_DISTRO_NAME)"                  >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(ORC_32_PKG_DISTRO_VERSION)"                >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "group=$(ORC_32_PKG_GROUP)"                             >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(ORC_32_PKG_SHORT_DESCRIPTION)\"" >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "url=$(ORC_32_PKG_URL)"                                 >> $(ORC_32_PKG)/.PKGINFO ; \
+	 echo "license=$(ORC_32_PKG_LICENSE)"                         >> $(ORC_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(ORC_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: orc/0.4.33.1-x86_32/PATCHES
===================================================================
Index: orc/0.4.33.1-x86_32/orc-x32-pkg-description.in
===================================================================
--- orc/0.4.33.1-x86_32/orc-x32-pkg-description.in	(nonexistent)
+++ orc/0.4.33.1-x86_32/orc-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------------------------------------------------------|
+orc-x32: orc-x32 @VERSION@ (Optimized Inner Loop Runtime Compiler)
+orc-x32:
+orc-x32: Orc is a library and set of tools for compiling and executing
+orc-x32: very simple programs that operate on arrays of data. The "language"
+orc-x32: is a generic assembly language that represents many of the features
+orc-x32: available in SIMD architectures, including saturated addition and
+orc-x32: subtraction, and many arithmetic operations.
+orc-x32:
+orc-x32: Cgit: https://cgit.freedesktop.org/gstreamer/orc
+orc-x32:
+orc-x32:
Index: orc/0.4.33.1-x86_32/orc-x32-pkg-install.sh
===================================================================
--- orc/0.4.33.1-x86_32/orc-x32-pkg-install.sh	(nonexistent)
+++ orc/0.4.33.1-x86_32/orc-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: orc/0.4.33.1-x86_32/orc-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: orc/0.4.33.1-x86_32
===================================================================
--- orc/0.4.33.1-x86_32	(nonexistent)
+++ orc/0.4.33.1-x86_32	(revision 5)

Property changes on: orc/0.4.33.1-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: orc
===================================================================
--- orc	(nonexistent)
+++ orc	(revision 5)

Property changes on: orc
___________________________________________________________________
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: perl/5.36.0/Makefile
===================================================================
--- perl/5.36.0/Makefile	(nonexistent)
+++ perl/5.36.0/Makefile	(revision 5)
@@ -0,0 +1,353 @@
+
+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/perl
+SOURCE_REQUIRES   += sources/packages/d/perl-cross/1.4
+
+REQUIRES           = libs/gdbm/1.23
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.36.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl/perl-$(version).tar.xz
+cross_xz_archive   = $(SRC_PACKAGE_PATH)/packages/d/perl-cross/1.4/perl-cross-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/perl-$(version)
+src_dir_name       = perl-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+profile_dir        = $(CURDIR)/profile.d
+
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+NO_CCACHE = 1
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl
+PERL_PKG_VERSION             = 5.36.0
+PERL_PKG_ARCH                = $(PKGARCH)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Practical Extraction and Report Language
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(PERL_PKG_NAME)-pkg-install.sh
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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
+
+
+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)),)
+ARCH = arm
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)     $(TOOLCHAIN_RK33XX_GLIBC) \
+                             $(TOOLCHAIN_RK339X_GLIBC) $(TOOLCHAIN_S9XX_GLIBC)   \
+                             $(TOOLCHAIN_A311X_GLIBC)  $(TOOLCHAIN_M1000_GLIBC)),)
+ARCH = aarch64
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
+ARCH = mips32r2
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
+ARCH = mips32r5
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+ARCH = ppc64
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+ARCH = ppc64le
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
+ARCH = riscv64
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC) $(TOOLCHAIN_I686_GLIBC)),)
+ARCH = x86_32
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
+ARCH = x86_64
+endif
+
+
+env_sysroot = DESTDIR=$(PERL_PKG)
+
+
+ARCHNAME    = $(ARCH)-linux
+
+OPTIMIZATION_FLAGS += -fPIC
+#
+# If after all this time you still don't trust threads, comment out the variable below:
+#
+USE_THREADS = -Dusethreads -Duseithreads
+
+suppress_warnings = -Wno-attributes -Wno-unused-function
+
+extra_configure_switches += --mode=cross
+extra_configure_switches += --sysroot=$(TARGET_DEST_DIR)
+extra_configure_switches += --target-tools-prefix=$(CROSS_PREFIX)
+extra_configure_switches += -Accflags='-I$(TARGET_DEST_DIR)/usr/include $(suppress_warnings)'
+
+extra_configure_switches += -Dinstallstyle='lib$(LIBSUFFIX)/perl5'
+
+extra_configure_switches += -Darchname='$(ARCHNAME)'
+extra_configure_switches += -Dinstallprefix='/usr'
+extra_configure_switches += -Dlibpth='/usr/lib$(LIBSUFFIX) /lib$(LIBSUFFIX)'
+extra_configure_switches += -Dloclibpth='/usr/lib$(LIBSUFFIX)'
+extra_configure_switches += -Dlocincpth='/usr/include'
+
+extra_configure_switches += -Doptimize='$(OPTIMIZATION_FLAGS)'
+extra_configure_switches += $(USE_THREADS)
+
+extra_configure_switches += -Dprefix='/usr'
+extra_configure_switches += -Dbin='/usr/bin'
+extra_configure_switches += -Dscriptdir='/usr/bin'
+
+extra_configure_switches += -Darchlib='/usr/lib$(LIBSUFFIX)/perl5'
+extra_configure_switches += -Dprivlib='/usr/share/perl5'
+
+extra_configure_switches += -Dsiteprefix='/usr'
+extra_configure_switches += -Dsitebin='/usr/bin'
+extra_configure_switches += -Dsitescript='/usr/bin'
+extra_configure_switches += -Dsitearch='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+extra_configure_switches += -Dsitelib='/usr/share/perl5/site_perl'
+
+extra_configure_switches += -Dvendorprefix='/usr'
+extra_configure_switches += -Dvendorbin='/usr/bin'
+extra_configure_switches += -Dvendorscript='/usr/bin'
+extra_configure_switches += -Dvendorarch='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+extra_configure_switches += -Dvendorlib='/usr/share/perl5/vendor_perl'
+
+extra_configure_switches += -Dcccdlflags='-fPIC'
+extra_configure_switches += -Duseshrplib
+extra_configure_switches += -Dlibperl='libperl.so'
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)   $(TOOLCHAIN_POWER9_GLIBC)   \
+                             $(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC) \
+                             $(TOOLCHAIN_X86_64_GLIBC)),)
+extra_configure_switches += -Duselargefiles -Duse64bitall
+endif
+extra_configure_switches += -Ubincompat5005
+extra_configure_switches += -Uversiononly
+
+extra_configure_switches += -Dpager='/usr/bin/less -isr'
+
+extra_configure_switches += -Dhtml1dir=/usr/share/doc/perl-$(version)/html
+extra_configure_switches += -Dhtml3dir=/usr/share/doc/perl-$(version)/html
+extra_configure_switches += -Dman1dir=/usr/share/man/man1
+extra_configure_switches += -Dman3dir=/usr/share/man/man3
+
+#
+# GCC FOR BUILD Configuration:
+#
+extra_configure_switches += -Dhostlibs='-lm -lcrypt -lpthread -ldl'
+
+extra_host_environment  = HOSTCC=gcc
+extra_host_environment += HOSTCFLAGS='-DMULTIARCH -Wno-attributes'
+extra_host_environment += HOSTLDFLAGS=-L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	@tar xJf $(cross_xz_archive) -C $(TARGET_BUILD_DIR)
+	$(APPLY_PATCHES)
+	@cd $(SRC_DIR) && echo "installstyle='lib$(LIBSUFFIX)/perl5'" >> cnf/hints/linux
+	# ======= Fix symbolic links to cross patches =======
+	@( cd $(SRC_DIR)/cnf/diffs ; \
+	   for file in `find . -type l` ; do \
+	     target=`readlink $$file` ; \
+	     ln -sf "`echo $$target | sed 's,perl-,perl5-,'`" $$file ; \
+	   done \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(extra_host_environment) ./configure \
+	  --prefix=/usr      \
+	  --build=$(BUILD)   \
+	  --target=$(TARGET) \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(extra_host_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@( cd $(PERL_PKG)/usr/bin ; \
+	   mv perl perl$(version) ; \
+	   ln -sf perl$(version) perl ; \
+	 )
+	# ======= Set Right Permissions for libperl.so =======
+	@( cd $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5 ; \
+	   find . -name '*.so' -exec chmod +w {} \; ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(PERL_PKG)/etc/profile.d
+	@cat $(profile_dir)/perl5.csh.in | sed "s,@LIBDIRSUFFIX@,$(LIBSUFFIX),g" > $(PERL_PKG)/etc/profile.d/perl5.csh
+	@cat $(profile_dir)/perl5.sh.in  | sed "s,@LIBDIRSUFFIX@,$(LIBSUFFIX),g" > $(PERL_PKG)/etc/profile.d/perl5.sh
+	@chmod 0755 $(PERL_PKG)/etc/profile.d/*
+	# ======= Install Documentation ======
+	@( cd $(PERL_PKG)/usr/share/man/man1 ; \
+	   rm -f perlthanks.1 ; ln -sf perlbug.1 perlthanks.1 ; \
+	 )
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/Artistic $(SRC_DIR)/Copying \
+	       $(PERL_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS Artistic Changes Copying INSTALL README* \
+	         $(PERL_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Remove cross environment from target package =======
+	@( cd $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5 ; \
+	   chmod +w Config.pm Config_heavy.pl ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                      Config_heavy.pl ; \
+	   sed -i "s,--sysroot=$(TARGET_DEST_DIR),,g"         Config_heavy.pl ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                   Config_heavy.pl ; \
+	   host=`cat Config_heavy.pl | grep '^target=' | sed "s,target='\(.*\)'$$,\1,"` ; \
+	   sed -i "s,\(^build=*\).*,\1'$$host',"              Config_heavy.pl ; \
+	   sed -i 's,-Dpager=\([^ ]*[ ][^ ]*\),-Dpager="\1",' Config_heavy.pl ; \
+	   sed -i 's,-Dlibpth=\([^\-]*\)[ ],-Dlibpth="\1" ,'  Config_heavy.pl ; \
+	   sed -i "s,--build=[^ ]*[ ],,g"                     Config_heavy.pl ; \
+	   sed -i "s,--target=[^ ]*[ ],,g"                    Config_heavy.pl ; \
+	   sed -i "s,--mode=cross[ ],,g"                      Config_heavy.pl ; \
+	   sed -i "s,-target-tools-prefix=[ ],,g"             Config_heavy.pl ; \
+	   sed -i "s,-Alddlflags=[ ],,g"                      Config_heavy.pl ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                      Config.pm       ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG)/usr/bin ; \
+	   $(STRIP) --strip-unneeded perl$(version) 2> /dev/null ; \
+	 )
+	@( cd $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5 ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs chmod +w 2> /dev/null ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_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) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl/5.36.0/PATCHES
===================================================================
--- perl/5.36.0/PATCHES	(nonexistent)
+++ perl/5.36.0/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/perl/patches/perl-5.36.0.patch                 -p0
+../../../sources/packages/d/perl-cross/1.4/patches/perl-cross-5.36.0.patch -p0
Index: perl/5.36.0/perl-pkg-description.in
===================================================================
--- perl/5.36.0/perl-pkg-description.in	(nonexistent)
+++ perl/5.36.0/perl-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------------------------------------------------------|
+perl: perl @VERSION@ (Practical Extraction and Report Language)
+perl:
+perl: Larry Wall's "Practical Extraction and Report Language". Perl is
+perl: a language optimized for scanning arbitrary text files, extracting
+perl: information from those text files, and printing reports based on
+perl: that information. It's also a good language for many system
+perl: management tasks. The language is intended to be practical (easy to
+perl: use, efficient, complete) rather than beautiful (tiny, elegant,
+perl: minimal).
+perl:
+perl:
Index: perl/5.36.0/perl-pkg-install.sh
===================================================================
--- perl/5.36.0/perl-pkg-install.sh	(nonexistent)
+++ perl/5.36.0/perl-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl/5.36.0/perl-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl/5.36.0/profile.d/perl5.csh.in
===================================================================
--- perl/5.36.0/profile.d/perl5.csh.in	(nonexistent)
+++ perl/5.36.0/profile.d/perl5.csh.in	(revision 5)
@@ -0,0 +1,3 @@
+#!/bin/csh
+
+setenv PERL5LIB /usr/lib@LIBDIRSUFFIX@/perl5:/usr/lib@LIBDIRSUFFIX@/perl5/vendor_perl:/usr/lib@LIBDIRSUFFIX@/perl5/site_perl
Index: perl/5.36.0/profile.d/perl5.sh.in
===================================================================
--- perl/5.36.0/profile.d/perl5.sh.in	(nonexistent)
+++ perl/5.36.0/profile.d/perl5.sh.in	(revision 5)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+PERL5LIB=/usr/lib@LIBDIRSUFFIX@/perl5:/usr/lib@LIBDIRSUFFIX@/perl5/vendor_perl:/usr/lib@LIBDIRSUFFIX@/perl5/site_perl
+export PERL5LIB
Index: perl/5.36.0/profile.d
===================================================================
--- perl/5.36.0/profile.d	(nonexistent)
+++ perl/5.36.0/profile.d	(revision 5)

Property changes on: perl/5.36.0/profile.d
___________________________________________________________________
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: perl/5.36.0
===================================================================
--- perl/5.36.0	(nonexistent)
+++ perl/5.36.0	(revision 5)

Property changes on: perl/5.36.0
___________________________________________________________________
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: perl/5.36.0-ppc32/Makefile
===================================================================
--- perl/5.36.0-ppc32/Makefile	(nonexistent)
+++ perl/5.36.0-ppc32/Makefile	(revision 5)
@@ -0,0 +1,250 @@
+
+COMPONENT_TARGETS  = $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/perl
+SOURCE_REQUIRES   += sources/packages/d/perl-cross/1.4
+
+REQUIRES           = dev/perl/5.36.0
+REQUIRES          += libs/gdbm/1.23-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.36.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl/perl-$(version).tar.xz
+cross_xz_archive   = $(SRC_PACKAGE_PATH)/packages/d/perl-cross/1.4/perl-cross-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/perl-$(version)
+src_dir_name       = perl-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+profile_dir        = $(CURDIR)/profile.d
+
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+NO_CCACHE = 1
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_32_PKG_NAME                = perl-x32
+PERL_32_PKG_VERSION             = 5.36.0
+PERL_32_PKG_ARCH                = $(PKGARCH)
+PERL_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+PERL_32_PKG_SHORT_DESCRIPTION   = Practical Extraction and Report Language
+PERL_32_PKG_URL                 = $(BUG_URL)
+PERL_32_PKG_LICENSE             = GPLv1
+PERL_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_32_PKG_NAME)-pkg-description
+PERL_32_PKG_DESCRIPTION_FILE_IN = $(PERL_32_PKG_NAME)-pkg-description.in
+PERL_32_PKG_INSTALL_SCRIPT      = $(PERL_32_PKG_NAME)-pkg-install.sh
+
+PERL_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_32_PKG_NAME)-package
+
+pkg_basename     = $(PERL_32_PKG_NAME)-$(PERL_32_PKG_VERSION)-$(PERL_32_PKG_ARCH)-$(PERL_32_PKG_DISTRO_NAME)-$(PERL_32_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=$(PERL_32_PKG)
+
+
+ARCHNAME    = ppc32-linux
+
+LDFLAGS += -m32 -L$(TARGET_DEST_DIR)/lib$(MULTILIB_PPC32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_PPC32_SUFFIX)
+
+OPTIMIZATION_FLAGS += -fPIC
+#
+# If after all this time you still don't trust threads, comment out the variable below:
+#
+USE_THREADS = -Dusethreads -Duseithreads
+
+suppress_warnings = -Wno-attributes -Wno-unused-function
+
+extra_configure_switches  = --mode=cross
+extra_configure_switches += --sysroot=$(TARGET_DEST_DIR)
+extra_configure_switches += --target-tools-prefix=$(CROSS_PREFIX)
+extra_configure_switches += --target=$(shell echo $(TARGET) | sed 's/x86_64/i686/')
+extra_configure_switches += -Accflags='-I$(TARGET_DEST_DIR)/usr/include $(suppress_warnings)'
+extra_configure_switches += -Accflags=-m32
+
+extra_configure_switches += -Dinstallstyle='lib$(MULTILIB_PPC32_SUFFIX)/perl5'
+
+extra_configure_switches += -Darchname='$(ARCHNAME)'
+extra_configure_switches += -Dinstallprefix='/usr'
+extra_configure_switches += -Dlibpth='/usr/lib$(MULTILIB_PPC32_SUFFIX) /lib$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dloclibpth='/usr/lib$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dlocincpth='/usr/include'
+
+extra_configure_switches += -Doptimize='$(OPTIMIZATION_FLAGS)'
+extra_configure_switches += $(USE_THREADS)
+
+extra_configure_switches += -Dprefix='/usr'
+extra_configure_switches += -Dbin='/usr/bin/$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dscriptdir='/usr/bin/$(MULTILIB_PPC32_SUFFIX)'
+
+extra_configure_switches += -Darchlib='/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5'
+extra_configure_switches += -Dprivlib='/usr/share/perl5'
+
+extra_configure_switches += -Dsiteprefix='/usr'
+extra_configure_switches += -Dsitebin='/usr/bin/$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dsitescript='/usr/bin/$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dsitearch='/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5/site_perl'
+extra_configure_switches += -Dsitelib='/usr/share/perl5/site_perl'
+
+extra_configure_switches += -Dvendorprefix='/usr'
+extra_configure_switches += -Dvendorbin='/usr/bin/$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dvendorscript='/usr/bin/$(MULTILIB_PPC32_SUFFIX)'
+extra_configure_switches += -Dvendorarch='/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5/vendor_perl'
+extra_configure_switches += -Dvendorlib='/usr/share/perl5/vendor_perl'
+
+extra_configure_switches += -Dcccdlflags='-fPIC'
+extra_configure_switches += -Duseshrplib
+extra_configure_switches += -Dlib_ext='.so'
+extra_configure_switches += -Dlibperl='libperl.so'
+extra_configure_switches += -Ubincompat5005
+extra_configure_switches += -Uversiononly
+
+extra_configure_switches += -Dpager='/usr/bin/less -isr'
+
+extra_configure_switches += -Dhtml1dir=/usr/share/doc/perl-$(version)/html
+extra_configure_switches += -Dhtml3dir=/usr/share/doc/perl-$(version)/html
+extra_configure_switches += -Dman1dir=/usr/share/man/man1
+extra_configure_switches += -Dman3dir=/usr/share/man/man3
+
+#
+# GCC FOR BUILD Configuration:
+#
+extra_configure_switches += -Dhostlibs='-lm -lcrypt -lpthread -ldl'
+
+extra_host_environment  = HOSTCC=gcc
+extra_host_environment += HOSTCFLAGS='-DMULTIARCH -Wno-attributes'
+extra_host_environment += HOSTLDFLAGS=-L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	@tar xJf $(cross_xz_archive) -C $(TARGET_BUILD_DIR)
+	$(APPLY_PATCHES)
+	@cd $(SRC_DIR) && echo "installstyle='lib$(MULTILIB_PPC32_SUFFIX)/perl5'" >> cnf/hints/linux
+	# ======= Fix symbolic links to cross patches =======
+	@( cd $(SRC_DIR)/cnf/diffs ; \
+	   for file in `find . -type l` ; do \
+	     target=`readlink $$file` ; \
+	     ln -sf "`echo $$target | sed 's,perl-,perl5-,'`" $$file ; \
+	   done \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(extra_host_environment) ./configure \
+	  --prefix=/usr        \
+	  --build=$(BUILD)     \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(extra_host_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(PERL_32_PKG)/usr/share
+	@( cd $(PERL_32_PKG)/usr/bin/32 ; \
+	   mv perl perl$(version) ; \
+	   ln -sf perl$(version) perl ; \
+	 )
+	# ======= Set Right Permissions for libperl.so =======
+	@( cd $(PERL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5 ; \
+	   find . -name '*.so' -exec chmod +w {} \; ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(PERL_32_PKG)/etc/profile.d
+	@cat $(profile_dir)/perl5-x32.csh.in | sed "s,@LIBDIRSUFFIX@,$(MULTILIB_PPC32_SUFFIX),g" > $(PERL_32_PKG)/etc/profile.d/perl5-x32.csh
+	@cat $(profile_dir)/perl5-x32.sh.in  | sed "s,@LIBDIRSUFFIX@,$(MULTILIB_PPC32_SUFFIX),g" > $(PERL_32_PKG)/etc/profile.d/perl5-x32.sh
+	@chmod 0644 $(PERL_32_PKG)/etc/profile.d/*
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_32_PKG))
+	# ======= Remove cross environment from target package =======
+	@( cd $(PERL_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/perl5 ; \
+	   chmod +w Config.pm Config_heavy.pl ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                      Config_heavy.pl ; \
+	   sed -i "s,--sysroot=$(TARGET_DEST_DIR),,g"         Config_heavy.pl ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                   Config_heavy.pl ; \
+	   sed -i "s,\(^build=*\).*,\1'$(TARGET)',"           Config_heavy.pl ; \
+	   sed -i 's,-Dpager=\([^ ]*[ ][^ ]*\),-Dpager="\1",' Config_heavy.pl ; \
+	   sed -i 's,-Dlibpth=\([^\-]*\)[ ],-Dlibpth="\1" ,'  Config_heavy.pl ; \
+	   sed -i "s,--build=[^ ]*[ ],,g"                     Config_heavy.pl ; \
+	   sed -i "s,--target=[^ ]*[ ],,g"                    Config_heavy.pl ; \
+	   sed -i "s,--mode=cross[ ],,g"                      Config_heavy.pl ; \
+	   sed -i "s,-target-tools-prefix=[ ],,g"             Config_heavy.pl ; \
+	   sed -i "s,-Alddlflags=[ ],,g"                      Config_heavy.pl ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                      Config.pm       ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PERL_32_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 $@
+
+$(PERL_32_PKG_DESCRIPTION_FILE): $(PERL_32_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) $(PERL_32_PKG_DESCRIPTION_FILE) $(PERL_32_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_32_PKG_DESCRIPTION_FILE) $(PERL_32_PKG)/.DESCRIPTION
+	@cp $(PERL_32_PKG_INSTALL_SCRIPT) $(PERL_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_32_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_32_PKG_NAME)"                            >  $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_32_PKG_VERSION)"                          >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_32_PKG_ARCH)"                               >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_32_PKG_DISTRO_NAME)"                  >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_32_PKG_DISTRO_VERSION)"                >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_32_PKG_GROUP)"                             >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_32_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_32_PKG_URL)"                                 >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_32_PKG_LICENSE)"                         >> $(PERL_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl/5.36.0-ppc32/PATCHES
===================================================================
--- perl/5.36.0-ppc32/PATCHES	(nonexistent)
+++ perl/5.36.0-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/perl/patches/perl-5.36.0.patch                 -p0
+../../../sources/packages/d/perl-cross/1.4/patches/perl-cross-5.36.0.patch -p0
Index: perl/5.36.0-ppc32/perl-x32-pkg-description.in
===================================================================
--- perl/5.36.0-ppc32/perl-x32-pkg-description.in	(nonexistent)
+++ perl/5.36.0-ppc32/perl-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------------------------------------------------------|
+perl-x32: perl-x32 @VERSION@ (Practical Extraction and Report Language)
+perl-x32:
+perl-x32: Larry Wall's "Practical Extraction and Report Language". Perl is
+perl-x32: a language optimized for scanning arbitrary text files, extracting
+perl-x32: information from those text files, and printing reports based on
+perl-x32: that information. It's also a good language for many system
+perl-x32: management tasks. The language is intended to be practical (easy to
+perl-x32: use, efficient, complete) rather than beautiful (tiny, elegant,
+perl-x32: minimal).
+perl-x32:
+perl-x32:
Index: perl/5.36.0-ppc32/perl-x32-pkg-install.sh
===================================================================
--- perl/5.36.0-ppc32/perl-x32-pkg-install.sh	(nonexistent)
+++ perl/5.36.0-ppc32/perl-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl/5.36.0-ppc32/perl-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl/5.36.0-ppc32/profile.d/perl5-x32.csh.in
===================================================================
--- perl/5.36.0-ppc32/profile.d/perl5-x32.csh.in	(nonexistent)
+++ perl/5.36.0-ppc32/profile.d/perl5-x32.csh.in	(revision 5)
@@ -0,0 +1,3 @@
+#!/bin/csh
+
+setenv PERL5LIB /usr/lib@LIBDIRSUFFIX@/perl5:/usr/lib@LIBDIRSUFFIX@/perl5/vendor_perl:/usr/lib@LIBDIRSUFFIX@/perl5/site_perl
Index: perl/5.36.0-ppc32/profile.d/perl5-x32.sh.in
===================================================================
--- perl/5.36.0-ppc32/profile.d/perl5-x32.sh.in	(nonexistent)
+++ perl/5.36.0-ppc32/profile.d/perl5-x32.sh.in	(revision 5)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+PERL5LIB=/usr/lib@LIBDIRSUFFIX@/perl5:/usr/lib@LIBDIRSUFFIX@/perl5/vendor_perl:/usr/lib@LIBDIRSUFFIX@/perl5/site_perl
+export PERL5LIB
Index: perl/5.36.0-ppc32/profile.d
===================================================================
--- perl/5.36.0-ppc32/profile.d	(nonexistent)
+++ perl/5.36.0-ppc32/profile.d	(revision 5)

Property changes on: perl/5.36.0-ppc32/profile.d
___________________________________________________________________
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: perl/5.36.0-ppc32
===================================================================
--- perl/5.36.0-ppc32	(nonexistent)
+++ perl/5.36.0-ppc32	(revision 5)

Property changes on: perl/5.36.0-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: perl/5.36.0-x86_32/Makefile
===================================================================
--- perl/5.36.0-x86_32/Makefile	(nonexistent)
+++ perl/5.36.0-x86_32/Makefile	(revision 5)
@@ -0,0 +1,247 @@
+
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+
+
+NEED_ABS_PATH      = true
+COMPONENT_IS_3PP   = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES    = sources/packages/d/perl
+SOURCE_REQUIRES   += sources/packages/d/perl-cross/1.4
+
+REQUIRES           = dev/perl/5.36.0
+REQUIRES          += libs/gdbm/1.23-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.36.0
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl/perl-$(version).tar.xz
+cross_xz_archive   = $(SRC_PACKAGE_PATH)/packages/d/perl-cross/1.4/perl-cross-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/perl-$(version)
+src_dir_name       = perl-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+
+profile_dir        = $(CURDIR)/profile.d
+
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+USE_TARGET_DEST_DIR_SYSROOT = no
+NO_CCACHE = 1
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_32_PKG_NAME                = perl-x32
+PERL_32_PKG_VERSION             = 5.36.0
+PERL_32_PKG_ARCH                = $(PKGARCH)
+PERL_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+PERL_32_PKG_SHORT_DESCRIPTION   = Practical Extraction and Report Language
+PERL_32_PKG_URL                 = $(BUG_URL)
+PERL_32_PKG_LICENSE             = GPLv1
+PERL_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_32_PKG_NAME)-pkg-description
+PERL_32_PKG_DESCRIPTION_FILE_IN = $(PERL_32_PKG_NAME)-pkg-description.in
+PERL_32_PKG_INSTALL_SCRIPT      = $(PERL_32_PKG_NAME)-pkg-install.sh
+
+PERL_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_32_PKG_NAME)-package
+
+pkg_basename     = $(PERL_32_PKG_NAME)-$(PERL_32_PKG_VERSION)-$(PERL_32_PKG_ARCH)-$(PERL_32_PKG_DISTRO_NAME)-$(PERL_32_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=$(PERL_32_PKG)
+
+
+ARCHNAME    = x86_32-linux
+
+LDFLAGS += -m32 -L$(TARGET_DEST_DIR)/lib$(MULTILIB_X86_32_SUFFIX) -L$(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)
+
+OPTIMIZATION_FLAGS += -fPIC
+#
+# If after all this time you still don't trust threads, comment out the variable below:
+#
+USE_THREADS = -Dusethreads -Duseithreads
+
+suppress_warnings = -Wno-attributes -Wno-unused-function
+
+extra_configure_switches  = --mode=cross
+extra_configure_switches += --sysroot=$(TARGET_DEST_DIR)
+extra_configure_switches += --target-tools-prefix=$(CROSS_PREFIX)
+extra_configure_switches += --target=$(shell echo $(TARGET) | sed 's/x86_64/i686/')
+extra_configure_switches += -Accflags='-I$(TARGET_DEST_DIR)/usr/include $(suppress_warnings)'
+extra_configure_switches += -Accflags=-m32
+
+extra_configure_switches += -Dinstallstyle='lib$(MULTILIB_X86_32_SUFFIX)/perl5'
+
+extra_configure_switches += -Darchname='$(ARCHNAME)'
+extra_configure_switches += -Dinstallprefix='/usr'
+extra_configure_switches += -Dlibpth='/usr/lib$(MULTILIB_X86_32_SUFFIX) /lib$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dloclibpth='/usr/lib$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dlocincpth='/usr/include'
+
+extra_configure_switches += -Doptimize='$(OPTIMIZATION_FLAGS)'
+extra_configure_switches += $(USE_THREADS)
+
+extra_configure_switches += -Dprefix='/usr'
+extra_configure_switches += -Dbin='/usr/bin/$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dscriptdir='/usr/bin/$(MULTILIB_X86_32_SUFFIX)'
+
+extra_configure_switches += -Darchlib='/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5'
+extra_configure_switches += -Dprivlib='/usr/share/perl5'
+
+extra_configure_switches += -Dsiteprefix='/usr'
+extra_configure_switches += -Dsitebin='/usr/bin/$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dsitescript='/usr/bin/$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dsitearch='/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5/site_perl'
+extra_configure_switches += -Dsitelib='/usr/share/perl5/site_perl'
+
+extra_configure_switches += -Dvendorprefix='/usr'
+extra_configure_switches += -Dvendorbin='/usr/bin/$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dvendorscript='/usr/bin/$(MULTILIB_X86_32_SUFFIX)'
+extra_configure_switches += -Dvendorarch='/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5/vendor_perl'
+extra_configure_switches += -Dvendorlib='/usr/share/perl5/vendor_perl'
+
+extra_configure_switches += -Dcccdlflags='-fPIC'
+extra_configure_switches += -Duseshrplib
+extra_configure_switches += -Dlib_ext='.so'
+extra_configure_switches += -Dlibperl='libperl.so'
+extra_configure_switches += -Ubincompat5005
+extra_configure_switches += -Uversiononly
+
+extra_configure_switches += -Dpager='/usr/bin/less -isr'
+
+extra_configure_switches += -Dhtml1dir=/usr/share/doc/perl-$(version)/html
+extra_configure_switches += -Dhtml3dir=/usr/share/doc/perl-$(version)/html
+extra_configure_switches += -Dman1dir=/usr/share/man/man1
+extra_configure_switches += -Dman3dir=/usr/share/man/man3
+
+#
+# GCC FOR BUILD Configuration:
+#
+extra_configure_switches += -Dhostlibs='-lm -lcrypt -lpthread -ldl'
+
+extra_host_environment  = HOSTCC=gcc
+extra_host_environment += HOSTCFLAGS='-DMULTIARCH -Wno-attributes'
+extra_host_environment += HOSTLDFLAGS=-L/usr/lib$(BUILD_MULTILIB_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	@tar xJf $(cross_xz_archive) -C $(TARGET_BUILD_DIR)
+	$(APPLY_PATCHES)
+	@cd $(SRC_DIR) && echo "installstyle='lib$(MULTILIB_X86_32_SUFFIX)/perl5'" >> cnf/hints/linux
+	# ======= Fix symbolic links to cross patches =======
+	@( cd $(SRC_DIR)/cnf/diffs ; \
+	   for file in `find . -type l` ; do \
+	     target=`readlink $$file` ; \
+	     ln -sf "`echo $$target | sed 's,perl-,perl5-,'`" $$file ; \
+	   done \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(extra_host_environment) ./configure \
+	  --prefix=/usr        \
+	  --build=$(BUILD)     \
+	  $(extra_configure_switches)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(extra_host_environment) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_32_PKG)
+	@cd $(SRC_DIR) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(PERL_32_PKG)/usr/share
+	@( cd $(PERL_32_PKG)/usr/bin/32 ; \
+	   mv perl perl$(version) ; \
+	   ln -sf perl$(version) perl ; \
+	 )
+	# ======= Set Right Permissions for libperl.so =======
+	@( cd $(PERL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5 ; \
+	   find . -name '*.so' -exec chmod +w {} \; ; \
+	 )
+	# ======= Add Profile scripts =======
+	@mkdir -p $(PERL_32_PKG)/etc/profile.d
+	@cat $(profile_dir)/perl5-x32.csh.in | sed "s,@LIBDIRSUFFIX@,$(MULTILIB_X86_32_SUFFIX),g" > $(PERL_32_PKG)/etc/profile.d/perl5-x32.csh
+	@cat $(profile_dir)/perl5-x32.sh.in  | sed "s,@LIBDIRSUFFIX@,$(MULTILIB_X86_32_SUFFIX),g" > $(PERL_32_PKG)/etc/profile.d/perl5-x32.sh
+	@chmod 0644 $(PERL_32_PKG)/etc/profile.d/*
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_32_PKG))
+	# ======= Remove cross environment from target package =======
+	@( cd $(PERL_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/perl5 ; \
+	   chmod +w Config.pm Config_heavy.pl ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                      Config_heavy.pl ; \
+	   sed -i "s,--sysroot=$(TARGET_DEST_DIR),,g"         Config_heavy.pl ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                   Config_heavy.pl ; \
+	   sed -i "s,\(^build=*\).*,\1'$(TARGET)',"           Config_heavy.pl ; \
+	   sed -i 's,-Dpager=\([^ ]*[ ][^ ]*\),-Dpager="\1",' Config_heavy.pl ; \
+	   sed -i 's,-Dlibpth=\([^\-]*\)[ ],-Dlibpth="\1" ,'  Config_heavy.pl ; \
+	   sed -i "s,--build=[^ ]*[ ],,g"                     Config_heavy.pl ; \
+	   sed -i "s,--target=[^ ]*[ ],,g"                    Config_heavy.pl ; \
+	   sed -i "s,--mode=cross[ ],,g"                      Config_heavy.pl ; \
+	   sed -i "s,-target-tools-prefix=[ ],,g"             Config_heavy.pl ; \
+	   sed -i "s,-Alddlflags=[ ],,g"                      Config_heavy.pl ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                      Config.pm       ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(PERL_32_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 $@
+
+$(PERL_32_PKG_DESCRIPTION_FILE): $(PERL_32_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) $(PERL_32_PKG_DESCRIPTION_FILE) $(PERL_32_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_32_PKG_DESCRIPTION_FILE) $(PERL_32_PKG)/.DESCRIPTION
+	@cp $(PERL_32_PKG_INSTALL_SCRIPT) $(PERL_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_32_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_32_PKG_NAME)"                            >  $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_32_PKG_VERSION)"                          >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_32_PKG_ARCH)"                               >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_32_PKG_DISTRO_NAME)"                  >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_32_PKG_DISTRO_VERSION)"                >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_32_PKG_GROUP)"                             >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_32_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_32_PKG_URL)"                                 >> $(PERL_32_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_32_PKG_LICENSE)"                         >> $(PERL_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl/5.36.0-x86_32/PATCHES
===================================================================
--- perl/5.36.0-x86_32/PATCHES	(nonexistent)
+++ perl/5.36.0-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/perl/patches/perl-5.36.0.patch                 -p0
+../../../sources/packages/d/perl-cross/1.4/patches/perl-cross-5.36.0.patch -p0
Index: perl/5.36.0-x86_32/perl-x32-pkg-description.in
===================================================================
--- perl/5.36.0-x86_32/perl-x32-pkg-description.in	(nonexistent)
+++ perl/5.36.0-x86_32/perl-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------------------------------------------------------|
+perl-x32: perl-x32 @VERSION@ (Practical Extraction and Report Language)
+perl-x32:
+perl-x32: Larry Wall's "Practical Extraction and Report Language". Perl is
+perl-x32: a language optimized for scanning arbitrary text files, extracting
+perl-x32: information from those text files, and printing reports based on
+perl-x32: that information. It's also a good language for many system
+perl-x32: management tasks. The language is intended to be practical (easy to
+perl-x32: use, efficient, complete) rather than beautiful (tiny, elegant,
+perl-x32: minimal).
+perl-x32:
+perl-x32:
Index: perl/5.36.0-x86_32/perl-x32-pkg-install.sh
===================================================================
--- perl/5.36.0-x86_32/perl-x32-pkg-install.sh	(nonexistent)
+++ perl/5.36.0-x86_32/perl-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl/5.36.0-x86_32/perl-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl/5.36.0-x86_32/profile.d/perl5-x32.csh.in
===================================================================
--- perl/5.36.0-x86_32/profile.d/perl5-x32.csh.in	(nonexistent)
+++ perl/5.36.0-x86_32/profile.d/perl5-x32.csh.in	(revision 5)
@@ -0,0 +1,3 @@
+#!/bin/csh
+
+setenv PERL5LIB /usr/lib@LIBDIRSUFFIX@/perl5:/usr/lib@LIBDIRSUFFIX@/perl5/vendor_perl:/usr/lib@LIBDIRSUFFIX@/perl5/site_perl
Index: perl/5.36.0-x86_32/profile.d/perl5-x32.sh.in
===================================================================
--- perl/5.36.0-x86_32/profile.d/perl5-x32.sh.in	(nonexistent)
+++ perl/5.36.0-x86_32/profile.d/perl5-x32.sh.in	(revision 5)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+PERL5LIB=/usr/lib@LIBDIRSUFFIX@/perl5:/usr/lib@LIBDIRSUFFIX@/perl5/vendor_perl:/usr/lib@LIBDIRSUFFIX@/perl5/site_perl
+export PERL5LIB
Index: perl/5.36.0-x86_32/profile.d
===================================================================
--- perl/5.36.0-x86_32/profile.d	(nonexistent)
+++ perl/5.36.0-x86_32/profile.d	(revision 5)

Property changes on: perl/5.36.0-x86_32/profile.d
___________________________________________________________________
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: perl/5.36.0-x86_32
===================================================================
--- perl/5.36.0-x86_32	(nonexistent)
+++ perl/5.36.0-x86_32	(revision 5)

Property changes on: perl/5.36.0-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: perl
===================================================================
--- perl	(nonexistent)
+++ perl	(revision 5)

Property changes on: perl
___________________________________________________________________
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: perl-modules/perl-b-c/1.57/Makefile
===================================================================
--- perl-modules/perl-b-c/1.57/Makefile	(nonexistent)
+++ perl-modules/perl-b-c/1.57/Makefile	(revision 5)
@@ -0,0 +1,299 @@
+
+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/perl-modules/CPAN/B-C
+
+REQUIRES           = dev/perl/5.36.0
+REQUIRES          += app/db/18.1.40
+REQUIRES          += libs/gdbm/1.23
+REQUIRES          += net/libnsl/1.3.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.57
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/B-C/B-C-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/B-C-$(version)
+src_dir_name       = B-C-$(version)
+doc_dir_name       = perl-b-c-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-b-c
+PERL_PKG_VERSION             = 1.57
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Perl C translation backend
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = Artistic-v1.0
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+perl_src_hdrs += LANG=
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-b-c module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '*.so' -exec chmod 755 {} \;
+	@mkdir -p $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/CORE
+	@cat $(SRC_DIR)/cc_runtime.h > $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/CORE/cc_runtime.h
+	@sed -i 's,$(BUILDSYSTEM),,' $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/vendor_perl/B/C/Config.pm
+	@( cd $(PERL_PKG)/usr/bin ; \
+	   sed -i 's,$(BUILDSYSTEM),,' assemble cc_harness disassemble perlcc ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/Artistic $(SRC_DIR)/Copying \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a Artistic Copying NOTES README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG) ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-b-c/1.57/PATCHES
===================================================================
Index: perl-modules/perl-b-c/1.57/perl-b-c-pkg-description.in
===================================================================
--- perl-modules/perl-b-c/1.57/perl-b-c-pkg-description.in	(nonexistent)
+++ perl-modules/perl-b-c/1.57/perl-b-c-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------------------------------------------------------|
+perl-b-c: perl-b-c @VERSION@ (Perl C translation backend)
+perl-b-c:
+perl-b-c: B::CC - Perl compiler's optimized C translation backend.
+perl-b-c:
+perl-b-c: This compiler backend takes Perl source and generates C source code
+perl-b-c: corresponding to the flow of your program with unrolled ops and
+perl-b-c: optimised stack handling and lexicals variable types.
+perl-b-c:
+perl-b-c:
+perl-b-c:
+perl-b-c:
Index: perl-modules/perl-b-c/1.57/perl-b-c-pkg-install.sh.in
===================================================================
--- perl-modules/perl-b-c/1.57/perl-b-c-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-b-c/1.57/perl-b-c-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sat Nov  5 19:42:50 2022: C<Module> L<B::C|B::C>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 1.57>
+
+=item *
+
+C<EXE_FILES: script/assemble script/cc_harness script/disassemble script/perlcc>
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-b-c/1.57/perl-b-c-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-b-c/1.57
===================================================================
--- perl-modules/perl-b-c/1.57	(nonexistent)
+++ perl-modules/perl-b-c/1.57	(revision 5)

Property changes on: perl-modules/perl-b-c/1.57
___________________________________________________________________
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: perl-modules/perl-b-c
===================================================================
--- perl-modules/perl-b-c	(nonexistent)
+++ perl-modules/perl-b-c	(revision 5)

Property changes on: perl-modules/perl-b-c
___________________________________________________________________
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: perl-modules/perl-dbd-mysql/4.050/Makefile
===================================================================
--- perl-modules/perl-dbd-mysql/4.050/Makefile	(nonexistent)
+++ perl-modules/perl-dbd-mysql/4.050/Makefile	(revision 5)
@@ -0,0 +1,314 @@
+
+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/perl-modules/CPAN/DBD-mysql
+
+REQUIRES           = dev/perl/5.36.0
+REQUIRES          += dev/perl-modules/perl-devel-checklib/1.16
+REQUIRES          += dev/perl-modules/perl-dbi/1.643
+REQUIRES          += app/mariadb/10.6.5
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 4.050
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/DBD-mysql/DBD-mysql-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/DBD-mysql-$(version)
+src_dir_name       = DBD-mysql-$(version)
+doc_dir_name       = perl-dbd-mysql-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-dbd-mysql
+PERL_PKG_VERSION             = 4.050
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = DBD MySQL
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter -Wno-incompatible-pointer-types
+
+#
+# Do not use mariadb_config on cross-compilation:
+#
+mysql-cflags  = -I$(TARGET_DEST_DIR)/usr/include/mysql -I$(TARGET_DEST_DIR)/usr/include/mysql/mysql
+mysql-ldflags = -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) -lmariadb
+
+perl_environment += LIBS='$(mysql-ldflags)'
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(mysql-ldflags)'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(mysql-cflags) $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment) ; \
+	 )
+	# ======= build the perl-dbd-mysql module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	@chmod 755 $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/vendor_perl/auto/DBD/mysql/mysql.so
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSE README.md \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG) ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(PERL_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-dbd-mysql/4.050/PATCHES
===================================================================
Index: perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-pkg-description.in
===================================================================
--- perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-pkg-description.in	(nonexistent)
+++ perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-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------------------------------------------------------|
+perl-dbd-mysql: perl-dbd-mysql @VERSION@ (DBD MySQL)
+perl-dbd-mysql:
+perl-dbd-mysql: This is the Perl DBI driver for access to MySQL databases.
+perl-dbd-mysql:
+perl-dbd-mysql:
+perl-dbd-mysql:
+perl-dbd-mysql:
+perl-dbd-mysql:
+perl-dbd-mysql:
+perl-dbd-mysql:
+perl-dbd-mysql:
Index: perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-pkg-install.sh.in
===================================================================
--- perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBD::mysql|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sat Jan 15 23:19:51 2022: C<Module> L<DBD::mysql|DBD::mysql>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 4.050>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-dbd-mysql/4.050/perl-dbd-mysql-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-dbd-mysql/4.050
===================================================================
--- perl-modules/perl-dbd-mysql/4.050	(nonexistent)
+++ perl-modules/perl-dbd-mysql/4.050	(revision 5)

Property changes on: perl-modules/perl-dbd-mysql/4.050
___________________________________________________________________
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: perl-modules/perl-dbd-mysql
===================================================================
--- perl-modules/perl-dbd-mysql	(nonexistent)
+++ perl-modules/perl-dbd-mysql	(revision 5)

Property changes on: perl-modules/perl-dbd-mysql
___________________________________________________________________
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: perl-modules/perl-dbd-pg/3.16.0/Makefile
===================================================================
--- perl-modules/perl-dbd-pg/3.16.0/Makefile	(nonexistent)
+++ perl-modules/perl-dbd-pg/3.16.0/Makefile	(revision 5)
@@ -0,0 +1,318 @@
+
+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/perl-modules/CPAN/DBD-Pg
+
+REQUIRES           = dev/perl/5.36.0
+REQUIRES          += dev/perl-modules/perl-dbi/1.643
+REQUIRES          += app/postgresql/14.1
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.16.0
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/DBD-Pg/DBD-Pg-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/DBD-Pg-$(version)
+src_dir_name       = DBD-Pg-$(version)
+doc_dir_name       = perl-dbd-pg-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-dbd-pg
+PERL_PKG_VERSION             = 3.16.0
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Perl interface to Postgres using DBI
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv2
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter -Wno-incompatible-pointer-types
+
+POSTGRES_VERSION     = 14.1
+POSTGRES_INT_VERSION = 140100
+POSTGRES_PORT        = 5432
+
+pg-defines = -DPGLIBVERSION=$(POSTGRES_INT_VERSION) -DPGDEFPORT=$(POSTGRES_PORT)
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(pg-defines) $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+pg_env  = POSTGRES_HOME='$(TARGET_DEST_DIR)/usr'
+pg_env += POSTGRES_INCLUDE='$(TARGET_DEST_DIR)/usr/include'
+pg_env += POSTGRES_LIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) -lssl'
+pg_env += POSTGRES_VERSION=$(POSTGRES_VERSION)
+pg_env += POSTGRES_INT_VERSION=$(POSTGRES_INT_VERSION)
+pg_env += POSTGRES_PORT=$(POSTGRES_PORT)
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(pg_env) $(PERL) Makefile.PL $(perl_environment) ; \
+	 )
+	# ======= build the perl-dbd-pg module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	@chmod 755 $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/vendor_perl/auto/DBD/Pg/Pg.so
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSES \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSES README README.dev TODO \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG) ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(PERL_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-dbd-pg/3.16.0/PATCHES
===================================================================
--- perl-modules/perl-dbd-pg/3.16.0/PATCHES	(nonexistent)
+++ perl-modules/perl-dbd-pg/3.16.0/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../../sources/packages/d/perl-modules/CPAN/DBD-Pg/patches/DBD-Pg-3.16.0-cross.patch -p0
Index: perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-pkg-description.in
===================================================================
--- perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-pkg-description.in	(nonexistent)
+++ perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-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------------------------------------------------------|
+perl-dbd-pg: perl-dbd-pg @VERSION@ (Perl interface to Postgres using DBI)
+perl-dbd-pg:
+perl-dbd-pg: This is the Perl DBI driver for access to Postgres databases.
+perl-dbd-pg:
+perl-dbd-pg:
+perl-dbd-pg:
+perl-dbd-pg:
+perl-dbd-pg:
+perl-dbd-pg:
+perl-dbd-pg:
+perl-dbd-pg:
Index: perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-pkg-install.sh.in
===================================================================
--- perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBD::mysql|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 01:40:57 2022: C<Module> L<DBD::Pg|DBD::Pg>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 3.16.0>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-dbd-pg/3.16.0/perl-dbd-pg-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-dbd-pg/3.16.0
===================================================================
--- perl-modules/perl-dbd-pg/3.16.0	(nonexistent)
+++ perl-modules/perl-dbd-pg/3.16.0	(revision 5)

Property changes on: perl-modules/perl-dbd-pg/3.16.0
___________________________________________________________________
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: perl-modules/perl-dbd-pg
===================================================================
--- perl-modules/perl-dbd-pg	(nonexistent)
+++ perl-modules/perl-dbd-pg	(revision 5)

Property changes on: perl-modules/perl-dbd-pg
___________________________________________________________________
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: perl-modules/perl-dbi/1.643/Makefile
===================================================================
--- perl-modules/perl-dbi/1.643/Makefile	(nonexistent)
+++ perl-modules/perl-dbi/1.643/Makefile	(revision 5)
@@ -0,0 +1,293 @@
+
+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/perl-modules/CPAN/DBI
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.643
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/DBI/DBI-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/DBI-$(version)
+src_dir_name       = DBI-$(version)
+doc_dir_name       = perl-dbi-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-dbi
+PERL_PKG_VERSION             = 1.643
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = DBI
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = Artistic-v1.0
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+perl_src_hdrs += LANG=
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-dbi module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@( cd $(PERL_PKG)/usr/bin ; \
+	   sed -i 's,$(BUILDSYSTEM),,' dbilogstrip dbiprof dbiproxy ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	@chmod 755 $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/vendor_perl/auto/DBI/DBI.so
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a INSTALL LICENSE README.md \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG) ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-dbi/1.643/PATCHES
===================================================================
Index: perl-modules/perl-dbi/1.643/perl-dbi-pkg-description.in
===================================================================
--- perl-modules/perl-dbi/1.643/perl-dbi-pkg-description.in	(nonexistent)
+++ perl-modules/perl-dbi/1.643/perl-dbi-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------------------------------------------------------|
+perl-dbi: perl-dbi @VERSION@ (DBI)
+perl-dbi:
+perl-dbi: DBI - The Perl Database Interface.
+perl-dbi:
+perl-dbi: The DBI requires one or more 'driver' modules to talk to databases,
+perl-dbi: but they are not needed to build or install the DBI.
+perl-dbi:
+perl-dbi: Check that a DBD::* module exists for the database you wish to use.
+perl-dbi:
+perl-dbi:
+perl-dbi:
Index: perl-modules/perl-dbi/1.643/perl-dbi-pkg-install.sh.in
===================================================================
--- perl-modules/perl-dbi/1.643/perl-dbi-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-dbi/1.643/perl-dbi-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sat Jan 15 19:33:48 2022: C<Module> L<DBI|DBI>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 1.643>
+
+=item *
+
+C<EXE_FILES: dbilogstrip dbiprof dbiproxy>
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-dbi/1.643/perl-dbi-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-dbi/1.643
===================================================================
--- perl-modules/perl-dbi/1.643	(nonexistent)
+++ perl-modules/perl-dbi/1.643	(revision 5)

Property changes on: perl-modules/perl-dbi/1.643
___________________________________________________________________
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: perl-modules/perl-dbi
===================================================================
--- perl-modules/perl-dbi	(nonexistent)
+++ perl-modules/perl-dbi	(revision 5)

Property changes on: perl-modules/perl-dbi
___________________________________________________________________
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: perl-modules/perl-devel-checklib/1.16/Makefile
===================================================================
--- perl-modules/perl-devel-checklib/1.16/Makefile	(nonexistent)
+++ perl-modules/perl-devel-checklib/1.16/Makefile	(revision 5)
@@ -0,0 +1,287 @@
+
+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/perl-modules/CPAN/Devel-CheckLib
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.16
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/Devel-CheckLib/Devel-CheckLib-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Devel-CheckLib-$(version)
+src_dir_name       = Devel-CheckLib-$(version)
+doc_dir_name       = perl-devel-checklib-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-devel-checklib
+PERL_PKG_VERSION             = 1.16
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = check that a library is available
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = Artistic-v1.0
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-devel-checklib module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@( cd $(PERL_PKG)/usr/bin ; \
+	   sed -i 's,$(BUILDSYSTEM),,' use-devel-checklib ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a README TODO \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r CHANGES ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat CHANGES | head -n 1000 > $$DOCSDIR/CHANGES ; \
+	     touch -r CHANGES $$DOCSDIR/CHANGES ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-devel-checklib/1.16/PATCHES
===================================================================
Index: perl-modules/perl-devel-checklib/1.16/copying/LICENSE
===================================================================
--- perl-modules/perl-devel-checklib/1.16/copying/LICENSE	(nonexistent)
+++ perl-modules/perl-devel-checklib/1.16/copying/LICENSE	(revision 5)
@@ -0,0 +1,5 @@
+
+Copyright 2007 David Cantrell. Portions copyright 2007 David Golden.
+
+This module is free-as-in-speech software, and may be used, distributed,
+and modified under the same conditions as perl itself.
Index: perl-modules/perl-devel-checklib/1.16/copying
===================================================================
--- perl-modules/perl-devel-checklib/1.16/copying	(nonexistent)
+++ perl-modules/perl-devel-checklib/1.16/copying	(revision 5)

Property changes on: perl-modules/perl-devel-checklib/1.16/copying
___________________________________________________________________
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: perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-pkg-description.in
===================================================================
--- perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-pkg-description.in	(nonexistent)
+++ perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-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------------------------------------------------------|
+perl-devel-checklib: perl-devel-checklib @VERSION@ (check that a library is available)
+perl-devel-checklib:
+perl-devel-checklib: Devel::CheckLib is a perl module that checks whether a particular
+perl-devel-checklib: C library and its headers are available.
+perl-devel-checklib:
+perl-devel-checklib:
+perl-devel-checklib:
+perl-devel-checklib:
+perl-devel-checklib:
+perl-devel-checklib:
+perl-devel-checklib:
Index: perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-pkg-install.sh.in
===================================================================
--- perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBD::mysql|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sat Jan 15 22:12:45 2022: C<Module> L<Devel::CheckLib|Devel::CheckLib>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 1.16>
+
+=item *
+
+C<EXE_FILES: bin/use-devel-checklib>
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-devel-checklib/1.16/perl-devel-checklib-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-devel-checklib/1.16
===================================================================
--- perl-modules/perl-devel-checklib/1.16	(nonexistent)
+++ perl-modules/perl-devel-checklib/1.16	(revision 5)

Property changes on: perl-modules/perl-devel-checklib/1.16
___________________________________________________________________
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: perl-modules/perl-devel-checklib
===================================================================
--- perl-modules/perl-devel-checklib	(nonexistent)
+++ perl-modules/perl-devel-checklib	(revision 5)

Property changes on: perl-modules/perl-devel-checklib
___________________________________________________________________
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: perl-modules/perl-error/0.17029/Makefile
===================================================================
--- perl-modules/perl-error/0.17029/Makefile	(nonexistent)
+++ perl-modules/perl-error/0.17029/Makefile	(revision 5)
@@ -0,0 +1,291 @@
+
+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/perl-modules/CPAN/Error
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.17029
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/Error/Error-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Error-$(version)
+src_dir_name       = Error-$(version)
+doc_dir_name       = perl-error-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-error
+PERL_PKG_VERSION             = 0.17029
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Error/exception handling in an OO-ish way
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv2
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-error module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a examples LICENSE README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-error/0.17029/PATCHES
===================================================================
Index: perl-modules/perl-error/0.17029/perl-error-pkg-description.in
===================================================================
--- perl-modules/perl-error/0.17029/perl-error-pkg-description.in	(nonexistent)
+++ perl-modules/perl-error/0.17029/perl-error-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------------------------------------------------------|
+perl-error: perl-error @VERSION@ (Error/exception handling in an OO-ish way)
+perl-error:
+perl-error: The Error package provides two interfaces. Firstly Error provides
+perl-error: a procedural interface to exception handling. Secondly Error is a
+perl-error: base class for errors/exceptions that can either be thrown, for
+perl-error: subsequent catch, or can simply be recorded.
+perl-error:
+perl-error:
+perl-error:
+perl-error:
+perl-error:
Index: perl-modules/perl-error/0.17029/perl-error-pkg-install.sh.in
===================================================================
--- perl-modules/perl-error/0.17029/perl-error-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-error/0.17029/perl-error-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 16:17:15 2022: C<Module> L<Error|Error>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 0.17029>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-error/0.17029/perl-error-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-error/0.17029
===================================================================
--- perl-modules/perl-error/0.17029	(nonexistent)
+++ perl-modules/perl-error/0.17029	(revision 5)

Property changes on: perl-modules/perl-error/0.17029
___________________________________________________________________
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: perl-modules/perl-error
===================================================================
--- perl-modules/perl-error	(nonexistent)
+++ perl-modules/perl-error	(revision 5)

Property changes on: perl-modules/perl-error
___________________________________________________________________
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: perl-modules/perl-io-handle/1.50/Makefile
===================================================================
--- perl-modules/perl-io-handle/1.50/Makefile	(nonexistent)
+++ perl-modules/perl-io-handle/1.50/Makefile	(revision 5)
@@ -0,0 +1,292 @@
+
+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/perl-modules/CPAN/IO
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.50
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/IO/IO-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/IO-$(version)
+src_dir_name       = IO-$(version)
+doc_dir_name       = perl-io-handle-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-io-handle
+PERL_PKG_VERSION             = 1.50
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = supply object methods for I/O handles
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+#
+# Remove -I. to avoid use implemented poll functionality:
+#
+perl_environment += CCFLAGS='$(filter-out -I.,$(CFLAGS)) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-io-handle module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	@chmod 755 $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/vendor_perl/auto/IO/IO.so
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG) ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-io-handle/1.50/PATCHES
===================================================================
Index: perl-modules/perl-io-handle/1.50/copying/LICENSE
===================================================================
--- perl-modules/perl-io-handle/1.50/copying/LICENSE	(nonexistent)
+++ perl-modules/perl-io-handle/1.50/copying/LICENSE	(revision 5)
@@ -0,0 +1,362 @@
+
+  The GNU General Public License, Version 1, February 1989
+
+                    GNU GENERAL PUBLIC LICENSE
+                     Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The license agreements of most software companies try to keep users
+at the mercy of those companies.  By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License.  The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications.  Each
+licensee is addressed as "you".
+
+  1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program.  You may charge a fee for the physical act of
+transferring a copy.
+
+  2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating that
+    you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish, that
+    in whole or in part contains the Program or any part thereof, either
+    with or without modifications, to be licensed at no charge to all
+    third parties under the terms of this General Public License (except
+    that you may choose to grant warranty protection to some or all
+    third parties, at your option).
+
+    c) If the modified program normally reads commands interactively when
+    run, you must cause it, when started running for such interactive use
+    in the simplest and most usual way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this General
+    Public License.
+
+    d) You may charge a fee for the physical act of transferring a
+    copy, and you may at your option offer warranty protection in
+    exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+  3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal charge
+    for the cost of distribution) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it.  For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+  4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License.  However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+  5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions.  You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+  7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+  8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+        Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+  To do so, attach the following notices to the program.  It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19xx name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  program `Gnomovision' (a program to direct compilers to make passes
+  at assemblers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+--- The Artistic License 1.0 ---
+
+This software is Copyright (c) 1998 by Gisle Aas.
+
+This is free software, licensed under:
+
+  The Artistic License 1.0
+
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications.
+
+Definitions:
+
+  - "Package" refers to the collection of files distributed by the Copyright
+    Holder, and derivatives of that collection of files created through
+    textual modification.
+  - "Standard Version" refers to such a Package if it has not been modified,
+    or has been modified in accordance with the wishes of the Copyright
+    Holder.
+  - "Copyright Holder" is whoever is named in the copyright or copyrights for
+    the package.
+  - "You" is you, if you're thinking about copying or distributing this Package.
+  - "Reasonable copying fee" is whatever you can justify on the basis of media
+    cost, duplication charges, time of people involved, and so on. (You will
+    not be required to justify it to the Copyright Holder, but only to the
+    computing community at large as a market that must bear the fee.)
+  - "Freely Available" means that no fee is charged for the item itself, though
+    there may be fees involved in handling the item. It also means that
+    recipients of the item may redistribute it under the same conditions they
+    received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+from the Public Domain or from the Copyright Holder. A Package modified in such
+a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+you insert a prominent notice in each changed file stating how and when you
+changed that file, and provided that you do at least ONE of the following:
+
+  a) place your modifications in the Public Domain or otherwise make them
+     Freely Available, such as by posting said modifications to Usenet or an
+     equivalent medium, or placing the modifications on a major archive site
+     such as ftp.uu.net, or by allowing the Copyright Holder to include your
+     modifications in the Standard Version of the Package.
+
+  b) use the modified Package only within your corporation or organization.
+
+  c) rename any non-standard executables so the names do not conflict with
+     standard executables, which must also be provided, and provide a separate
+     manual page for each non-standard executable that clearly documents how it
+     differs from the Standard Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+form, provided that you do at least ONE of the following:
+
+  a) distribute a Standard Version of the executables and library files,
+     together with instructions (in the manual page or equivalent) on where to
+     get the Standard Version.
+
+  b) accompany the distribution with the machine-readable source of the Package
+     with your modifications.
+
+  c) accompany any non-standard executables with their corresponding Standard
+     Version executables, giving the non-standard executables non-standard
+     names, and clearly documenting the differences in manual pages (or
+     equivalent), together with instructions on where to get the Standard
+     Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this Package. You
+may not charge a fee for this Package itself. However, you may distribute this
+Package in aggregate with other (possibly commercial) programs as part of a
+larger (possibly commercial) software distribution provided that you do not
+advertise this Package as a product of your own.
+
+6. The scripts and library files supplied as input to or produced as output
+from the programs of this Package do not automatically fall under the copyright
+of this Package, but belong to whomever generated them, and may be sold
+commercially, and may be aggregated with this Package.
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+be considered part of this Package.
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End
+
Index: perl-modules/perl-io-handle/1.50/copying
===================================================================
--- perl-modules/perl-io-handle/1.50/copying	(nonexistent)
+++ perl-modules/perl-io-handle/1.50/copying	(revision 5)

Property changes on: perl-modules/perl-io-handle/1.50/copying
___________________________________________________________________
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: perl-modules/perl-io-handle/1.50/perl-io-handle-pkg-description.in
===================================================================
--- perl-modules/perl-io-handle/1.50/perl-io-handle-pkg-description.in	(nonexistent)
+++ perl-modules/perl-io-handle/1.50/perl-io-handle-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------------------------------------------------------|
+perl-io-handle: perl-io-handle @VERSION@ (supply object methods for I/O handles)
+perl-io-handle:
+perl-io-handle: IO::Handle is the base class for all other IO handle classes. It is
+perl-io-handle: not intended that objects of IO::Handle would be created directly,
+perl-io-handle: but instead IO::Handle is inherited from by several other classes
+perl-io-handle: in the IO hierarchy.
+perl-io-handle:
+perl-io-handle:
+perl-io-handle:
+perl-io-handle:
+perl-io-handle:
Index: perl-modules/perl-io-handle/1.50/perl-io-handle-pkg-install.sh.in
===================================================================
--- perl-modules/perl-io-handle/1.50/perl-io-handle-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-io-handle/1.50/perl-io-handle-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 13:13:28 2022: C<Module> L<IO|IO>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 1.50>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-io-handle/1.50/perl-io-handle-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-io-handle/1.50
===================================================================
--- perl-modules/perl-io-handle/1.50	(nonexistent)
+++ perl-modules/perl-io-handle/1.50	(revision 5)

Property changes on: perl-modules/perl-io-handle/1.50
___________________________________________________________________
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: perl-modules/perl-io-handle
===================================================================
--- perl-modules/perl-io-handle	(nonexistent)
+++ perl-modules/perl-io-handle	(revision 5)

Property changes on: perl-modules/perl-io-handle
___________________________________________________________________
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: perl-modules/perl-io-socket-ssl/2.075/Makefile
===================================================================
--- perl-modules/perl-io-socket-ssl/2.075/Makefile	(nonexistent)
+++ perl-modules/perl-io-socket-ssl/2.075/Makefile	(revision 5)
@@ -0,0 +1,285 @@
+
+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/perl-modules/CPAN/IO-Socket-SSL
+
+REQUIRES           = dev/perl-modules/perl-uri/5.16
+REQUIRES          += dev/perl-modules/perl-io-handle/1.50
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.075
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/IO-Socket-SSL/IO-Socket-SSL-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/IO-Socket-SSL-$(version)
+src_dir_name       = IO-Socket-SSL-$(version)
+doc_dir_name       = perl-io-socket-ssl-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-io-socket-ssl
+PERL_PKG_VERSION             = 2.075
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = SSL sockets with IO::Socket interface
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) NO_NETWORK_TESTING=yes $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-io-socket-ssl module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a certs example BUGS README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-io-socket-ssl/2.075/PATCHES
===================================================================
Index: perl-modules/perl-io-socket-ssl/2.075/copying/LICENSE
===================================================================
--- perl-modules/perl-io-socket-ssl/2.075/copying/LICENSE	(nonexistent)
+++ perl-modules/perl-io-socket-ssl/2.075/copying/LICENSE	(revision 5)
@@ -0,0 +1,362 @@
+
+  The GNU General Public License, Version 1, February 1989
+
+                    GNU GENERAL PUBLIC LICENSE
+                     Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The license agreements of most software companies try to keep users
+at the mercy of those companies.  By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License.  The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications.  Each
+licensee is addressed as "you".
+
+  1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program.  You may charge a fee for the physical act of
+transferring a copy.
+
+  2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating that
+    you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish, that
+    in whole or in part contains the Program or any part thereof, either
+    with or without modifications, to be licensed at no charge to all
+    third parties under the terms of this General Public License (except
+    that you may choose to grant warranty protection to some or all
+    third parties, at your option).
+
+    c) If the modified program normally reads commands interactively when
+    run, you must cause it, when started running for such interactive use
+    in the simplest and most usual way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this General
+    Public License.
+
+    d) You may charge a fee for the physical act of transferring a
+    copy, and you may at your option offer warranty protection in
+    exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+  3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal charge
+    for the cost of distribution) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it.  For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+  4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License.  However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+  5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions.  You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+  7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+  8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+        Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+  To do so, attach the following notices to the program.  It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19xx name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  program `Gnomovision' (a program to direct compilers to make passes
+  at assemblers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+--- The Artistic License 1.0 ---
+
+This software is Copyright (c) 1998 by Gisle Aas.
+
+This is free software, licensed under:
+
+  The Artistic License 1.0
+
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications.
+
+Definitions:
+
+  - "Package" refers to the collection of files distributed by the Copyright
+    Holder, and derivatives of that collection of files created through
+    textual modification.
+  - "Standard Version" refers to such a Package if it has not been modified,
+    or has been modified in accordance with the wishes of the Copyright
+    Holder.
+  - "Copyright Holder" is whoever is named in the copyright or copyrights for
+    the package.
+  - "You" is you, if you're thinking about copying or distributing this Package.
+  - "Reasonable copying fee" is whatever you can justify on the basis of media
+    cost, duplication charges, time of people involved, and so on. (You will
+    not be required to justify it to the Copyright Holder, but only to the
+    computing community at large as a market that must bear the fee.)
+  - "Freely Available" means that no fee is charged for the item itself, though
+    there may be fees involved in handling the item. It also means that
+    recipients of the item may redistribute it under the same conditions they
+    received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+from the Public Domain or from the Copyright Holder. A Package modified in such
+a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+you insert a prominent notice in each changed file stating how and when you
+changed that file, and provided that you do at least ONE of the following:
+
+  a) place your modifications in the Public Domain or otherwise make them
+     Freely Available, such as by posting said modifications to Usenet or an
+     equivalent medium, or placing the modifications on a major archive site
+     such as ftp.uu.net, or by allowing the Copyright Holder to include your
+     modifications in the Standard Version of the Package.
+
+  b) use the modified Package only within your corporation or organization.
+
+  c) rename any non-standard executables so the names do not conflict with
+     standard executables, which must also be provided, and provide a separate
+     manual page for each non-standard executable that clearly documents how it
+     differs from the Standard Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+form, provided that you do at least ONE of the following:
+
+  a) distribute a Standard Version of the executables and library files,
+     together with instructions (in the manual page or equivalent) on where to
+     get the Standard Version.
+
+  b) accompany the distribution with the machine-readable source of the Package
+     with your modifications.
+
+  c) accompany any non-standard executables with their corresponding Standard
+     Version executables, giving the non-standard executables non-standard
+     names, and clearly documenting the differences in manual pages (or
+     equivalent), together with instructions on where to get the Standard
+     Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this Package. You
+may not charge a fee for this Package itself. However, you may distribute this
+Package in aggregate with other (possibly commercial) programs as part of a
+larger (possibly commercial) software distribution provided that you do not
+advertise this Package as a product of your own.
+
+6. The scripts and library files supplied as input to or produced as output
+from the programs of this Package do not automatically fall under the copyright
+of this Package, but belong to whomever generated them, and may be sold
+commercially, and may be aggregated with this Package.
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+be considered part of this Package.
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End
+
Index: perl-modules/perl-io-socket-ssl/2.075/copying
===================================================================
--- perl-modules/perl-io-socket-ssl/2.075/copying	(nonexistent)
+++ perl-modules/perl-io-socket-ssl/2.075/copying	(revision 5)

Property changes on: perl-modules/perl-io-socket-ssl/2.075/copying
___________________________________________________________________
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: perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-pkg-description.in
===================================================================
--- perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-pkg-description.in	(nonexistent)
+++ perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-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------------------------------------------------------|
+perl-io-socket-ssl: perl-io-socket-ssl @VERSION@ (SSL sockets with IO::Socket interface)
+perl-io-socket-ssl:
+perl-io-socket-ssl: IO::Socket::SSL makes using SSL/TLS much easier by wrapping the
+perl-io-socket-ssl: necessary functionality into the familiar IO::Socket interface and
+perl-io-socket-ssl: providing secure defaults whenever possible. This way, existing
+perl-io-socket-ssl: applications can be made SSL-aware without much effort, at least
+perl-io-socket-ssl: if you do blocking I/O and don't use select or poll.
+perl-io-socket-ssl:
+perl-io-socket-ssl:
+perl-io-socket-ssl:
+perl-io-socket-ssl:
Index: perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-pkg-install.sh.in
===================================================================
--- perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 13:43:00 2022: C<Module> L<IO::Socket::SSL|IO::Socket::SSL>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 2.075>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-io-socket-ssl/2.075/perl-io-socket-ssl-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-io-socket-ssl/2.075
===================================================================
--- perl-modules/perl-io-socket-ssl/2.075	(nonexistent)
+++ perl-modules/perl-io-socket-ssl/2.075	(revision 5)

Property changes on: perl-modules/perl-io-socket-ssl/2.075
___________________________________________________________________
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: perl-modules/perl-io-socket-ssl
===================================================================
--- perl-modules/perl-io-socket-ssl	(nonexistent)
+++ perl-modules/perl-io-socket-ssl	(revision 5)

Property changes on: perl-modules/perl-io-socket-ssl
___________________________________________________________________
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: perl-modules/perl-locale-gettext/1.07/Makefile
===================================================================
--- perl-modules/perl-locale-gettext/1.07/Makefile	(nonexistent)
+++ perl-modules/perl-locale-gettext/1.07/Makefile	(revision 5)
@@ -0,0 +1,290 @@
+
+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/perl-modules/CPAN/Locale-gettext
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.07
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/Locale-gettext/gettext-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Locale-gettext-$(version)
+src_dir_name       = Locale-gettext-$(version)
+doc_dir_name       = perl-locale-gettext-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-locale-gettext
+PERL_PKG_VERSION             = 1.07
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Locale gettext
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+perl_src_hdrs += LANG=
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-locale-gettext module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	@chmod 755 $(PERL_PKG)/usr/lib$(LIBSUFFIX)/perl5/vendor_perl/auto/Locale/gettext/gettext.so
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PERL_PKG) ; \
+	   find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-locale-gettext/1.07/PATCHES
===================================================================
Index: perl-modules/perl-locale-gettext/1.07/copying/LICENSE
===================================================================
--- perl-modules/perl-locale-gettext/1.07/copying/LICENSE	(nonexistent)
+++ perl-modules/perl-locale-gettext/1.07/copying/LICENSE	(revision 5)
@@ -0,0 +1,362 @@
+
+  The GNU General Public License, Version 1, February 1989
+
+                    GNU GENERAL PUBLIC LICENSE
+                     Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The license agreements of most software companies try to keep users
+at the mercy of those companies.  By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License.  The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications.  Each
+licensee is addressed as "you".
+
+  1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program.  You may charge a fee for the physical act of
+transferring a copy.
+
+  2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating that
+    you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish, that
+    in whole or in part contains the Program or any part thereof, either
+    with or without modifications, to be licensed at no charge to all
+    third parties under the terms of this General Public License (except
+    that you may choose to grant warranty protection to some or all
+    third parties, at your option).
+
+    c) If the modified program normally reads commands interactively when
+    run, you must cause it, when started running for such interactive use
+    in the simplest and most usual way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this General
+    Public License.
+
+    d) You may charge a fee for the physical act of transferring a
+    copy, and you may at your option offer warranty protection in
+    exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+  3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal charge
+    for the cost of distribution) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it.  For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+  4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License.  However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+  5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions.  You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+  7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+  8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+        Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+  To do so, attach the following notices to the program.  It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19xx name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  program `Gnomovision' (a program to direct compilers to make passes
+  at assemblers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+--- The Artistic License 1.0 ---
+
+This software is Copyright (c) 1998 by Gisle Aas.
+
+This is free software, licensed under:
+
+  The Artistic License 1.0
+
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications.
+
+Definitions:
+
+  - "Package" refers to the collection of files distributed by the Copyright
+    Holder, and derivatives of that collection of files created through
+    textual modification.
+  - "Standard Version" refers to such a Package if it has not been modified,
+    or has been modified in accordance with the wishes of the Copyright
+    Holder.
+  - "Copyright Holder" is whoever is named in the copyright or copyrights for
+    the package.
+  - "You" is you, if you're thinking about copying or distributing this Package.
+  - "Reasonable copying fee" is whatever you can justify on the basis of media
+    cost, duplication charges, time of people involved, and so on. (You will
+    not be required to justify it to the Copyright Holder, but only to the
+    computing community at large as a market that must bear the fee.)
+  - "Freely Available" means that no fee is charged for the item itself, though
+    there may be fees involved in handling the item. It also means that
+    recipients of the item may redistribute it under the same conditions they
+    received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+from the Public Domain or from the Copyright Holder. A Package modified in such
+a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+you insert a prominent notice in each changed file stating how and when you
+changed that file, and provided that you do at least ONE of the following:
+
+  a) place your modifications in the Public Domain or otherwise make them
+     Freely Available, such as by posting said modifications to Usenet or an
+     equivalent medium, or placing the modifications on a major archive site
+     such as ftp.uu.net, or by allowing the Copyright Holder to include your
+     modifications in the Standard Version of the Package.
+
+  b) use the modified Package only within your corporation or organization.
+
+  c) rename any non-standard executables so the names do not conflict with
+     standard executables, which must also be provided, and provide a separate
+     manual page for each non-standard executable that clearly documents how it
+     differs from the Standard Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+form, provided that you do at least ONE of the following:
+
+  a) distribute a Standard Version of the executables and library files,
+     together with instructions (in the manual page or equivalent) on where to
+     get the Standard Version.
+
+  b) accompany the distribution with the machine-readable source of the Package
+     with your modifications.
+
+  c) accompany any non-standard executables with their corresponding Standard
+     Version executables, giving the non-standard executables non-standard
+     names, and clearly documenting the differences in manual pages (or
+     equivalent), together with instructions on where to get the Standard
+     Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this Package. You
+may not charge a fee for this Package itself. However, you may distribute this
+Package in aggregate with other (possibly commercial) programs as part of a
+larger (possibly commercial) software distribution provided that you do not
+advertise this Package as a product of your own.
+
+6. The scripts and library files supplied as input to or produced as output
+from the programs of this Package do not automatically fall under the copyright
+of this Package, but belong to whomever generated them, and may be sold
+commercially, and may be aggregated with this Package.
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+be considered part of this Package.
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End
+
Index: perl-modules/perl-locale-gettext/1.07/copying
===================================================================
--- perl-modules/perl-locale-gettext/1.07/copying	(nonexistent)
+++ perl-modules/perl-locale-gettext/1.07/copying	(revision 5)

Property changes on: perl-modules/perl-locale-gettext/1.07/copying
___________________________________________________________________
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: perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-pkg-description.in
===================================================================
--- perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-pkg-description.in	(nonexistent)
+++ perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-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------------------------------------------------------|
+perl-locale-gettext: perl-locale-gettext @VERSION@ (Locale gettext)
+perl-locale-gettext:
+perl-locale-gettext: This is a perl5 module quickly written to gain access
+perl-locale-gettext: to the C library functions for internatialization.
+perl-locale-gettext: They work just like the C versions.
+perl-locale-gettext:
+perl-locale-gettext:
+perl-locale-gettext:
+perl-locale-gettext:
+perl-locale-gettext:
+perl-locale-gettext:
Index: perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-pkg-install.sh.in
===================================================================
--- perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "Locale::gettext|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 11:37:25 2022: C<Module> L<Locale::gettext|Locale::gettext>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 1.07>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-locale-gettext/1.07/perl-locale-gettext-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-locale-gettext/1.07
===================================================================
--- perl-modules/perl-locale-gettext/1.07	(nonexistent)
+++ perl-modules/perl-locale-gettext/1.07	(revision 5)

Property changes on: perl-modules/perl-locale-gettext/1.07
___________________________________________________________________
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: perl-modules/perl-locale-gettext
===================================================================
--- perl-modules/perl-locale-gettext	(nonexistent)
+++ perl-modules/perl-locale-gettext	(revision 5)

Property changes on: perl-modules/perl-locale-gettext
___________________________________________________________________
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: perl-modules/perl-mailtools/2.21/Makefile
===================================================================
--- perl-modules/perl-mailtools/2.21/Makefile	(nonexistent)
+++ perl-modules/perl-mailtools/2.21/Makefile	(revision 5)
@@ -0,0 +1,288 @@
+
+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/perl-modules/CPAN/MailTools
+
+REQUIRES           = dev/perl-modules/perl-time-date/0.05
+REQUIRES          += dev/perl-modules/perl-io-socket-ssl/2.075
+REQUIRES          += dev/perl-modules/perl-net-domain/3.14
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.21
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/MailTools/MailTools-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/MailTools-$(version)
+src_dir_name       = MailTools-$(version)
+doc_dir_name       = perl-mailtools-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-mailtools
+PERL_PKG_VERSION             = 2.21
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = bundle of ancient email modules
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = Artistic-v1.0
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-mailtools module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/Artistic $(CURDIR)/copying/Copying \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/Artistic $(CURDIR)/copying/Copying \
+	       $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a examples README* \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-mailtools/2.21/PATCHES
===================================================================
Index: perl-modules/perl-mailtools/2.21/copying/Artistic
===================================================================
--- perl-modules/perl-mailtools/2.21/copying/Artistic	(nonexistent)
+++ perl-modules/perl-mailtools/2.21/copying/Artistic	(revision 5)
@@ -0,0 +1,131 @@
+
+
+
+
+                         The "Artistic License"
+
+                                Preamble
+
+The intent of this document is to state the conditions under which a
+Package may be copied, such that the Copyright Holder maintains some
+semblance of artistic control over the development of the package,
+while giving the users of the package the right to use and distribute
+the Package in a more-or-less customary fashion, plus the right to make
+reasonable modifications.
+
+Definitions:
+
+        "Package" refers to the collection of files distributed by the
+        Copyright Holder, and derivatives of that collection of files
+        created through textual modification.
+
+        "Standard Version" refers to such a Package if it has not been
+        modified, or has been modified in accordance with the wishes
+        of the Copyright Holder as specified below.
+
+        "Copyright Holder" is whoever is named in the copyright or
+        copyrights for the package.
+
+        "You" is you, if you're thinking about copying or distributing
+        this Package.
+
+        "Reasonable copying fee" is whatever you can justify on the
+        basis of media cost, duplication charges, time of people involved,
+        and so on.  (You will not be required to justify it to the
+        Copyright Holder, but only to the computing community at large
+        as a market that must bear the fee.)
+
+        "Freely Available" means that no fee is charged for the item
+        itself, though there may be fees involved in handling the item.
+        It also means that recipients of the item may redistribute it
+        under the same conditions they received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications
+derived from the Public Domain or from the Copyright Holder.  A Package
+modified in such a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided
+that you insert a prominent notice in each changed file stating how and
+when you changed that file, and provided that you do at least ONE of the
+following:
+
+    a) place your modifications in the Public Domain or otherwise make them
+    Freely Available, such as by posting said modifications to Usenet or
+    an equivalent medium, or placing the modifications on a major archive
+    site such as uunet.uu.net, or by allowing the Copyright Holder to include
+    your modifications in the Standard Version of the Package.
+
+    b) use the modified Package only within your corporation or organization.
+
+    c) rename any non-standard executables so the names do not conflict
+    with standard executables, which must also be provided, and provide
+    a separate manual page for each non-standard executable that clearly
+    documents how it differs from the Standard Version.
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or
+executable form, provided that you do at least ONE of the following:
+
+    a) distribute a Standard Version of the executables and library files,
+    together with instructions (in the manual page or equivalent) on where
+    to get the Standard Version.
+
+    b) accompany the distribution with the machine-readable source of
+    the Package with your modifications.
+
+    c) give non-standard executables non-standard names, and clearly
+    document the differences in manual pages (or equivalent), together
+    with instructions on where to get the Standard Version.
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this
+Package.  You may not charge a fee for this Package itself.  However,
+you may distribute this Package in aggregate with other (possibly
+commercial) programs as part of a larger (possibly commercial) software
+distribution provided that you do not advertise this Package as a
+product of your own.  You may embed this Package's interpreter within
+an executable of yours (by linking); this shall be construed as a mere
+form of aggregation, provided that the complete Standard Version of the
+interpreter is so embedded.
+
+6. The scripts and library files supplied as input to or produced as
+output from the programs of this Package do not automatically fall
+under the copyright of this Package, but belong to whoever generated
+them, and may be sold commercially, and may be aggregated with this
+Package.  If such scripts or library files are aggregated with this
+Package via the so-called "undump" or "unexec" methods of producing a
+binary executable image, then distribution of such an image shall
+neither be construed as a distribution of this Package nor shall it
+fall under the restrictions of Paragraphs 3 and 4, provided that you do
+not represent such an executable image as a Standard Version of this
+Package.
+
+7. C subroutines (or comparably compiled subroutines in other
+languages) supplied by you and linked into this Package in order to
+emulate subroutines and variables of the language defined by this
+Package shall not be considered part of this Package, but are the
+equivalent of input as in Paragraph 6, provided these subroutines do
+not change the language in any way that would cause it to fail the
+regression tests for the language.
+
+8. Aggregation of this Package with a commercial distribution is always
+permitted provided that the use of this Package is embedded; that is,
+when no overt attempt is made to make this Package's interfaces visible
+to the end user of the commercial distribution.  Such use shall not be
+construed as a distribution of this Package.
+
+9. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+10. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+                                The End
Index: perl-modules/perl-mailtools/2.21/copying/Copying
===================================================================
--- perl-modules/perl-mailtools/2.21/copying/Copying	(nonexistent)
+++ perl-modules/perl-mailtools/2.21/copying/Copying	(revision 5)
@@ -0,0 +1,251 @@
+
+                    GNU GENERAL PUBLIC LICENSE
+                     Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+                    51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The license agreements of most software companies try to keep users
+at the mercy of those companies.  By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License.  The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications.  Each
+licensee is addressed as "you".
+
+  1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program.  You may charge a fee for the physical act of
+transferring a copy.
+
+  2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating that
+    you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish, that
+    in whole or in part contains the Program or any part thereof, either
+    with or without modifications, to be licensed at no charge to all
+    third parties under the terms of this General Public License (except
+    that you may choose to grant warranty protection to some or all
+    third parties, at your option).
+
+    c) If the modified program normally reads commands interactively when
+    run, you must cause it, when started running for such interactive use
+    in the simplest and most usual way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this General
+    Public License.
+
+    d) You may charge a fee for the physical act of transferring a
+    copy, and you may at your option offer warranty protection in
+    exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+  3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal charge
+    for the cost of distribution) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it.  For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+  4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License.  However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+  5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions.  You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+  7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+  8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+        Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+  To do so, attach the following notices to the program.  It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19xx name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  program `Gnomovision' (a program to direct compilers to make passes
+  at assemblers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+That's all there is to it!
Index: perl-modules/perl-mailtools/2.21/copying
===================================================================
--- perl-modules/perl-mailtools/2.21/copying	(nonexistent)
+++ perl-modules/perl-mailtools/2.21/copying	(revision 5)

Property changes on: perl-modules/perl-mailtools/2.21/copying
___________________________________________________________________
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: perl-modules/perl-mailtools/2.21/perl-mailtools-pkg-description.in
===================================================================
--- perl-modules/perl-mailtools/2.21/perl-mailtools-pkg-description.in	(nonexistent)
+++ perl-modules/perl-mailtools/2.21/perl-mailtools-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------------------------------------------------------|
+perl-mailtools: perl-mailtools @VERSION@ (bundle of ancient email modules)
+perl-mailtools:
+perl-mailtools: MailTools is a bundle: an ancient form of combining packages into
+perl-mailtools: one distribution. Gladly, it can be distributed as if it is a normal
+perl-mailtools: distribution as well.
+perl-mailtools:
+perl-mailtools:
+perl-mailtools:
+perl-mailtools:
+perl-mailtools:
+perl-mailtools:
Index: perl-modules/perl-mailtools/2.21/perl-mailtools-pkg-install.sh.in
===================================================================
--- perl-modules/perl-mailtools/2.21/perl-mailtools-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-mailtools/2.21/perl-mailtools-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 15:49:06 2022: C<Module> L<MailTools|MailTools>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 2.21>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-mailtools/2.21/perl-mailtools-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-mailtools/2.21
===================================================================
--- perl-modules/perl-mailtools/2.21	(nonexistent)
+++ perl-modules/perl-mailtools/2.21	(revision 5)

Property changes on: perl-modules/perl-mailtools/2.21
___________________________________________________________________
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: perl-modules/perl-mailtools
===================================================================
--- perl-modules/perl-mailtools	(nonexistent)
+++ perl-modules/perl-mailtools	(revision 5)

Property changes on: perl-modules/perl-mailtools
___________________________________________________________________
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: perl-modules/perl-net-domain/3.14/Makefile
===================================================================
--- perl-modules/perl-net-domain/3.14/Makefile	(nonexistent)
+++ perl-modules/perl-net-domain/3.14/Makefile	(revision 5)
@@ -0,0 +1,284 @@
+
+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/perl-modules/CPAN/Net-Domain
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.14
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/Net-Domain/libnet-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/libnet-$(version)
+src_dir_name       = libnet-$(version)
+doc_dir_name       = perl-net-domain-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-net-domain
+PERL_PKG_VERSION             = 3.14
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Attempt to evaluate the current FQDN
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = Artistic-v1.0
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) NO_NETWORK_TESTING=yes $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-net-domain module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/Artistic $(SRC_DIR)/Copying $(SRC_DIR)/LICENCE \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a demos Artistic INSTALL LICENCE README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-net-domain/3.14/PATCHES
===================================================================
--- perl-modules/perl-net-domain/3.14/PATCHES	(nonexistent)
+++ perl-modules/perl-net-domain/3.14/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../../sources/packages/d/perl-modules/CPAN/Net-Domain/patches/libnet-3.14-not-create-cfg.patch     -p0
+../../../../sources/packages/d/perl-modules/CPAN/Net-Domain/patches/libnet-3.14-no-network-testing.patch -p0
Index: perl-modules/perl-net-domain/3.14/perl-net-domain-pkg-description.in
===================================================================
--- perl-modules/perl-net-domain/3.14/perl-net-domain-pkg-description.in	(nonexistent)
+++ perl-modules/perl-net-domain/3.14/perl-net-domain-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------------------------------------------------------|
+perl-net-domain: perl-net-domain @VERSION@ (Attempt to evaluate the current FQDN)
+perl-net-domain:
+perl-net-domain: Net::Domain - Attempt to evaluate the current host's internet name
+perl-net-domain: and domain.
+perl-net-domain:
+perl-net-domain: Using various methods attempt to find the Fully Qualified Domain
+perl-net-domain: Name (FQDN) of the current host. From this determine the host-name
+perl-net-domain: and the host-domain.
+perl-net-domain:
+perl-net-domain:
+perl-net-domain:
Index: perl-modules/perl-net-domain/3.14/perl-net-domain-pkg-install.sh.in
===================================================================
--- perl-modules/perl-net-domain/3.14/perl-net-domain-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-net-domain/3.14/perl-net-domain-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "DBI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 14:36:47 2022: C<Module> L<Net|Net>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 3.14>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-net-domain/3.14/perl-net-domain-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-net-domain/3.14
===================================================================
--- perl-modules/perl-net-domain/3.14	(nonexistent)
+++ perl-modules/perl-net-domain/3.14	(revision 5)

Property changes on: perl-modules/perl-net-domain/3.14
___________________________________________________________________
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: perl-modules/perl-net-domain
===================================================================
--- perl-modules/perl-net-domain	(nonexistent)
+++ perl-modules/perl-net-domain	(revision 5)

Property changes on: perl-modules/perl-net-domain
___________________________________________________________________
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: perl-modules/perl-time-date/0.05/Makefile
===================================================================
--- perl-modules/perl-time-date/0.05/Makefile	(nonexistent)
+++ perl-modules/perl-time-date/0.05/Makefile	(revision 5)
@@ -0,0 +1,285 @@
+
+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/perl-modules/CPAN/Time-Date
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.05
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/Time-Date/Time-Date-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/Time-Date-$(version)
+src_dir_name       = Time-Date-$(version)
+doc_dir_name       = perl-time-date-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-time-date
+PERL_PKG_VERSION             = 0.05
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = A time and date object for Perl
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+perl_src_hdrs += LANG=
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-time-date module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@cp -a $(CURDIR)/copying/LICENSE $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-time-date/0.05/PATCHES
===================================================================
Index: perl-modules/perl-time-date/0.05/copying/LICENSE
===================================================================
--- perl-modules/perl-time-date/0.05/copying/LICENSE	(nonexistent)
+++ perl-modules/perl-time-date/0.05/copying/LICENSE	(revision 5)
@@ -0,0 +1,362 @@
+
+  The GNU General Public License, Version 1, February 1989
+
+                    GNU GENERAL PUBLIC LICENSE
+                     Version 1, February 1989
+
+ Copyright (C) 1989 Free Software Foundation, Inc.
+ 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The license agreements of most software companies try to keep users
+at the mercy of those companies.  By contrast, our General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  The
+General Public License applies to the Free Software Foundation's
+software and to any other program whose authors commit to using it.
+You can use it for your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Specifically, the General Public License is designed to make
+sure that you have the freedom to give away or sell copies of free
+software, that you receive source code or can get it if you want it,
+that you can change the software or use pieces of it in new free
+programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of a such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must tell them their rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License Agreement applies to any program or other work which
+contains a notice placed by the copyright holder saying it may be
+distributed under the terms of this General Public License.  The
+"Program", below, refers to any such program or work, and a "work based
+on the Program" means either the Program or any work containing the
+Program or a portion of it, either verbatim or with modifications.  Each
+licensee is addressed as "you".
+
+  1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this
+General Public License and to the absence of any warranty; and give any
+other recipients of the Program a copy of this General Public License
+along with the Program.  You may charge a fee for the physical act of
+transferring a copy.
+
+  2. You may modify your copy or copies of the Program or any portion of
+it, and copy and distribute such modifications under the terms of Paragraph
+1 above, provided that you also do the following:
+
+    a) cause the modified files to carry prominent notices stating that
+    you changed the files and the date of any change; and
+
+    b) cause the whole of any work that you distribute or publish, that
+    in whole or in part contains the Program or any part thereof, either
+    with or without modifications, to be licensed at no charge to all
+    third parties under the terms of this General Public License (except
+    that you may choose to grant warranty protection to some or all
+    third parties, at your option).
+
+    c) If the modified program normally reads commands interactively when
+    run, you must cause it, when started running for such interactive use
+    in the simplest and most usual way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this General
+    Public License.
+
+    d) You may charge a fee for the physical act of transferring a
+    copy, and you may at your option offer warranty protection in
+    exchange for a fee.
+
+Mere aggregation of another independent work with the Program (or its
+derivative) on a volume of a storage or distribution medium does not bring
+the other work under the scope of these terms.
+
+  3. You may copy and distribute the Program (or a portion or derivative of
+it, under Paragraph 2) in object code or executable form under the terms of
+Paragraphs 1 and 2 above provided that you also do one of the following:
+
+    a) accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    b) accompany it with a written offer, valid for at least three
+    years, to give any third party free (except for a nominal charge
+    for the cost of distribution) a complete machine-readable copy of the
+    corresponding source code, to be distributed under the terms of
+    Paragraphs 1 and 2 above; or,
+
+    c) accompany it with the information you received as to where the
+    corresponding source code may be obtained.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form alone.)
+
+Source code for a work means the preferred form of the work for making
+modifications to it.  For an executable file, complete source code means
+all the source code for all modules it contains; but, as a special
+exception, it need not include source code for modules which are standard
+libraries that accompany the operating system on which the executable
+file runs, or for standard header files or definitions files that
+accompany that operating system.
+
+  4. You may not copy, modify, sublicense, distribute or transfer the
+Program except as expressly provided under this General Public License.
+Any attempt otherwise to copy, modify, sublicense, distribute or transfer
+the Program is void, and will automatically terminate your rights to use
+the Program under this License.  However, parties who have received
+copies, or rights to use copies, from you under this General Public
+License will not have their licenses terminated so long as such parties
+remain in full compliance.
+
+  5. By copying, distributing or modifying the Program (or any work based
+on the Program) you indicate your acceptance of this license to do so,
+and all its terms and conditions.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these
+terms and conditions.  You may not impose any further restrictions on the
+recipients' exercise of the rights granted herein.
+
+  7. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of the license which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+the license, you may choose any version ever published by the Free Software
+Foundation.
+
+  8. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+        Appendix: How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to humanity, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these
+terms.
+
+  To do so, attach the following notices to the program.  It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 1, or (at your option)
+    any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19xx name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License.  Of course, the
+commands you use may be called something other than `show w' and `show
+c'; they could even be mouse-clicks or menu items--whatever suits your
+program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the
+  program `Gnomovision' (a program to direct compilers to make passes
+  at assemblers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+That's all there is to it!
+
+
+--- The Artistic License 1.0 ---
+
+This software is Copyright (c) 1998 by Gisle Aas.
+
+This is free software, licensed under:
+
+  The Artistic License 1.0
+
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications.
+
+Definitions:
+
+  - "Package" refers to the collection of files distributed by the Copyright
+    Holder, and derivatives of that collection of files created through
+    textual modification.
+  - "Standard Version" refers to such a Package if it has not been modified,
+    or has been modified in accordance with the wishes of the Copyright
+    Holder.
+  - "Copyright Holder" is whoever is named in the copyright or copyrights for
+    the package.
+  - "You" is you, if you're thinking about copying or distributing this Package.
+  - "Reasonable copying fee" is whatever you can justify on the basis of media
+    cost, duplication charges, time of people involved, and so on. (You will
+    not be required to justify it to the Copyright Holder, but only to the
+    computing community at large as a market that must bear the fee.)
+  - "Freely Available" means that no fee is charged for the item itself, though
+    there may be fees involved in handling the item. It also means that
+    recipients of the item may redistribute it under the same conditions they
+    received it.
+
+1. You may make and give away verbatim copies of the source form of the
+Standard Version of this Package without restriction, provided that you
+duplicate all of the original copyright notices and associated disclaimers.
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+from the Public Domain or from the Copyright Holder. A Package modified in such
+a way shall still be considered the Standard Version.
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+you insert a prominent notice in each changed file stating how and when you
+changed that file, and provided that you do at least ONE of the following:
+
+  a) place your modifications in the Public Domain or otherwise make them
+     Freely Available, such as by posting said modifications to Usenet or an
+     equivalent medium, or placing the modifications on a major archive site
+     such as ftp.uu.net, or by allowing the Copyright Holder to include your
+     modifications in the Standard Version of the Package.
+
+  b) use the modified Package only within your corporation or organization.
+
+  c) rename any non-standard executables so the names do not conflict with
+     standard executables, which must also be provided, and provide a separate
+     manual page for each non-standard executable that clearly documents how it
+     differs from the Standard Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+form, provided that you do at least ONE of the following:
+
+  a) distribute a Standard Version of the executables and library files,
+     together with instructions (in the manual page or equivalent) on where to
+     get the Standard Version.
+
+  b) accompany the distribution with the machine-readable source of the Package
+     with your modifications.
+
+  c) accompany any non-standard executables with their corresponding Standard
+     Version executables, giving the non-standard executables non-standard
+     names, and clearly documenting the differences in manual pages (or
+     equivalent), together with instructions on where to get the Standard
+     Version.
+
+  d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+Package.  You may charge any fee you choose for support of this Package. You
+may not charge a fee for this Package itself. However, you may distribute this
+Package in aggregate with other (possibly commercial) programs as part of a
+larger (possibly commercial) software distribution provided that you do not
+advertise this Package as a product of your own.
+
+6. The scripts and library files supplied as input to or produced as output
+from the programs of this Package do not automatically fall under the copyright
+of this Package, but belong to whomever generated them, and may be sold
+commercially, and may be aggregated with this Package.
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+be considered part of this Package.
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+products derived from this software without specific prior written permission.
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End
+
Index: perl-modules/perl-time-date/0.05/copying
===================================================================
--- perl-modules/perl-time-date/0.05/copying	(nonexistent)
+++ perl-modules/perl-time-date/0.05/copying	(revision 5)

Property changes on: perl-modules/perl-time-date/0.05/copying
___________________________________________________________________
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: perl-modules/perl-time-date/0.05/perl-time-date-pkg-description.in
===================================================================
--- perl-modules/perl-time-date/0.05/perl-time-date-pkg-description.in	(nonexistent)
+++ perl-modules/perl-time-date/0.05/perl-time-date-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------------------------------------------------------|
+perl-time-date: perl-time-date @VERSION@ (A time and date object for Perl)
+perl-time-date:
+perl-time-date: Time::Date is a class that can be used to represent a date as an
+perl-time-date: object. Unlike other modules, this one just stores a Unix epoch
+perl-time-date: within the object and relies heavily on the underlying operating
+perl-time-date: system so it's very fast. It provides functionality for working
+perl-time-date: with common representations of dates, displaying dates naturally
+perl-time-date: (like "5 minutes ago"), and for listing timezones. Also, it will
+perl-time-date: stringify automatically if you use the object in a string.
+perl-time-date:
+perl-time-date:
Index: perl-modules/perl-time-date/0.05/perl-time-date-pkg-install.sh.in
===================================================================
--- perl-modules/perl-time-date/0.05/perl-time-date-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-time-date/0.05/perl-time-date-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "Locale::gettext|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 12:16:59 2022: C<Module> L<Time::Date|Time::Date>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 0.05>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-time-date/0.05/perl-time-date-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-time-date/0.05
===================================================================
--- perl-modules/perl-time-date/0.05	(nonexistent)
+++ perl-modules/perl-time-date/0.05	(revision 5)

Property changes on: perl-modules/perl-time-date/0.05
___________________________________________________________________
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: perl-modules/perl-time-date
===================================================================
--- perl-modules/perl-time-date	(nonexistent)
+++ perl-modules/perl-time-date	(revision 5)

Property changes on: perl-modules/perl-time-date
___________________________________________________________________
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: perl-modules/perl-uri/5.16/Makefile
===================================================================
--- perl-modules/perl-uri/5.16/Makefile	(nonexistent)
+++ perl-modules/perl-uri/5.16/Makefile	(revision 5)
@@ -0,0 +1,284 @@
+
+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/perl-modules/CPAN/URI
+
+REQUIRES           = dev/perl/5.36.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 5.16
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/perl-modules/CPAN/URI/URI-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/URI-$(version)
+src_dir_name       = URI-$(version)
+doc_dir_name       = perl-uri-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PERL_PKG_NAME                = perl-uri
+PERL_PKG_VERSION             = 5.16
+PERL_PKG_ARCH                = $(TOOLCHAIN)
+PERL_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PERL_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PERL_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PERL_PKG_SHORT_DESCRIPTION   = Uniform Resource Identifiers
+PERL_PKG_URL                 = $(BUG_URL)
+PERL_PKG_LICENSE             = GPLv1
+PERL_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-description
+PERL_PKG_DESCRIPTION_FILE_IN = $(PERL_PKG_NAME)-pkg-description.in
+PERL_PKG_INSTALL_SCRIPT      = $(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-pkg-install.sh
+PERL_PKG_INSTALL_SCRIPT_IN   = $(PERL_PKG_NAME)-pkg-install.sh.in
+
+PERL_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PERL_PKG_NAME)-package
+
+pkg_basename     = $(PERL_PKG_NAME)-$(PERL_PKG_VERSION)-$(PERL_PKG_ARCH)-$(PERL_PKG_DISTRO_NAME)-$(PERL_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=$(PERL_PKG)
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += PERL_INCDEP='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+#
+# Give the path of target machine PERL headers to the ExtUtils::MakeMaker for creating
+# the PERL_HDRS list in the resulting Makefile created by  `perl Makefile.PL` command.
+#
+# see: _perl_header_files() fuction in the MM_Any.pm script to understand PERL_SRC env.
+#
+perl_src_hdrs  = PERL_SRC=$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE
+
+#
+# Module Specific Perl5 Environment:
+# =================================
+#
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd  $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(perl_src_hdrs) $(PERL) Makefile.PL $(perl_environment)  ; \
+	 )
+	# ======= build the perl-uri module =======
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) $(perl_environment) ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PERL_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(perl_environment) $(env_sysroot) ; \
+	 )
+	@find $(PERL_PKG) -name '.packlist' -delete
+	@rm -f $(PERL_PKG)/$(perl_local_pod)
+	# ======= Install Documentation =======
+	@if [ -d $(PERL_PKG)/usr/share/man ]; then \
+	  ( cd $(PERL_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 $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(PERL_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PERL_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSE README \
+	         $(PERL_PKG)/usr/share/doc/$(doc_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r Changes ]; then \
+	     DOCSDIR=`echo $(PERL_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat Changes | head -n 1000 > $$DOCSDIR/Changes ; \
+	     touch -r Changes $$DOCSDIR/Changes ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PERL_PKG))
+	@touch $@
+
+$(PERL_PKG_DESCRIPTION_FILE): $(PERL_PKG_DESCRIPTION_FILE_IN)
+	@cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(PERL_PKG_INSTALL_SCRIPT): $(PERL_PKG_INSTALL_SCRIPT_IN)
+	@cat $< | $(SED) -e "s,@PERL_LOCAL_POD@,$(perl_local_pod),g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature)   : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG_INSTALL_SCRIPT)
+	@cp $(PERL_PKG_DESCRIPTION_FILE) $(PERL_PKG)/.DESCRIPTION
+	@cp $(PERL_PKG_INSTALL_SCRIPT) $(PERL_PKG)/.INSTALL
+	@chmod a+x $(PERL_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PERL_PKG)/.REQUIRES
+	@echo "pkgname=$(PERL_PKG_NAME)"                            >  $(PERL_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PERL_PKG_VERSION)"                          >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "arch=$(PERL_PKG_ARCH)"                               >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PERL_PKG_DISTRO_NAME)"                  >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PERL_PKG_DISTRO_VERSION)"                >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "group=$(PERL_PKG_GROUP)"                             >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PERL_PKG_SHORT_DESCRIPTION)\"" >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "url=$(PERL_PKG_URL)"                                 >> $(PERL_PKG)/.PKGINFO ; \
+	 echo "license=$(PERL_PKG_LICENSE)"                         >> $(PERL_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PERL_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: perl-modules/perl-uri/5.16/PATCHES
===================================================================
Index: perl-modules/perl-uri/5.16/perl-uri-pkg-description.in
===================================================================
--- perl-modules/perl-uri/5.16/perl-uri-pkg-description.in	(nonexistent)
+++ perl-modules/perl-uri/5.16/perl-uri-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------------------------------------------------------|
+perl-uri: perl-uri @VERSION@ (Uniform Resource Identifiers)
+perl-uri:
+perl-uri: This module implements the "URI" class. Objects of this class
+perl-uri: represent "Uniform Resource Identifier references" as specified
+perl-uri: in RFC 2396 (and updated by RFC 2732).
+perl-uri:
+perl-uri:
+perl-uri:
+perl-uri:
+perl-uri:
+perl-uri:
Index: perl-modules/perl-uri/5.16/perl-uri-pkg-install.sh.in
===================================================================
--- perl-modules/perl-uri/5.16/perl-uri-pkg-install.sh.in	(nonexistent)
+++ perl-modules/perl-uri/5.16/perl-uri-pkg-install.sh.in	(revision 5)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  if ! grep "URI|" @PERL_LOCAL_POD@ 1> /dev/null 2> /dev/null ; then
+  cat << EOF >> @PERL_LOCAL_POD@
+=head2 Sun Jan 16 11:10:58 2022: C<Module> L<URI|URI>
+
+=over 4
+
+=item *
+
+C<installed into: /usr/share/perl5/vendor_perl>
+
+=item *
+
+C<LINKTYPE: dynamic>
+
+=item *
+
+C<VERSION: 5.16>
+
+=item *
+
+C<EXE_FILES: >
+
+=back
+
+EOF
+  fi
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: perl-modules/perl-uri/5.16/perl-uri-pkg-install.sh.in
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: perl-modules/perl-uri/5.16
===================================================================
--- perl-modules/perl-uri/5.16	(nonexistent)
+++ perl-modules/perl-uri/5.16	(revision 5)

Property changes on: perl-modules/perl-uri/5.16
___________________________________________________________________
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: perl-modules/perl-uri
===================================================================
--- perl-modules/perl-uri	(nonexistent)
+++ perl-modules/perl-uri	(revision 5)

Property changes on: perl-modules/perl-uri
___________________________________________________________________
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: perl-modules
===================================================================
--- perl-modules	(nonexistent)
+++ perl-modules	(revision 5)

Property changes on: perl-modules
___________________________________________________________________
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: pkg-config/0.29.2/Makefile
===================================================================
--- pkg-config/0.29.2/Makefile	(nonexistent)
+++ pkg-config/0.29.2/Makefile	(revision 5)
@@ -0,0 +1,236 @@
+
+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/pkg-config
+
+REQUIRES           = libs/glib2/2.76.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 0.29.2
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/pkg-config/pkg-config-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/pkg-config-$(version)
+src_dir_name       = pkg-config-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+profile_dir        = $(CURDIR)/profile.d
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PCONFIG_PKG_NAME                = pkg-config
+PCONFIG_PKG_VERSION             = 0.29.2
+PCONFIG_PKG_ARCH                = $(TOOLCHAIN)
+PCONFIG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PCONFIG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PCONFIG_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+PCONFIG_PKG_SHORT_DESCRIPTION   = managing library compile/link flags utility
+PCONFIG_PKG_URL                 = $(BUG_URL)
+PCONFIG_PKG_LICENSE             = GPLv2
+PCONFIG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PCONFIG_PKG_NAME)-pkg-description
+PCONFIG_PKG_DESCRIPTION_FILE_IN = $(PCONFIG_PKG_NAME)-pkg-description.in
+PCONFIG_PKG_INSTALL_SCRIPT      = $(PCONFIG_PKG_NAME)-pkg-install.sh
+
+PCONFIG_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PCONFIG_PKG_NAME)-package
+
+pkg_basename     = $(PCONFIG_PKG_NAME)-$(PCONFIG_PKG_VERSION)-$(PCONFIG_PKG_ARCH)-$(PCONFIG_PKG_DISTRO_NAME)-$(PCONFIG_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=$(PCONFIG_PKG)
+
+
+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 += --disable-dependency-tracking
+
+#
+# Disable the creation of an undesired
+# hard link to the pkg-config program:
+#
+extra_configure_switches += --disable-host-tool
+
+CFLAGS += -Wno-unused-result
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PCONFIG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Add Profile scripts =======
+	@mkdir -p $(PCONFIG_PKG)/etc/profile.d
+	@cat $(profile_dir)/pkgconfig.csh.in | sed "s,@LIBDIRSUFFIX@,$(LIBSUFFIX),g" > $(PCONFIG_PKG)/etc/profile.d/pkgconfig.csh
+	@cat $(profile_dir)/pkgconfig.sh.in  | sed "s,@LIBDIRSUFFIX@,$(LIBSUFFIX),g" > $(PCONFIG_PKG)/etc/profile.d/pkgconfig.sh
+	@chmod 0755 $(PCONFIG_PKG)/etc/profile.d/*
+	# ======= Install Documentation =======
+	@if [ -d $(PCONFIG_PKG)/usr/share/man ]; then \
+	  ( cd $(PCONFIG_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 $(PCONFIG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS $(SRC_DIR)/COPYING \
+	       $(PCONFIG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(PCONFIG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS COPYING INSTALL NEWS README \
+	         $(PCONFIG_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(PCONFIG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PCONFIG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(PCONFIG_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(PCONFIG_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(PCONFIG_PKG_DESCRIPTION_FILE): $(PCONFIG_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) $(PCONFIG_PKG_DESCRIPTION_FILE) $(PCONFIG_PKG_INSTALL_SCRIPT)
+	@cp $(PCONFIG_PKG_DESCRIPTION_FILE) $(PCONFIG_PKG)/.DESCRIPTION
+	@cp $(PCONFIG_PKG_INSTALL_SCRIPT) $(PCONFIG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PCONFIG_PKG)/.REQUIRES
+	@echo "pkgname=$(PCONFIG_PKG_NAME)"                            >  $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PCONFIG_PKG_VERSION)"                          >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "arch=$(PCONFIG_PKG_ARCH)"                               >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PCONFIG_PKG_DISTRO_NAME)"                  >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PCONFIG_PKG_DISTRO_VERSION)"                >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "group=$(PCONFIG_PKG_GROUP)"                             >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PCONFIG_PKG_SHORT_DESCRIPTION)\"" >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "url=$(PCONFIG_PKG_URL)"                                 >> $(PCONFIG_PKG)/.PKGINFO ; \
+	 echo "license=$(PCONFIG_PKG_LICENSE)"                         >> $(PCONFIG_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PCONFIG_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: pkg-config/0.29.2/PATCHES
===================================================================
--- pkg-config/0.29.2/PATCHES	(nonexistent)
+++ pkg-config/0.29.2/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/pkg-config/patches/pkg-config-0.29.2-get-dirname.patch -p0
Index: pkg-config/0.29.2/pkg-config-pkg-description.in
===================================================================
--- pkg-config/0.29.2/pkg-config-pkg-description.in	(nonexistent)
+++ pkg-config/0.29.2/pkg-config-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------------------------------------------------------|
+pkg-config: pkg-config @VERSION@ (system for managing library compile/link flags)
+pkg-config:
+pkg-config: pkg-config is a system for managing library compile/link flags
+pkg-config: that works with automake and autoconf. It replaces the ubiquitous
+pkg-config: *-config scripts you may have seen with a single tool. See the man
+pkg-config: page that comes with pkg-config for full documentation.
+pkg-config:
+pkg-config:
+pkg-config:
+pkg-config:
+pkg-config:
Index: pkg-config/0.29.2/pkg-config-pkg-install.sh
===================================================================
--- pkg-config/0.29.2/pkg-config-pkg-install.sh	(nonexistent)
+++ pkg-config/0.29.2/pkg-config-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: pkg-config/0.29.2/pkg-config-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: pkg-config/0.29.2/profile.d/pkgconfig.csh.in
===================================================================
--- pkg-config/0.29.2/profile.d/pkgconfig.csh.in	(nonexistent)
+++ pkg-config/0.29.2/profile.d/pkgconfig.csh.in	(revision 5)
@@ -0,0 +1,7 @@
+#!/bin/csh
+
+if ( $?PKG_CONFIG_PATH ) then
+  setenv PKG_CONFIG_PATH ${PKG_CONFIG_PATH}:/usr/local/lib@LIBDIRSUFFIX@/pkgconfig:/usr/local/share/pkgconfig
+else
+  setenv PKG_CONFIG_PATH /usr/local/lib@LIBDIRSUFFIX@/pkgconfig:/usr/local/share/pkgconfig:/usr/lib@LIBDIRSUFFIX@/pkgconfig:/usr/share/pkgconfig
+endif
Index: pkg-config/0.29.2/profile.d/pkgconfig.sh.in
===================================================================
--- pkg-config/0.29.2/profile.d/pkgconfig.sh.in	(nonexistent)
+++ pkg-config/0.29.2/profile.d/pkgconfig.sh.in	(revision 5)
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ ! "$PKG_CONFIG_PATH" = "" ]; then
+  PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib@LIBDIRSUFFIX@/pkgconfig:/usr/local/share/pkgconfig
+else
+  PKG_CONFIG_PATH=/usr/local/lib@LIBDIRSUFFIX@/pkgconfig:/usr/local/share/pkgconfig:/usr/lib@LIBDIRSUFFIX@/pkgconfig:/usr/share/pkgconfig
+fi
+export PKG_CONFIG_PATH
Index: pkg-config/0.29.2/profile.d
===================================================================
--- pkg-config/0.29.2/profile.d	(nonexistent)
+++ pkg-config/0.29.2/profile.d	(revision 5)

Property changes on: pkg-config/0.29.2/profile.d
___________________________________________________________________
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: pkg-config/0.29.2
===================================================================
--- pkg-config/0.29.2	(nonexistent)
+++ pkg-config/0.29.2	(revision 5)

Property changes on: pkg-config/0.29.2
___________________________________________________________________
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: pkg-config
===================================================================
--- pkg-config	(nonexistent)
+++ pkg-config	(revision 5)

Property changes on: pkg-config
___________________________________________________________________
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: python2/2.7.18/Makefile
===================================================================
--- python2/2.7.18/Makefile	(nonexistent)
+++ python2/2.7.18/Makefile	(revision 5)
@@ -0,0 +1,326 @@
+
+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/python2
+SOURCE_REQUIRES   += sources/packages/d/python2-doc
+
+REQUIRES           = libs/zlib/1.2.13
+REQUIRES          += app/xz/5.2.7
+REQUIRES          += libs/libffi/3.4.4
+REQUIRES          += libs/readline/8.2
+REQUIRES          += libs/expat/2.5.0
+REQUIRES          += net/openssl/1.1.1r
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.7.18
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python2/Python-$(version).tar.xz
+doc_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/d/python2-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
+
+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                = python2
+PYTHON_PKG_VERSION             = 2.7.18
+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 += --enable-ipv6
+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)/python2.7
+python_environment += PYTHON2=$(PYTHON2)
+python_environment += PGEN2=$(PGEN2)
+
+BUILD_ALIAS = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   sed -i 's,^SSL=/usr,SSL=$(TARGET_DEST_DIR)/usr,'   Modules/Setup.dist ; \
+	   sed -i 's,^ZLIB=/usr,ZLIB=$(TARGET_DEST_DIR)/usr,' Modules/Setup.dist ; \
+	 )
+	@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)
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC) \
+                             $(TOOLCHAIN_POWER8_GLIBC) \
+                             $(TOOLCHAIN_POWER9_GLIBC)),)
+	@( cd $(PYTHON_PKG)/usr/include/python2.7 ; \
+	   chmod 644 *.h ; \
+	   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 Demo Misc \
+	         $(PYTHON_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@mkdir -p $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages
+	@( cd $(SRC_DIR) ; \
+	   mv Tools/README Tools/README.python-tools ; \
+	   cp -a Tools/* \
+	         $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/site-packages \
+	 )
+	@cp -a $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/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)/python2.7/site-packages Tools \
+	 )
+	@mkdir -p $(PYTHON_PKG)/usr/bin
+	@( cd $(PYTHON_PKG)/usr/bin ; \
+	   mv 2to3 2to3-2.7 ; ln -sf 2to3-2.7 2to3 ; \
+	   mv idle idle2.7 ; ln -sf idle2.7 idle2 ; ln -sf idle2 idle ;\
+	   mv pydoc pydoc2.7 ; ln -sf pydoc2.7 pydoc2 ; ln -sf pydoc2 pydoc ;\
+	   ln -sf ../lib$(LIBSUFFIX)/python2.7/site-packages/pynche/pynche pynche2 ; \
+	   ln -sf pynche2 pynche ; \
+	   ln -sf ../lib$(LIBSUFFIX)/python2.7/site-packages/i18n/msgfmt.py msgfmt-2.7.py ; \
+	   ln -sf msgfmt-2.7.py msgfmt.py ; \
+	   ln -sf ../lib$(LIBSUFFIX)/python2.7/site-packages/i18n/pygettext.py pygettext-2.7.py ; \
+	   ln -sf pygettext-2.7.py pygettext.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 "{}" \;  ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PYTHON_PKG))
+	# ======= tune target Python _sysconfigdata.py script =======
+	@( cd $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7 ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/tmp,g" _sysconfigdata.py ; \
+	   sed -i "s,$(BUILD),$(TARGET),g"                 _sysconfigdata.py ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET),g"           _sysconfigdata.py ; \
+	   sed -i "s,$(CCACHE)$(CROSS_PREFIX),,g"          _sysconfigdata.py ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                   _sysconfigdata.py ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                _sysconfigdata.py ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                    _sysconfigdata.py ; \
+	   sed -i "s, --sysroot=,,g"                       _sysconfigdata.py ; \
+	 )
+	@( cd $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/config ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/tmp,g" Makefile ; \
+	   sed -i "s,$(BUILD),$(TARGET),g"                 Makefile ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET),g"           Makefile ; \
+	   sed -i "s,$(CCACHE)$(CROSS_PREFIX),,g"          Makefile ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                   Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                Makefile ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                    Makefile ; \
+	   sed -i "s, --sysroot=,,g"                       Makefile ; \
+	 )
+	@( cd $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/config ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" Setup ; \
+	 )
+	# ======= Compile bindings by Python2 =======
+	@$(PYTHON2)    -m compileall $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/_sysconfigdata.py
+	@$(PYTHON2) -O -m compileall $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/python2.7/_sysconfigdata.py
+	# ======= 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-2.7.pc ; \
+	 )
+	@chmod +w $(PYTHON_PKG)/usr/lib$(LIBSUFFIX)/libpython*.so.*
+	# ======= 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: python2/2.7.18/PATCHES
===================================================================
--- python2/2.7.18/PATCHES	(nonexistent)
+++ python2/2.7.18/PATCHES	(revision 5)
@@ -0,0 +1,3 @@
+
+../../../sources/packages/d/python2/patches/Python-2.7.18-readline.patch -p0
+../../../sources/packages/d/python2/patches/Python-2.7.18-cross.patch    -p0
Index: python2/2.7.18/cross/hw.cache
===================================================================
--- python2/2.7.18/cross/hw.cache	(nonexistent)
+++ python2/2.7.18/cross/hw.cache	(revision 5)
@@ -0,0 +1,2 @@
+ac_cv_file__dev_ptmx=yes
+ac_cv_file__dev_ptc=no
Index: python2/2.7.18/cross
===================================================================
--- python2/2.7.18/cross	(nonexistent)
+++ python2/2.7.18/cross	(revision 5)

Property changes on: python2/2.7.18/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: python2/2.7.18/python2-pkg-description.in
===================================================================
--- python2/2.7.18/python2-pkg-description.in	(nonexistent)
+++ python2/2.7.18/python2-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------------------------------------------------------|
+python2: python2 @VERSION@ (object-oriented interpreted programming language)
+python2:
+python2: Python is an interpreted, interactive, object-oriented programming
+python2: language that combines remarkable power with very clear syntax.
+python2: Python's basic power can be extended with your own modules written
+python2: in C or C++. Python is also adaptable as an extension language for
+python2: existing applications. 
+python2:
+python2:
+python2:
+python2:
Index: python2/2.7.18/python2-pkg-install.sh
===================================================================
--- python2/2.7.18/python2-pkg-install.sh	(nonexistent)
+++ python2/2.7.18/python2-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python2/2.7.18/python2-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python2/2.7.18
===================================================================
--- python2/2.7.18	(nonexistent)
+++ python2/2.7.18	(revision 5)

Property changes on: python2/2.7.18
___________________________________________________________________
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: python2/2.7.18-ppc32/Makefile
===================================================================
--- python2/2.7.18-ppc32/Makefile	(nonexistent)
+++ python2/2.7.18-ppc32/Makefile	(revision 5)
@@ -0,0 +1,225 @@
+
+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/python2
+
+REQUIRES           = dev/python2/2.7.18
+REQUIRES          += libs/zlib/1.2.13-ppc32
+REQUIRES          += app/xz/5.2.7-ppc32
+REQUIRES          += libs/libffi/3.4.4-ppc32
+REQUIRES          += libs/readline/8.2-ppc32
+REQUIRES          += libs/expat/2.5.0-ppc32
+REQUIRES          += net/openssl/1.1.1r-ppc32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.7.18
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python2/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
+
+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                = python2-x32
+PYTHON32_PKG_VERSION             = 2.7.18
+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-system-expat
+extra_configure_switches += --with-system-ffi
+extra_configure_switches += --with-threads
+extra_configure_switches += --enable-ipv6
+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)/python2.7
+python_environment += LDFLAGS=-Wl,-rpath,/lib$(MULTILIB_PPC32_SUFFIX):/usr/lib$(MULTILIB_PPC32_SUFFIX)
+python_environment += PYTHON2=$(PYTHON2)
+python_environment += PGEN2=$(PGEN2)
+
+BUILD_ALIAS = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   sed -i 's,^SSL=/usr,SSL=$(TARGET_DEST_DIR)/usr,'   Modules/Setup.dist ; \
+	   sed -i 's,^ZLIB=/usr,ZLIB=$(TARGET_DEST_DIR)/usr,' Modules/Setup.dist ; \
+	 )
+	@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)
+	@( cd $(PYTHON32_PKG)/usr/include ; \
+	   mv python2.7/pyconfig.h . ; \
+	   rm -f python2.7/* ; \
+	   mv pyconfig.h python2.7/pyconfig-32.h ; \
+	 )
+	@rm -rf $(PYTHON32_PKG)/usr/share
+	@mkdir -p $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages
+	@( cd $(SRC_DIR) ; \
+	   mv Tools/README Tools/README.python-tools ; \
+	   cp -a Tools/* \
+	         $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages \
+	 )
+	@mkdir -p $(PYTHON32_PKG)/usr/bin/32
+	@( cd $(PYTHON32_PKG)/usr/bin/32 ; \
+	   mv 2to3 2to3-2.7 ; ln -sf 2to3-2.7 2to3 ; \
+	   mv idle idle2.7 ; ln -sf idle2.7 idle2 ; ln -sf idle2 idle ;\
+	   mv pydoc pydoc2.7 ; ln -sf pydoc2.7 pydoc2 ; ln -sf pydoc2 pydoc ;\
+	   ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/pynche/pynche pynche2 ; \
+	   ln -sf pynche2 pynche ; \
+	   ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/i18n/msgfmt.py msgfmt-2.7.py ; \
+	   ln -sf msgfmt-2.7.py msgfmt.py ; \
+	   ln -sf ../../lib$(MULTILIB_PPC32_SUFFIX)/python2.7/site-packages/i18n/pygettext.py pygettext-2.7.py ; \
+	   ln -sf pygettext-2.7.py pygettext.py ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PYTHON32_PKG))
+	# ======= tune target Python _sysconfigdata.py script =======
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7 ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/tmp,g" _sysconfigdata.py ; \
+	   sed -i "s,$(BUILD),$(TARGET32),g"               _sysconfigdata.py ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET32),g"         _sysconfigdata.py ; \
+	   sed -i "s,$(CCACHE)$(CROSS_PREFIX),,g"          _sysconfigdata.py ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                   _sysconfigdata.py ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                _sysconfigdata.py ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                    _sysconfigdata.py ; \
+	   sed -i "s, --sysroot=,,g"                       _sysconfigdata.py ; \
+	 )
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/config ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/tmp,g" Makefile ; \
+	   sed -i "s,$(BUILD),$(TARGET32),g"               Makefile ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET32),g"         Makefile ; \
+	   sed -i "s,$(CCACHE)$(CROSS_PREFIX),,g"          Makefile ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                   Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                Makefile ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                    Makefile ; \
+	   sed -i "s, --sysroot=,,g"                       Makefile ; \
+	 )
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/config ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" Setup ; \
+	 )
+	# ======= Compile bindings by Python2 =======
+	@$(PYTHON2)    -m compileall $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/_sysconfigdata.py
+	@$(PYTHON2) -O -m compileall $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/python2.7/_sysconfigdata.py
+	# ======= 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-2.7.pc ; \
+	 )
+	@chmod +w $(PYTHON32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/libpython*.so.*
+	# ======= 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: python2/2.7.18-ppc32/PATCHES
===================================================================
--- python2/2.7.18-ppc32/PATCHES	(nonexistent)
+++ python2/2.7.18-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,4 @@
+
+../../../sources/packages/d/python2/patches/Python-2.7.18-readline.patch -p0
+../../../sources/packages/d/python2/patches/Python-2.7.18-compat32.patch -p0
+../../../sources/packages/d/python2/patches/Python-2.7.18-cross32.patch  -p0
Index: python2/2.7.18-ppc32/cross/hw.cache
===================================================================
--- python2/2.7.18-ppc32/cross/hw.cache	(nonexistent)
+++ python2/2.7.18-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: python2/2.7.18-ppc32/cross
===================================================================
--- python2/2.7.18-ppc32/cross	(nonexistent)
+++ python2/2.7.18-ppc32/cross	(revision 5)

Property changes on: python2/2.7.18-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: python2/2.7.18-ppc32/python2-x32-pkg-description.in
===================================================================
--- python2/2.7.18-ppc32/python2-x32-pkg-description.in	(nonexistent)
+++ python2/2.7.18-ppc32/python2-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------------------------------------------------------|
+python2-x32: python2-x32 @VERSION@ (interpreted programming language)
+python2-x32:
+python2-x32: Python is an interpreted, interactive, object-oriented programming
+python2-x32: language that combines remarkable power with very clear syntax.
+python2-x32: Python's basic power can be extended with your own modules written
+python2-x32: in C or C++. Python is also adaptable as an extension language for
+python2-x32: existing applications. 
+python2-x32:
+python2-x32:
+python2-x32:
+python2-x32:
Index: python2/2.7.18-ppc32/python2-x32-pkg-install.sh
===================================================================
--- python2/2.7.18-ppc32/python2-x32-pkg-install.sh	(nonexistent)
+++ python2/2.7.18-ppc32/python2-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python2/2.7.18-ppc32/python2-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python2/2.7.18-ppc32
===================================================================
--- python2/2.7.18-ppc32	(nonexistent)
+++ python2/2.7.18-ppc32	(revision 5)

Property changes on: python2/2.7.18-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: python2/2.7.18-x86_32/Makefile
===================================================================
--- python2/2.7.18-x86_32/Makefile	(nonexistent)
+++ python2/2.7.18-x86_32/Makefile	(revision 5)
@@ -0,0 +1,223 @@
+
+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/python2
+
+REQUIRES           = dev/python2/2.7.18
+REQUIRES          += libs/zlib/1.2.13-x86_32
+REQUIRES          += app/xz/5.2.7-x86_32
+REQUIRES          += libs/libffi/3.4.4-x86_32
+REQUIRES          += libs/readline/8.2-x86_32
+REQUIRES          += libs/expat/2.5.0-x86_32
+REQUIRES          += net/openssl/1.1.1r-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.7.18
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python2/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
+
+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
+cross_patch        = $(SRC_PACKAGE_PATH_ABS)/packages/d/python2/patches/Python-$(version)-cross32.patch
+
+####### Targets
+
+PKG_GROUP = dev
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PYTHON32_PKG_NAME                = python2-x32
+PYTHON32_PKG_VERSION             = 2.7.18
+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-system-expat
+extra_configure_switches += --with-system-ffi
+extra_configure_switches += --with-threads
+extra_configure_switches += --enable-ipv6
+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)/python2.7
+python_environment += LDFLAGS=-Wl,-rpath,/lib$(MULTILIB_X86_32_SUFFIX):/usr/lib$(MULTILIB_X86_32_SUFFIX)
+python_environment += PYTHON2=$(PYTHON2)
+python_environment += PGEN2=$(PGEN2)
+
+BUILD_ALIAS = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   sed -i 's,^SSL=/usr,SSL=$(TARGET_DEST_DIR)/usr,'   Modules/Setup.dist ; \
+	   sed -i 's,^ZLIB=/usr,ZLIB=$(TARGET_DEST_DIR)/usr,' Modules/Setup.dist ; \
+	 )
+	@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)
+	@( cd $(PYTHON32_PKG)/usr/include ; \
+	   mv python2.7/pyconfig.h . ; \
+	   rm -f python2.7/* ; \
+	   mv pyconfig.h python2.7/pyconfig-32.h ; \
+	 )
+	@rm -rf $(PYTHON32_PKG)/usr/share
+	@mkdir -p $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages
+	@( cd $(SRC_DIR) ; \
+	   mv Tools/README Tools/README.python-tools ; \
+	   cp -a Tools/* \
+	         $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages \
+	 )
+	@mkdir -p $(PYTHON32_PKG)/usr/bin/32
+	@( cd $(PYTHON32_PKG)/usr/bin/32 ; \
+	   mv 2to3 2to3-2.7 ; ln -sf 2to3-2.7 2to3 ; \
+	   mv idle idle2.7 ; ln -sf idle2.7 idle2 ; ln -sf idle2 idle ;\
+	   mv pydoc pydoc2.7 ; ln -sf pydoc2.7 pydoc2 ; ln -sf pydoc2 pydoc ;\
+	   ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/pynche/pynche pynche2 ; \
+	   ln -sf pynche2 pynche ; \
+	   ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/i18n/msgfmt.py msgfmt-2.7.py ; \
+	   ln -sf msgfmt-2.7.py msgfmt.py ; \
+	   ln -sf ../../lib$(MULTILIB_X86_32_SUFFIX)/python2.7/site-packages/i18n/pygettext.py pygettext-2.7.py ; \
+	   ln -sf pygettext-2.7.py pygettext.py ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PYTHON32_PKG))
+	# ======= tune target Python _sysconfigdata.py script =======
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7 ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/tmp,g" _sysconfigdata.py ; \
+	   sed -i "s,$(BUILD),$(TARGET32),g"               _sysconfigdata.py ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET32),g"         _sysconfigdata.py ; \
+	   sed -i "s,$(CCACHE)$(CROSS_PREFIX),,g"          _sysconfigdata.py ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                   _sysconfigdata.py ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                _sysconfigdata.py ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                    _sysconfigdata.py ; \
+	   sed -i "s, --sysroot=,,g"                       _sysconfigdata.py ; \
+	 )
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/config ; \
+	   sed -i "s,$(CURDIR)/$(TARGET_BUILD_DIR),/tmp,g" Makefile ; \
+	   sed -i "s,$(BUILD),$(TARGET32),g"               Makefile ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET32),g"         Makefile ; \
+	   sed -i "s,$(CCACHE)$(CROSS_PREFIX),,g"          Makefile ; \
+	   sed -i "s,$(CROSS_PREFIX),,g"                   Makefile ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                Makefile ; \
+	   sed -i "s,$(BUILDSYSTEM),,g"                    Makefile ; \
+	   sed -i "s, --sysroot=,,g"                       Makefile ; \
+	 )
+	@( cd $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/config ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" Setup ; \
+	 )
+	# ======= Compile bindings by Python2 =======
+	@$(PYTHON2)    -m compileall $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/_sysconfigdata.py
+	@$(PYTHON2) -O -m compileall $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python2.7/_sysconfigdata.py
+	# ======= 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-2.7.pc ; \
+	 )
+	@chmod +w $(PYTHON32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/libpython*.so.*
+	# ======= 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: python2/2.7.18-x86_32/PATCHES
===================================================================
--- python2/2.7.18-x86_32/PATCHES	(nonexistent)
+++ python2/2.7.18-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,4 @@
+
+../../../sources/packages/d/python2/patches/Python-2.7.18-readline.patch -p0
+../../../sources/packages/d/python2/patches/Python-2.7.18-compat32.patch -p0
+../../../sources/packages/d/python2/patches/Python-2.7.18-cross32.patch  -p0
Index: python2/2.7.18-x86_32/cross/hw.cache
===================================================================
--- python2/2.7.18-x86_32/cross/hw.cache	(nonexistent)
+++ python2/2.7.18-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: python2/2.7.18-x86_32/cross
===================================================================
--- python2/2.7.18-x86_32/cross	(nonexistent)
+++ python2/2.7.18-x86_32/cross	(revision 5)

Property changes on: python2/2.7.18-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: python2/2.7.18-x86_32/python2-x32-pkg-description.in
===================================================================
--- python2/2.7.18-x86_32/python2-x32-pkg-description.in	(nonexistent)
+++ python2/2.7.18-x86_32/python2-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------------------------------------------------------|
+python2-x32: python2-x32 @VERSION@ (interpreted programming language)
+python2-x32:
+python2-x32: Python is an interpreted, interactive, object-oriented programming
+python2-x32: language that combines remarkable power with very clear syntax.
+python2-x32: Python's basic power can be extended with your own modules written
+python2-x32: in C or C++. Python is also adaptable as an extension language for
+python2-x32: existing applications. 
+python2-x32:
+python2-x32:
+python2-x32:
+python2-x32:
Index: python2/2.7.18-x86_32/python2-x32-pkg-install.sh
===================================================================
--- python2/2.7.18-x86_32/python2-x32-pkg-install.sh	(nonexistent)
+++ python2/2.7.18-x86_32/python2-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python2/2.7.18-x86_32/python2-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python2/2.7.18-x86_32
===================================================================
--- python2/2.7.18-x86_32	(nonexistent)
+++ python2/2.7.18-x86_32	(revision 5)

Property changes on: python2/2.7.18-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: python2
===================================================================
--- python2	(nonexistent)
+++ python2	(revision 5)

Property changes on: python2
___________________________________________________________________
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: python2-modules/pip/20.3/Makefile
===================================================================
--- python2-modules/pip/20.3/Makefile	(nonexistent)
+++ python2-modules/pip/20.3/Makefile	(revision 5)
@@ -0,0 +1,187 @@
+
+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/python-modules/pip
+
+REQUIRES           = dev/python2-modules/setuptools/44.0.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+PYTHON2_VERSION = 2.7
+
+
+version            = 20.3
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python-modules/pip/pip-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/pip-$(version)
+src_dir_name       = pip-$(version)
+doc_dir_name       = pip2-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PIP2_PKG_NAME                = pip2
+PIP2_PKG_VERSION             = 20.3
+PIP2_PKG_ARCH                = $(PKGARCH)
+PIP2_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PIP2_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PIP2_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PIP2_PKG_SHORT_DESCRIPTION   = Python packages tool
+PIP2_PKG_URL                 = $(BUG_URL)
+PIP2_PKG_LICENSE             = MIT
+PIP2_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PIP2_PKG_NAME)-pkg-description
+PIP2_PKG_DESCRIPTION_FILE_IN = $(PIP2_PKG_NAME)-pkg-description.in
+PIP2_PKG_INSTALL_SCRIPT      = $(PIP2_PKG_NAME)-pkg-install.sh
+
+PIP2_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PIP2_PKG_NAME)-package
+
+pkg_basename     = $(PIP2_PKG_NAME)-$(PIP2_PKG_VERSION)-$(PIP2_PKG_ARCH)-$(PIP2_PKG_DISTRO_NAME)-$(PIP2_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
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON2) setup.py build ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PIP2_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON2) setup.py install \
+	     --prefix=/usr \
+	     --install-lib=/usr/lib$(LIBSUFFIX)/python$(PYTHON2_VERSION)/site-packages \
+	     --root=$(PIP2_PKG) ; \
+	 )
+	@( cd $(PIP2_PKG)/usr/bin ; \
+	   rm -f pip pip2 ; ln -sf pip$(PYTHON2_VERSION) pip2 ; ln -sf pip2 pip ; \
+	   sed -i 's,$(BUILDSYSTEM),,g' pip$(PYTHON2_VERSION) ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(PIP2_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS.txt $(SRC_DIR)/LICENSE.txt \
+	       $(PIP2_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PIP2_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS.txt LICENSE.txt \
+	         $(PIP2_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r NEWS.txt ]; then \
+	     DOCSDIR=`echo $(PIP2_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat NEWS.txt | head -n 1000 > $$DOCSDIR/NEWS.txt ; \
+	     touch -r NEWS.txt $$DOCSDIR/NEWS.txt ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PIP2_PKG))
+	@touch $@
+
+$(PIP2_PKG_DESCRIPTION_FILE): $(PIP2_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) $(PIP2_PKG_DESCRIPTION_FILE) $(PIP2_PKG_INSTALL_SCRIPT)
+	@cp $(PIP2_PKG_DESCRIPTION_FILE) $(PIP2_PKG)/.DESCRIPTION
+	@cp $(PIP2_PKG_INSTALL_SCRIPT) $(PIP2_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PIP2_PKG)/.REQUIRES
+	@echo "pkgname=$(PIP2_PKG_NAME)"                            >  $(PIP2_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PIP2_PKG_VERSION)"                          >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "arch=$(PIP2_PKG_ARCH)"                               >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PIP2_PKG_DISTRO_NAME)"                  >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PIP2_PKG_DISTRO_VERSION)"                >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "group=$(PIP2_PKG_GROUP)"                             >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PIP2_PKG_SHORT_DESCRIPTION)\"" >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "url=$(PIP2_PKG_URL)"                                 >> $(PIP2_PKG)/.PKGINFO ; \
+	 echo "license=$(PIP2_PKG_LICENSE)"                         >> $(PIP2_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PIP2_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: python2-modules/pip/20.3/PATCHES
===================================================================
Index: python2-modules/pip/20.3/pip2-pkg-description.in
===================================================================
--- python2-modules/pip/20.3/pip2-pkg-description.in	(nonexistent)
+++ python2-modules/pip/20.3/pip2-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------------------------------------------------------|
+pip2: pip2 @VERSION@ (Python packages tool)
+pip2:
+pip2: The PyPA recommended tool for installing Python packages.
+pip2:
+pip2: Python 2.7.9 and later (on the python2 series), and Python 3.4 and
+pip2: later include pip by default, so you may have pip already.
+pip2:
+pip2: web site: https://pip.pypa.io
+pip2:
+pip2:
+pip2:
Index: python2-modules/pip/20.3/pip2-pkg-install.sh
===================================================================
--- python2-modules/pip/20.3/pip2-pkg-install.sh	(nonexistent)
+++ python2-modules/pip/20.3/pip2-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python2-modules/pip/20.3/pip2-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python2-modules/pip/20.3
===================================================================
--- python2-modules/pip/20.3	(nonexistent)
+++ python2-modules/pip/20.3	(revision 5)

Property changes on: python2-modules/pip/20.3
___________________________________________________________________
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: python2-modules/pip
===================================================================
--- python2-modules/pip	(nonexistent)
+++ python2-modules/pip	(revision 5)

Property changes on: python2-modules/pip
___________________________________________________________________
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: python2-modules/setuptools/44.0.0/Makefile
===================================================================
--- python2-modules/setuptools/44.0.0/Makefile	(nonexistent)
+++ python2-modules/setuptools/44.0.0/Makefile	(revision 5)
@@ -0,0 +1,188 @@
+
+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/python-modules/setuptools
+
+REQUIRES           = dev/python2/2.7.18
+
+# ======= __END_OF_REQUIRES__ =======
+
+PYTHON2_VERSION = 2.7
+
+
+version            = 44.0.0
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python-modules/setuptools/setuptools-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/setuptools-$(version)
+src_dir_name       = setuptools-$(version)
+doc_dir_name       = setuptools2-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+SETUPTOOLS2_PKG_NAME                = setuptools2
+SETUPTOOLS2_PKG_VERSION             = 44.0.0
+SETUPTOOLS2_PKG_ARCH                = $(PKGARCH)
+SETUPTOOLS2_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+SETUPTOOLS2_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+SETUPTOOLS2_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+SETUPTOOLS2_PKG_SHORT_DESCRIPTION   = Easily Python packages tool
+SETUPTOOLS2_PKG_URL                 = $(BUG_URL)
+SETUPTOOLS2_PKG_LICENSE             = MIT
+SETUPTOOLS2_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(SETUPTOOLS2_PKG_NAME)-pkg-description
+SETUPTOOLS2_PKG_DESCRIPTION_FILE_IN = $(SETUPTOOLS2_PKG_NAME)-pkg-description.in
+SETUPTOOLS2_PKG_INSTALL_SCRIPT      = $(SETUPTOOLS2_PKG_NAME)-pkg-install.sh
+
+SETUPTOOLS2_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(SETUPTOOLS2_PKG_NAME)-package
+
+pkg_basename     = $(SETUPTOOLS2_PKG_NAME)-$(SETUPTOOLS2_PKG_VERSION)-$(SETUPTOOLS2_PKG_ARCH)-$(SETUPTOOLS2_PKG_DISTRO_NAME)-$(SETUPTOOLS2_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
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON2) bootstrap.py ; \
+	   $(PYTHON2) setup.py build ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(SETUPTOOLS2_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON2) setup.py install \
+	     --prefix=/usr \
+	     --install-lib=/usr/lib$(LIBSUFFIX)/python$(PYTHON2_VERSION)/site-packages \
+	     --root=$(SETUPTOOLS2_PKG) ; \
+	 )
+	@( cd $(SETUPTOOLS2_PKG)/usr/bin ; \
+	   rm -f easy_install ; ln -sf easy_install-2.7 easy_install ; \
+	   sed -i 's,$(BUILDSYSTEM),,g' easy_install-2.7 ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(SETUPTOOLS2_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(SETUPTOOLS2_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(SETUPTOOLS2_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSE README.rst docs/*.txt \
+	         $(SETUPTOOLS2_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r CHANGES.rst ]; then \
+	     DOCSDIR=`echo $(SETUPTOOLS2_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat CHANGES.rst | head -n 1000 > $$DOCSDIR/CHANGES.rst ; \
+	     touch -r CHANGES.rst $$DOCSDIR/CHANGES.rst ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(SETUPTOOLS2_PKG))
+	@touch $@
+
+$(SETUPTOOLS2_PKG_DESCRIPTION_FILE): $(SETUPTOOLS2_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) $(SETUPTOOLS2_PKG_DESCRIPTION_FILE) $(SETUPTOOLS2_PKG_INSTALL_SCRIPT)
+	@cp $(SETUPTOOLS2_PKG_DESCRIPTION_FILE) $(SETUPTOOLS2_PKG)/.DESCRIPTION
+	@cp $(SETUPTOOLS2_PKG_INSTALL_SCRIPT) $(SETUPTOOLS2_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(SETUPTOOLS2_PKG)/.REQUIRES
+	@echo "pkgname=$(SETUPTOOLS2_PKG_NAME)"                            >  $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(SETUPTOOLS2_PKG_VERSION)"                          >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "arch=$(SETUPTOOLS2_PKG_ARCH)"                               >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "distroname=$(SETUPTOOLS2_PKG_DISTRO_NAME)"                  >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "distrover=$(SETUPTOOLS2_PKG_DISTRO_VERSION)"                >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "group=$(SETUPTOOLS2_PKG_GROUP)"                             >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(SETUPTOOLS2_PKG_SHORT_DESCRIPTION)\"" >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "url=$(SETUPTOOLS2_PKG_URL)"                                 >> $(SETUPTOOLS2_PKG)/.PKGINFO ; \
+	 echo "license=$(SETUPTOOLS2_PKG_LICENSE)"                         >> $(SETUPTOOLS2_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(SETUPTOOLS2_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: python2-modules/setuptools/44.0.0/PATCHES
===================================================================
Index: python2-modules/setuptools/44.0.0/setuptools2-pkg-description.in
===================================================================
--- python2-modules/setuptools/44.0.0/setuptools2-pkg-description.in	(nonexistent)
+++ python2-modules/setuptools/44.0.0/setuptools2-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------------------------------------------------------|
+setuptools2: setuptools2 @VERSION@ (Easily Python packages tool)
+setuptools2:
+setuptools2: Setuptools is a fully-featured, actively-maintained, and stable
+setuptools2: library designed to facilitate packaging Python projects.
+setuptools2:
+setuptools2: web site: https://pypi.python.org/pypi/setuptools
+setuptools2:
+setuptools2:
+setuptools2:
+setuptools2:
+setuptools2:
Index: python2-modules/setuptools/44.0.0/setuptools2-pkg-install.sh
===================================================================
--- python2-modules/setuptools/44.0.0/setuptools2-pkg-install.sh	(nonexistent)
+++ python2-modules/setuptools/44.0.0/setuptools2-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python2-modules/setuptools/44.0.0/setuptools2-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python2-modules/setuptools/44.0.0
===================================================================
--- python2-modules/setuptools/44.0.0	(nonexistent)
+++ python2-modules/setuptools/44.0.0	(revision 5)

Property changes on: python2-modules/setuptools/44.0.0
___________________________________________________________________
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: python2-modules/setuptools
===================================================================
--- python2-modules/setuptools	(nonexistent)
+++ python2-modules/setuptools	(revision 5)

Property changes on: python2-modules/setuptools
___________________________________________________________________
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: python2-modules
===================================================================
--- python2-modules	(nonexistent)
+++ python2-modules	(revision 5)

Property changes on: python2-modules
___________________________________________________________________
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/3.10.8/Makefile
===================================================================
--- python3/3.10.8/Makefile	(nonexistent)
+++ python3/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: python3/3.10.8/PATCHES
===================================================================
--- python3/3.10.8/PATCHES	(nonexistent)
+++ python3/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: python3/3.10.8/cross/hw.cache
===================================================================
--- python3/3.10.8/cross/hw.cache	(nonexistent)
+++ python3/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: python3/3.10.8/cross
===================================================================
--- python3/3.10.8/cross	(nonexistent)
+++ python3/3.10.8/cross	(revision 5)

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

Property changes on: python3/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: python3/3.10.8
===================================================================
--- python3/3.10.8	(nonexistent)
+++ python3/3.10.8	(revision 5)

Property changes on: python3/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: python3/3.10.8-ppc32/Makefile
===================================================================
--- python3/3.10.8-ppc32/Makefile	(nonexistent)
+++ python3/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: python3/3.10.8-ppc32/PATCHES
===================================================================
--- python3/3.10.8-ppc32/PATCHES	(nonexistent)
+++ python3/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: python3/3.10.8-ppc32/cross/hw.cache
===================================================================
--- python3/3.10.8-ppc32/cross/hw.cache	(nonexistent)
+++ python3/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: python3/3.10.8-ppc32/cross
===================================================================
--- python3/3.10.8-ppc32/cross	(nonexistent)
+++ python3/3.10.8-ppc32/cross	(revision 5)

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

Property changes on: python3/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: python3/3.10.8-ppc32
===================================================================
--- python3/3.10.8-ppc32	(nonexistent)
+++ python3/3.10.8-ppc32	(revision 5)

Property changes on: python3/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: python3/3.10.8-x86_32/Makefile
===================================================================
--- python3/3.10.8-x86_32/Makefile	(nonexistent)
+++ python3/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: python3/3.10.8-x86_32/PATCHES
===================================================================
--- python3/3.10.8-x86_32/PATCHES	(nonexistent)
+++ python3/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: python3/3.10.8-x86_32/cross/hw.cache
===================================================================
--- python3/3.10.8-x86_32/cross/hw.cache	(nonexistent)
+++ python3/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: python3/3.10.8-x86_32/cross
===================================================================
--- python3/3.10.8-x86_32/cross	(nonexistent)
+++ python3/3.10.8-x86_32/cross	(revision 5)

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

Property changes on: python3/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: python3/3.10.8-x86_32
===================================================================
--- python3/3.10.8-x86_32	(nonexistent)
+++ python3/3.10.8-x86_32	(revision 5)

Property changes on: python3/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: python3
===================================================================
--- python3	(nonexistent)
+++ python3	(revision 5)

Property changes on: python3
___________________________________________________________________
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-modules/pip/22.2.2/Makefile
===================================================================
--- python3-modules/pip/22.2.2/Makefile	(nonexistent)
+++ python3-modules/pip/22.2.2/Makefile	(revision 5)
@@ -0,0 +1,191 @@
+
+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/python-modules/pip
+
+REQUIRES           = dev/python3-modules/setuptools/65.5.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+PYTHON3_VERSION = 3.10
+
+
+version            = 22.2.2
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python-modules/pip/pip-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/pip-$(version)
+src_dir_name       = pip-$(version)
+doc_dir_name       = pip3-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+PIP3_PKG_NAME                = pip3
+PIP3_PKG_VERSION             = 22.2.2
+PIP3_PKG_ARCH                = $(PKGARCH)
+PIP3_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+PIP3_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+PIP3_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+PIP3_PKG_SHORT_DESCRIPTION   = Python packages tool
+PIP3_PKG_URL                 = $(BUG_URL)
+PIP3_PKG_LICENSE             = MIT
+PIP3_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(PIP3_PKG_NAME)-pkg-description
+PIP3_PKG_DESCRIPTION_FILE_IN = $(PIP3_PKG_NAME)-pkg-description.in
+PIP3_PKG_INSTALL_SCRIPT      = $(PIP3_PKG_NAME)-pkg-install.sh
+
+PIP3_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(PIP3_PKG_NAME)-package
+
+pkg_basename     = $(PIP3_PKG_NAME)-$(PIP3_PKG_VERSION)-$(PIP3_PKG_ARCH)-$(PIP3_PKG_DISTRO_NAME)-$(PIP3_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
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON3) setup.py egg_info ; \
+	   $(PYTHON3) setup.py build ; \
+	 )
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(PIP3_PKG)/usr/bin
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON3) setup.py install \
+	     --single-version-externally-managed \
+	     --prefix=/usr \
+	     --install-purelib=/usr/lib$(LIBSUFFIX) \
+	     --install-platlib=/usr/lib$(LIBSUFFIX) \
+	     --install-lib=/usr/lib$(LIBSUFFIX)/python$(PYTHON3_VERSION)/site-packages \
+	     --root=$(PIP3_PKG) ; \
+	 )
+	@( cd $(PIP3_PKG)/usr/bin ; \
+	   rm -f pip3 pip ; ln -sf pip$(PYTHON3_VERSION) pip3 ; \
+	   sed -i 's,$(BUILDSYSTEM),,' pip$(PYTHON3_VERSION) ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(PIP3_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/AUTHORS.txt $(SRC_DIR)/LICENSE.txt \
+	       $(PIP3_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(PIP3_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a AUTHORS.txt LICENSE.txt README.rst \
+	         $(PIP3_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r NEWS.txt ]; then \
+	     DOCSDIR=`echo $(PIP3_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat NEWS.txt | head -n 1000 > $$DOCSDIR/NEWS.txt ; \
+	     touch -r NEWS.txt $$DOCSDIR/NEWS.txt ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(PIP3_PKG))
+	@touch $@
+
+$(PIP3_PKG_DESCRIPTION_FILE): $(PIP3_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) $(PIP3_PKG_DESCRIPTION_FILE) $(PIP3_PKG_INSTALL_SCRIPT)
+	@cp $(PIP3_PKG_DESCRIPTION_FILE) $(PIP3_PKG)/.DESCRIPTION
+	@cp $(PIP3_PKG_INSTALL_SCRIPT) $(PIP3_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(PIP3_PKG)/.REQUIRES
+	@echo "pkgname=$(PIP3_PKG_NAME)"                            >  $(PIP3_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(PIP3_PKG_VERSION)"                          >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "arch=$(PIP3_PKG_ARCH)"                               >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "distroname=$(PIP3_PKG_DISTRO_NAME)"                  >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "distrover=$(PIP3_PKG_DISTRO_VERSION)"                >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "group=$(PIP3_PKG_GROUP)"                             >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(PIP3_PKG_SHORT_DESCRIPTION)\"" >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "url=$(PIP3_PKG_URL)"                                 >> $(PIP3_PKG)/.PKGINFO ; \
+	 echo "license=$(PIP3_PKG_LICENSE)"                         >> $(PIP3_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(PIP3_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: python3-modules/pip/22.2.2/PATCHES
===================================================================
Index: python3-modules/pip/22.2.2/pip3-pkg-description.in
===================================================================
--- python3-modules/pip/22.2.2/pip3-pkg-description.in	(nonexistent)
+++ python3-modules/pip/22.2.2/pip3-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------------------------------------------------------|
+pip3: pip3 @VERSION@ (Python packages tool)
+pip3:
+pip3: The PyPA recommended tool for installing Python packages.
+pip3:
+pip3: Python 2.7.9 and later (on the python2 series), and Python 3.4 and
+pip3: later include pip by default, so you may have pip already.
+pip3:
+pip3: web site: https://pip.pypa.io
+pip3:
+pip3:
+pip3:
Index: python3-modules/pip/22.2.2/pip3-pkg-install.sh
===================================================================
--- python3-modules/pip/22.2.2/pip3-pkg-install.sh	(nonexistent)
+++ python3-modules/pip/22.2.2/pip3-pkg-install.sh	(revision 5)
@@ -0,0 +1,61 @@
+#!/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() {
+  for file in pip ; do
+    rm -f usr/bin/${file}
+    ln -sfr usr/bin/${file}3 usr/bin/${file}
+  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() {
+  for file in pip ; do
+    rm -f usr/bin/${file}
+    if [ -L "usr/bin/${file}2" ] ; then
+      ln -sfr usr/bin/${file}2 usr/bin/${file}
+    fi
+  done
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python3-modules/pip/22.2.2/pip3-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python3-modules/pip/22.2.2
===================================================================
--- python3-modules/pip/22.2.2	(nonexistent)
+++ python3-modules/pip/22.2.2	(revision 5)

Property changes on: python3-modules/pip/22.2.2
___________________________________________________________________
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-modules/pip
===================================================================
--- python3-modules/pip	(nonexistent)
+++ python3-modules/pip	(revision 5)

Property changes on: python3-modules/pip
___________________________________________________________________
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-modules/setuptools/65.5.0/Makefile
===================================================================
--- python3-modules/setuptools/65.5.0/Makefile	(nonexistent)
+++ python3-modules/setuptools/65.5.0/Makefile	(revision 5)
@@ -0,0 +1,197 @@
+
+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/python-modules/setuptools
+
+REQUIRES           = dev/python3/3.10.8
+
+# ======= __END_OF_REQUIRES__ =======
+
+PYTHON3_VERSION = 3.10
+
+
+version            = 65.5.0
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/python-modules/setuptools/setuptools-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/setuptools-$(version)
+src_dir_name       = setuptools-$(version)
+doc_dir_name       = setuptools3-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = app
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+SETUPTOOLS3_PKG_NAME                = setuptools3
+SETUPTOOLS3_PKG_VERSION             = 65.5.0
+SETUPTOOLS3_PKG_ARCH                = $(PKGARCH)
+SETUPTOOLS3_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+SETUPTOOLS3_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+SETUPTOOLS3_PKG_GROUP               = $(PKG_GROUP)
+###                                  |---handy-ruler-------------------------------|
+SETUPTOOLS3_PKG_SHORT_DESCRIPTION   = Easily Python packages tool
+SETUPTOOLS3_PKG_URL                 = $(BUG_URL)
+SETUPTOOLS3_PKG_LICENSE             = MIT
+SETUPTOOLS3_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(SETUPTOOLS3_PKG_NAME)-pkg-description
+SETUPTOOLS3_PKG_DESCRIPTION_FILE_IN = $(SETUPTOOLS3_PKG_NAME)-pkg-description.in
+SETUPTOOLS3_PKG_INSTALL_SCRIPT      = $(SETUPTOOLS3_PKG_NAME)-pkg-install.sh
+
+SETUPTOOLS3_PKG  = $(CURDIR)/$(TARGET_BUILD_DIR)/$(SETUPTOOLS3_PKG_NAME)-package
+
+pkg_basename     = $(SETUPTOOLS3_PKG_NAME)-$(SETUPTOOLS3_PKG_VERSION)-$(SETUPTOOLS3_PKG_ARCH)-$(SETUPTOOLS3_PKG_DISTRO_NAME)-$(SETUPTOOLS3_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
+
+#
+# NOTE:
+# ====
+#   Command `mkdir -p build/scripts-3.10` and install option --root=/ are needed to avoid
+#   Python errors related to build procedure and deprecated easy_install utility.
+#
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@( cd $(SRC_DIR) ; \
+	   rm -f setuptools/*.exe ; \
+	   mkdir -p build/scripts-3.10 ; \
+	   sed -i 's,^tag_build.*,tag_build =,' setup.cfg ; \
+	   sed -i 's,^tag_date.*,tag_date = 0,' setup.cfg ; \
+	   $(PYTHON3) setup.py egg_info ; \
+	 )
+	@touch $@
+
+
+$(install_target): $(build_target)
+	@mkdir -p $(SETUPTOOLS3_PKG)
+	@( cd $(SRC_DIR) ; \
+	   $(PYTHON3) setup.py install \
+	     --single-version-externally-managed \
+	     --prefix=/usr \
+	     --install-purelib=/usr/lib$(LIBSUFFIX) \
+	     --install-platlib=/usr/lib$(LIBSUFFIX) \
+	     --install-lib=/usr/lib$(LIBSUFFIX)/python$(PYTHON3_VERSION)/site-packages \
+	     --root=$(SETUPTOOLS3_PKG) ; \
+	 )
+	# ======= Install Documentation =======
+	@mkdir -p $(SETUPTOOLS3_PKG)/usr/doc/$(doc_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(SETUPTOOLS3_PKG)/usr/doc/$(doc_dir_name)
+	@mkdir -p $(SETUPTOOLS3_PKG)/usr/share/doc/$(doc_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a LICENSE README.rst \
+	         $(SETUPTOOLS3_PKG)/usr/share/doc/$(doc_dir_name) ; \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r CHANGES.rst ]; then \
+	     DOCSDIR=`echo $(SETUPTOOLS3_PKG)/usr/share/doc/$(doc_dir_name)` ; \
+	     cat CHANGES.rst | head -n 1000 > $$DOCSDIR/CHANGES.rst ; \
+	     touch -r CHANGES.rst $$DOCSDIR/CHANGES.rst ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(SETUPTOOLS3_PKG))
+	@touch $@
+
+$(SETUPTOOLS3_PKG_DESCRIPTION_FILE): $(SETUPTOOLS3_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) $(SETUPTOOLS3_PKG_DESCRIPTION_FILE) $(SETUPTOOLS3_PKG_INSTALL_SCRIPT)
+	@cp $(SETUPTOOLS3_PKG_DESCRIPTION_FILE) $(SETUPTOOLS3_PKG)/.DESCRIPTION
+	@cp $(SETUPTOOLS3_PKG_INSTALL_SCRIPT) $(SETUPTOOLS3_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(SETUPTOOLS3_PKG)/.REQUIRES
+	@echo "pkgname=$(SETUPTOOLS3_PKG_NAME)"                            >  $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(SETUPTOOLS3_PKG_VERSION)"                          >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "arch=$(SETUPTOOLS3_PKG_ARCH)"                               >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "distroname=$(SETUPTOOLS3_PKG_DISTRO_NAME)"                  >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "distrover=$(SETUPTOOLS3_PKG_DISTRO_VERSION)"                >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "group=$(SETUPTOOLS3_PKG_GROUP)"                             >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(SETUPTOOLS3_PKG_SHORT_DESCRIPTION)\"" >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "url=$(SETUPTOOLS3_PKG_URL)"                                 >> $(SETUPTOOLS3_PKG)/.PKGINFO ; \
+	 echo "license=$(SETUPTOOLS3_PKG_LICENSE)"                         >> $(SETUPTOOLS3_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(SETUPTOOLS3_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: python3-modules/setuptools/65.5.0/PATCHES
===================================================================
Index: python3-modules/setuptools/65.5.0/setuptools3-pkg-description.in
===================================================================
--- python3-modules/setuptools/65.5.0/setuptools3-pkg-description.in	(nonexistent)
+++ python3-modules/setuptools/65.5.0/setuptools3-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------------------------------------------------------|
+setuptools3: setuptools3 @VERSION@ (Easily Python packages tool)
+setuptools3:
+setuptools3: Setuptools is a fully-featured, actively-maintained, and stable
+setuptools3: library designed to facilitate packaging Python projects.
+setuptools3:
+setuptools3: web site: https://pypi.python.org/pypi/setuptools
+setuptools3:
+setuptools3:
+setuptools3:
+setuptools3:
+setuptools3:
Index: python3-modules/setuptools/65.5.0/setuptools3-pkg-install.sh
===================================================================
--- python3-modules/setuptools/65.5.0/setuptools3-pkg-install.sh	(nonexistent)
+++ python3-modules/setuptools/65.5.0/setuptools3-pkg-install.sh	(revision 5)
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: python3-modules/setuptools/65.5.0/setuptools3-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: python3-modules/setuptools/65.5.0
===================================================================
--- python3-modules/setuptools/65.5.0	(nonexistent)
+++ python3-modules/setuptools/65.5.0	(revision 5)

Property changes on: python3-modules/setuptools/65.5.0
___________________________________________________________________
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-modules/setuptools
===================================================================
--- python3-modules/setuptools	(nonexistent)
+++ python3-modules/setuptools	(revision 5)

Property changes on: python3-modules/setuptools
___________________________________________________________________
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-modules
===================================================================
--- python3-modules	(nonexistent)
+++ python3-modules	(revision 5)

Property changes on: python3-modules
___________________________________________________________________
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: re2c/2.2/Makefile
===================================================================
--- re2c/2.2/Makefile	(nonexistent)
+++ re2c/2.2/Makefile	(revision 5)
@@ -0,0 +1,217 @@
+
+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/re2c
+
+REQUIRES           = libs/glibc/2.36
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 2.2
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/re2c/re2c-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/re2c-$(version)
+src_dir_name       = re2c-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+RE2C_PKG_NAME                = re2c
+RE2C_PKG_VERSION             = 2.2
+RE2C_PKG_ARCH                = $(PKGARCH)
+RE2C_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+RE2C_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+RE2C_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+RE2C_PKG_SHORT_DESCRIPTION   = lexer generator for C, C++ and Go
+RE2C_PKG_URL                 = $(BUG_URL)
+RE2C_PKG_LICENSE             = public-domain
+RE2C_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(RE2C_PKG_NAME)-pkg-description
+RE2C_PKG_DESCRIPTION_FILE_IN = $(RE2C_PKG_NAME)-pkg-description.in
+RE2C_PKG_INSTALL_SCRIPT      = $(RE2C_PKG_NAME)-pkg-install.sh
+
+RE2C_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(RE2C_PKG_NAME)-package
+
+pkg_basename     = $(RE2C_PKG_NAME)-$(RE2C_PKG_VERSION)-$(RE2C_PKG_ARCH)-$(RE2C_PKG_DISTRO_NAME)-$(RE2C_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=$(RE2C_PKG)
+
+
+extra_configure_switches  = --libdir=/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+extra_configure_switches += --enable-lexers
+extra_configure_switches += --enable-docs
+
+re2c-for-build = RE2C_FOR_BUILD=$(shell which re2c)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@( cd $(SRC_DIR) ; \
+	   if [ ! -r configure ] ; then \
+	     mkdir -p m4 ; \
+	     NOCONFIGURE=1 autoreconf -i -W all ; \
+	   fi ; \
+	 )
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) $(re2c-for-build) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(RE2C_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(RE2C_PKG)/usr/share/man ]; then \
+	  ( cd $(RE2C_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 $(RE2C_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE \
+	       $(RE2C_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(RE2C_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a CHANGELOG LICENSE NO_WARRANTY README* \
+	         $(RE2C_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(RE2C_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(RE2C_PKG))
+	# ======= Strip binaries =======
+	@( cd $(RE2C_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(RE2C_PKG_DESCRIPTION_FILE): $(RE2C_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) $(RE2C_PKG_DESCRIPTION_FILE) $(RE2C_PKG_INSTALL_SCRIPT)
+	@cp $(RE2C_PKG_DESCRIPTION_FILE) $(RE2C_PKG)/.DESCRIPTION
+	@cp $(RE2C_PKG_INSTALL_SCRIPT) $(RE2C_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(RE2C_PKG)/.REQUIRES
+	@echo "pkgname=$(RE2C_PKG_NAME)"                            >  $(RE2C_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(RE2C_PKG_VERSION)"                          >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "arch=$(RE2C_PKG_ARCH)"                               >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "distroname=$(RE2C_PKG_DISTRO_NAME)"                  >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "distrover=$(RE2C_PKG_DISTRO_VERSION)"                >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "group=$(RE2C_PKG_GROUP)"                             >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(RE2C_PKG_SHORT_DESCRIPTION)\"" >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "url=$(RE2C_PKG_URL)"                                 >> $(RE2C_PKG)/.PKGINFO ; \
+	 echo "license=$(RE2C_PKG_LICENSE)"                         >> $(RE2C_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(RE2C_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: re2c/2.2/PATCHES
===================================================================
Index: re2c/2.2/re2c-pkg-description.in
===================================================================
--- re2c/2.2/re2c-pkg-description.in	(nonexistent)
+++ re2c/2.2/re2c-pkg-description.in	(revision 5)
@@ -0,0 +1,20 @@
+# 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------------------------------------------------------|
+re2c: re2c @VERSION@ (lexer generator for C, C++ and Go)
+re2c:
+re2c: Re2c is a free and open-source lexer generator for C, C++ and Go
+re2c: with a focus on generating fast code. It compiles regular expression
+re2c: specifications to deterministic finite automata and encodes them in
+re2c: the form of conditional jumps in the target language.
+re2c:
+re2c:
+re2c: Homepage: https://re2c.org
+re2c:
+re2c:
+
Index: re2c/2.2/re2c-pkg-install.sh
===================================================================
--- re2c/2.2/re2c-pkg-install.sh	(nonexistent)
+++ re2c/2.2/re2c-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: re2c/2.2/re2c-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: re2c/2.2
===================================================================
--- re2c/2.2	(nonexistent)
+++ re2c/2.2	(revision 5)

Property changes on: re2c/2.2
___________________________________________________________________
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: re2c
===================================================================
--- re2c	(nonexistent)
+++ re2c	(revision 5)

Property changes on: re2c
___________________________________________________________________
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: ruby/3.2.0/Makefile
===================================================================
--- ruby/3.2.0/Makefile	(nonexistent)
+++ ruby/3.2.0/Makefile	(revision 5)
@@ -0,0 +1,299 @@
+
+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/ruby
+
+REQUIRES           = libs/gmp/6.2.1
+REQUIRES          += libs/libffi/3.4.4
+REQUIRES          += libs/libyaml/0.2.5
+REQUIRES          += libs/readline/8.2
+REQUIRES          += libs/zlib/1.2.13
+REQUIRES          += libs/gdbm/1.23
+REQUIRES          += net/openssl/1.1.1r
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.2.0
+short_version      = $(shell echo $(version) | cut -f1,2 -d'.')
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/ruby/ruby-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ruby-$(version)
+src_dir_name       = ruby-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+RUBY_PKG_NAME                = ruby
+RUBY_PKG_VERSION             = 3.2.0
+RUBY_PKG_ARCH                = $(PKGARCH)
+RUBY_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+RUBY_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+RUBY_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+RUBY_PKG_SHORT_DESCRIPTION   = Interpreted object-oriented language
+RUBY_PKG_URL                 = $(BUG_URL)
+RUBY_PKG_LICENSE             = BSD
+RUBY_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(RUBY_PKG_NAME)-pkg-description
+RUBY_PKG_DESCRIPTION_FILE_IN = $(RUBY_PKG_NAME)-pkg-description.in
+RUBY_PKG_INSTALL_SCRIPT      = $(RUBY_PKG_NAME)-pkg-install.sh
+
+RUBY_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(RUBY_PKG_NAME)-package
+
+pkg_basename     = $(RUBY_PKG_NAME)-$(RUBY_PKG_VERSION)-$(RUBY_PKG_ARCH)-$(RUBY_PKG_DISTRO_NAME)-$(RUBY_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=$(RUBY_PKG)
+
+
+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 += --datadir=/usr/share
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --with-ruby-version=$(version)
+
+extra_configure_switches += --enable-shared
+extra_configure_switches += --enable-pthread
+extra_configure_switches += --disable-install-capi
+
+
+ruby_cpu_arch = $(word 1,$(subst -, ,$(TARGET)))
+
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
+ruby_cpu_arch = powerpc64
+CFLAGS += -Wstringop-overflow=0
+endif
+ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) $(TOOLCHAIN_POWER9LE_GLIBC)),)
+ruby_cpu_arch = powerpc64le
+CFLAGS += -Wstringop-overflow=0
+endif
+
+ruby_cpu_target    = $(subst $(word 1,$(subst -, ,$(TARGET)))-,$(ruby_cpu_arch)-,$(TARGET))
+ruby_target_vendor = $(word 2,$(subst -, ,$(TARGET)))
+
+arch_dir_name = $(ruby_cpu_arch)-linux
+
+BUILD_ARCH    = $(word 1,$(subst -, ,$(BUILD)))
+BUILD_ALIAS   = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+BUILD_VENDOR  = $(word 2,$(subst -, ,$(BUILD)))
+
+
+TARGET_LIB_RPATH = /usr/lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(RUBY_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Compress man pages =======
+	@if [ -d $(RUBY_PKG)/usr/share/man ]; then \
+	  ( cd $(RUBY_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
+	# ======= Install Documentation =======
+	@mkdir -p $(RUBY_PKG)/usr/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a BSDL COPYING GPL LEGAL \
+	         $(RUBY_PKG)/usr/doc/$(src_dir_name) \
+	 )
+	@mkdir -p $(RUBY_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a BSDL COPYING GPL LEGAL NEWS.md README.EXT README.md \
+	         $(RUBY_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(RUBY_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(RUBY_PKG)/usr/lib$(LIBSUFFIX)/pkgconfig ; \
+	   sed -i "s,@LIBPATH@,/usr/lib$(LIBSUFFIX),g" ruby-$(short_version).pc ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"            ruby-$(short_version).pc ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(RUBY_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"   ruby-$(short_version).pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" ruby-$(short_version).pc ; \
+	 )
+	# ======= Tune rbconfig.rb to the target destination =======
+	@( cd $(RUBY_PKG)/usr/lib$(LIBSUFFIX)/ruby/$(version)/$(arch_dir_name) ; \
+	   sed -i "s,$(BUILD_ALIAS)-gnu,$(ruby_cpu_target),g"  rbconfig.rb ; \
+	   sed -i "s,$(CCACHE),,g"                             rbconfig.rb ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    rbconfig.rb ; \
+	   sed -i "s,$(BUILD),$(TARGET),g"                     rbconfig.rb ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET),g"               rbconfig.rb ; \
+	   sed -i "s,$(CROSS_PREFIX),/usr/bin/,g"              rbconfig.rb ; \
+	   sed -i "s, --sysroot=,,g"                           rbconfig.rb ; \
+	   sed -i "s,$(BUILD_VENDOR),$(ruby_target_vendor),g"  rbconfig.rb ; \
+	   sed -i "s,$(BUILD_ARCH),$(ruby_cpu_arch),g"         rbconfig.rb ; \
+	   sed -i "s,$(ruby_cpu_target),$(TARGET),g"           rbconfig.rb ; \
+	 )
+	# ======= Remove build stuff from the target destination =======
+	@rm -rf $(RUBY_PKG)/usr/lib$(LIBSUFFIX)/ruby/gems/$(version)/gems/rbs-*/ext
+	@rm -rf $(RUBY_PKG)/usr/lib$(LIBSUFFIX)/ruby/gems/$(version)/gems/debug-*/ext
+	@find $(RUBY_PKG)/usr/lib$(LIBSUFFIX)/ruby/gems/$(version)/extensions -name 'gem_make.out' -delete
+	@find $(RUBY_PKG)/usr/lib$(LIBSUFFIX)/ruby/gems/$(version)/extensions -name 'gem.build_complete' -delete
+	# ======= Strip binaries =======
+	@( cd $(RUBY_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 ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(RUBY_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(CURDIR)/$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(RUBY_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(CURDIR)/$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(RUBY_PKG_DESCRIPTION_FILE): $(RUBY_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) $(RUBY_PKG_DESCRIPTION_FILE) $(RUBY_PKG_INSTALL_SCRIPT)
+	@cp $(RUBY_PKG_DESCRIPTION_FILE) $(RUBY_PKG)/.DESCRIPTION
+	@cp $(RUBY_PKG_INSTALL_SCRIPT) $(RUBY_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(RUBY_PKG)/.REQUIRES
+	@echo "pkgname=$(RUBY_PKG_NAME)"                            >  $(RUBY_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(RUBY_PKG_VERSION)"                          >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "arch=$(RUBY_PKG_ARCH)"                               >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "distroname=$(RUBY_PKG_DISTRO_NAME)"                  >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "distrover=$(RUBY_PKG_DISTRO_VERSION)"                >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "group=$(RUBY_PKG_GROUP)"                             >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(RUBY_PKG_SHORT_DESCRIPTION)\"" >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "url=$(RUBY_PKG_URL)"                                 >> $(RUBY_PKG)/.PKGINFO ; \
+	 echo "license=$(RUBY_PKG_LICENSE)"                         >> $(RUBY_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(RUBY_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: ruby/3.2.0/PATCHES
===================================================================
--- ruby/3.2.0/PATCHES	(nonexistent)
+++ ruby/3.2.0/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/ruby/patches/ruby-3.2.0-configure-target-os.patch -p0
Index: ruby/3.2.0/ruby-pkg-description.in
===================================================================
--- ruby/3.2.0/ruby-pkg-description.in	(nonexistent)
+++ ruby/3.2.0/ruby-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------------------------------------------------------|
+ruby: ruby @VERSION@ (Interpreted object-oriented language)
+ruby:
+ruby: Ruby is an interpreted scripting language for quick and easy
+ruby: object-oriented programming. It has many features to process text
+ruby: files and to do system management tasks (as in Perl). It is simple,
+ruby: straight-forward, and extensible.
+ruby:
+ruby: Homepage: https://www.ruby-lang.org
+ruby:
+ruby:
+ruby:
Index: ruby/3.2.0/ruby-pkg-install.sh
===================================================================
--- ruby/3.2.0/ruby-pkg-install.sh	(nonexistent)
+++ ruby/3.2.0/ruby-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: ruby/3.2.0/ruby-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ruby/3.2.0
===================================================================
--- ruby/3.2.0	(nonexistent)
+++ ruby/3.2.0	(revision 5)

Property changes on: ruby/3.2.0
___________________________________________________________________
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: ruby/3.2.0-ppc32/Makefile
===================================================================
--- ruby/3.2.0-ppc32/Makefile	(nonexistent)
+++ ruby/3.2.0-ppc32/Makefile	(revision 5)
@@ -0,0 +1,225 @@
+
+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/ruby
+
+REQUIRES           = dev/ruby/3.2.0
+REQUIRES          += libs/gmp/6.2.1-ppc32
+REQUIRES          += libs/libffi/3.4.4-ppc32
+REQUIRES          += libs/libyaml/0.2.5-ppc32
+REQUIRES          += libs/readline/8.2-ppc32
+REQUIRES          += libs/zlib/1.2.13-ppc32
+REQUIRES          += libs/gdbm/1.23-ppc32
+REQUIRES          += net/openssl/1.1.1r-ppc32
+
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.2.0
+short_version      = $(shell echo $(version) | cut -f1,2 -d'.')
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/ruby/ruby-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ruby-$(version)
+src_dir_name       = ruby-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+RUBY_32_PKG_NAME                = ruby-x32
+RUBY_32_PKG_VERSION             = 3.2.0
+RUBY_32_PKG_ARCH                = $(PKGARCH)
+RUBY_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+RUBY_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+RUBY_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+RUBY_32_PKG_SHORT_DESCRIPTION   = Interpreted object-oriented language
+RUBY_32_PKG_URL                 = $(BUG_URL)
+RUBY_32_PKG_LICENSE             = BSD
+RUBY_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(RUBY_32_PKG_NAME)-pkg-description
+RUBY_32_PKG_DESCRIPTION_FILE_IN = $(RUBY_32_PKG_NAME)-pkg-description.in
+RUBY_32_PKG_INSTALL_SCRIPT      = $(RUBY_32_PKG_NAME)-pkg-install.sh
+
+RUBY_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(RUBY_32_PKG_NAME)-package
+
+pkg_basename     = $(RUBY_32_PKG_NAME)-$(RUBY_32_PKG_VERSION)-$(RUBY_32_PKG_ARCH)-$(RUBY_32_PKG_DISTRO_NAME)-$(RUBY_32_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=$(RUBY_32_PKG)
+
+
+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 += --datadir=/usr/share
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --with-ruby-version=$(version)
+
+extra_configure_switches += --enable-shared
+extra_configure_switches += --enable-pthread
+extra_configure_switches += --disable-install-capi
+
+
+ruby_cpu_arch = powerpc
+
+ruby_cpu_target    = $(subst $(word 1,$(subst -, ,$(TARGET32)))-,$(ruby_cpu_arch)-,$(TARGET32))
+ruby_target_vendor = $(word 2,$(subst -, ,$(TARGET32)))
+
+arch_dir_name = $(ruby_cpu_arch)-linux
+
+BUILD_ARCH    = $(word 1,$(subst -, ,$(BUILD)))
+BUILD_ALIAS   = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+BUILD_VENDOR  = $(word 2,$(subst -, ,$(BUILD)))
+
+
+TARGET_LIB_RPATH = /usr/lib$(MULTILIB_PPC32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(RUBY_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(RUBY_32_PKG)/usr/include/ruby-$(version)/ruby{,.h}
+	@rm -rf $(RUBY_32_PKG)/usr/share
+	# ======= Remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,@LIBPATH@,/usr/lib$(MULTILIB_PPC32_SUFFIX),g" ruby-$(short_version).pc ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                        ruby-$(short_version).pc ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(RUBY_32_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"   ruby-$(short_version).pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" ruby-$(short_version).pc ; \
+	 )
+	# ======= Tune rbconfig.rb to the target destination =======
+	@( cd $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/ruby/$(version)/$(arch_dir_name) ; \
+	   sed -i "s,$(BUILD_ALIAS)-gnu,$(ruby_cpu_target),g"  rbconfig.rb ; \
+	   sed -i "s,$(CCACHE),,g"                             rbconfig.rb ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    rbconfig.rb ; \
+	   sed -i "s,$(BUILD),$(TARGET32),g"                   rbconfig.rb ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET32),g"             rbconfig.rb ; \
+	   sed -i "s,$(CROSS_PREFIX),/usr/bin/,g"              rbconfig.rb ; \
+	   sed -i "s, --sysroot=,,g"                           rbconfig.rb ; \
+	   sed -i "s,$(BUILD_VENDOR),$(ruby_target_vendor),g"  rbconfig.rb ; \
+	   sed -i "s,$(BUILD_ARCH),$(ruby_cpu_arch),g"         rbconfig.rb ; \
+	   sed -i "s,$(ruby_cpu_target),$(TARGET32),g"         rbconfig.rb ; \
+	 )
+	# ======= Remove build stuff from the target destination =======
+	@rm -rf $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/ruby/gems/$(version)/gems/rbs-*/ext
+	@rm -rf $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/ruby/gems/$(version)/gems/debug-*/ext
+	@find $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/ruby/gems/$(version)/extensions -name 'gem_make.out' -delete
+	@find $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX)/ruby/gems/$(version)/extensions -name 'gem.build_complete' -delete
+	# ======= Strip binaries =======
+	@( cd $(RUBY_32_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 ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(RUBY_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(CURDIR)/$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(RUBY_32_PKG)/usr/lib$(MULTILIB_PPC32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(CURDIR)/$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(RUBY_32_PKG_DESCRIPTION_FILE): $(RUBY_32_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) $(RUBY_32_PKG_DESCRIPTION_FILE) $(RUBY_32_PKG_INSTALL_SCRIPT)
+	@cp $(RUBY_32_PKG_DESCRIPTION_FILE) $(RUBY_32_PKG)/.DESCRIPTION
+	@cp $(RUBY_32_PKG_INSTALL_SCRIPT) $(RUBY_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(RUBY_32_PKG)/.REQUIRES
+	@echo "pkgname=$(RUBY_32_PKG_NAME)"                            >  $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(RUBY_32_PKG_VERSION)"                          >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(RUBY_32_PKG_ARCH)"                               >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(RUBY_32_PKG_DISTRO_NAME)"                  >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(RUBY_32_PKG_DISTRO_VERSION)"                >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "group=$(RUBY_32_PKG_GROUP)"                             >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(RUBY_32_PKG_SHORT_DESCRIPTION)\"" >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "url=$(RUBY_32_PKG_URL)"                                 >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "license=$(RUBY_32_PKG_LICENSE)"                         >> $(RUBY_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(RUBY_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: ruby/3.2.0-ppc32/PATCHES
===================================================================
--- ruby/3.2.0-ppc32/PATCHES	(nonexistent)
+++ ruby/3.2.0-ppc32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/ruby/patches/ruby-3.2.0-configure-target-os.patch -p0
Index: ruby/3.2.0-ppc32/ruby-x32-pkg-description.in
===================================================================
--- ruby/3.2.0-ppc32/ruby-x32-pkg-description.in	(nonexistent)
+++ ruby/3.2.0-ppc32/ruby-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------------------------------------------------------|
+ruby-x32: ruby-x32 @VERSION@ (Interpreted object-oriented language)
+ruby-x32:
+ruby-x32: Ruby is an interpreted scripting language for quick and easy
+ruby-x32: object-oriented programming. It has many features to process text
+ruby-x32: files and to do system management tasks (as in Perl). It is simple,
+ruby-x32: straight-forward, and extensible.
+ruby-x32:
+ruby-x32: Homepage: https://www.ruby-lang.org
+ruby-x32:
+ruby-x32:
+ruby-x32:
Index: ruby/3.2.0-ppc32/ruby-x32-pkg-install.sh
===================================================================
--- ruby/3.2.0-ppc32/ruby-x32-pkg-install.sh	(nonexistent)
+++ ruby/3.2.0-ppc32/ruby-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: ruby/3.2.0-ppc32/ruby-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ruby/3.2.0-ppc32
===================================================================
--- ruby/3.2.0-ppc32	(nonexistent)
+++ ruby/3.2.0-ppc32	(revision 5)

Property changes on: ruby/3.2.0-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: ruby/3.2.0-x86_32/Makefile
===================================================================
--- ruby/3.2.0-x86_32/Makefile	(nonexistent)
+++ ruby/3.2.0-x86_32/Makefile	(revision 5)
@@ -0,0 +1,222 @@
+
+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/ruby
+
+REQUIRES           = dev/ruby/3.2.0
+REQUIRES          += libs/gmp/6.2.1-x86_32
+REQUIRES          += libs/libffi/3.4.4-x86_32
+REQUIRES          += libs/libyaml/0.2.5-x86_32
+REQUIRES          += libs/readline/8.2-x86_32
+REQUIRES          += libs/zlib/1.2.13-x86_32
+REQUIRES          += libs/gdbm/1.23-x86_32
+REQUIRES          += net/openssl/1.1.1r-x86_32
+
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 3.2.0
+short_version      = $(shell echo $(version) | cut -f1,2 -d'.')
+tar_xz_archive     = $(SRC_PACKAGE_PATH)/packages/d/ruby/ruby-$(version).tar.xz
+SRC_ARCHIVE        = $(tar_xz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/ruby-$(version)
+src_dir_name       = ruby-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+RUBY_32_PKG_NAME                = ruby-x32
+RUBY_32_PKG_VERSION             = 3.2.0
+RUBY_32_PKG_ARCH                = $(PKGARCH)
+RUBY_32_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+RUBY_32_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+RUBY_32_PKG_GROUP               = $(PKG_GROUP)
+###                              |---handy-ruler-------------------------------|
+RUBY_32_PKG_SHORT_DESCRIPTION   = Interpreted object-oriented language
+RUBY_32_PKG_URL                 = $(BUG_URL)
+RUBY_32_PKG_LICENSE             = BSD
+RUBY_32_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(RUBY_32_PKG_NAME)-pkg-description
+RUBY_32_PKG_DESCRIPTION_FILE_IN = $(RUBY_32_PKG_NAME)-pkg-description.in
+RUBY_32_PKG_INSTALL_SCRIPT      = $(RUBY_32_PKG_NAME)-pkg-install.sh
+
+RUBY_32_PKG      = $(CURDIR)/$(TARGET_BUILD_DIR)/$(RUBY_32_PKG_NAME)-package
+
+pkg_basename     = $(RUBY_32_PKG_NAME)-$(RUBY_32_PKG_VERSION)-$(RUBY_32_PKG_ARCH)-$(RUBY_32_PKG_DISTRO_NAME)-$(RUBY_32_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=$(RUBY_32_PKG)
+
+
+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 += --datadir=/usr/share
+
+extra_configure_switches += --bindir=/usr/bin/32
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+
+extra_configure_switches += --with-ruby-version=$(version)
+
+extra_configure_switches += --enable-shared
+extra_configure_switches += --enable-pthread
+extra_configure_switches += --disable-install-capi
+
+
+ruby_cpu_arch = $(word 1,$(subst -, ,$(TARGET32)))
+
+ruby_cpu_target    = $(subst $(word 1,$(subst -, ,$(TARGET32)))-,$(ruby_cpu_arch)-,$(TARGET32))
+ruby_target_vendor = $(word 2,$(subst -, ,$(TARGET32)))
+
+arch_dir_name = $(ruby_cpu_arch)-linux
+
+BUILD_ARCH    = $(word 1,$(subst -, ,$(BUILD)))
+BUILD_ALIAS   = $(shell echo $(BUILD) | sed 's,-gnu$$,,')
+BUILD_VENDOR  = $(word 2,$(subst -, ,$(BUILD)))
+
+
+TARGET_LIB_RPATH = /usr/lib$(MULTILIB_X86_32_SUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET32)          \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(RUBY_32_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	@rm -rf $(RUBY_32_PKG)/usr/include/ruby-$(version)/ruby{,.h}
+	@rm -rf $(RUBY_32_PKG)/usr/share
+	# ======= Remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/pkgconfig ; \
+	   sed -i "s,@LIBPATH@,/usr/lib$(MULTILIB_X86_32_SUFFIX),g" ruby-$(short_version).pc ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                         ruby-$(short_version).pc ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(RUBY_32_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"   ruby-$(short_version).pc ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" ruby-$(short_version).pc ; \
+	 )
+	# ======= Tune rbconfig.rb to the target destination =======
+	@( cd $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/ruby/$(version)/$(arch_dir_name) ; \
+	   sed -i "s,$(BUILD_ALIAS)-gnu,$(ruby_cpu_target),g"  rbconfig.rb ; \
+	   sed -i "s,$(CCACHE),,g"                             rbconfig.rb ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g"                    rbconfig.rb ; \
+	   sed -i "s,$(BUILD),$(TARGET32),g"                   rbconfig.rb ; \
+	   sed -i "s,$(BUILD_ALIAS),$(TARGET32),g"             rbconfig.rb ; \
+	   sed -i "s,$(CROSS_PREFIX),/usr/bin/,g"              rbconfig.rb ; \
+	   sed -i "s, --sysroot=,,g"                           rbconfig.rb ; \
+	   sed -i "s,$(BUILD_VENDOR),$(ruby_target_vendor),g"  rbconfig.rb ; \
+	   sed -i "s,$(BUILD_ARCH),$(ruby_cpu_arch),g"         rbconfig.rb ; \
+	   sed -i "s,$(ruby_cpu_target),$(TARGET32),g"         rbconfig.rb ; \
+	 )
+	# ======= Remove build stuff from the target destination =======
+	@rm -rf $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/ruby/gems/$(version)/gems/rbs-*/ext
+	@rm -rf $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/ruby/gems/$(version)/gems/debug-*/ext
+	@find $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/ruby/gems/$(version)/extensions -name 'gem_make.out' -delete
+	@find $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/ruby/gems/$(version)/extensions -name 'gem.build_complete' -delete
+	# ======= Strip binaries =======
+	@( cd $(RUBY_32_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 ; \
+	 )
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(RUBY_32_PKG)/usr/bin/32 ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(CURDIR)/$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(RUBY_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(CURDIR)/$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(RUBY_32_PKG_DESCRIPTION_FILE): $(RUBY_32_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) $(RUBY_32_PKG_DESCRIPTION_FILE) $(RUBY_32_PKG_INSTALL_SCRIPT)
+	@cp $(RUBY_32_PKG_DESCRIPTION_FILE) $(RUBY_32_PKG)/.DESCRIPTION
+	@cp $(RUBY_32_PKG_INSTALL_SCRIPT) $(RUBY_32_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(RUBY_32_PKG)/.REQUIRES
+	@echo "pkgname=$(RUBY_32_PKG_NAME)"                            >  $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(RUBY_32_PKG_VERSION)"                          >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "arch=$(RUBY_32_PKG_ARCH)"                               >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "distroname=$(RUBY_32_PKG_DISTRO_NAME)"                  >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "distrover=$(RUBY_32_PKG_DISTRO_VERSION)"                >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "group=$(RUBY_32_PKG_GROUP)"                             >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(RUBY_32_PKG_SHORT_DESCRIPTION)\"" >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "url=$(RUBY_32_PKG_URL)"                                 >> $(RUBY_32_PKG)/.PKGINFO ; \
+	 echo "license=$(RUBY_32_PKG_LICENSE)"                         >> $(RUBY_32_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(RUBY_32_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: ruby/3.2.0-x86_32/PATCHES
===================================================================
--- ruby/3.2.0-x86_32/PATCHES	(nonexistent)
+++ ruby/3.2.0-x86_32/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/ruby/patches/ruby-3.2.0-configure-target-os.patch -p0
Index: ruby/3.2.0-x86_32/ruby-x32-pkg-description.in
===================================================================
--- ruby/3.2.0-x86_32/ruby-x32-pkg-description.in	(nonexistent)
+++ ruby/3.2.0-x86_32/ruby-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------------------------------------------------------|
+ruby-x32: ruby-x32 @VERSION@ (Interpreted object-oriented language)
+ruby-x32:
+ruby-x32: Ruby is an interpreted scripting language for quick and easy
+ruby-x32: object-oriented programming. It has many features to process text
+ruby-x32: files and to do system management tasks (as in Perl). It is simple,
+ruby-x32: straight-forward, and extensible.
+ruby-x32:
+ruby-x32: Homepage: https://www.ruby-lang.org
+ruby-x32:
+ruby-x32:
+ruby-x32:
Index: ruby/3.2.0-x86_32/ruby-x32-pkg-install.sh
===================================================================
--- ruby/3.2.0-x86_32/ruby-x32-pkg-install.sh	(nonexistent)
+++ ruby/3.2.0-x86_32/ruby-x32-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: ruby/3.2.0-x86_32/ruby-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: ruby/3.2.0-x86_32
===================================================================
--- ruby/3.2.0-x86_32	(nonexistent)
+++ ruby/3.2.0-x86_32	(revision 5)

Property changes on: ruby/3.2.0-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: ruby
===================================================================
--- ruby	(nonexistent)
+++ ruby	(revision 5)

Property changes on: ruby
___________________________________________________________________
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: subversion/1.14.1/Makefile
===================================================================
--- subversion/1.14.1/Makefile	(nonexistent)
+++ subversion/1.14.1/Makefile	(revision 5)
@@ -0,0 +1,426 @@
+
+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/subversion
+
+REQUIRES           = net/httpd/2.4.51
+REQUIRES          += app/file/5.39
+REQUIRES          += app/util-linux/2.38.1
+REQUIRES          += app/db/18.1.40
+REQUIRES          += app/mariadb/10.6.5
+REQUIRES          += app/postgresql/14.1
+REQUIRES          += app/sqlite/3.39.4.0
+REQUIRES          += net/openssl/1.1.1r
+REQUIRES          += net/krb5/1.19.1
+REQUIRES          += net/cyrus-sasl/2.1.27
+REQUIRES          += libs/libsecret/0.20.4
+REQUIRES          += libs/utf8proc/2.7.0
+REQUIRES          += libs/serf/1.3.9
+REQUIRES          += libs/expat/2.5.0
+REQUIRES          += libs/glib2/2.76.0
+REQUIRES          += libs/boost/1.77.0
+REQUIRES          += dev/perl/5.36.0
+REQUIRES          += dev/swig/4.0.2
+REQUIRES          += libs/lz4/1.9.4
+REQUIRES          += app/bzip2/1.0.8
+REQUIRES          += libs/zlib/1.2.13
+REQUIRES          += app/xz/5.2.7
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 1.14.1
+tar_bz2_archive    = $(SRC_PACKAGE_PATH)/packages/d/subversion/subversion-$(version).tar.bz2
+svn-book           = $(SRC_PACKAGE_PATH)/packages/d/subversion/svn-book-html.tar.bz2
+SRC_ARCHIVE        = $(tar_bz2_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/subversion-$(version)
+src_dir_name       = subversion-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+SVN_PKG_NAME                = subversion
+SVN_PKG_VERSION             = 1.14.1
+SVN_PKG_ARCH                = $(PKGARCH)
+SVN_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+SVN_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+SVN_PKG_GROUP               = $(PKG_GROUP)
+###                          |---handy-ruler-------------------------------|
+SVN_PKG_SHORT_DESCRIPTION   = Version Control System
+SVN_PKG_URL                 = $(BUG_URL)
+SVN_PKG_LICENSE             = Apache-v2.0
+SVN_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(SVN_PKG_NAME)-pkg-description
+SVN_PKG_DESCRIPTION_FILE_IN = $(SVN_PKG_NAME)-pkg-description.in
+SVN_PKG_INSTALL_SCRIPT      = $(SVN_PKG_NAME)-pkg-install.sh
+
+SVN_PKG          = $(CURDIR)/$(TARGET_BUILD_DIR)/$(SVN_PKG_NAME)-package
+
+pkg_basename     = $(SVN_PKG_NAME)-$(SVN_PKG_VERSION)-$(SVN_PKG_ARCH)-$(SVN_PKG_DISTRO_NAME)-$(SVN_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=$(SVN_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --with-apache-libexecdir=/usr/lib$(LIBSUFFIX)/httpd/modules
+
+extra_configure_switches += --with-apr=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-apr-util=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-serf=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-apxs=$(TARGET_DEST_DIR)/usr/bin/apxs
+
+extra_configure_switches += --with-expat=$(TARGET_DEST_DIR)/usr/include:$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX):expat
+extra_configure_switches += --with-berkeley-db=db.h:$(TARGET_DEST_DIR)/usr/include:$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX):db
+extra_configure_switches += --with-libmagic=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-sasl=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-utf8proc=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-swig=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-boost=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-sqlite=$(TARGET_DEST_DIR)/usr
+
+extra_configure_switches += --with-lz4=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-zlib=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-pic
+
+extra_configure_switches += --with-gnome-keyring
+extra_configure_switches += --without-kwallet
+
+
+ifeq ($(__ENABLE_STATIC__),yes)
+extra_configure_switches += --enable-static=yes
+else
+extra_configure_switches += --enable-static=no
+endif
+extra_configure_switches += --enable-shared=yes
+
+
+#
+# Common Perl5 Environment:
+# ========================
+#
+perl_environment  = INSTALLDIRS=vendor
+
+perl_environment += PERL_LIB='$(TARGET_DEST_DIR)/usr/share/perl5'
+perl_environment += PERL_ARCHLIB='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5'
+perl_environment += PERL_INC='$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+
+perl_environment += SITELIBEXP='/usr/share/perl5/site_perl'
+perl_environment += SITEARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+perl_environment += VENDORLIBEXP='/usr/share/perl5/vendor_perl'
+perl_environment += VENDORARCHEXP='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += PERLPREFIX='/usr'
+perl_environment += INSTALLPRIVLIB='/usr/share/perl5'
+perl_environment += INSTALLARCHLIB='/usr/lib$(LIBSUFFIX)/perl5'
+
+perl_environment += SITEPREFIX='/usr'
+perl_environment += INSTALLSITELIB='/usr/share/perl5/site_perl'
+perl_environment += INSTALLSITEARCH='/usr/lib$(LIBSUFFIX)/perl5/site_perl'
+
+perl_environment += VENDORPREFIX='/usr'
+perl_environment += INSTALLVENDORLIB='/usr/share/perl5/vendor_perl'
+perl_environment += INSTALLVENDORARCH='/usr/lib$(LIBSUFFIX)/perl5/vendor_perl'
+
+perl_environment += INSTALLBIN='/usr/bin'
+perl_environment += INSTALLSITEBIN='/usr/bin'
+perl_environment += INSTALLVENDORBIN='/usr/bin'
+
+perl_environment += INSTALLSCRIPT='/usr/bin'
+perl_environment += INSTALLSITESCRIPT='/usr/bin'
+perl_environment += INSTALLVENDORSCRIPT='/usr/bin'
+
+perl_environment += INSTALLMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLSITEMAN1DIR='/usr/share/man/man1'
+perl_environment += INSTALLVENDORMAN1DIR='/usr/share/man/man1'
+
+perl_environment += INSTALLMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLSITEMAN3DIR='/usr/share/man/man3'
+perl_environment += INSTALLVENDORMAN3DIR='/usr/share/man/man3'
+
+#
+# HW Specific Perl5 Environment:
+# =============================
+#
+suppress-warnings = -Wno-unused-function -Wno-unused-parameter -Wno-incompatible-pointer-types
+
+perl_environment += AR=$(AR)
+perl_environment += RANLIB=$(RANLIB)
+perl_environment += CC='$(CC) --sysroot=$(TARGET_DEST_DIR) $(ARCH_OPTIMIZATION) $(ARCH_FLAGS) $(ARCH_DEFS)'
+perl_environment += LD='$(CC) --sysroot=$(TARGET_DEST_DIR) -shared'
+perl_environment += LDFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCFLAGS='$(CFLAGS) -I$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE $(pg-defines) $(suppress-warnings)'
+perl_environment += LDDLFLAGS='$(LDFLAGS) -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += CCCDLFLAGS='-fPIC'
+perl_environment += CCDLFLAGS='-Wl,-E -Wl,-rpath,/usr/lib$(LIBSUFFIX)/perl5/CORE'
+perl_environment += FULL_AR=$(AR)
+perl_environment += OSNAME=linux
+perl_environment += OSVERS=
+perl_environment += LIBC=
+
+perl_local_pod = usr/lib$(LIBSUFFIX)/perl5/perllocal.pod
+
+
+TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
+TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@cp -a $(CONFIG_GUESS) $(CONFIG_SUB) $(SRC_DIR)/build
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(SVN_PKG)
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install       $(env_sysroot) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install-tools $(env_sysroot) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) -j1 install-docs  $(env_sysroot) ; \
+	 )
+	# ======= Install Perl Bindings =======
+	@( cd $(build_dir) ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) swig-pl-lib ; \
+	   $(BUILD_ENVIRONMENT) $(MAKE) install-swig-pl-lib $(env_sysroot) ; \
+	 )
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) install-swig-pl $(perl_environment) $(env_sysroot)
+	@find $(SVN_PKG) -name '.packlist' -delete
+	@rm -f $(SVN_PKG)/$(perl_local_pod)
+	@( cd $(SVN_PKG)/usr/lib$(LIBSUFFIX)/perl5 ; \
+	   find . -name '*.so' -exec chmod 755 {} \; ; \
+	 )
+	# ======= Install Documentation =======
+	@if [ -d $(SVN_PKG)/usr/share/man ]; then \
+	  ( cd $(SVN_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 $(SVN_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE $(SRC_DIR)/NOTICE \
+	       $(SVN_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(SVN_PKG)/usr/share/doc/$(src_dir_name)/svn-book
+	@( cd $(SRC_DIR) ; \
+	   cp -a BUGS COMMITTERS INSTALL LICENSE NOTICE README doc \
+	         $(SVN_PKG)/usr/share/doc/$(src_dir_name) ; \
+	 )
+	@rm -f $(SVN_PKG)/usr/share/doc/$(src_dir_name)/doc/doxygen.conf
+	@( cd $(SRC_DIR) ; \
+	   if [ -r CHANGES ]; then \
+	     DOCSDIR=`echo $(SVN_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat CHANGES | head -n 1000 > $$DOCSDIR/CHANGES ; \
+	     touch -r CHANGES $$DOCSDIR/CHANGES ; \
+	   fi \
+	 )
+	# ======= Install SvnBook  =======
+	@tar -C $(SVN_PKG)/usr/share/doc/$(src_dir_name)/svn-book --strip-components=1 -xjf $(svn-book)
+	# ======= Remove toolchain path from target libtool *.la files =======
+	@( cd $(SVN_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libsvn_auth_gnome_keyring-1.la         libsvn_client-1.la    \
+	                                    libsvn_delta-1.la   libsvn_diff-1.la   libsvn_fs-1.la        \
+	                                    libsvn_fs_base-1.la libsvn_fs_fs-1.la  libsvn_fs_util-1.la   \
+	                                    libsvn_fs_x-1.la    libsvn_ra-1.la     libsvn_ra_local-1.la  \
+	                                    libsvn_ra_serf-1.la libsvn_ra_svn-1.la libsvn_repos-1.la     \
+	                                    libsvn_subr-1.la    libsvn_wc-1.la                         ; \
+	 )
+	# ======= Remove toolchain path from target pkg-config *.pc files =======
+	@( cd $(SVN_PKG)/usr/share/pkgconfig ; \
+	   sed -i "s,$(TARGET_DEST_DIR),,g" libsvn_auth_gnome_keyring.pc       libsvn_client.pc    \
+	                                    libsvn_delta.pc   libsvn_diff.pc   libsvn_fs.pc        \
+	                                    libsvn_fs_base.pc libsvn_fs_fs.pc  libsvn_fs_util.pc   \
+	                                    libsvn_fs_x.pc    libsvn_ra.pc     libsvn_ra_local.pc  \
+	                                    libsvn_ra_serf.pc libsvn_ra_svn.pc libsvn_repos.pc     \
+	                                    libsvn_subr.pc    libsvn_wc.pc                       ; \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(SVN_PKG))
+	# ======= Tune libtool *.la search path to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX) ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g"   libsvn_auth_gnome_keyring-1.la         libsvn_client-1.la    \
+	                                              libsvn_delta-1.la   libsvn_diff-1.la   libsvn_fs-1.la        \
+	                                              libsvn_fs_base-1.la libsvn_fs_fs-1.la  libsvn_fs_util-1.la   \
+	                                              libsvn_fs_x-1.la    libsvn_ra-1.la     libsvn_ra_local-1.la  \
+	                                              libsvn_ra_serf-1.la libsvn_ra_svn-1.la libsvn_repos-1.la     \
+	                                              libsvn_subr-1.la    libsvn_wc-1.la                         ; \
+	   sed -i "s,L/lib,L$(TARGET_DEST_DIR)/lib,g" libsvn_auth_gnome_keyring-1.la         libsvn_client-1.la    \
+	                                              libsvn_delta-1.la   libsvn_diff-1.la   libsvn_fs-1.la        \
+	                                              libsvn_fs_base-1.la libsvn_fs_fs-1.la  libsvn_fs_util-1.la   \
+	                                              libsvn_fs_x-1.la    libsvn_ra-1.la     libsvn_ra_local-1.la  \
+	                                              libsvn_ra_serf-1.la libsvn_ra_svn-1.la libsvn_repos-1.la     \
+	                                              libsvn_subr-1.la    libsvn_wc-1.la                         ; \
+	 )
+	# ======= Tune pkg-config *.pc files to the target destination for development =======
+	@( cd $(TARGET_DEST_DIR)/usr/share/pkgconfig ; \
+	   sed -i "s,/usr,$(TARGET_DEST_DIR)/usr,g" libsvn_auth_gnome_keyring.pc       libsvn_client.pc    \
+	                                            libsvn_delta.pc   libsvn_diff.pc   libsvn_fs.pc        \
+	                                            libsvn_fs_base.pc libsvn_fs_fs.pc  libsvn_fs_util.pc   \
+	                                            libsvn_fs_x.pc    libsvn_ra.pc     libsvn_ra_local.pc  \
+	                                            libsvn_ra_serf.pc libsvn_ra_svn.pc libsvn_repos.pc     \
+	                                            libsvn_subr.pc    libsvn_wc.pc                       ; \
+	 )
+	# ======= Strip binaries =======
+	@( cd $(SVN_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 ; \
+	 )
+ifeq ($(__ENABLE_STATIC__),yes)
+	@( cd $(SVN_PKG) ; \
+	   find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs $(STRIP) -g 2> /dev/null ; \
+	 )
+endif
+ifneq ($(PATCHELF),)
+	# ======= Set RPATH/RUNPATH for target binaries =======
+	@( cd $(SVN_PKG)/usr/bin ; \
+	   for file in `find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_BIN_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(SVN_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_DEST_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+	# ======= Set RPATH/RUNPATH for target shared objects =======
+	@( cd $(SVN_PKG)/usr/lib$(LIBSUFFIX) ; \
+	   for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+	     rpath=`$(PATCHELF) --print-rpath $$file 2> /dev/null` ; \
+	     if echo "$$rpath" | grep -q "$(TARGET_BUILD_DIR)" ; then \
+	       $(PATCHELF) --set-rpath $(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+	     fi ; \
+	   done ; \
+	 )
+endif
+	@touch $@
+
+$(SVN_PKG_DESCRIPTION_FILE): $(SVN_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) $(SVN_PKG_DESCRIPTION_FILE) $(SVN_PKG_INSTALL_SCRIPT)
+	@cp $(SVN_PKG_DESCRIPTION_FILE) $(SVN_PKG)/.DESCRIPTION
+	@cp $(SVN_PKG_INSTALL_SCRIPT) $(SVN_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(SVN_PKG)/.REQUIRES
+	@echo "pkgname=$(SVN_PKG_NAME)"                            >  $(SVN_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(SVN_PKG_VERSION)"                          >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "arch=$(SVN_PKG_ARCH)"                               >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "distroname=$(SVN_PKG_DISTRO_NAME)"                  >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "distrover=$(SVN_PKG_DISTRO_VERSION)"                >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "group=$(SVN_PKG_GROUP)"                             >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(SVN_PKG_SHORT_DESCRIPTION)\"" >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "url=$(SVN_PKG_URL)"                                 >> $(SVN_PKG)/.PKGINFO ; \
+	 echo "license=$(SVN_PKG_LICENSE)"                         >> $(SVN_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(SVN_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: subversion/1.14.1/PATCHES
===================================================================
--- subversion/1.14.1/PATCHES	(nonexistent)
+++ subversion/1.14.1/PATCHES	(revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/d/subversion/patches/subversion-1.14.1-remove-macosx.patch -p0
Index: subversion/1.14.1/subversion-pkg-description.in
===================================================================
--- subversion/1.14.1/subversion-pkg-description.in	(nonexistent)
+++ subversion/1.14.1/subversion-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------------------------------------------------------|
+subversion: subversion @VERSION@ (Version Control System)
+subversion:
+subversion: Subversion is a version control system which allows you to keep old
+subversion: versions of files and directories (usually source code), and keep a
+subversion: log of who, when, and why changes occurred, similar to other such
+subversion: systems like CVS, RCS or SCCS. Subversion keeps all the information
+subversion: to permit extracting previous versions of those files at any time.
+subversion:
+subversion: Homepage: https://subversion.apache.org
+subversion:
+subversion:
Index: subversion/1.14.1/subversion-pkg-install.sh
===================================================================
--- subversion/1.14.1/subversion-pkg-install.sh	(nonexistent)
+++ subversion/1.14.1/subversion-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: subversion/1.14.1/subversion-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: subversion/1.14.1
===================================================================
--- subversion/1.14.1	(nonexistent)
+++ subversion/1.14.1	(revision 5)

Property changes on: subversion/1.14.1
___________________________________________________________________
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: subversion
===================================================================
--- subversion	(nonexistent)
+++ subversion	(revision 5)

Property changes on: subversion
___________________________________________________________________
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: swig/4.0.2/Makefile
===================================================================
--- swig/4.0.2/Makefile	(nonexistent)
+++ swig/4.0.2/Makefile	(revision 5)
@@ -0,0 +1,220 @@
+
+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/swig
+
+REQUIRES           = libs/pcre/8.44
+REQUIRES          += libs/boost/1.77.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version            = 4.0.2
+tar_gz_archive     = $(SRC_PACKAGE_PATH)/packages/d/swig/swig-$(version).tar.gz
+SRC_ARCHIVE        = $(tar_gz_archive)
+SRC_DIR            = $(TARGET_BUILD_DIR)/swig-$(version)
+src_dir_name       = swig-$(version)
+src_done           = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_dir          = $(TARGET_BUILD_DIR)/build
+build_target       = $(TARGET_BUILD_DIR)/.build_done
+install_target     = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = dev
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+SWIG_PKG_NAME                = swig
+SWIG_PKG_VERSION             = 4.0.2
+SWIG_PKG_ARCH                = $(PKGARCH)
+SWIG_PKG_DISTRO_NAME         = $(DISTRO_NAME)
+SWIG_PKG_DISTRO_VERSION      = $(DISTRO_VERSION)
+SWIG_PKG_GROUP               = $(PKG_GROUP)
+###                           |---handy-ruler-------------------------------|
+SWIG_PKG_SHORT_DESCRIPTION   = Simplified Wrapper and Interface Generator
+SWIG_PKG_URL                 = $(BUG_URL)
+SWIG_PKG_LICENSE             = custom
+SWIG_PKG_DESCRIPTION_FILE    = $(TARGET_BUILD_DIR)/$(SWIG_PKG_NAME)-pkg-description
+SWIG_PKG_DESCRIPTION_FILE_IN = $(SWIG_PKG_NAME)-pkg-description.in
+SWIG_PKG_INSTALL_SCRIPT      = $(SWIG_PKG_NAME)-pkg-install.sh
+
+SWIG_PKG         = $(CURDIR)/$(TARGET_BUILD_DIR)/$(SWIG_PKG_NAME)-package
+
+pkg_basename     = $(SWIG_PKG_NAME)-$(SWIG_PKG_VERSION)-$(SWIG_PKG_ARCH)-$(SWIG_PKG_DISTRO_NAME)-$(SWIG_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=$(SWIG_PKG)
+
+
+extra_configure_switches  = --libdir=/usr/lib$(LIBSUFFIX)
+extra_configure_switches += --docdir=/usr/share/doc/$(src_dir_name)
+extra_configure_switches += --infodir=/usr/share/info
+extra_configure_switches += --mandir=/usr/share/man
+
+extra_configure_switches += --sysconfdir=/etc
+extra_configure_switches += --localstatedir=/var
+extra_configure_switches += --exec-prefix=/usr
+
+extra_configure_switches += --with-pcre-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-pcre-exec-prefix=$(TARGET_DEST_DIR)/usr
+extra_configure_switches += --with-boost=$(TARGET_DEST_DIR)/usr
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+	$(UNPACK_SRC_ARCHIVE)
+	$(APPLY_PATCHES)
+	@touch $@
+
+$(build_target): $(src_done)
+	@mkdir -p $(build_dir)
+	@cd $(build_dir) && \
+	  $(BUILD_ENVIRONMENT) ../$(src_dir_name)/configure \
+	  --prefix=/usr               \
+	  --build=$(BUILD)            \
+	  --host=$(TARGET)            \
+	  $(extra_configure_switches)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE)
+	@touch $@
+
+$(install_target): $(build_target)
+	@mkdir -p $(SWIG_PKG)
+	@cd $(build_dir) && $(BUILD_ENVIRONMENT) $(MAKE) -j1 install $(env_sysroot)
+	# ======= Install Documentation =======
+	@if [ -d $(SWIG_PKG)/usr/share/man ]; then \
+	  ( cd $(SWIG_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 $(SWIG_PKG)/usr/doc/$(src_dir_name)
+	@cp -a $(SRC_DIR)/LICENSE* $(SRC_DIR)/COPYRIGHT \
+	       $(SWIG_PKG)/usr/doc/$(src_dir_name)
+	@mkdir -p $(SWIG_PKG)/usr/share/doc/$(src_dir_name)
+	@( cd $(SRC_DIR) ; \
+	   cp -a ANNOUNCE COPYRIGHT LICENSE* README RELEASENOTES TODO Doc/Manual \
+	         $(SWIG_PKG)/usr/share/doc/$(src_dir_name) \
+	 )
+	@( cd $(SWIG_PKG)/usr/share/doc/$(src_dir_name)/Manual ; \
+	   rm -f *.{py,book,config} Makefile chapters ; \
+	 )
+	@cp $(SRC_DIR)/CHANGES.current $(SWIG_PKG)/usr/share/doc/$(src_dir_name)/CHANGES
+	@( cd $(SRC_DIR) ; \
+	   if [ -r ChangeLog ]; then \
+	     DOCSDIR=`echo $(SWIG_PKG)/usr/share/doc/$(src_dir_name)` ; \
+	     cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+	     touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+	   fi \
+	 )
+	# ======= Install the same to $(TARGET_DEST_DIR) =======
+	$(call install-into-devenv, $(SWIG_PKG))
+	# ======= Strip binaries =======
+	@( cd $(SWIG_PKG) ; \
+	   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+	 )
+	@touch $@
+
+$(SWIG_PKG_DESCRIPTION_FILE): $(SWIG_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) $(SWIG_PKG_DESCRIPTION_FILE) $(SWIG_PKG_INSTALL_SCRIPT)
+	@cp $(SWIG_PKG_DESCRIPTION_FILE) $(SWIG_PKG)/.DESCRIPTION
+	@cp $(SWIG_PKG_INSTALL_SCRIPT) $(SWIG_PKG)/.INSTALL
+	@$(BUILD_PKG_REQUIRES) $(SWIG_PKG)/.REQUIRES
+	@echo "pkgname=$(SWIG_PKG_NAME)"                            >  $(SWIG_PKG)/.PKGINFO ; \
+	 echo "pkgver=$(SWIG_PKG_VERSION)"                          >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "arch=$(SWIG_PKG_ARCH)"                               >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "distroname=$(SWIG_PKG_DISTRO_NAME)"                  >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "distrover=$(SWIG_PKG_DISTRO_VERSION)"                >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "group=$(SWIG_PKG_GROUP)"                             >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "short_description=\"$(SWIG_PKG_SHORT_DESCRIPTION)\"" >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "url=$(SWIG_PKG_URL)"                                 >> $(SWIG_PKG)/.PKGINFO ; \
+	 echo "license=$(SWIG_PKG_LICENSE)"                         >> $(SWIG_PKG)/.PKGINFO
+	@$(PSEUDO) sh -c "cd $(SWIG_PKG) && \
+	                  chown -R root:root . && \
+	                  $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: swig/4.0.2/PATCHES
===================================================================
Index: swig/4.0.2/swig-pkg-description.in
===================================================================
--- swig/4.0.2/swig-pkg-description.in	(nonexistent)
+++ swig/4.0.2/swig-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------------------------------------------------------|
+swig: swig @VERSION@ (Simplified Wrapper and Interface Generator)
+swig:
+swig: SWIG is an interface compiler that connects programs written in
+swig: C and C++ with scripting languages such as Perl, Python, Ruby, and
+swig: Tcl. It works by taking the declarations found in C/C++ header files
+swig: and using them to generate the wrapper code that scripting languages
+swig: need to access the underlying C/C++ code. In addition, SWIG provides
+swig: a variety of customization features that let you tailor the wrapping
+swig: process to suit your application.
+swig:
+swig:
Index: swig/4.0.2/swig-pkg-install.sh
===================================================================
--- swig/4.0.2/swig-pkg-install.sh	(nonexistent)
+++ swig/4.0.2/swig-pkg-install.sh	(revision 5)
@@ -0,0 +1,53 @@
+#!/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() {
+  /bin/true
+}
+
+# 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() {
+  /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*

Property changes on: swig/4.0.2/swig-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: swig/4.0.2
===================================================================
--- swig/4.0.2	(nonexistent)
+++ swig/4.0.2	(revision 5)

Property changes on: swig/4.0.2
___________________________________________________________________
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: swig
===================================================================
--- swig	(nonexistent)
+++ swig	(revision 5)

Property changes on: swig
___________________________________________________________________
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
+*~