Index: Makefile
===================================================================
--- Makefile (nonexistent)
+++ Makefile (revision 5)
@@ -0,0 +1,286 @@
+
+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/l/boost
+
+REQUIRES = libs/boost/1.77.0
+REQUIRES += dev/python2/2.7.18-x86_32
+REQUIRES += dev/python3/3.10.8-x86_32
+REQUIRES += libs/icu4c/68.2-x86_32
+REQUIRES += libs/zlib/1.2.13-x86_32
+REQUIRES += libs/zstd/1.5.2-x86_32
+REQUIRES += app/bzip2/1.0.8-x86_32
+REQUIRES += app/xz/5.2.7-x86_32
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 1.77.0
+tar_bz2_archive = $(SRC_PACKAGE_PATH)/packages/l/boost/boost-$(version).tar.bz2
+SRC_ARCHIVE = $(tar_bz2_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/boost-$(version)
+src_dir_name = boost-$(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 = libs
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+BOOST_32_PKG_NAME = boost-x32
+BOOST_32_PKG_VERSION = 1.77.0
+BOOST_32_PKG_ARCH = $(PKGARCH)
+BOOST_32_PKG_DISTRO_NAME = $(DISTRO_NAME)
+BOOST_32_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+BOOST_32_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+BOOST_32_PKG_SHORT_DESCRIPTION = Boost C++ Libraries
+BOOST_32_PKG_URL = $(BUG_URL)
+BOOST_32_PKG_LICENSE = custom
+BOOST_32_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(BOOST_32_PKG_NAME)-pkg-description
+BOOST_32_PKG_DESCRIPTION_FILE_IN = $(BOOST_32_PKG_NAME)-pkg-description.in
+BOOST_32_PKG_INSTALL_SCRIPT = $(BOOST_32_PKG_NAME)-pkg-install.sh
+
+BOOST_32_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(BOOST_32_PKG_NAME)-package
+
+pkg_basename = $(BOOST_32_PKG_NAME)-$(BOOST_32_PKG_VERSION)-$(BOOST_32_PKG_ARCH)-$(BOOST_32_PKG_DISTRO_NAME)-$(BOOST_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
+
+
+ARCH = x86
+ABI = sysv
+BINARY_FORMAT = elf
+ADDRESS_MODEL = 32
+
+
+PYTHON2_VERSION = 2.7
+PYTHON3_VERSION = 3.10
+
+build_libs = atomic chrono container context contract coroutine \
+ date_time exception fiber filesystem graph headers \
+ iostreams json locale log math nowide program_options \
+ python random regex serialization stacktrace system \
+ test thread timer type_erasure wave
+
+BJAM = $(CURDIR)/$(SRC_DIR)/tools/build/src/engine/bjam
+
+build_with_python3 = $(CURDIR)/$(SRC_DIR)/build-python3
+build_with_python2 = $(CURDIR)/$(SRC_DIR)/build-python2
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @( cd $(SRC_DIR)/libs/stacktrace/build ; \
+ cat Jamfile.v2.in | sed 's,@ADDR2LINE@,$(CROSS_PREFIX)addr2line,g' > Jamfile.v2 ; \
+ )
+ @( cd $(SRC_DIR)/tools/build/src/engine && ./build.sh gcc )
+ @mkdir -p $(build_with_python3)
+ # ======= Configure Boost with python3 library =======
+ @echo "using gcc : : $(CXX)" > $(build_with_python3)/user-config.jam
+ @echo " : <cflags>\"--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)\"" >> $(build_with_python3)/user-config.jam
+ @echo " <cxxflags>\"--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)\"" >> $(build_with_python3)/user-config.jam
+ @echo " <linkflags>\"--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)\"" >> $(build_with_python3)/user-config.jam
+ @echo " <ranlib>\"$(RANLIB)\"" >> $(build_with_python3)/user-config.jam
+ @echo " <archiver>\"$(AR)\"" >> $(build_with_python3)/user-config.jam
+ @echo " <root>\"$(TOOLCHAIN_PATH)/bin\"" >> $(build_with_python3)/user-config.jam
+ @echo " ;" >> $(build_with_python3)/user-config.jam
+ @echo "" >> $(build_with_python3)/user-config.jam
+ @echo "using python : 3.10 : :" >> $(build_with_python3)/user-config.jam
+ @echo " $(TARGET_DEST_DIR)/usr/include/python$(PYTHON3_VERSION)" >> $(build_with_python3)/user-config.jam
+ @echo " : $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)-*" >> $(build_with_python3)/user-config.jam
+ @echo " :" >> $(build_with_python3)/user-config.jam
+ @echo " ;" >> $(build_with_python3)/user-config.jam
+ @echo "" >> $(build_with_python3)/user-config.jam
+ @echo "path-constant ICU_PATH" >> $(build_with_python3)/user-config.jam
+ @echo " : $(TARGET_DEST_DIR)/usr" >> $(build_with_python3)/user-config.jam
+ @echo " ;" >> $(build_with_python3)/user-config.jam
+ @echo "" >> $(build_with_python3)/user-config.jam
+ # ======= Configure Boost with python2 library =======
+ @mkdir -p $(build_with_python2)
+ @echo "using gcc : : $(CXX)" > $(build_with_python2)/user-config.jam
+ @echo " : <cflags>\"--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)\"" >> $(build_with_python2)/user-config.jam
+ @echo " <cxxflags>\"--sysroot=$(TARGET_DEST_DIR) $(CFLAGS)\"" >> $(build_with_python2)/user-config.jam
+ @echo " <linkflags>\"--sysroot=$(TARGET_DEST_DIR) $(LDFLAGS)\"" >> $(build_with_python2)/user-config.jam
+ @echo " <ranlib>\"$(RANLIB)\"" >> $(build_with_python2)/user-config.jam
+ @echo " <archiver>\"$(AR)\"" >> $(build_with_python2)/user-config.jam
+ @echo " <root>\"$(TOOLCHAIN_PATH)/bin\"" >> $(build_with_python2)/user-config.jam
+ @echo " ;" >> $(build_with_python2)/user-config.jam
+ @echo "" >> $(build_with_python2)/user-config.jam
+ @echo "using python : 2.7 : :" >> $(build_with_python2)/user-config.jam
+ @echo " $(TARGET_DEST_DIR)/usr/include/python$(PYTHON2_VERSION)" >> $(build_with_python2)/user-config.jam
+ @echo " : $(TARGET_DEST_DIR)/usr/lib$(MULTILIB_X86_32_SUFFIX)/python$(PYTHON2_VERSION)/config" >> $(build_with_python2)/user-config.jam
+ @echo " :" >> $(build_with_python2)/user-config.jam
+ @echo " ;" >> $(build_with_python2)/user-config.jam
+ @echo "" >> $(build_with_python2)/user-config.jam
+ @echo "path-constant ICU_PATH" >> $(build_with_python2)/user-config.jam
+ @echo " : $(TARGET_DEST_DIR)/usr" >> $(build_with_python2)/user-config.jam
+ @echo " ;" >> $(build_with_python2)/user-config.jam
+ @echo "" >> $(build_with_python2)/user-config.jam
+ @touch $@
+
+$(build_target): $(src_done)
+ # ======= Build all libs with python3 library =======
+ @cd $(SRC_DIR) && \
+ $(BUILD_ENVIRONMENT) BOOST_BUILD_PATH=$(build_with_python3) \
+ $(BJAM) \
+ release \
+ --user-config=$(build_with_python3)/user-config.jam \
+ --layout-system \
+ --prefix=/usr \
+ --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX) \
+ $(foreach lib,$(build_libs),--with-$(lib)) \
+ toolset=gcc \
+ variant=release \
+ threading=multi \
+ debug-symbols=off \
+ link=shared \
+ runtime-link=shared \
+ target-os=linux \
+ abi=$(ABI) \
+ architecture=$(ARCH) \
+ binary-format=$(BINARY_FORMAT) \
+ address-model=$(ADDRESS_MODEL) \
+ stage
+ # ======= Build python2 library only =======
+ @cd $(SRC_DIR) && \
+ $(BUILD_ENVIRONMENT) BOOST_BUILD_PATH=$(build_with_python2) \
+ $(BJAM) \
+ release \
+ --user-config=$(build_with_python2)/user-config.jam \
+ --layout-system \
+ --prefix=/usr \
+ --libdir=/usr/lib$(MULTILIB_X86_32_SUFFIX) \
+ --with-python \
+ toolset=gcc \
+ variant=release \
+ threading=multi \
+ debug-symbols=off \
+ link=shared \
+ runtime-link=shared \
+ target-os=linux \
+ abi=$(ABI) \
+ architecture=$(ARCH) \
+ binary-format=$(BINARY_FORMAT) \
+ address-model=$(ADDRESS_MODEL) \
+ stage
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(BOOST_32_PKG)
+ # ======= Install all libs with python3 library =======
+ @cd $(SRC_DIR) && \
+ $(BUILD_ENVIRONMENT) BOOST_BUILD_PATH=$(build_with_python3) \
+ $(BJAM) \
+ release \
+ --user-config=$(build_with_python3)/user-config.jam \
+ --layout-system \
+ --prefix=$(BOOST_32_PKG)/usr \
+ --libdir=$(BOOST_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) \
+ $(foreach lib,$(build_libs),--with-$(lib)) \
+ toolset=gcc \
+ variant=release \
+ threading=multi \
+ debug-symbols=off \
+ link=shared \
+ runtime-link=shared \
+ target-os=linux \
+ abi=$(ABI) \
+ architecture=$(ARCH) \
+ binary-format=$(BINARY_FORMAT) \
+ address-model=$(ADDRESS_MODEL) \
+ install
+ # ======= Install python2 library only =======
+ @cd $(SRC_DIR) && \
+ $(BUILD_ENVIRONMENT) BOOST_BUILD_PATH=$(build_with_python2) \
+ $(BJAM) \
+ release \
+ --user-config=$(build_with_python2)/user-config.jam \
+ --layout-system \
+ --prefix=$(BOOST_32_PKG)/usr \
+ --libdir=$(BOOST_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX) \
+ --with-python \
+ toolset=gcc \
+ variant=release \
+ threading=multi \
+ debug-symbols=off \
+ link=shared \
+ runtime-link=shared \
+ target-os=linux \
+ abi=$(ABI) \
+ architecture=$(ARCH) \
+ binary-format=$(BINARY_FORMAT) \
+ address-model=$(ADDRESS_MODEL) \
+ install
+ # ======= Remove unneeded includes =======
+ @rm -rf $(BOOST_32_PKG)/usr/include
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(BOOST_32_PKG))
+ # ======= Remove build package dir from cmake files =======
+ @( cd $(BOOST_32_PKG)/usr/lib$(MULTILIB_X86_32_SUFFIX)/cmake ; \
+ find . -type f -name '*-config.cmake' -exec sed -i 's,$(BOOST_32_PKG),,g' {} \; ; \
+ )
+ # ======= Strip binaries =======
+ @( cd $(BOOST_32_PKG); \
+ 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 $@
+
+$(BOOST_32_PKG_DESCRIPTION_FILE): $(BOOST_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) $(BOOST_32_PKG_DESCRIPTION_FILE) $(BOOST_32_PKG_INSTALL_SCRIPT)
+ @cp $(BOOST_32_PKG_DESCRIPTION_FILE) $(BOOST_32_PKG)/.DESCRIPTION
+ @cp $(BOOST_32_PKG_INSTALL_SCRIPT) $(BOOST_32_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(BOOST_32_PKG)/.REQUIRES
+ @echo "pkgname=$(BOOST_32_PKG_NAME)" > $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "pkgver=$(BOOST_32_PKG_VERSION)" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "arch=$(BOOST_32_PKG_ARCH)" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "distroname=$(BOOST_32_PKG_DISTRO_NAME)" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "distrover=$(BOOST_32_PKG_DISTRO_VERSION)" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "group=$(BOOST_32_PKG_GROUP)" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(BOOST_32_PKG_SHORT_DESCRIPTION)\"" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "url=$(BOOST_32_PKG_URL)" >> $(BOOST_32_PKG)/.PKGINFO ; \
+ echo "license=$(BOOST_32_PKG_LICENSE)" >> $(BOOST_32_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(BOOST_32_PKG) && \
+ chown -R root:root . && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: PATCHES
===================================================================
--- PATCHES (nonexistent)
+++ PATCHES (revision 5)
@@ -0,0 +1,2 @@
+
+../../../sources/packages/l/boost/patches/boost-1.77.0-addr2line.patch -p0
Index: boost-x32-pkg-description.in
===================================================================
--- boost-x32-pkg-description.in (nonexistent)
+++ boost-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------------------------------------------------------|
+boost-x32: boost-x32 @VERSION@ (Boost C++ Libraries)
+boost-x32:
+boost-x32: Boost provides free peer-reviewed portable C++ source libraries.
+boost-x32: The emphasis is on libraries that work well with the C++ Standard
+boost-x32: Library. One goal is to establish "existing practice" and provide
+boost-x32: reference implementations so that the Boost libraries are suitable
+boost-x32: for eventual standardization.
+boost-x32:
+boost-x32: Homepage: http://www.boost.org
+boost-x32:
+boost-x32:
Index: boost-x32-pkg-install.sh
===================================================================
--- boost-x32-pkg-install.sh (nonexistent)
+++ boost-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: boost-x32-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
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
+*~