FreeBSD Bugzilla – Attachment 229235 Details for
Bug 259620
science/py-tensorflow: fails to build with new grpc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Upgrade Tensorflow to 2.1.0
tensorflow_upgrade.shar.txt (text/plain), 28.65 KB, created by
Anthony Donnelly
on 2021-11-03 07:38:49 UTC
(
hide
)
Description:
Upgrade Tensorflow to 2.1.0
Filename:
MIME Type:
Creator:
Anthony Donnelly
Created:
2021-11-03 07:38:49 UTC
Size:
28.65 KB
patch
obsolete
>#!/bin/sh ># This is a shell archive >echo x py-tensorflow >mkdir -p py-tensorflow > /dev/null 2>&1 >echo x py-tensorflow/Makefile >sed 's/^X//' > py-tensorflow/Makefile << 'SHAR_END' >XPORTNAME= tensorflow >XDISTVERSIONPREFIX= v >XPORTVERSION= 2.1.0 >XPORTREVISION= 1 >XCATEGORIES= science python >XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >XDIST_SUBDIR= ${PORTNAME} >XEXTRACT_ONLY= ${DISTNAME}.tar.gz >X >XMAINTAINER= amzo1337@gmail.com >XCOMMENT= Computation using data flow graphs for scalable machine learning >X >XLICENSE= APACHE20 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XONLY_FOR_ARCHS= amd64 >X >XBUILD_DEPENDS= ${RUN_DEPENDS} \ >X ${PYTHON_PKGNAMEPREFIX}grpcio-tools>=1.22.0:devel/py-grpcio-tools@${PY_FLAVOR} \ >X bash:shells/bash \ >X cython:lang/cython \ >X swig:devel/swig \ >X bazel:devel/bazel029 \ >X git:devel/git >XLIB_DEPENDS= libsnappy.so:archivers/snappy \ >X liblmdb.so:databases/lmdb \ >X libsqlite3.so:databases/sqlite3 \ >X libicuio.so:devel/icu \ >X libjsoncpp.so:devel/jsoncpp \ >X libpcre.so:devel/pcre \ >X libnsync.so:devel/nsync \ >X libprotobuf.so:devel/protobuf \ >X libprotobuf-c.so:devel/protobuf-c \ >X libre2.so:devel/re2 \ >X libgif.so:graphics/giflib \ >X libpng.so:graphics/png \ >X libgpr.so:devel/grpc \ >X libcurl.so:ftp/curl \ >X libgoogle_cloud_cpp_common.so:devel/google-cloud-cpp117 \ >X libflatbuffers.so:devel/flatbuffers \ >X libdouble-conversion.so:devel/double-conversion >XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}absl>=0.7.0:devel/py-absl@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}astor>=0.5:devel/py-astor@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}gast>=0.2.2:devel/py-gast@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}numpy>=1.11.2:math/py-numpy@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}google-pasta>=0.1.7:devel/py-google-pasta@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}protobuf>=3.7.1:devel/py-protobuf@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}six>=1.10.0:devel/py-six@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}termcolor>=1.1.0:devel/py-termcolor@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}grpcio>=1.22.0:devel/py-grpcio@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}keras>=2.2.4:math/py-keras@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}wrapt>=1.11.2:devel/py-wrapt@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR} \ >X ${PYTHON_PKGNAMEPREFIX}opt-einsum>=2.2.0:math/py-opt-einsum@${PY_FLAVOR} \ >X pybind11>=2.6.2:devel/pybind11 >X >XUSES= python:3.7+ shebangfix jpeg ssl >XSHEBANG_GLOB= *.py >XUSE_GITHUB= yes >XUSE_PYTHON= distutils >X >XBAZEL_BOOT= --output_user_root=${WRKDIR}/bazel_out >X >XPLIST_SUB= TF_PORT_VERSION=${PORTVERSION} >X >XOPTIONS_DEFINE= CPU_OPTS >X >XCPU_OPTS_DESC= Enable optimisations using features available on your CPU >XCPU_OPTS_VARS= CPU_TARGET=native BAZEL_COPT="-c opt --copt=-march=native --copt=-mfpmath=sse" >XCPU_OPTS_VARS_OFF= CPU_TARGET=x86-64 >X >X.include "Makefile.MASTER_SITES" >X >Xpost-patch: >X # Set up a local repository with our pre-downloaded packages >X # This prevents bazel downloading the files without modifying >X # the bzl files. >X @${MKDIR} ${WRKDIR}/bazel-cache >X @${MKDIR} ${WRKDIR}/bazel-distdir >X >X.for file in ${DISTFILES:C/\:(.*)//} >X @${ECHO} "Moving ${file} to ${WRKDIR}/bazel-cache" >X @${CP} ${DISTDIR}/${DIST_SUBDIR}/${file} ${WRKDIR}/bazel-distdir >X.endfor >X >X @cd ${WRKSRC} && \ >X ${REINPLACE_CMD} "s#--batch#${BAZEL_BOOT}\', \'--batch#" \ >X configure.py >X >X @${CP} ${PATCHDIR}/bazelrc ${WRKDIR}/bazelrc >X @${REINPLACE_CMD} "s#%%BAZEL_DIR%%#${WRKDIR}#" ${WRKDIR}/bazelrc >X @${REINPLACE_CMD} "s#%%BAZEL_DIST%%#${WRKDIR}#" ${WRKDIR}/bazelrc >X >X # use system pybind11, but use sed to fix includes, too many to maintain with patches >X @${FIND} ${WRKSRC} -type f -name '*.cc' | ${XARGS} ${REINPLACE_CMD} "s#include\/pybind11#pybind11#" >X >X @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKDIR}/bazelrc \ >X ${WRKSRC}/tensorflow/lite/toco/BUILD \ >X ${WRKSRC}/tensorflow/tensorflow.bzl \ >X ${WRKSRC}/tensorflow/tools/proto_text/BUILD >X >Xdo-configure: >X @cd ${WRKSRC} && ${SETENV} \ >X PYTHON_BIN_PATH=${PYTHON_CMD} \ >X PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \ >X TF_NEED_JEMALLOC=0 \ >X TF_NEED_KAFKA=0 \ >X TF_NEED_OPENCL_SYCL=0 \ >X TF_NEED_AWS=0 \ >X TF_NEED_GCP=0 \ >X TF_NEED_HDFS=0 \ >X TF_NEED_S3=0 \ >X TF_ENABLE_XLA=0 \ >X TF_NEED_GDR=0 \ >X TF_NEED_VERBS=0 \ >X TF_NEED_OPENCL=0 \ >X TF_NEED_MPI=0 \ >X TF_NEED_TENSORRT=0 \ >X TF_NEED_NGRAPH=0 \ >X TF_NEED_IGNITE=0 \ >X TF_NEED_ROCM=0 \ >X TF_NEED_CUDA=0 \ >X TF_SET_ANDROID_WORKSPACE=0 \ >X TF_DOWNLOAD_CLANG=0 \ >X TF_NEED_NCCL=0 \ >X TF_NEED_OPENCL=0 \ >X TF_IGNORE_MAX_BAZEL_VERSION=1 \ >X CC_OPT_FLAGS="-march=${CPU_TARGET} -I${LOCALBASE}/include" \ >X PREFIX="${LOCALBASE}" \ >X TF_SYSTEM_LIBS="absl_py astor_archive boringssl com_github_googleapis_googleapis com_github_googlecloudplatform_google_cloud_cpp \ >X com_google_protobuf curl cython double_conversion enum34_archive flatbuffers functools32_archive \ >X gast_archive gif grpc hwloc icu libjpeg_turbo jsoncpp_git keras_applications_archive \ >X lmdb nasm nsync opt_einsum_archive org_sqlite pasta pcre png pybind11 six_archive \ >X snappy swig termcolor_archive wrapt zlib_archive" \ >X ./configure >X >Xdo-build: >X @cd ${WRKSRC} && \ >X bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build --jobs 10 ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \ >X --host_linkopt="-L${LOCALBASE}/lib -lexecinfo" --linkopt="-L${LOCALBASE}/lib -lexecinfo" --copt="-I${LOCALBASE}/include" \ >X --verbose_failures -s \ >X --distdir=${WORKDIR}/bazel-dist \ >X //tensorflow:libtensorflow_framework.so \ >X //tensorflow:libtensorflow.so \ >X //tensorflow:libtensorflow_cc.so \ >X //tensorflow:install_headers \ >X //tensorflow/tools/pip_package:build_pip_package >X >X @cd ${WRKSRC} && ${SETENV} TMPDIR=${WRKDIR} \ >X bazel-bin/tensorflow/tools/pip_package/build_pip_package \ >X ${WRKDIR}/whl >X >Xdo-install: >X @${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR} >X @${MKDIR} ${STAGEDIR}/${LOCALBASE}/include/tensorflow >X >X @${UNZIP_NATIVE_CMD} -d ${STAGEDIR}/${PYTHON_SITELIBDIR} ${WRKDIR}/whl/${PORTNAME}-${PORTVERSION}-*.whl >X >X # put headers in the right folder >X ${CP} -R ${WRKSRC}/bazel-bin/tensorflow/include/tensorflow \ >X ${STAGEDIR}/${LOCALBASE}/include/ >X >X # pc files and libraries >X ${INSTALL_DATA} ${PATCHDIR}/tensorflow.pc ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/ >X ${INSTALL_DATA} ${PATCHDIR}/tensorflow_cc.pc ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/ >X >X @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" \ >X ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/tensorflow.pc \ >X ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/tensorflow_cc.pc >X >X @${REINPLACE_CMD} "s#%%VERSION%%#${PORTVERSION}#" \ >X ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/tensorflow.pc >X >X #cleanup >X ${RM} ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/*.bak >X >X # install the libraries and strip >X @${FIND} ${WRKSRC}/bazel-bin/tensorflow/ -depth 1 -name "*.so*" | ${XARGS} -I{} \ >X ${INSTALL_LIB} {} ${STAGEDIR}/${LOCALBASE}/lib/ >X >X @${FIND} ${STAGEDIR}/${LOCALBASE}/lib -name "*.so*" | ${XARGS} ${STRIP_CMD} >X >Xpost-install: # autoplist: thousands of files, all under ${PYTHON_SITELIBDIR} >X @cd ${STAGEDIR}${PREFIX} && \ >X ${FIND} ${PYTHON_SITELIBDIR:C|^${LOCALBASE}/||} -type f -or -type l | grep -v "egg-info/" >> ${TMPPLIST} >X >X.include <bsd.port.mk> >SHAR_END >echo x py-tensorflow/Makefile.MASTER_SITES >sed 's/^X//' > py-tensorflow/Makefile.MASTER_SITES << 'SHAR_END' >XDISTFILES+= fft2d.tgz:ooura \ >X eigen-4e696901f873a2347f76d931cf2f701e31e15d05.tar.gz:eigen \ >X 43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz:abseil \ >X bazel-skylib.0.8.0.tar.gz:skylib \ >X bazel_skylib-0.9.0.tar.gz:skylib1 \ >X 92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz:toolchain \ >X 0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip:rulescc \ >X 308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:closure \ >X rules_docker-v0.10.0.tar.gz:docker \ >X rules_swift.0.12.1.tar.gz:swift \ >X 816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz:farmhash \ >X 12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip:gemmlowp \ >X fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz:highwayhash \ >X 506cfa4bffd060c06ec338ce50ea3468daa6c814.tar.gz:re2 \ >X 36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz:kissfft \ >X v2.3.0.tar.gz:pybind \ >X ecc999101aadc8dc7d4af9fd88be10fe42674aa0.tar.gz:llvm \ >X 1200fe90bb174a6224a525ee60148671a786a71f.tar.gz:neon \ >X license.rst.txt:license \ >X backports.weakref-1.0rc1.tar.gz:weakref >X >XMASTER_SITES+= https://storage.googleapis.com/mirror.tensorflow.org/www.kurims.kyoto-u.ac.jp/~ooura/:ooura \ >X https://gitlab.com/libeigen/eigen/-/archive/4e696901f873a2347f76d931cf2f701e31e15d05/:eigen \ >X https://github.com/abseil/abseil-cpp/archive/:abseil \ >X https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/:skylib \ >X https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/:skylib1 \ >X https://github.com/bazelbuild/bazel-toolchains/archive/:toolchain \ >X https://github.com/bazelbuild/rules_cc/archive/:rulescc \ >X https://github.com/bazelbuild/rules_closure/archive/:closure \ >X https://github.com/bazelbuild/rules_docker/releases/download/v0.10.0/:docker \ >X https://github.com/bazelbuild/rules_swift/releases/download/0.12.1/:swift \ >X https://github.com/google/farmhash/archive/:farmhash \ >X https://github.com/google/gemmlowp/archive/:gemmlowp \ >X https://github.com/google/highwayhash/archive/:highwayhash \ >X https://github.com/google/re2/archive/:re2 \ >X https://github.com/mborgerding/kissfft/archive/:kissfft \ >X https://github.com/pybind/pybind11/archive/:pybind \ >X https://github.com/llvm/llvm-project/archive/:llvm \ >X https://github.com/intel/ARM_NEON_2_x86_SSE/archive/:neon \ >X https://storage.googleapis.com/mirror.tensorflow.org/docs.python.org/2.7/_sources/:license \ >X https://pypi.python.org/packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/:weakref >SHAR_END >echo x py-tensorflow/distinfo >sed 's/^X//' > py-tensorflow/distinfo << 'SHAR_END' >XTIMESTAMP = 1626602065 >XSHA256 (tensorflow/fft2d.tgz) = ada7e99087c4ed477bfdf11413f2ba8db8a840ba9bbf8ac94f4f3972e2a7cec9 >XSIZE (tensorflow/fft2d.tgz) = 54434 >XSHA256 (tensorflow/eigen-4e696901f873a2347f76d931cf2f701e31e15d05.tar.gz) = 65d732985b593b553c20566e1f236f48dcc626730c418aed7b2aa1d0e3f1a0af >XSIZE (tensorflow/eigen-4e696901f873a2347f76d931cf2f701e31e15d05.tar.gz) = 2580537 >XSHA256 (tensorflow/43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz) = acd93f6baaedc4414ebd08b33bebca7c7a46888916101d8c0b8083573526d070 >XSIZE (tensorflow/43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz) = 1281523 >XSHA256 (tensorflow/bazel-skylib.0.8.0.tar.gz) = 2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e >XSIZE (tensorflow/bazel-skylib.0.8.0.tar.gz) = 72941 >XSHA256 (tensorflow/bazel_skylib-0.9.0.tar.gz) = 1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0 >XSIZE (tensorflow/bazel_skylib-0.9.0.tar.gz) = 84644 >XSHA256 (tensorflow/92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz) = 88e818f9f03628eef609c8429c210ecf265ffe46c2af095f36c7ef8b1855fef5 >XSIZE (tensorflow/92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz) = 660374 >XSHA256 (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89 >XSIZE (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 72534 >XSHA256 (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9 >XSIZE (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 464906 >XSHA256 (tensorflow/rules_docker-v0.10.0.tar.gz) = 7d453450e1eb70e238eea6b31f4115607ec1200e91afea01c25f9804f37e39c8 >XSIZE (tensorflow/rules_docker-v0.10.0.tar.gz) = 549649 >XSHA256 (tensorflow/rules_swift.0.12.1.tar.gz) = 18cd4df4e410b0439a4935f9ca035bd979993d42372ba79e7f2d4fafe9596ef0 >XSIZE (tensorflow/rules_swift.0.12.1.tar.gz) = 111674 >XSHA256 (tensorflow/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) = 6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0 >XSIZE (tensorflow/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) = 467122 >XSHA256 (tensorflow/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip) = 6678b484d929f2d0d3229d8ac4e3b815a950c86bb9f17851471d143f6d4f7834 >XSIZE (tensorflow/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip) = 935628 >XSHA256 (tensorflow/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz) = 9c3e0e87d581feeb0c18d814d98f170ff23e62967a2bd6855847f0b2fe598a37 >XSIZE (tensorflow/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz) = 138574 >XSHA256 (tensorflow/506cfa4bffd060c06ec338ce50ea3468daa6c814.tar.gz) = d070e2ffc5476c496a6a872a6f246bfddce8e7797d6ba605a7c8d72866743bf9 >XSIZE (tensorflow/506cfa4bffd060c06ec338ce50ea3468daa6c814.tar.gz) = 316237 >XSHA256 (tensorflow/36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz) = 42b7ef406d5aa2d57a7b3b56fc44e8ad3011581692458a69958a911071efdcf2 >XSIZE (tensorflow/36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz) = 44744 >XSHA256 (tensorflow/v2.3.0.tar.gz) = 0f34838f2c8024a6765168227ba587b3687729ebf03dc912f88ff75c7aa9cfe8 >XSIZE (tensorflow/v2.3.0.tar.gz) = 564520 >XSHA256 (tensorflow/ecc999101aadc8dc7d4af9fd88be10fe42674aa0.tar.gz) = 47a5cb24209c24370cd4fec7bfbda8b40d5660b3c821addcfb47a405a077eee9 >XSIZE (tensorflow/ecc999101aadc8dc7d4af9fd88be10fe42674aa0.tar.gz) = 115788302 >XSHA256 (tensorflow/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz) = 213733991310b904b11b053ac224fee2d4e0179e46b52fe7f8735b8831e04dcc >XSIZE (tensorflow/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz) = 100612 >XSHA256 (tensorflow/license.rst.txt) = e76cacdf0bdd265ff074ccca03671c33126f597f39d0ed97bc3e5673d9170cf6 >XSIZE (tensorflow/license.rst.txt) = 45132 >XSHA256 (tensorflow/backports.weakref-1.0rc1.tar.gz) = 8813bf712a66b3d8b85dc289e1104ed220f1878cf981e2fe756dfaabe9a82892 >XSIZE (tensorflow/backports.weakref-1.0rc1.tar.gz) = 7761 >XSHA256 (tensorflow/tensorflow-tensorflow-v2.1.0_GH0.tar.gz) = 638e541a4981f52c69da4a311815f1e7989bf1d67a41d204511966e1daed14f7 >XSIZE (tensorflow/tensorflow-tensorflow-v2.1.0_GH0.tar.gz) = 41637803 >SHAR_END >echo x py-tensorflow/files >mkdir -p py-tensorflow/files > /dev/null 2>&1 >echo x py-tensorflow/pkg-descr >sed 's/^X//' > py-tensorflow/pkg-descr << 'SHAR_END' >XTensorFlow is an open source software library for numerical computation using >Xdata flow graphs. Nodes in the graph represent mathematical operations, while >Xthe graph edges represent the multidimensional data arrays (tensors) >Xcommunicated between them. The flexible architecture allows you to deploy >Xcomputation to one or more CPUs or GPUs in a desktop, server, or mobile device >Xwith a single API. TensorFlow was originally developed by researchers and >Xengineers working on the Google Brain Team within Google's Machine Intelligence >Xresearch organization for the purposes of conducting machine learning and deep >Xneural networks research, but the system is general enough to be applicable in >Xa wide variety of other domains as well. >X >XWWW: https://www.tensorflow.org >SHAR_END >echo x py-tensorflow/files/bazelrc >sed 's/^X//' > py-tensorflow/files/bazelrc << 'SHAR_END' >Xstartup --batch >X >Xbuild --strip=never >Xbuild --verbose_failures --noshow_loading_progress >Xtest --verbose_test_summary --verbose_failures --noshow_loading_progress >X >Xbuild --spawn_strategy=local --genrule_strategy=local >Xtest --spawn_strategy=local --genrule_strategy=local >X >X# make bazel only fetch distfiles from the cache >Xfetch --repository_cache="%%BAZEL_DIR%%/bazel-cache/" --distdir="%%BAZEL_DIST%%/bazel-distdir/" >Xbuild --repository_cache="%%BAZEL_DIR%%/bazel-cache/" --distdir="%%BAZEL_DIST%%/bazel-distdir/" >X >Xbuild --define=PREFIX=%%LOCALBASE%% >Xbuild --define=LIBDIR=%%LOCALBASE%%/lib >Xbuild --define=INCLUDEDIR=%%LOCALBASE%%/include >X >Xbuild --config=noaws --config=nohdfs >Xbuild --define tensorflow_mkldnn_contraction_kernel=0 >Xbuild --incompatible_no_support_tools_in_action_inputs=false >Xbuild --linkopt="-lexecinfo" >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_kernels_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_kernels_BUILD << 'SHAR_END' >X--- tensorflow/lite/kernels/BUILD.orig 2021-07-17 14:07:16 UTC >X+++ tensorflow/lite/kernels/BUILD >X@@ -539,6 +539,8 @@ cc_library( >X "//tensorflow/lite/kernels/internal:types", >X "//third_party/eigen3", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X+ "@com_google_absl//absl/base", >X "@farmhash_archive//:farmhash", >X "@flatbuffers", >X ], >SHAR_END >echo x py-tensorflow/files/patch-third__party_systemlibs_jsoncpp.BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_systemlibs_jsoncpp.BUILD << 'SHAR_END' >X--- third_party/systemlibs/jsoncpp.BUILD.orig 2021-07-17 12:21:19 UTC >X+++ third_party/systemlibs/jsoncpp.BUILD >X@@ -8,9 +8,8 @@ filegroup( >X HEADERS = [ >X "include/json/allocator.h", >X "include/json/assertions.h", >X- "include/json/autolink.h", >X "include/json/config.h", >X- "include/json/features.h", >X+ "include/json/json_features.h", >X "include/json/forwards.h", >X "include/json/json.h", >X "include/json/reader.h", >X@@ -25,7 +24,7 @@ genrule( >X cmd = """ >X for i in $(OUTS); do >X i=$${i##*/} >X- ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i >X+ ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i >X done >X """, >X ) >SHAR_END >echo x py-tensorflow/files/patch-third__party_systemlibs_syslibs__configure.bzl >sed 's/^X//' > py-tensorflow/files/patch-third__party_systemlibs_syslibs__configure.bzl << 'SHAR_END' >X--- third_party/systemlibs/syslibs_configure.bzl.orig 2020-01-07 16:57:39 UTC >X+++ third_party/systemlibs/syslibs_configure.bzl >X@@ -27,7 +27,7 @@ VALID_LIBS = [ >X "grpc", >X "hwloc", >X "icu", >X- "jpeg", >X+ "libjpeg_turbo", >X "jsoncpp_git", >X "keras_applications_archive", >X "lmdb", >X@@ -38,6 +38,7 @@ VALID_LIBS = [ >X "pasta", >X "pcre", >X "png", >X+ "pybind11", >X "six_archive", >X "snappy", >X "swig", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_tools_optimize_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_tools_optimize_BUILD << 'SHAR_END' >X--- tensorflow/lite/tools/optimize/BUILD.orig 2020-01-07 16:57:39 UTC >X+++ tensorflow/lite/tools/optimize/BUILD >X@@ -59,6 +59,8 @@ cc_library( >X "//tensorflow/lite/schema:schema_fbs", >X "//third_party/eigen3", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X+ "@com_google_absl//absl/base", >X ], >X ) >X >X@@ -73,6 +75,8 @@ cc_library( >X "//tensorflow/lite/kernels/internal:types", >X "//tensorflow/lite/schema:schema_fbs", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X+ "@com_google_absl//absl/base", >X ], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-third__party_systemlibs_pybind11.BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_systemlibs_pybind11.BUILD << 'SHAR_END' >X--- third_party/systemlibs/pybind11.BUILD.orig 2021-07-17 13:14:09 UTC >X+++ third_party/systemlibs/pybind11.BUILD >X@@ -0,0 +1,8 @@ >X+package(default_visibility = ["//visibility:public"]) >X+ >X+cc_library( >X+ name = "pybind11", >X+ deps = [ >X+ "@org_tensorflow//third_party/python_runtime:headers", >X+ ], >X+) >SHAR_END >echo x py-tensorflow/files/patch-WORKSPACE >sed 's/^X//' > py-tensorflow/files/patch-WORKSPACE << 'SHAR_END' >X--- WORKSPACE.orig 2021-07-18 09:34:23 UTC >X+++ WORKSPACE >X@@ -12,6 +12,15 @@ http_archive( >X ], >X ) >X >X+http_archive( >X+ name = "io_bazel_rules_docker", >X+ sha256 = "7d453450e1eb70e238eea6b31f4115607ec1200e91afea01c25f9804f37e39c8", >X+ strip_prefix = "rules_docker-0.10.0", >X+ urls = [ >X+ "https://github.com/bazelbuild/rules_docker/releases/download/v0.10.0/rules_docker-v0.10.0.tar.gz", >X+ ], >X+) >X+ >X # Load tf_repositories() before loading dependencies for other repository so >X # that dependencies like com_google_protobuf won't be overridden. >X load("//tensorflow:workspace.bzl", "tf_repositories") >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_tools_optimize_calibration_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_tools_optimize_calibration_BUILD << 'SHAR_END' >X--- tensorflow/lite/tools/optimize/calibration/BUILD.orig 2020-01-07 16:57:39 UTC >X+++ tensorflow/lite/tools/optimize/calibration/BUILD >X@@ -62,6 +62,8 @@ cc_library( >X "//tensorflow/lite:framework", >X "//tensorflow/lite/core/api", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X+ "@com_google_absl//absl/base", >X ], >X ) >X >X@@ -84,6 +86,8 @@ cc_library( >X ":calibration_logger", >X "//tensorflow/lite:framework", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X+ "@com_google_absl//absl/base", >X ], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_workspace.bzl >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_workspace.bzl << 'SHAR_END' >X--- tensorflow/workspace.bzl.orig 2021-07-17 13:08:21 UTC >X+++ tensorflow/workspace.bzl >X@@ -910,6 +910,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = " >X sha256 = "0f34838f2c8024a6765168227ba587b3687729ebf03dc912f88ff75c7aa9cfe8", >X strip_prefix = "pybind11-2.3.0", >X build_file = clean_dep("//third_party:pybind11.BUILD"), >X+ system_build_file = clean_dep("//third_party/systemlibs:pybind11.BUILD"), >X ) >X >X tf_http_archive( >SHAR_END >echo x py-tensorflow/files/patch-third__party_pybind11.BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_pybind11.BUILD << 'SHAR_END' >X--- third_party/pybind11.BUILD.orig 2021-07-17 13:07:52 UTC >X+++ third_party/pybind11.BUILD >X@@ -18,6 +18,7 @@ cc_library( >X "-Wno-pragma-once-outside-header", >X ], >X includes = ["include"], >X+ strip_include_prefix = "include", >X deps = [ >X "@org_tensorflow//third_party/python_runtime:headers", >X ], >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_compiler_mlir_tensorflow_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_compiler_mlir_tensorflow_BUILD << 'SHAR_END' >X--- tensorflow/compiler/mlir/tensorflow/BUILD.orig 2021-07-17 17:28:44 UTC >X+++ tensorflow/compiler/mlir/tensorflow/BUILD >X@@ -715,6 +715,7 @@ tf_native_cc_binary( >X srcs = [ >X "translate/derived_attr_populator_gen.cc", >X ], >X+ linkopts = ["-lexecinfo"], >X deps = [ >X "@llvm//:support", >X "@llvm//:tablegen", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_quantization_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_quantization_BUILD << 'SHAR_END' >X--- tensorflow/compiler/mlir/lite/quantization/BUILD.orig 2021-07-17 19:06:32 UTC >X+++ tensorflow/compiler/mlir/lite/quantization/BUILD >X@@ -106,6 +106,7 @@ tf_native_cc_binary( >X srcs = [ >X "tools/op_quant_spec_getters_gen.cc", >X ], >X+ linkopts = ["-lexecinfo"], >X deps = [ >X "@llvm//:support", >X "@llvm//:tablegen", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_BUILD << 'SHAR_END' >X--- tensorflow/compiler/mlir/lite/BUILD.orig 2021-07-17 19:51:58 UTC >X+++ tensorflow/compiler/mlir/lite/BUILD >X@@ -391,6 +391,7 @@ tf_native_cc_binary( >X srcs = [ >X "operator_converter_gen.cc", >X ], >X+ linkopts = ["-lexecinfo"], >X deps = [ >X "@llvm//:support", >X "@llvm//:tablegen", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_tensorflow.bzl >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_tensorflow.bzl << 'SHAR_END' >X--- tensorflow/tensorflow.bzl.orig 2020-01-07 16:57:39 UTC >X+++ tensorflow/tensorflow.bzl >X@@ -572,6 +572,7 @@ def tf_cc_shared_object( >X clean_dep("//tensorflow:windows"): [], >X "//conditions:default": [ >X "-Wl,-soname," + soname, >X+ "-L%%LOCALBASE%%/lib", >X ], >X }), >X visibility = visibility, >X@@ -700,7 +701,7 @@ def tf_gen_op_wrapper_cc( >X tf_cc_binary( >X name = tool, >X copts = tf_copts(), >X- linkopts = if_not_windows(["-lm", "-Wl,-ldl"]), >X+ linkopts = if_not_windows(["-L%%LOCALBASE%%/lib", "-lm", "-Wl,-ldl"]), >X linkstatic = 1, # Faster to link this one-time-use binary dynamically >X deps = [op_gen] + deps, >X ) >X@@ -887,7 +888,7 @@ def tf_gen_op_wrapper_py( >X tf_cc_binary( >X name = tool_name, >X copts = tf_copts(), >X- linkopts = if_not_windows(["-lm", "-Wl,-ldl"]) + cc_linkopts, >X+ linkopts = if_not_windows(["-L%%LOCALBASE%%/lib", "-lm", "-Wl,-ldl"]) + cc_linkopts, >X linkstatic = 1, # Faster to link this one-time-use binary dynamically >X visibility = [clean_dep("//tensorflow:internal")], >X deps = ([ >X@@ -1960,6 +1961,8 @@ def tf_py_wrap_cc( >X "//conditions:default": [ >X "-Wl,--version-script", >X "$(location %s.lds)" % vscriptname, >X+ "-lexecinfo", >X+ "-L%%LOCALBASE%%/lib", >X ], >X }) >X extra_deps += select({ >X@@ -2469,6 +2472,8 @@ def pybind_extension( >X "//conditions:default": [ >X "-Wl,--version-script", >X "$(location %s)" % version_script_file, >X+ "-lexecinfo", >X+ "-L%%LOCALBASE%%/lib", >X ], >X }), >X deps = deps + [ >SHAR_END >echo x py-tensorflow/files/patch-third__party_mlir_BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_mlir_BUILD << 'SHAR_END' >X--- third_party/mlir/BUILD.orig 2021-07-17 21:44:37 UTC >X+++ third_party/mlir/BUILD >X@@ -1848,6 +1848,7 @@ cc_binary( >X linkopts = [ >X "-lm", >X "-lpthread", >X+ "-lexecinfo", >X ], >X deps = [ >X ":MlirTableGenMain", >SHAR_END >echo x py-tensorflow/files/patch-third__party_systemlibs_grpc.BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_systemlibs_grpc.BUILD << 'SHAR_END' >X--- third_party/systemlibs/grpc.BUILD.orig 2019-10-14 21:08:43 UTC >X+++ third_party/systemlibs/grpc.BUILD >X@@ -7,7 +7,7 @@ filegroup( >X >X cc_library( >X name = "grpc", >X- linkopts = ["-lgrpc"], >X+ linkopts = ["-lgrpc", "-lgpr"], >X visibility = ["//visibility:public"], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_toco_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_toco_BUILD << 'SHAR_END' >X--- tensorflow/lite/toco/BUILD.orig 2020-01-07 16:57:39 UTC >X+++ tensorflow/lite/toco/BUILD >X@@ -437,6 +437,7 @@ tf_cc_binary( >X name = "toco", >X srcs = ["toco.cc"], >X visibility = ["//visibility:public"], >X+ linkopts = ["-L%%LOCALBASE%%/lib"], >X deps = [ >X ":model", >X ":model_cmdline_flags", >SHAR_END >echo x py-tensorflow/files/tensorflow.pc >sed 's/^X//' > py-tensorflow/files/tensorflow.pc << 'SHAR_END' >Xprefix=%%LOCALBASE%% >Xexec_prefix=\${prefix} >Xlibdir=\${exec_prefix}/lib >Xincludedir=\${prefix}/include/tensorflow >X >XName: TensorFlow >XVersion: %%VERSION%% >XDescription: Library for computation using data flow graphs for scalable machine learning >XRequires: >XLibs: -L\${libdir} -ltensorflow -ltensorflow_framework >XCflags: -I\${includedir} >SHAR_END >echo x py-tensorflow/files/tensorflow_cc.pc >sed 's/^X//' > py-tensorflow/files/tensorflow_cc.pc << 'SHAR_END' >Xprefix=%%LOCALBASE%% >Xexec_prefix=\${prefix} >Xlibdir=\${exec_prefix}/${LIBDIR} >Xincludedir=\${prefix}/include/tensorflow >X >XName: TensorFlow >XVersion: %%VERSION%% >XDescription: Library for computation using data flow graphs for scalable machine learning >XRequires: >XLibs: -L\${libdir} -ltensorflow_cc -ltensorflow_framework >XCflags: -I\${includedir} >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_tools_proto__text_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_tools_proto__text_BUILD << 'SHAR_END' >X--- tensorflow/tools/proto_text/BUILD.orig 2020-01-07 16:57:39 UTC >X+++ tensorflow/tools/proto_text/BUILD >X@@ -36,6 +36,7 @@ cc_binary( >X srcs = ["gen_proto_text_functions.cc"], >X copts = if_ios(["-DGOOGLE_LOGGING"]), >X visibility = ["//tensorflow:internal"], >X+ linkopts= ["-L%%LOCALBASE%%/lib"], >X deps = [ >X ":gen_proto_text_functions_lib", >X "@com_google_protobuf//:protobuf", >X@@ -93,6 +94,7 @@ tf_cc_test( >X "gen_proto_text_functions_lib_test.cc", >X ":test_proto_text_srcs", >X ], >X+ linkopts = ["-L%%LOCALBASE%%/lib"], >X deps = [ >X ":gen_proto_text_functions_lib", >X ":test_proto", >SHAR_END >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 259620
: 229235 |
232155
|
234250