Merge pull request #7745 from yopito/tbb
tbb: update to 2018, unbreak crossbuild and musl support
This commit is contained in:
commit
bc729f41e6
3 changed files with 30 additions and 13 deletions
11
srcpkgs/tbb/patches/hostname-usage.patch
Normal file
11
srcpkgs/tbb/patches/hostname-usage.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- build/version_info_linux.sh.ORIG
|
||||||
|
+++ build/version_info_linux.sh
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
# Script used to generate version info string
|
||||||
|
echo "#define __TBB_VERSION_STRINGS(N) \\"
|
||||||
|
-echo '#N": BUILD_HOST'"\t\t"`hostname -s`" ("`uname -m`")"'" ENDL \'
|
||||||
|
+echo '#N": BUILD_HOST'"\t\t"`hostname`" ("`uname -m`")"'" ENDL \'
|
||||||
|
# find OS name in *-release and issue* files by filtering blank lines and lsb-release content out
|
||||||
|
echo '#N": BUILD_OS'"\t\t"`lsb_release -sd 2>/dev/null | grep -ih '[a-z] ' - /etc/*release /etc/issue 2>/dev/null | head -1 | sed -e 's/["\\\\]//g'`'" ENDL \'
|
||||||
|
echo '#N": BUILD_KERNEL'"\t"`uname -srv`'" ENDL \'
|
|
@ -1,27 +1,34 @@
|
||||||
# Template file for 'tbb'
|
# Template file for 'tbb'
|
||||||
pkgname=tbb
|
pkgname=tbb
|
||||||
version=2017.20161128
|
_ver=2018
|
||||||
|
version=${_ver/_U/.}
|
||||||
revision=1
|
revision=1
|
||||||
_lv="${version%.*}"
|
wrksrc="${pkgname}-${_ver}"
|
||||||
_rv="${version##*.}"
|
|
||||||
wrksrc="$pkgname${_lv}_${_rv}oss"
|
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
short_desc="Intel Threading Building Blocks"
|
short_desc="Intel Threading Building Blocks"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="http://www.threadingbuildingblocks.org"
|
homepage="http://www.threadingbuildingblocks.org"
|
||||||
distfiles="https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb${_lv}_${_rv}oss_src.tgz"
|
distfiles="https://github.com/01org/tbb/archive/${_ver}.tar.gz"
|
||||||
checksum=c009166233c8ea0e34530a1c5f870b79314316d19e6876b37a7e7c854080a540
|
checksum=94f643f1edfaccb57d64b503c7c96f00dec64e8635c054bbaa33855d72c5822d
|
||||||
|
|
||||||
only_for_archs="i686-musl x86_64-musl armv7l-musl aarch64-musl i686 x86_64 armv7l aarch64"
|
only_for_archs="i686-musl x86_64-musl armv7l-musl aarch64-musl i686 x86_64 armv7l aarch64"
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
armv7l*)
|
||||||
|
make_build_args="arch=armv7"
|
||||||
|
;;
|
||||||
|
aarch64*)
|
||||||
|
make_build_args="arch=arm64"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
sed -i 's|CPLUS = g..|CPLUS = $(CXX)|g' build/linux.gcc.inc
|
sed -i 's|CPLUS = g..|CPLUS = $(CXX)|g' build/linux.gcc.inc
|
||||||
sed -i 's|CONLY = gcc|CONLY = $(CC)|g' build/linux.gcc.inc
|
sed -i 's|CONLY = gcc|CONLY = $(CC)|g' build/linux.gcc.inc
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
sed -i '/-m64/d' build/linux.gcc.inc
|
# alternative might be:
|
||||||
sed -i '/-mrtm/d' build/linux.gcc.inc
|
# https://git.alpinelinux.org/cgit/aports/tree/testing/libtbb/glibc-struct-mallinfo.patch
|
||||||
fi
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl)
|
||||||
sed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \
|
sed -e "s@#define MALLOC_UNIXLIKE_OVERLOAD_ENABLED __linux__@@" \
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
site='https://www.threadingbuildingblocks.org/download'
|
pattern="/01org/tbb/archive/\K[0-9_U]+(?=\.tar\.gz)"
|
||||||
pattern='tbb\d+_\K\d+'
|
version="${_ver}"
|
||||||
version="$_rv"
|
|
||||||
|
|
Loading…
Reference in a new issue