Date: Tuesday, August 11, 2020 @ 09:31:34 Author: svenstaro Revision: 674443
upgpkg: tensorflow 2.3.0-3: Get rid of a lot of bundled dependencies Modified: tensorflow/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-08-11 09:21:25 UTC (rev 674442) +++ PKGBUILD 2020-08-11 09:31:34 UTC (rev 674443) @@ -7,15 +7,16 @@ pkgname=(tensorflow tensorflow-opt tensorflow-cuda tensorflow-opt-cuda python-tensorflow python-tensorflow-opt python-tensorflow-cuda python-tensorflow-opt-cuda) pkgver=2.3.0 _pkgver=2.3.0 -pkgrel=2 +pkgrel=3 pkgdesc="Library for computation using data flow graphs for scalable machine learning" url="https://www.tensorflow.org/" license=('APACHE') arch=('x86_64') -depends=('c-ares' 'intel-mkl' 'onednn') +depends=('c-ares' 'intel-mkl' 'onednn' 'pybind11' 'openssl-1.0' 'lmdb') makedepends=('bazel' 'python-numpy' 'cuda' 'nvidia-utils' 'nccl' 'git' 'gcc9' 'cudnn' 'python-pip' 'python-wheel' 'python-setuptools' 'python-h5py' - 'python-keras-applications' 'python-keras-preprocessing') + 'python-keras-applications' 'python-keras-preprocessing' + 'cython') optdepends=('tensorboard: Tensorflow visualization toolkit') source=("$pkgname-$pkgver.tar.gz::https://github.com/tensorflow/tensorflow/archive/v${_pkgver}.tar.gz" numpy1.20.patch::https://github.com/tensorflow/tensorflow/commit/75ea0b31477d6ba9e990e296bbbd8ca4e7eebadf.patch @@ -74,6 +75,8 @@ export TF_NEED_NGRAPH=0 export TF_NEED_IGNITE=0 export TF_NEED_ROCM=0 + # See https://github.com/tensorflow/tensorflow/blob/master/third_party/systemlibs/syslibs_configure.bzl + export TF_SYSTEM_LIBS="boringssl,curl,cython,gif,icu,libjpeg_turbo,lmdb,nasm,pcre,png,pybind11,zlib" export TF_SET_ANDROID_WORKSPACE=0 export TF_DOWNLOAD_CLANG=0 export TF_NCCL_VERSION=2.7 @@ -93,6 +96,8 @@ # Required until https://github.com/tensorflow/tensorflow/issues/39467 is fixed. export CC=gcc-9 export CXX=g++-9 + +export BAZEL_ARGS="--config=mkl -c opt --copt=-I/usr/include/openssl-1.0 --host_copt=-I/usr/include/openssl-1.0 --linkopt=-l:libssl.so.1.0.0 --linkopt=-l:libcrypto.so.1.0.0 --host_linkopt=-l:libssl.so.1.0.0 --host_linkopt=-l:libcrypto.so.1.0.0" } build() { @@ -102,7 +107,7 @@ export TF_NEED_CUDA=0 ./configure bazel \ - build --config=mkl --config=noaws --config=nogcp --config=nohdfs -c opt \ + build ${BAZEL_ARGS[@]} \ //tensorflow:libtensorflow.so \ //tensorflow:libtensorflow_cc.so \ //tensorflow:install_headers \ @@ -116,7 +121,8 @@ export TF_NEED_CUDA=0 ./configure bazel \ - build --config=mkl --config=noaws --config=nogcp --config=nohdfs --config=avx2_linux -c opt \ + build --config=avx2_linux \ + ${BAZEL_ARGS[@]} \ //tensorflow:libtensorflow.so \ //tensorflow:libtensorflow_cc.so \ //tensorflow:install_headers \ @@ -130,7 +136,8 @@ export TF_NEED_CUDA=1 ./configure bazel \ - build --config=mkl --config=noaws --config=nogcp --config=nohdfs -c opt \ + build \ + ${BAZEL_ARGS[@]} \ //tensorflow:libtensorflow.so \ //tensorflow:libtensorflow_cc.so \ //tensorflow:install_headers \ @@ -145,7 +152,8 @@ export TF_CUDA_CLANG=0 ./configure bazel \ - build --config=mkl --config=noaws --config=nogcp --config=nohdfs --config=avx2_linux -c opt \ + build --config=avx2_linux \ + ${BAZEL_ARGS[@]} \ //tensorflow:libtensorflow.so \ //tensorflow:libtensorflow_cc.so \ //tensorflow:install_headers \
