FreeBSD Bugzilla – Attachment 226310 Details for
Bug 250646
science/py-tensorflow: Update to 1.15.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar file
tensorflow.shar (text/plain), 48.46 KB, created by
Anthony Donnelly
on 2021-07-08 18:01:22 UTC
(
hide
)
Description:
shar file
Filename:
MIME Type:
Creator:
Anthony Donnelly
Created:
2021-07-08 18:01:22 UTC
Size:
48.46 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 >XDISTVERSION= 1.15.5 >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 >XUSES= python:3.7+ shebangfix jpeg ssl compiler:c++17-lang >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 @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKDIR}/bazelrc \ >X ${WRKSRC}/tensorflow/tensorflow.bzl ${WRKSRC}/.bazelrc \ >X ${WRKSRC}/tensorflow/core/BUILD \ >X ${WRKSRC}/third_party/systemlibs/protobuf.bzl \ >X ${WRKSRC}/tensorflow/core/profiler/rpc/client/BUILD \ >X ${WRKSRC}/WORKSPACE \ >X ${WRKSRC}/tensorflow/core/profiler/internal/BUILD \ >X ${WRKSRC}/tensorflow/contrib/ffmpeg/default/BUILD \ >X ${WRKSRC}/third_party/flatbuffers/BUILD.system >X >Xdo-configure: >X @cd ${WRKSRC} && ${SETENV} \ >X BAZEL_CXXOPTS="-std=c++1z" \ >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 com_google_protobuf com_googlesource_code_re2 \ >X curl cython double_conversion enum34_archive flatbuffers functools32_archive gast_archive gif_archive grpc hwloc icu jpeg jsoncpp_git keras_applications_archive \ >X lmdb nasm nsync opt_einsum_archive org_sqlite pasta pcre png_archive six_archive snappy swig termcolor_archive wrapt zlib_archive" \ >X ./configure >X >Xdo-build: >X @cd ${WRKSRC} && \ >X bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build --jobs 16 ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \ >X --host_linkopt="-L${LOCALBASE}/lib" --linkopt="-L${LOCALBASE}/lib" --config=c++17 --copt="-I${LOCALBASE}/include" \ >X --cxxopt="--std=c++1z" --verbose_failures -s \ >X --distdir=${WORKDIR}/bazel-dist \ >X //tensorflow:libtensorflow_framework.so \ >X //tensorflow:libtensorflow.so \ >X //tensorflow:libtensorflow_cc.so \ >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} ${WRKDIR}/tmp >X @${UNZIP_NATIVE_CMD} -d ${WRKDIR}/tmp ${WRKDIR}/whl/${PORTNAME}-${PORTVERSION}-*.whl >X @${FIND} ${WRKDIR}/tmp -name "*.so*" | ${XARGS} ${STRIP_CMD} >X cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME}-${PORTVERSION}.dist-info \ >X ${STAGEDIR}${PYTHON_SITELIBDIR} >X cd ${WRKDIR}/tmp/${PORTNAME}-${PORTVERSION}.data/purelib && \ >X ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR} >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:oourafft2d \ >X 49177915a14a.tar.gz:eigen \ >X 43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz:abseil \ >X bazel-skylib.0.8.0.tar.gz:skylib \ >X 92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz:toolchain \ >X 308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:closure \ >X 0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip:rulescc \ >X rules_docker-v0.10.0.tar.gz:docker \ >X rules_swift.0.11.1.tar.gz:swift \ >X 816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz:farmhash \ >X 12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip:gemmlowp \ >X fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz:highwayhash \ >X 36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz:kissfft \ >X 94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz:bazel \ >X v2.3.0.tar.gz:pybind \ >X 7a7e03f906aada0cf4b749b51213fe5784eeff84.tar.gz:llvm \ >X 1200fe90bb174a6224a525ee60148671a786a71f.tar.gz:neon \ >X license.rst.txt:license \ >X backports.weakref-1.0rc1.tar.gz:weakref >X >XMASTER_SITES+= http://www.kurims.kyoto-u.ac.jp/~ooura/:oourafft2d \ >X https://storage.googleapis.com/mirror.tensorflow.org/bitbucket.org/eigen/eigen/get/: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-toolchains/archive/:toolchain \ >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.11.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/mborgerding/kissfft/archive/:kissfft \ >X https://github.com/nlopezgi/bazel-toolchains/archive/:bazel \ >X https://github.com/pybind/pybind11/archive/:pybind \ >X https://github.com/llvm-mirror/llvm/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 \ >X https://github.com/bazelbuild/rules_cc/archive/:rulescc >SHAR_END >echo x py-tensorflow/distinfo >sed 's/^X//' > py-tensorflow/distinfo << 'SHAR_END' >XTIMESTAMP = 1625741393 >XSHA256 (tensorflow/fft2d.tgz) = ada7e99087c4ed477bfdf11413f2ba8db8a840ba9bbf8ac94f4f3972e2a7cec9 >XSIZE (tensorflow/fft2d.tgz) = 54434 >XSHA256 (tensorflow/49177915a14a.tar.gz) = b3e1c3df05377d22bb960f54acce8d7018bc9477f37e8f39f9d3c784f5aaa87f >XSIZE (tensorflow/49177915a14a.tar.gz) = 2496808 >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/92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz) = 88e818f9f03628eef609c8429c210ecf265ffe46c2af095f36c7ef8b1855fef5 >XSIZE (tensorflow/92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz) = 660374 >XSHA256 (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9 >XSIZE (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 464906 >XSHA256 (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89 >XSIZE (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 72534 >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.11.1.tar.gz) = 96a86afcbdab215f8363e65a10cf023b752e90b23abf02272c4fc668fcb70311 >XSIZE (tensorflow/rules_swift.0.11.1.tar.gz) = 107453 >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/36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz) = 42b7ef406d5aa2d57a7b3b56fc44e8ad3011581692458a69958a911071efdcf2 >XSIZE (tensorflow/36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz) = 44744 >XSHA256 (tensorflow/94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz) = 109a99384f9d08f9e75136d218ebaebc68cc810c56897aea2224c57932052d30 >XSIZE (tensorflow/94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz) = 505681 >XSHA256 (tensorflow/v2.3.0.tar.gz) = 0f34838f2c8024a6765168227ba587b3687729ebf03dc912f88ff75c7aa9cfe8 >XSIZE (tensorflow/v2.3.0.tar.gz) = 564520 >XSHA256 (tensorflow/7a7e03f906aada0cf4b749b51213fe5784eeff84.tar.gz) = 599b89411df88b9e2be40b019e7ab0f7c9c10dd5ab1c948cd22e678cc8f8f352 >XSIZE (tensorflow/7a7e03f906aada0cf4b749b51213fe5784eeff84.tar.gz) = 50144723 >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-v1.15.5_GH0.tar.gz) = 4c4d23e311093ded2d2e287b18d7c45b07b5984ab88a1d2f91f8f13c886123db >XSIZE (tensorflow/tensorflow-tensorflow-v1.15.5_GH0.tar.gz) = 46212258 >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 >X >Xbuild --config=noaws --config=nohdfs --config=noignite --config=nokafka >Xbuild --define tensorflow_mkldnn_contraction_kernel=0 >Xbuild --incompatible_no_support_tools_in_action_inputs=false >SHAR_END >echo x py-tensorflow/files/patch-bazelrc >sed 's/^X//' > py-tensorflow/files/patch-bazelrc << 'SHAR_END' >X--- .bazelrc.orig 2019-07-13 21:45:36.138413000 +0100 >X+++ .bazelrc 2019-07-13 21:46:25.898491000 +0100 >X@@ -101,7 +101,7 @@ >X build:c++1z --cxxopt=-stdlib=libc++ >X >X # Default paths for TF_SYSTEM_LIBS >X-build --define=PREFIX=/usr >X+build --define=PREFIX=%%LOCALBASE%% >X build --define=LIBDIR=$(PREFIX)/lib >X build --define=INCLUDEDIR=$(PREFIX)/include >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 2019-10-14 21:08:43 UTC >X+++ third_party/systemlibs/jsoncpp.BUILD >X@@ -8,9 +8,7 @@ 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/forwards.h", >X "include/json/json.h", >X "include/json/reader.h", >X@@ -25,7 +23,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-tensorflow_contrib_boosted__trees_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_contrib_boosted__trees_BUILD << 'SHAR_END' >X--- tensorflow/contrib/boosted_trees/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/contrib/boosted_trees/BUILD >X@@ -24,6 +24,10 @@ cc_library( >X ":stats_accumulator_ops_kernels", >X ":training_ops_kernels", >X ], >X+ linkopts = select({ >X+ "//tensorflow:freebsd": ["-lm", "-lexecinfo",], >X+ }), >X+ >X alwayslink = 1, >X ) >X >X@@ -37,6 +41,10 @@ cc_library( >X ":stats_accumulator_ops_op_lib", >X ":training_ops_op_lib", >X ], >X+ linkopts = select({ >X+ "//tensorflow:freebsd": ["-lm", "-lexecinfo",], >X+ }), >X+ >X ) >X >X py_library( >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_contrib_ignite_kernels_client_ignite__plain__client__unix.cc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_contrib_ignite_kernels_client_ignite__plain__client__unix.cc << 'SHAR_END' >X--- tensorflow/contrib/ignite/kernels/client/ignite_plain_client_unix.cc.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/contrib/ignite/kernels/client/ignite_plain_client_unix.cc >X@@ -19,6 +19,10 @@ limitations under the License. >X #include <sys/socket.h> >X #include <unistd.h> >X >X+#ifdef __FreeBSD__ >X+#include <netinet/in.h> >X+#endif >X+ >X #include <iostream> >X #include <map> >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_contrib_makefile_Makefile >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_contrib_makefile_Makefile << 'SHAR_END' >X--- tensorflow/contrib/makefile/Makefile.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/contrib/makefile/Makefile >X@@ -60,12 +60,15 @@ else >X ifeq ($(UNAME_S),Linux) >X HOST_OS := LINUX >X endif >X+ ifeq ($(UNAME_S),FreeBSD) >X+ HOST_OS := FREEBSD >X+ endif >X ifeq ($(UNAME_S),Darwin) >X HOST_OS := OSX >X endif >X endif >X >X-HOST_ARCH := $(shell if [[ $(shell uname -m) =~ i[345678]86 ]]; then echo x86_32; else echo $(shell uname -m); fi) >X+HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; elif uname -m | grep -q amd64; then echo x86_64; else uname -m; fi) >X >X # Where compiled objects are stored. >X HOST_OBJDIR := $(MAKEFILE_DIR)/gen/host_obj/ >X@@ -111,6 +114,9 @@ $(HOST_NSYNC_LIB) \ >X ifeq ($(HOST_OS),LINUX) >X HOST_LIBS += -ldl -lpthread -lrt >X endif >X+ifeq ($(HOST_OS),FREEBSD) >X+ HOST_LIBS += -lexecinfo -lpthread >X+endif >X >X # If we're on a Pi, link in pthreads and dl >X ifeq ($(HOST_OS),PI) >X@@ -248,7 +254,7 @@ endif >X LDFLAGS += -all_load >X endif >X # Make sure that we don't strip global constructors on Linux. >X-ifeq ($(TARGET),LINUX) >X+ifeq ($(TARGET),LINUX,FREEBSD) >X ifeq ($(HAS_GEN_HOST_PROTOC),true) >X LIBFLAGS += -L$(MAKEFILE_DIR)/gen/protobuf-host/lib >X export LD_LIBRARY_PATH=$(MAKEFILE_DIR)/gen/protobuf-host/lib >X@@ -261,6 +267,10 @@ endif >X ifeq ($(TARGET),LINUX) >X LIBS += -ldl -lpthread -lrt >X endif >X+ifeq ($(TARGET),FREEBSD) >X+ LIBS += -lexecinfo -lpthread >X+endif >X+ >X # If we're cross-compiling for the Raspberry Pi, use the right gcc. >X ifeq ($(TARGET),PI) >X CXXFLAGS += $(ANDROID_TYPES) -DRASPBERRY_PI >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_BUILD << 'SHAR_END' >X--- tensorflow/core/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/core/BUILD >X@@ -2432,7 +2432,7 @@ cc_library( >X copts = tf_copts(), >X defines = LIB_INTERNAL_DEFINES, >X linkopts = select({ >X- "//tensorflow:freebsd": [], >X+ "//tensorflow:freebsd": ["-lexecinfo",], >X "//tensorflow:windows": [], >X "//tensorflow:android": [], >X "//conditions:default": [ >X@@ -2515,7 +2515,7 @@ cc_library( >X hdrs = ["lib/gif/gif_io.h"], >X copts = tf_copts(), >X linkopts = select({ >X- "//tensorflow:freebsd": [], >X+ "//tensorflow:freebsd": ["-lexecinfo",], >X "//tensorflow:windows": [], >X "//conditions:default": ["-ldl"], >X }), >X@@ -2539,7 +2539,7 @@ cc_library( >X ], >X copts = tf_copts(), >X linkopts = select({ >X- "//tensorflow:freebsd": [], >X+ "//tensorflow:freebsd": ["-lexecinfo",], >X "//tensorflow:windows": [], >X "//conditions:default": ["-ldl"], >X }), >X@@ -2570,7 +2570,7 @@ cc_library( >X ], >X copts = tf_copts(), >X linkopts = select({ >X- "//tensorflow:freebsd": [], >X+ "//tensorflow:freebsd": ["-lexecinfo",], >X "//tensorflow:windows": [], >X "//conditions:default": ["-ldl"], >X }), >X@@ -2907,7 +2907,7 @@ tf_cuda_library( >X hdrs = FRAMEWORK_INTERNAL_PUBLIC_HEADERS, >X copts = tf_copts(), >X linkopts = select({ >X- "//tensorflow:freebsd": ["-lm"], >X+ "//tensorflow:freebsd": ["-lm", "-lexecinfo",], >X "//tensorflow:windows": [], >X "//conditions:default": [ >X "-ldl", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_platform_cloud_gcs__dns__cache.cc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_platform_cloud_gcs__dns__cache.cc << 'SHAR_END' >X--- tensorflow/core/platform/cloud/gcs_dns_cache.cc.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/core/platform/cloud/gcs_dns_cache.cc >X@@ -26,6 +26,11 @@ limitations under the License. >X #endif >X #include <sys/types.h> >X >X+#ifdef __FreeBSD__ >X+#include <sys/socket.h> >X+#include <netinet/in.h> >X+#endif >X+ >X namespace tensorflow { >X >X namespace { >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_contrib_bigtable_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_contrib_bigtable_BUILD << 'SHAR_END' >X--- tensorflow/contrib/bigtable/BUILD.orig 2021-01-04 20:18:42 UTC >X+++ tensorflow/contrib/bigtable/BUILD >X@@ -82,6 +82,8 @@ tf_kernel_library( >X "//tensorflow/core:framework_headers_lib", >X "//third_party/eigen3", >X "@com_github_googlecloudplatform_google_cloud_cpp//google/cloud/bigtable:bigtable_client", >X+ "@com_google_absl//absl/base", >X+ "@com_google_absl//absl/synchronization", >X ], >X ) >X >X@@ -94,6 +96,8 @@ cc_library( >X "//tensorflow/core:framework_headers_lib", >X "//third_party/eigen3", >X "@com_github_googlecloudplatform_google_cloud_cpp//google/cloud/bigtable:bigtable_client", >X+ "@com_google_absl//absl/base", >X+ "@com_google_absl//absl/synchronization", >X ], >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-01-04 20:18:42 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") >X@@ -78,6 +87,42 @@ http_file( >X executable = 1, >X urls = ["https://github.com/google/xctestrunner/releases/download/0.2.7/ios_test_runner.par"], >X ) # https://github.com/google/xctestrunner/releases >X+ >X+new_local_repository( >X+ name = "jsonHeaders", >X+ path = "%%LOCALBASE%%/include/json", >X+ build_file_content = """ >X+ >X+package( >X+ default_visibility = [ >X+ "//visibility:public", >X+ ], >X+) >X+ >X+cc_library( >X+ name = "headers", >X+ srcs = glob(["*.h"]), >X+) >X+""", >X+) >X+ >X+new_local_repository( >X+ name = "absl_Headers", >X+ path = "%%LOCALBASE%%/include/absl", >X+ build_file_content = """ >X+ >X+package( >X+ default_visibility = [ >X+ "//visibility:public", >X+ ], >X+) >X+cc_library( >X+ name = "abslHeaders", >X+ srcs = glob(["*/*.h", "*/*/*.h", "*/*/*/*/*/*.h"]), >X+) >X+ >X+""", >X+) >X # Use `swift_rules_dependencies` to fetch the toolchains. With the >X # `git_repository` rules above, the following call will skip redefining them. >X load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies") >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_python_interpreter__wrapper_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_python_interpreter__wrapper_BUILD << 'SHAR_END' >X--- tensorflow/lite/python/interpreter_wrapper/BUILD.orig 2021-07-05 17:39:13 UTC >X+++ tensorflow/lite/python/interpreter_wrapper/BUILD >X@@ -31,6 +31,7 @@ cc_library( >X "//tensorflow/lite/kernels:builtin_ops", >X "//third_party/python_runtime:headers", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings:str_format", >X ], >X ) >X >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 2021-07-05 17:42:23 UTC >X+++ tensorflow/lite/tools/optimize/calibration/BUILD >X@@ -25,6 +25,7 @@ cc_library( >X "//tensorflow/lite/kernels:builtin_ops", >X "//tensorflow/lite/schema:schema_fbs", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X "@flatbuffers", >X ], >X ) >X@@ -49,6 +50,7 @@ tf_cc_test( >X "//tensorflow/lite:framework", >X "//tensorflow/lite/kernels:builtin_ops", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X "@com_google_googletest//:gtest", >X ], >X ) >X@@ -62,6 +64,7 @@ cc_library( >X "//tensorflow/lite:framework", >X "//tensorflow/lite/core/api", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X ], >X ) >X >X@@ -84,6 +87,7 @@ cc_library( >X ":calibration_logger", >X "//tensorflow/lite:framework", >X "@com_google_absl//absl/memory", >X+ "@com_google_absl//absl/strings", >X ], >X ) >X >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 2021-01-04 20:18:42 UTC >X+++ tensorflow/lite/tools/optimize/BUILD >X@@ -26,6 +26,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@@ -40,6 +42,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-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-06 22:08:16 UTC >X+++ tensorflow/compiler/mlir/lite/BUILD >X@@ -318,6 +318,7 @@ tf_native_cc_binary( >X srcs = [ >X "operator_writer_gen.cc", >X ], >X+ linkopts = ["-lexecinfo"], >X deps = [ >X "@llvm//:support", >X "@llvm//:tablegen", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_protobuf_autotuning.proto >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_protobuf_autotuning.proto << 'SHAR_END' >X--- tensorflow/core/protobuf/autotuning.proto.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/core/protobuf/autotuning.proto >X@@ -11,14 +11,14 @@ import "google/protobuf/any.proto"; >X import "google/protobuf/duration.proto"; >X >X message CudnnVersion { >X- int32 major = 1; >X- int32 minor = 2; >X+ int32 major_val = 1; >X+ int32 minor_val = 2; >X int32 patch = 3; >X } >X >X message ComputeCapability { >X- int32 major = 1; >X- int32 minor = 2; >X+ int32 major_val = 1; >X+ int32 minor_val = 2; >X } >X >X message AutotuneResult { >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_profiler_rpc_client_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_profiler_rpc_client_BUILD << 'SHAR_END' >X--- tensorflow/core/profiler/rpc/client/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/core/profiler/rpc/client/BUILD >X@@ -37,6 +37,8 @@ cc_library( >X "//tensorflow/core:lib", >X "//tensorflow/core:protos_all_cc", >X "//tensorflow/core/profiler:op_profile_proto_cc", >X+ "@com_google_absl//absl/base", >X+ "@com_google_absl//absl/synchronization", >X ], >X ) >X >X@@ -48,6 +50,7 @@ cc_library( >X "//tensorflow/core:lib", >X "//tensorflow/core:protos_all_cc", >X "@jsoncpp_git//:jsoncpp", >X+ "@jsonHeaders//:headers", >X ], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_platform_cloud_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_platform_cloud_BUILD << 'SHAR_END' >X--- tensorflow/core/platform/cloud/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/core/platform/cloud/BUILD >X@@ -220,6 +220,7 @@ cc_library( >X "//tensorflow/core:lib_internal", >X "@boringssl//:crypto", >X "@jsoncpp_git//:jsoncpp", >X+ "@jsonHeaders//:headers", >X ], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_profiler_internal_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_profiler_internal_BUILD << 'SHAR_END' >X--- tensorflow/core/profiler/internal/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/core/profiler/internal/BUILD >X@@ -38,6 +38,7 @@ cc_library( >X "//tensorflow/core:lib", >X "//tensorflow/core:protos_all_cc", >X "@jsoncpp_git//:jsoncpp", >X+ "@jsonHeaders//:headers", >X ], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_contrib_ffmpeg_default_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_contrib_ffmpeg_default_BUILD << 'SHAR_END' >X--- tensorflow/contrib/ffmpeg/default/BUILD.orig 2021-01-04 20:18:42 UTC >X+++ tensorflow/contrib/ffmpeg/default/BUILD >X@@ -18,6 +18,7 @@ cc_library( >X # Header is shared between implementations. >X "//tensorflow/contrib/ffmpeg:ffmpeg_lib.h", >X ], >X+ copts = ["-I%%LOCALBASE%%/include"], >X deps = [ >X "//tensorflow/core:framework_headers_lib", >X "//third_party/eigen3", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_tools_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_tools_BUILD << 'SHAR_END' >X--- tensorflow/lite/tools/BUILD.orig 2021-01-04 20:18:42 UTC >X+++ tensorflow/lite/tools/BUILD >X@@ -76,6 +76,7 @@ cc_library( >X "//tensorflow/lite/c:c_api_internal", >X "//tensorflow/lite/schema:schema_fbs", >X "@com_google_absl//absl/container:flat_hash_set", >X+ "@com_google_absl//absl/time", >X ], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_tools_make_Makefile >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_tools_make_Makefile << 'SHAR_END' >X--- tensorflow/lite/tools/make/Makefile.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/lite/tools/make/Makefile >X@@ -16,12 +16,15 @@ else >X ifeq ($(UNAME_S),Linux) >X HOST_OS := linux >X endif >X+ ifeq ($(UNAME_S),FreeBSD) >X+ HOST_OS := freebsd >X+ endif >X ifeq ($(UNAME_S),Darwin) >X HOST_OS := osx >X endif >X endif >X >X-HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; else uname -m; fi) >X+HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; elif uname -m | grep -q amd64; then echo x86_64; else uname -m; fi) >X >X # Override these on the make command line to target a specific architecture. For example: >X # make -f tensorflow/lite/tools/make/Makefile TARGET=rpi TARGET_ARCH=armv7l >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-07 08:13:58 UTC >X+++ third_party/mlir/BUILD >X@@ -1560,6 +1560,7 @@ cc_binary( >X linkopts = [ >X "-lm", >X "-lpthread", >X+ "-lexecinfo", >X ], >X deps = [ >X ":Support", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_experimental_micro_tools_make_targets_freebsd__makefile.inc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_experimental_micro_tools_make_targets_freebsd__makefile.inc << 'SHAR_END' >X--- tensorflow/lite/experimental/micro/tools/make/targets/freebsd_makefile.inc.orig 2021-07-05 16:52:18 UTC >X+++ tensorflow/lite/experimental/micro/tools/make/targets/freebsd_makefile.inc >X@@ -0,0 +1,10 @@ >X+# Settings for x86 on FreeBSD >X+ifeq ($(TARGET), freebsd) >X+ ifeq ($(TARGET_ARCH), x86_64) >X+ PLATFORM_FLAGS = \ >X+ -DTF_LITE_DISABLE_X86_NEON >X+ CXXFLAGS += $(PLATFORM_FLAGS) >X+ CCFLAGS += $(PLATFORM_FLAGS) >X+ endif >X+endif >X+ >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-06 10:09:38 UTC >X+++ tensorflow/compiler/mlir/lite/quantization/BUILD >X@@ -57,4 +57,5 @@ tf_native_cc_binary( >X "@llvm//:tablegen", >X "@local_config_mlir//:TableGen", >X ], >X+ linkopts = ["-lexecinfo"], >X ) >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_kernels_internal_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_kernels_internal_BUILD << 'SHAR_END' >X--- tensorflow/lite/kernels/internal/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/lite/kernels/internal/BUILD >X@@ -662,7 +662,7 @@ cc_library( >X ":sse_tensor_utils", >X ], >X "//conditions:default": [ >X- ":portable_tensor_utils", >X+ ":neon_tensor_utils", >X ], >X }), >X ) >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_lite_tools_make_targets_freebsd__makefile.inc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_lite_tools_make_targets_freebsd__makefile.inc << 'SHAR_END' >X--- tensorflow/lite/tools/make/targets/freebsd_makefile.inc.orig 2021-07-05 16:52:18 UTC >X+++ tensorflow/lite/tools/make/targets/freebsd_makefile.inc >X@@ -0,0 +1,16 @@ >X+# Settings for FreeBSD. >X+ifeq ($(TARGET), freebsd) >X+ CXXFLAGS += \ >X+ -fPIC \ >X+ -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \ >X+ -pthread >X+ CFLAGS += \ >X+ -fPIC \ >X+ -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \ >X+ -pthread >X+ # TODO(petewarden): In the future we may want to add architecture-specific >X+ # flags like -msse4.2 >X+ LIBS += -lexecinfo >X+endif >X+ >X+ >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_tools_lib__package_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_tools_lib__package_BUILD << 'SHAR_END' >X--- tensorflow/tools/lib_package/BUILD.orig 2019-10-14 21:08:43 UTC >X+++ tensorflow/tools/lib_package/BUILD >X@@ -151,7 +151,6 @@ genrule( >X "@gemmlowp//:LICENSE", >X "@gif_archive//:COPYING", >X "@highwayhash//:LICENSE", >X- "@hwloc//:COPYING", >X "@icu//:icu4c/LICENSE", >X "@jpeg//:LICENSE.md", >X "@lmdb//:LICENSE", >X@@ -223,7 +222,6 @@ genrule( >X "@gemmlowp//:LICENSE", >X "@gif_archive//:COPYING", >X "@highwayhash//:LICENSE", >X- "@hwloc//:COPYING", >X "@icu//:icu4j/main/shared/licenses/LICENSE", >X "@jpeg//:LICENSE.md", >X "@lmdb//:LICENSE", >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-08 11:05:27 UTC >X+++ tensorflow/workspace.bzl >X@@ -324,6 +324,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = " >X build_file = clean_dep("//third_party:functools32.BUILD"), >X sha256 = "f6253dfbe0538ad2e387bd8fdfd9293c925d63553f5813c4e587745416501e6d", >X strip_prefix = "functools32-3.2.3-2", >X+ system_build_file = clean_dep("//third_party/systemlibs:functools32.BUILD"), >X urls = [ >X "https://storage.googleapis.com/mirror.tensorflow.org/pypi.python.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz", >X "https://pypi.python.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz", >SHAR_END >echo x py-tensorflow/files/patch-third__party_aws_BUILD.bazel >sed 's/^X//' > py-tensorflow/files/patch-third__party_aws_BUILD.bazel << 'SHAR_END' >X--- third_party/aws/BUILD.bazel.orig 2019-10-14 21:08:43 UTC >X+++ third_party/aws/BUILD.bazel >X@@ -30,7 +30,9 @@ cc_library( >X "@org_tensorflow//tensorflow:freebsd": glob([ >X "aws-cpp-sdk-core/source/platform/linux-shared/*.cpp", >X ]), >X- "//conditions:default": [], >X+ "//conditions:default":glob([ >X+ "aws-cpp-sdk-core/source/platform/linux-shared/*.cpp", >X+ ]), >X }) + glob([ >X "aws-cpp-sdk-core/include/**/*.h", >X "aws-cpp-sdk-core/source/*.cpp", >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_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-06 11:28:13 UTC >X+++ tensorflow/compiler/mlir/tensorflow/BUILD >X@@ -586,6 +586,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_core_distributed__runtime_rpc_grpc__server__lib.cc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_distributed__runtime_rpc_grpc__server__lib.cc << 'SHAR_END' >X--- tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc.orig 2021-07-08 14:14:12 UTC >X+++ tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc >X@@ -487,12 +487,6 @@ class GrpcServerFactory : public ServerFactory { >X class GrpcServerRegistrar { >X public: >X GrpcServerRegistrar() { >X- gpr_allocation_functions alloc_fns; >X- memset(&alloc_fns, 0, sizeof(alloc_fns)); >X- alloc_fns.malloc_fn = port::Malloc; >X- alloc_fns.realloc_fn = port::Realloc; >X- alloc_fns.free_fn = port::Free; >X- gpr_set_allocation_functions(alloc_fns); >X ServerFactory::Register("GRPC_SERVER", new GrpcServerFactory()); >X } >X }; >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_python_lib_core_ndarray__tensor__bridge.cc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_python_lib_core_ndarray__tensor__bridge.cc << 'SHAR_END' >X--- tensorflow/python/lib/core/ndarray_tensor_bridge.cc.orig 2021-07-07 09:08:49 UTC >X+++ tensorflow/python/lib/core/ndarray_tensor_bridge.cc >X@@ -86,7 +86,7 @@ PyTypeObject TensorReleaserType = { >X 0, /* tp_itemsize */ >X /* methods */ >X TensorReleaser_dealloc, /* tp_dealloc */ >X- nullptr, /* tp_print */ >X+ 0, /* tp_print */ >X nullptr, /* tp_getattr */ >X nullptr, /* tp_setattr */ >X nullptr, /* tp_compare */ >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_stream__executor_stream__executor__pimpl.h >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_stream__executor_stream__executor__pimpl.h << 'SHAR_END' >X--- tensorflow/stream_executor/stream_executor_pimpl.h.orig 2021-07-07 09:04:03 UTC >X+++ tensorflow/stream_executor/stream_executor_pimpl.h >X@@ -25,6 +25,7 @@ limitations under the License. >X #include "absl/base/macros.h" >X #include "absl/synchronization/mutex.h" >X #include "absl/types/optional.h" >X+#include "absl/memory/memory.h" >X #include "tensorflow/stream_executor/device_memory_allocator.h" >X #include "tensorflow/stream_executor/lib/status.h" >X #include "tensorflow/stream_executor/lib/statusor.h" >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_python_eager_pywrap__tfe__src.cc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_python_eager_pywrap__tfe__src.cc << 'SHAR_END' >X--- tensorflow/python/eager/pywrap_tfe_src.cc.orig 2021-07-07 11:59:05 UTC >X+++ tensorflow/python/eager/pywrap_tfe_src.cc >X@@ -1319,7 +1319,7 @@ static PyTypeObject TFE_Py_Tape_Type = { >X sizeof(TFE_Py_Tape), /* tp_basicsize */ >X 0, /* tp_itemsize */ >X &TFE_Py_Tape_Delete, /* tp_dealloc */ >X- nullptr, /* tp_print */ >X+ 0, /* tp_print */ >X nullptr, /* tp_getattr */ >X nullptr, /* tp_setattr */ >X nullptr, /* tp_reserved */ >X@@ -1353,7 +1353,7 @@ static PyTypeObject TFE_Py_ForwardAccumulator_Type = { >X sizeof(TFE_Py_ForwardAccumulator), /* tp_basicsize */ >X 0, /* tp_itemsize */ >X &TFE_Py_ForwardAccumulatorDelete, /* tp_dealloc */ >X- nullptr, /* tp_print */ >X+ 0, /* tp_print */ >X nullptr, /* tp_getattr */ >X nullptr, /* tp_setattr */ >X nullptr, /* tp_reserved */ >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_python_lib_core_bfloat16.cc >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_python_lib_core_bfloat16.cc << 'SHAR_END' >X--- tensorflow/python/lib/core/bfloat16.cc.orig 2021-07-07 11:57:12 UTC >X+++ tensorflow/python/lib/core/bfloat16.cc >X@@ -317,7 +317,7 @@ PyTypeObject PyBfloat16_Type = { >X sizeof(PyBfloat16), // tp_basicsize >X 0, // tp_itemsize >X nullptr, // tp_dealloc >X- nullptr, // tp_print >X+ 0, // tp_print >X nullptr, // tp_getattr >X nullptr, // tp_setattr >X nullptr, // tp_compare / tp_reserved >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 2021-01-04 20:18:42 UTC >X+++ tensorflow/tensorflow.bzl >X@@ -289,6 +289,7 @@ def tf_copts( >X "-Iexternal/gemmlowp", >X "-Wno-sign-compare", >X "-ftemplate-depth=900", >X+ "-I%%LOCALBASE%%/include", >X ]) + >X (if_not_windows(["-fno-exceptions"]) if not allow_exceptions else []) + >X if_cuda(["-DGOOGLE_CUDA=1"]) + >X@@ -628,7 +629,7 @@ def tf_cc_binary( >X ], >X ), >X data = depset(data + added_data_deps), >X- linkopts = linkopts + _rpath_linkopts(name_os), >X+ linkopts = linkopts + ["-lexecinfo", "-lgpr"] + _rpath_linkopts(name), >X visibility = visibility, >X **kwargs >X ) >X@@ -693,7 +694,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(["-lm", "-Wl, -lexecinfo"]), >X linkstatic = 1, # Faster to link this one-time-use binary dynamically >X deps = [op_gen] + deps, >X ) >X@@ -878,7 +879,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, -lexecinfo"]) + cc_linkopts, >X linkstatic = 1, # Faster to link this one-time-use binary dynamically >X visibility = [clean_dep("//tensorflow:internal")], >X deps = ([ >X@@ -992,8 +993,9 @@ def tf_cc_test( >X "//conditions:default": [ >X "-lpthread", >X "-lm", >X+ "-lexecinfo", >X ], >X- }) + linkopts + _rpath_linkopts(name), >X+ }) + linkopts + ["-lexecinfo"] + _rpath_linkopts(name), >X deps = deps + tf_binary_dynamic_kernel_deps(kernels) + if_mkl_ml( >X [ >X clean_dep("//third_party/mkl:intel_binary_blob"), >X@@ -1140,7 +1142,7 @@ def tf_gpu_only_cc_test( >X ]) + if_rocm_is_configured([ >X clean_dep("//tensorflow/core:gpu_lib"), >X ]), >X- linkopts = if_not_windows(["-lpthread", "-lm"]) + linkopts + _rpath_linkopts(name), >X+ linkopts = if_not_windows(["-lpthread", "-lm", "-lexecinfo",]) + linkopts + _rpath_linkopts(name), >X linkstatic = linkstatic or select({ >X # cc_tests with ".so"s in srcs incorrectly link on Darwin >X # unless linkstatic=1. >X@@ -1820,6 +1822,7 @@ def tf_custom_op_library(name, srcs = [], gpu_srcs = [ >X linkopts = linkopts + select({ >X "//conditions:default": [ >X "-lm", >X+ "-lexecinfo", >X ], >X clean_dep("//tensorflow:windows"): [], >X clean_dep("//tensorflow:macos"): [], >SHAR_END >echo x py-tensorflow/files/patch-third__party_com__google__absl.BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_com__google__absl.BUILD << 'SHAR_END' >X--- third_party/com_google_absl.BUILD.orig 2021-07-07 09:58:12 UTC >X+++ third_party/com_google_absl.BUILD >X@@ -2,4 +2,9 @@ package(default_visibility = ["//visibility:public"]) >X >X licenses(["notice"]) # Apache >X >X-exports_files(["LICENSE"]) >X+exports_files(["LICENSE", "absl"]) >X+ >X+cc_library( >X+ name = "abslHeaders", >X+ hdrs = glob(["*/*/*.h", "*/*/*.h"]), >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 2021-07-08 11:07:25 UTC >X+++ third_party/systemlibs/syslibs_configure.bzl >X@@ -22,6 +22,7 @@ VALID_LIBS = [ >X "double_conversion", >X "enum34_archive", >X "flatbuffers", >X+ "functools32_archive", >X "gast_archive", >X "gif_archive", >X "grpc", >SHAR_END >echo x py-tensorflow/files/patch-tensorflow_core_distributed__runtime_rpc_BUILD >sed 's/^X//' > py-tensorflow/files/patch-tensorflow_core_distributed__runtime_rpc_BUILD << 'SHAR_END' >X--- tensorflow/core/distributed_runtime/rpc/BUILD.orig 2021-07-08 11:22:26 UTC >X+++ tensorflow/core/distributed_runtime/rpc/BUILD >X@@ -253,6 +253,7 @@ cc_library( >X name = "grpc_master_service_impl", >X srcs = ["grpc_master_service_impl.cc"], >X hdrs = ["grpc_master_service_impl.h"], >X+ copts = ["-I%%LOCALBASE%%/include"], >X deps = [ >X "//tensorflow:grpc++", >X "//tensorflow/core:master_proto_cc", >SHAR_END >echo x py-tensorflow/files/patch-third__party_flatbuffers_BUILD.system >sed 's/^X//' > py-tensorflow/files/patch-third__party_flatbuffers_BUILD.system << 'SHAR_END' >X--- third_party/flatbuffers/BUILD.system.orig 2021-01-04 20:18:42 UTC >X+++ third_party/flatbuffers/BUILD.system >X@@ -9,6 +9,7 @@ filegroup( >X cc_library( >X name = "flatbuffers", >X linkopts = ["-lflatbuffers"], >X+ copts = ["-I%%LOCALBASE%%/include"], >X visibility = ["//visibility:public"], >X ) >X >X@@ -16,6 +17,7 @@ cc_library( >X cc_library( >X name = "flatc_library", >X linkopts = ["-lflatbuffers"], >X+ copts = ["-I%%LOCALBASE%%/include"], >X visibility = ["//visibility:public"], >X ) >X >SHAR_END >echo x py-tensorflow/files/patch-third__party_systemlibs_functools32.BUILD >sed 's/^X//' > py-tensorflow/files/patch-third__party_systemlibs_functools32.BUILD << 'SHAR_END' >X--- third_party/systemlibs/functools32.BUILD.orig 2021-07-08 13:17:43 UTC >X+++ third_party/systemlibs/functools32.BUILD >X@@ -0,0 +1,15 @@ >X+# Description: >X+# functools32 provides a backport of the functools module for Python 2. >X+ >X+licenses(["notice"]) # Python 2.0 >X+ >X+package(default_visibility = ["//visibility:public"]) >X+ >X+filegroup( >X+ name = "LICENSE", >X+) >X+ >X+py_library( >X+ name = "functools32", >X+ srcs_version = "PY2AND3", >X+) >SHAR_END >echo x py-tensorflow/files/patch-third__party_systemlibs_protobuf.bzl >sed 's/^X//' > py-tensorflow/files/patch-third__party_systemlibs_protobuf.bzl << 'SHAR_END' >X--- third_party/systemlibs/protobuf.bzl.orig 2021-01-04 20:18:42 UTC >X+++ third_party/systemlibs/protobuf.bzl >X@@ -76,7 +76,7 @@ def _proto_gen_impl(ctx): >X source_dir = _SourceDir(ctx) >X gen_dir = _GenDir(ctx) >X if source_dir: >X- import_flags = ["-I" + source_dir, "-I" + gen_dir] >X+ import_flags = ["-I%%LOCALBASE%%/include", "-I" + source_dir, "-I" + gen_dir] >X else: >X import_flags = ["-I."] >X >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 250646
:
219115
|
219800
|
226298
|
226299
| 226310 |
226324
|
226491
|
226539
|
226550