View | Details | Raw Unified | Return to bug 250646 | Differences between
and this patch

Collapse All | Expand All

(-)b/science/py-tensorflow/Makefile (-17 / +23 lines)
Lines 1-7 Link Here
1
PORTNAME=	tensorflow
1
PORTNAME=	tensorflow
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.14.0
3
DISTVERSION=	1.15.5
4
PORTREVISION=	18
4
PORTREVISION=	1
5
CATEGORIES=	science python
5
CATEGORIES=	science python
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
DIST_SUBDIR=	${PORTNAME}
7
DIST_SUBDIR=	${PORTNAME}
Lines 13-19 COMMENT= Computation using data flow graphs for scalable machine learning Link Here
13
LICENSE=	APACHE20
13
LICENSE=	APACHE20
14
LICENSE_FILE=	${WRKSRC}/LICENSE
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
15
16
BROKEN=		fails to build
17
ONLY_FOR_ARCHS=	amd64
16
ONLY_FOR_ARCHS=	amd64
18
17
19
BUILD_DEPENDS=	${RUN_DEPENDS} \
18
BUILD_DEPENDS=	${RUN_DEPENDS} \
Lines 21-27 BUILD_DEPENDS= ${RUN_DEPENDS} \ Link Here
21
		bash:shells/bash \
20
		bash:shells/bash \
22
		cython:lang/cython \
21
		cython:lang/cython \
23
		swig:devel/swig \
22
		swig:devel/swig \
24
		bazel:devel/bazel029
23
		bazel:devel/bazel029 \
24
		git:devel/git
25
LIB_DEPENDS=	libsnappy.so:archivers/snappy \
25
LIB_DEPENDS=	libsnappy.so:archivers/snappy \
26
		liblmdb.so:databases/lmdb \
26
		liblmdb.so:databases/lmdb \
27
		libsqlite3.so:databases/sqlite3 \
27
		libsqlite3.so:databases/sqlite3 \
Lines 36-45 LIB_DEPENDS= libsnappy.so:archivers/snappy \ Link Here
36
		libpng.so:graphics/png \
36
		libpng.so:graphics/png \
37
		libgpr.so:devel/grpc \
37
		libgpr.so:devel/grpc \
38
		libcurl.so:ftp/curl \
38
		libcurl.so:ftp/curl \
39
		libgoogle_cloud_cpp_common.so:devel/google-cloud-cpp \
39
		libgoogle_cloud_cpp_common.so:devel/google-cloud-cpp117 \
40
		libflatbuffers.so:devel/flatbuffers \
40
		libflatbuffers.so:devel/flatbuffers \
41
		libdouble-conversion.so:devel/double-conversion
41
		libdouble-conversion.so:devel/double-conversion
42
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}absl>=0.7.1:devel/py-absl@${PY_FLAVOR} \
42
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}absl>=0.7.0:devel/py-absl@${PY_FLAVOR} \
43
		${PYTHON_PKGNAMEPREFIX}astor>=0.5:devel/py-astor@${PY_FLAVOR} \
43
		${PYTHON_PKGNAMEPREFIX}astor>=0.5:devel/py-astor@${PY_FLAVOR} \
44
		${PYTHON_PKGNAMEPREFIX}gast>=0.2.2:devel/py-gast@${PY_FLAVOR} \
44
		${PYTHON_PKGNAMEPREFIX}gast>=0.2.2:devel/py-gast@${PY_FLAVOR} \
45
		${PYTHON_PKGNAMEPREFIX}numpy>=1.11.2:math/py-numpy@${PY_FLAVOR} \
45
		${PYTHON_PKGNAMEPREFIX}numpy>=1.11.2:math/py-numpy@${PY_FLAVOR} \
Lines 52-58 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}absl>=0.7.1:devel/py-absl@${PY_FLAVOR} \ Link Here
52
		${PYTHON_PKGNAMEPREFIX}wrapt>=1.11.2:devel/py-wrapt@${PY_FLAVOR} \
52
		${PYTHON_PKGNAMEPREFIX}wrapt>=1.11.2:devel/py-wrapt@${PY_FLAVOR} \
53
		${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR}
53
		${PYTHON_PKGNAMEPREFIX}wheel>=0.30.0:devel/py-wheel@${PY_FLAVOR}
54
54
55
USES=		python:3.6+ shebangfix jpeg ssl
55
USES=		python:3.7+ shebangfix jpeg ssl compiler:c++17-lang
56
SHEBANG_GLOB=	*.py
56
SHEBANG_GLOB=	*.py
57
USE_GITHUB=	yes
57
USE_GITHUB=	yes
58
USE_PYTHON=	distutils
58
USE_PYTHON=	distutils
Lines 91-100 post-patch: Link Here
91
	@${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKDIR}/bazelrc \
91
	@${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKDIR}/bazelrc \
92
		${WRKSRC}/tensorflow/tensorflow.bzl ${WRKSRC}/.bazelrc \
92
		${WRKSRC}/tensorflow/tensorflow.bzl ${WRKSRC}/.bazelrc \
93
		${WRKSRC}/tensorflow/core/BUILD \
93
		${WRKSRC}/tensorflow/core/BUILD \
94
		${WRKSRC}/third_party/systemlibs/protobuf.bzl
94
		${WRKSRC}/third_party/systemlibs/protobuf.bzl \
95
		${WRKSRC}/tensorflow/core/profiler/rpc/client/BUILD \
96
		${WRKSRC}/WORKSPACE \
97
		${WRKSRC}/tensorflow/core/profiler/internal/BUILD \
98
		${WRKSRC}/tensorflow/contrib/ffmpeg/default/BUILD \
99
		${WRKSRC}/third_party/flatbuffers/BUILD.system
95
100
96
do-configure:
101
do-configure:
97
	@cd ${WRKSRC} && ${SETENV} \
102
	@cd ${WRKSRC} && ${SETENV} \
103
		BAZEL_CXXOPTS="-std=c++1z" \
98
		PYTHON_BIN_PATH=${PYTHON_CMD} \
104
		PYTHON_BIN_PATH=${PYTHON_CMD} \
99
		PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \
105
		PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \
100
		TF_NEED_JEMALLOC=0 \
106
		TF_NEED_JEMALLOC=0 \
Lines 121-142 do-configure: Link Here
121
		TF_IGNORE_MAX_BAZEL_VERSION=1 \
127
		TF_IGNORE_MAX_BAZEL_VERSION=1 \
122
		CC_OPT_FLAGS="-march=${CPU_TARGET} -I${LOCALBASE}/include" \
128
		CC_OPT_FLAGS="-march=${CPU_TARGET} -I${LOCALBASE}/include" \
123
		PREFIX="${LOCALBASE}" \
129
		PREFIX="${LOCALBASE}" \
124
		TF_SYSTEM_LIBS="absl_py astor_archive boringssl com_github_googleapis_googleapis com_github_googlecloudplatform_google_cloud_cpp com_google_protobuf \
130
		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 \
125
				com_google_protobuf_cc com_googlesource_code_re2 curl cython double_conversion enum34_archive flatbuffers gast_archive gif_archive \
131
			curl cython double_conversion enum34_archive flatbuffers functools32_archive gast_archive gif_archive grpc hwloc icu jpeg jsoncpp_git keras_applications_archive \
126
				grpc hwloc icu jpeg jsoncpp_git keras_applications_archive lmdb nasm nsync org_sqlite pasta pcre png_archive protobuf_archive \
132
			lmdb nasm nsync opt_einsum_archive org_sqlite pasta pcre png_archive six_archive snappy swig termcolor_archive wrapt zlib_archive" \
127
				six_archive snappy swig termcolor_archive wrapt zlib_archive" \
128
		./configure
133
		./configure
129
134
130
do-build:
135
do-build:
131
	@cd ${WRKSRC} && \
136
	@cd ${WRKSRC} && \
132
		bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \
137
		bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build --jobs 16 ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \
133
		--host_linkopt="-L${LOCALBASE}/lib" --linkopt="-L${LOCALBASE}/lib" --config=opt \
138
		--host_linkopt="-L${LOCALBASE}/lib" --linkopt="-L${LOCALBASE}/lib" --config=c++17 --copt="-I${LOCALBASE}/include" \
134
		--incompatible_no_support_tools_in_action_inputs=false \
139
		--cxxopt="--std=c++1z" --verbose_failures -s \
135
		--verbose_failures -s \
140
		--distdir=${WORKDIR}/bazel-dist \
141
		//tensorflow:libtensorflow_framework.so \
136
		//tensorflow:libtensorflow.so \
142
		//tensorflow:libtensorflow.so \
137
		//tensorflow:libtensorflow_cc.so \
143
		//tensorflow:libtensorflow_cc.so \
138
		//tensorflow:install_headers \
139
		//tensorflow/tools/pip_package:build_pip_package
144
		//tensorflow/tools/pip_package:build_pip_package
145
140
	@cd ${WRKSRC} && ${SETENV} TMPDIR=${WRKDIR} \
146
	@cd ${WRKSRC} && ${SETENV} TMPDIR=${WRKDIR} \
141
		bazel-bin/tensorflow/tools/pip_package/build_pip_package \
147
		bazel-bin/tensorflow/tools/pip_package/build_pip_package \
142
		${WRKDIR}/whl
148
		${WRKDIR}/whl
(-)b/science/py-tensorflow/Makefile.MASTER_SITES (-27 / +32 lines)
Lines 1-34 Link Here
1
DISTFILES+=	v0.18.tar.gz:mkldnn \
1
DISTFILES+=	fft2d.tgz:oourafft2d \
2
		daf381e8535a1f1f1b8a75966a74e7cca63dee89.tar.gz:abseil \
2
		49177915a14a.tar.gz:eigen \
3
		a0d250e79c79.tar.gz:eigen \
3
		43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz:abseil \
4
		12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip:gemmlowp \
4
		bazel-skylib.0.8.0.tar.gz:skylib \
5
		92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz:toolchain \
6
		308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:closure \
7
		0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip:rulescc \
8
		rules_docker-v0.10.0.tar.gz:docker \
9
		rules_swift.0.11.1.tar.gz:swift \
5
		816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz:farmhash \
10
		816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz:farmhash \
6
		cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz:closure \
11
		12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip:gemmlowp \
7
		94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz:toolchain \
12
		fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz:highwayhash \
8
		b8ff6a85ec359db3fd5657accd3e524daf12016d.tar.gz:docker \
13
		36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz:kissfft \
9
		0.6.0.tar.gz:skylib \
14
		94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz:bazel \
10
		rules_swift.0.9.0.tar.gz:swift \
15
		v2.3.0.tar.gz:pybind \
11
		fft.tgz:fft \
16
		7a7e03f906aada0cf4b749b51213fe5784eeff84.tar.gz:llvm \
12
		1200fe90bb174a6224a525ee60148671a786a71f.tar.gz:neon \
17
		1200fe90bb174a6224a525ee60148671a786a71f.tar.gz:neon \
13
		fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz:highway \
14
		license.rst.txt:license \
18
		license.rst.txt:license \
15
		backports.weakref-1.0rc1.tar.gz:weakref \
19
		backports.weakref-1.0rc1.tar.gz:weakref 
16
		0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip:rulescc
17
20
18
21
MASTER_SITES+=	http://www.kurims.kyoto-u.ac.jp/~ooura/:oourafft2d \
19
MASTER_SITES+=	https://github.com/intel/mkl-dnn/archive/:mkldnn \
22
		https://storage.googleapis.com/mirror.tensorflow.org/bitbucket.org/eigen/eigen/get/:eigen \
20
		https://github.com/abseil/abseil-cpp/archive/:abseil \
23
		https://github.com/abseil/abseil-cpp/archive/:abseil \
21
		https://bitbucket.org/eigen/eigen/get/:eigen \
24
		https://github.com/bazelbuild/bazel-skylib/releases/download/0.8.0/:skylib \
22
		https://github.com/google/gemmlowp/archive/:gemmlowp \
25
		https://github.com/bazelbuild/bazel-toolchains/archive/:toolchain \
23
		https://github.com/google/farmhash/archive/:farmhash \
24
		https://github.com/bazelbuild/rules_closure/archive/:closure \
26
		https://github.com/bazelbuild/rules_closure/archive/:closure \
25
		http://mirror.tensorflow.org/github.com/bazelbuild/bazel-toolchains/archive/:toolchain \
27
		https://github.com/bazelbuild/rules_docker/releases/download/v0.10.0/:docker \
26
		https://github.com/bazelbuild/rules_docker/archive/:docker \
28
		https://github.com/bazelbuild/rules_swift/releases/download/0.11.1/:swift \
27
		https://github.com/bazelbuild/bazel-skylib/archive/:skylib \
29
		https://github.com/google/farmhash/archive/:farmhash \
28
		https://github.com/bazelbuild/rules_swift/releases/download/0.9.0/:swift \
30
		https://github.com/google/gemmlowp/archive/:gemmlowp \
29
		http://www.kurims.kyoto-u.ac.jp/~ooura/:fft \
31
		https://github.com/google/highwayhash/archive/:highwayhash \
30
		http://mirror.tensorflow.org/github.com/intel/ARM_NEON_2_x86_SSE/archive/:neon \
32
		https://github.com/mborgerding/kissfft/archive/:kissfft \
31
		http://mirror.tensorflow.org/github.com/google/highwayhash/archive/:highway \
33
		https://github.com/nlopezgi/bazel-toolchains/archive/:bazel \
32
		http://mirror.tensorflow.org/docs.python.org/2.7/_sources/:license \
34
		https://github.com/pybind/pybind11/archive/:pybind \
35
		https://github.com/llvm-mirror/llvm/archive/:llvm \
36
		https://github.com/intel/ARM_NEON_2_x86_SSE/archive/:neon \
37
		https://storage.googleapis.com/mirror.tensorflow.org/docs.python.org/2.7/_sources/:license \
33
		https://pypi.python.org/packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/:weakref \
38
		https://pypi.python.org/packages/bc/cc/3cdb0a02e7e96f6c70bd971bc8a90b8463fda83e264fa9c5c1c98ceabd81/:weakref \
34
		https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/:rulescc
39
		https://github.com/bazelbuild/rules_cc/archive/:rulescc
(-)b/science/py-tensorflow/distinfo (-25 / +31 lines)
Lines 1-35 Link Here
1
TIMESTAMP = 1570325271
1
TIMESTAMP = 1625741393
2
SHA256 (tensorflow/v0.18.tar.gz) = 38a1c02104ee9f630c1ad68164119cd58ad0aaf59e04ccbe7bd5781add7bfbea
2
SHA256 (tensorflow/fft2d.tgz) = ada7e99087c4ed477bfdf11413f2ba8db8a840ba9bbf8ac94f4f3972e2a7cec9
3
SIZE (tensorflow/v0.18.tar.gz) = 1497239
3
SIZE (tensorflow/fft2d.tgz) = 54434
4
SHA256 (tensorflow/daf381e8535a1f1f1b8a75966a74e7cca63dee89.tar.gz) = 56cd3fbbbd94468a5fff58f5df2b6f9de7a0272870c61f6ca05b869934f4802a
4
SHA256 (tensorflow/49177915a14a.tar.gz) = b3e1c3df05377d22bb960f54acce8d7018bc9477f37e8f39f9d3c784f5aaa87f
5
SIZE (tensorflow/daf381e8535a1f1f1b8a75966a74e7cca63dee89.tar.gz) = 1275955
5
SIZE (tensorflow/49177915a14a.tar.gz) = 2496808
6
SHA256 (tensorflow/a0d250e79c79.tar.gz) = 0dde8fb87f5dad2e409c9f4ea1bebc54e694cf4f3b633081b0d51a55c00f9c9f
6
SHA256 (tensorflow/43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz) = acd93f6baaedc4414ebd08b33bebca7c7a46888916101d8c0b8083573526d070
7
SIZE (tensorflow/a0d250e79c79.tar.gz) = 2468318
7
SIZE (tensorflow/43ef2148c0936ebf7cb4be6b19927a9d9d145b8f.tar.gz) = 1281523
8
SHA256 (tensorflow/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip) = 6678b484d929f2d0d3229d8ac4e3b815a950c86bb9f17851471d143f6d4f7834
8
SHA256 (tensorflow/bazel-skylib.0.8.0.tar.gz) = 2ef429f5d7ce7111263289644d233707dba35e39696377ebab8b0bc701f7818e
9
SIZE (tensorflow/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip) = 935628
9
SIZE (tensorflow/bazel-skylib.0.8.0.tar.gz) = 72941
10
SHA256 (tensorflow/92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz) = 88e818f9f03628eef609c8429c210ecf265ffe46c2af095f36c7ef8b1855fef5
11
SIZE (tensorflow/92dd8a7a518a2fb7ba992d47c8b38299fe0be825.tar.gz) = 660374
12
SHA256 (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9
13
SIZE (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 464906
14
SHA256 (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89
15
SIZE (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 72534
16
SHA256 (tensorflow/rules_docker-v0.10.0.tar.gz) = 7d453450e1eb70e238eea6b31f4115607ec1200e91afea01c25f9804f37e39c8
17
SIZE (tensorflow/rules_docker-v0.10.0.tar.gz) = 549649
18
SHA256 (tensorflow/rules_swift.0.11.1.tar.gz) = 96a86afcbdab215f8363e65a10cf023b752e90b23abf02272c4fc668fcb70311
19
SIZE (tensorflow/rules_swift.0.11.1.tar.gz) = 107453
10
SHA256 (tensorflow/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) = 6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0
20
SHA256 (tensorflow/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) = 6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0
11
SIZE (tensorflow/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) = 467122
21
SIZE (tensorflow/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) = 467122
12
SHA256 (tensorflow/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz) = e0a111000aeed2051f29fcc7a3f83be3ad8c6c93c186e64beb1ad313f0c7f9f9
22
SHA256 (tensorflow/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip) = 6678b484d929f2d0d3229d8ac4e3b815a950c86bb9f17851471d143f6d4f7834
13
SIZE (tensorflow/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz) = 462798
23
SIZE (tensorflow/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip) = 935628
24
SHA256 (tensorflow/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz) = 9c3e0e87d581feeb0c18d814d98f170ff23e62967a2bd6855847f0b2fe598a37
25
SIZE (tensorflow/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz) = 138574
26
SHA256 (tensorflow/36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz) = 42b7ef406d5aa2d57a7b3b56fc44e8ad3011581692458a69958a911071efdcf2
27
SIZE (tensorflow/36dbc057604f00aacfc0288ddad57e3b21cfc1b8.tar.gz) = 44744
14
SHA256 (tensorflow/94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz) = 109a99384f9d08f9e75136d218ebaebc68cc810c56897aea2224c57932052d30
28
SHA256 (tensorflow/94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz) = 109a99384f9d08f9e75136d218ebaebc68cc810c56897aea2224c57932052d30
15
SIZE (tensorflow/94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz) = 505681
29
SIZE (tensorflow/94d31935a2c94fe7e7c7379a0f3393e181928ff7.tar.gz) = 505681
16
SHA256 (tensorflow/b8ff6a85ec359db3fd5657accd3e524daf12016d.tar.gz) = 4abb48f56b838957c9c72ac511b44f79612fcf39d08338fad14a8e3f6b0572ea
30
SHA256 (tensorflow/v2.3.0.tar.gz) = 0f34838f2c8024a6765168227ba587b3687729ebf03dc912f88ff75c7aa9cfe8
17
SIZE (tensorflow/b8ff6a85ec359db3fd5657accd3e524daf12016d.tar.gz) = 460121
31
SIZE (tensorflow/v2.3.0.tar.gz) = 564520
18
SHA256 (tensorflow/0.6.0.tar.gz) = eb5c57e4c12e68c0c20bc774bfbc60a568e800d025557bc4ea022c6479acc867
32
SHA256 (tensorflow/7a7e03f906aada0cf4b749b51213fe5784eeff84.tar.gz) = 599b89411df88b9e2be40b019e7ab0f7c9c10dd5ab1c948cd22e678cc8f8f352
19
SIZE (tensorflow/0.6.0.tar.gz) = 29330
33
SIZE (tensorflow/7a7e03f906aada0cf4b749b51213fe5784eeff84.tar.gz) = 50144723
20
SHA256 (tensorflow/rules_swift.0.9.0.tar.gz) = 9efe9699e9765e6b4a5e063e4a08f6b163cccaf0443f775d935baf5c3cd6ed0e
21
SIZE (tensorflow/rules_swift.0.9.0.tar.gz) = 105918
22
SHA256 (tensorflow/fft.tgz) = 52bb637c70b971958ec79c9c8752b1df5ff0218a4db4510e60826e0cb79b5296
23
SIZE (tensorflow/fft.tgz) = 72213
24
SHA256 (tensorflow/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz) = 213733991310b904b11b053ac224fee2d4e0179e46b52fe7f8735b8831e04dcc
34
SHA256 (tensorflow/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz) = 213733991310b904b11b053ac224fee2d4e0179e46b52fe7f8735b8831e04dcc
25
SIZE (tensorflow/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz) = 100612
35
SIZE (tensorflow/1200fe90bb174a6224a525ee60148671a786a71f.tar.gz) = 100612
26
SHA256 (tensorflow/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz) = 9c3e0e87d581feeb0c18d814d98f170ff23e62967a2bd6855847f0b2fe598a37
27
SIZE (tensorflow/fd3d9af80465e4383162e4a7c5e2f406e82dd968.tar.gz) = 138574
28
SHA256 (tensorflow/license.rst.txt) = e76cacdf0bdd265ff074ccca03671c33126f597f39d0ed97bc3e5673d9170cf6
36
SHA256 (tensorflow/license.rst.txt) = e76cacdf0bdd265ff074ccca03671c33126f597f39d0ed97bc3e5673d9170cf6
29
SIZE (tensorflow/license.rst.txt) = 45132
37
SIZE (tensorflow/license.rst.txt) = 45132
30
SHA256 (tensorflow/backports.weakref-1.0rc1.tar.gz) = 8813bf712a66b3d8b85dc289e1104ed220f1878cf981e2fe756dfaabe9a82892
38
SHA256 (tensorflow/backports.weakref-1.0rc1.tar.gz) = 8813bf712a66b3d8b85dc289e1104ed220f1878cf981e2fe756dfaabe9a82892
31
SIZE (tensorflow/backports.weakref-1.0rc1.tar.gz) = 7761
39
SIZE (tensorflow/backports.weakref-1.0rc1.tar.gz) = 7761
32
SHA256 (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89
40
SHA256 (tensorflow/tensorflow-tensorflow-v1.15.5_GH0.tar.gz) = 4c4d23e311093ded2d2e287b18d7c45b07b5984ab88a1d2f91f8f13c886123db
33
SIZE (tensorflow/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip) = 72534
41
SIZE (tensorflow/tensorflow-tensorflow-v1.15.5_GH0.tar.gz) = 46212258
34
SHA256 (tensorflow/tensorflow-tensorflow-v1.14.0_GH0.tar.gz) = aa2a6a1daafa3af66807cfe0bc77bfe1144a9a53df9a96bab52e3e575b3047ed
35
SIZE (tensorflow/tensorflow-tensorflow-v1.14.0_GH0.tar.gz) = 41335204
(-)b/science/py-tensorflow/files/bazelrc (+2 lines)
Lines 15-17 build --define=PREFIX=%%LOCALBASE%% Link Here
15
build --define=LIBDIR=%%LOCALBASE%%/lib
15
build --define=LIBDIR=%%LOCALBASE%%/lib
16
16
17
build --config=noaws --config=nohdfs --config=noignite --config=nokafka
17
build --config=noaws --config=nohdfs --config=noignite --config=nokafka
18
build --define tensorflow_mkldnn_contraction_kernel=0
19
build --incompatible_no_support_tools_in_action_inputs=false
(-)a/science/py-tensorflow/files/patch-tensorflow_contrib_boosted__trees_build (-24 lines)
Removed Link Here
1
--- tensorflow/contrib/boosted_trees/BUILD.orig	2019-07-07 15:35:52.034885000 +0100
2
+++ tensorflow/contrib/boosted_trees/BUILD	2019-07-07 15:50:02.149725000 +0100
3
@@ -27,6 +27,10 @@
4
         ":stats_accumulator_ops_kernels",
5
         ":training_ops_kernels",
6
     ],
7
+    linkopts = select({
8
+        "//tensorflow:freebsd": ["-lm", "-lexecinfo",],
9
+    }),
10
+
11
     alwayslink = 1,
12
 )
13
 
14
@@ -40,6 +44,10 @@
15
         ":stats_accumulator_ops_op_lib",
16
         ":training_ops_op_lib",
17
     ],
18
+    linkopts = select({
19
+        "//tensorflow:freebsd": ["-lm", "-lexecinfo",],
20
+    }),
21
+
22
 )
23
 
24
 py_library(
(-)b/science/py-tensorflow/files/patch-tensorflow_contrib_ignite_kernels_client_ignite__plain__client__unix.cc (-3 / +3 lines)
Lines 1-6 Link Here
1
--- tensorflow/contrib/ignite/kernels/client/ignite_plain_client_unix.cc.orig	2019-07-07 13:40:21.593527000 +0100
1
--- tensorflow/contrib/ignite/kernels/client/ignite_plain_client_unix.cc.orig	2019-10-14 21:08:43 UTC
2
+++ tensorflow/contrib/ignite/kernels/client/ignite_plain_client_unix.cc	2019-07-07 13:40:59.586340000 +0100
2
+++ tensorflow/contrib/ignite/kernels/client/ignite_plain_client_unix.cc
3
@@ -20,6 +20,10 @@
3
@@ -19,6 +19,10 @@ limitations under the License.
4
 #include <sys/socket.h>
4
 #include <sys/socket.h>
5
 #include <unistd.h>
5
 #include <unistd.h>
6
 
6
 
(-)a/science/py-tensorflow/files/patch-tensorflow_contrib_makefile_makefile (-49 lines)
Removed Link Here
1
--- ./tensorflow/contrib/makefile/Makefile.orig	2019-07-08 16:51:36.748365000 +0100
2
+++ ./tensorflow/contrib/makefile/Makefile	2019-07-08 16:51:21.774903000 +0100
3
@@ -60,12 +60,15 @@
4
 	ifeq ($(UNAME_S),Linux)
5
 	        HOST_OS := LINUX
6
 	endif
7
+        ifeq ($(UNAME_S),FreeBSD)
8
+                HOST_OS := FREEBSD
9
+        endif
10
 	ifeq ($(UNAME_S),Darwin)
11
 		HOST_OS := OSX
12
 	endif
13
 endif
14
 
15
-HOST_ARCH := $(shell if [[ $(shell uname -m) =~ i[345678]86 ]]; then echo x86_32; else echo $(shell uname -m); fi)
16
+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)
17
 
18
 # Where compiled objects are stored.
19
 HOST_OBJDIR := $(MAKEFILE_DIR)/gen/host_obj/
20
@@ -111,6 +114,9 @@
21
 ifeq ($(HOST_OS),LINUX)
22
 	HOST_LIBS += -ldl -lpthread
23
 endif
24
+ifeq ($(HOST_OS),FREEBSD)
25
+        HOST_LIBS += -lexecinfo -lpthread
26
+endif
27
 
28
 # If we're on a Pi, link in pthreads and dl
29
 ifeq ($(HOST_OS),PI)
30
@@ -248,7 +254,7 @@
31
 	LDFLAGS += -all_load
32
 endif
33
 # Make sure that we don't strip global constructors on Linux.
34
-ifeq ($(TARGET),LINUX)
35
+ifeq ($(TARGET),LINUX,FREEBSD)
36
 ifeq ($(HAS_GEN_HOST_PROTOC),true)
37
 	LIBFLAGS += -L$(MAKEFILE_DIR)/gen/protobuf-host/lib
38
 	export LD_LIBRARY_PATH=$(MAKEFILE_DIR)/gen/protobuf-host/lib
39
@@ -261,6 +267,10 @@
40
 ifeq ($(TARGET),LINUX)
41
 	LIBS += -ldl -lpthread
42
 endif
43
+ifeq ($(TARGET),FREEBSD)
44
+        LIBS += -lexecinfo -lpthread
45
+endif
46
+
47
 # If we're cross-compiling for the Raspberry Pi, use the right gcc.
48
 ifeq ($(TARGET),PI)
49
 	CXXFLAGS += $(ANDROID_TYPES) -DRASPBERRY_PI
(-)b/science/py-tensorflow/files/patch-tensorflow_core_BUILD (-7 / +7 lines)
Lines 1-6 Link Here
1
--- tensorflow/core/BUILD.orig	2019-06-18 23:48:23.000000000 +0100
1
--- tensorflow/core/BUILD.orig	2019-10-14 21:08:43 UTC
2
+++ tensorflow/core/BUILD	2019-07-14 09:27:38.471527000 +0100
2
+++ tensorflow/core/BUILD
3
@@ -2412,7 +2412,7 @@
3
@@ -2432,7 +2432,7 @@ cc_library(
4
     copts = tf_copts(),
4
     copts = tf_copts(),
5
     defines = LIB_INTERNAL_DEFINES,
5
     defines = LIB_INTERNAL_DEFINES,
6
     linkopts = select({
6
     linkopts = select({
Lines 9-15 Link Here
9
         "//tensorflow:windows": [],
9
         "//tensorflow:windows": [],
10
         "//tensorflow:android": [],
10
         "//tensorflow:android": [],
11
         "//conditions:default": [
11
         "//conditions:default": [
12
@@ -2512,7 +2512,7 @@
12
@@ -2515,7 +2515,7 @@ cc_library(
13
     hdrs = ["lib/gif/gif_io.h"],
13
     hdrs = ["lib/gif/gif_io.h"],
14
     copts = tf_copts(),
14
     copts = tf_copts(),
15
     linkopts = select({
15
     linkopts = select({
Lines 18-24 Link Here
18
         "//tensorflow:windows": [],
18
         "//tensorflow:windows": [],
19
         "//conditions:default": ["-ldl"],
19
         "//conditions:default": ["-ldl"],
20
     }),
20
     }),
21
@@ -2536,7 +2536,7 @@
21
@@ -2539,7 +2539,7 @@ cc_library(
22
     ],
22
     ],
23
     copts = tf_copts(),
23
     copts = tf_copts(),
24
     linkopts = select({
24
     linkopts = select({
Lines 27-33 Link Here
27
         "//tensorflow:windows": [],
27
         "//tensorflow:windows": [],
28
         "//conditions:default": ["-ldl"],
28
         "//conditions:default": ["-ldl"],
29
     }),
29
     }),
30
@@ -2566,7 +2566,7 @@
30
@@ -2570,7 +2570,7 @@ cc_library(
31
     ],
31
     ],
32
     copts = tf_copts(),
32
     copts = tf_copts(),
33
     linkopts = select({
33
     linkopts = select({
Lines 36-42 Link Here
36
         "//tensorflow:windows": [],
36
         "//tensorflow:windows": [],
37
         "//conditions:default": ["-ldl"],
37
         "//conditions:default": ["-ldl"],
38
     }),
38
     }),
39
@@ -2897,7 +2897,7 @@
39
@@ -2907,7 +2907,7 @@ tf_cuda_library(
40
     hdrs = FRAMEWORK_INTERNAL_PUBLIC_HEADERS,
40
     hdrs = FRAMEWORK_INTERNAL_PUBLIC_HEADERS,
41
     copts = tf_copts(),
41
     copts = tf_copts(),
42
     linkopts = select({
42
     linkopts = select({
(-)b/science/py-tensorflow/files/patch-tensorflow_core_platform_cloud_gcs__dns__cache.cc (-3 / +3 lines)
Lines 1-6 Link Here
1
--- tensorflow/core/platform/cloud/gcs_dns_cache.cc.orig	2019-06-18 23:48:23.000000000 +0100
1
--- tensorflow/core/platform/cloud/gcs_dns_cache.cc.orig	2019-10-14 21:08:43 UTC
2
+++ tensorflow/core/platform/cloud/gcs_dns_cache.cc	2019-07-06 18:15:09.827112000 +0100
2
+++ tensorflow/core/platform/cloud/gcs_dns_cache.cc
3
@@ -24,6 +24,11 @@
3
@@ -26,6 +26,11 @@ limitations under the License.
4
 #endif
4
 #endif
5
 #include <sys/types.h>
5
 #include <sys/types.h>
6
 
6
 
(-)a/science/py-tensorflow/files/patch-tensorflow_core_platform_default_build__config.bzl (-13 lines)
Removed Link Here
1
--- tensorflow/core/platform/default/build_config.bzl.orig	2019-07-06 21:55:11.899673000 +0100
2
+++ tensorflow/core/platform/default/build_config.bzl	2019-07-06 21:56:04.571430000 +0100
3
@@ -796,9 +796,7 @@
4
         "//tensorflow:ios": [],
5
         "//tensorflow:windows": [],
6
         "//tensorflow:macos": [],
7
-        "//conditions:default": [
8
-            "@hwloc",
9
-        ],
10
+        "//tensorflow:freebsd": [],
11
     })
12
 
13
 def tf_additional_numa_copts():
(-)a/science/py-tensorflow/files/patch-tensorflow_core_platform_posix_env.cc (-31 lines)
Removed Link Here
1
--- tensorflow/core/platform/posix/env.cc.orig	2019-06-18 23:48:23.000000000 +0100
2
+++ tensorflow/core/platform/posix/env.cc	2019-07-06 21:03:28.090735000 +0100
3
@@ -28,6 +28,10 @@
4
 #include <thread>
5
 #include <vector>
6
 
7
+#ifdef __FREEBSD__
8
+#include <pthread.h>
9
+#endif
10
+
11
 #include "tensorflow/core/lib/core/error_codes.pb.h"
12
 #include "tensorflow/core/platform/env.h"
13
 #include "tensorflow/core/platform/load_library.h"
14
@@ -113,7 +117,7 @@
15
     // Has to be casted to long first, else this error appears:
16
     // static_cast from 'pthread_t' (aka 'pthread *') to 'int32' (aka 'int')
17
     // is not allowed
18
-    return static_cast<int32>(static_cast<int64>(pthread_self()));
19
+    return static_cast<int32>((int64)(pthread_self()));
20
 #else
21
     return static_cast<int32>(pthread_self());
22
 #endif
23
@@ -129,7 +133,7 @@
24
         return true;
25
       }
26
     }
27
-#if defined(__ANDROID__) || defined(__EMSCRIPTEN__)
28
+#if defined(__ANDROID__) || defined(__EMSCRIPTEN__) || defined(__FreeBSD__)
29
     return false;
30
 #else
31
     char buf[100];
(-)a/science/py-tensorflow/files/patch-tensorflow_core_proto_autotuning.proto (-21 lines)
Removed Link Here
1
--- tensorflow/core/protobuf/autotuning.proto.orig	2019-06-18 23:48:23.000000000 +0100
2
+++ tensorflow/core/protobuf/autotuning.proto	2019-07-30 11:45:04.342068000 +0100
3
@@ -11,14 +11,14 @@
4
 import "google/protobuf/duration.proto";
5
 
6
 message CudnnVersion {
7
-  int32 major = 1;
8
-  int32 minor = 2;
9
+  int32 major_val = 1;
10
+  int32 minor_val = 2;
11
   int32 patch = 3;
12
 }
13
 
14
 message ComputeCapability {
15
-  int32 major = 1;
16
-  int32 minor = 2;
17
+  int32 major_val = 1;
18
+  int32 minor_val = 2;
19
 }
20
 
21
 message AutotuneResult {
(-)b/science/py-tensorflow/files/patch-tensorflow_lite_experimental_micro_tools_make_targets_freebsd__makefile.inc (-2 / +2 lines)
Lines 1-5 Link Here
1
--- /dev/null	2019-07-08 14:38:21.999045000 +0100
1
--- tensorflow/lite/experimental/micro/tools/make/targets/freebsd_makefile.inc.orig	2021-07-05 16:52:18 UTC
2
+++ tensorflow/lite/experimental/micro/tools/make/targets/freebsd_makefile.inc	2019-07-08 14:37:33.196932000 +0100
2
+++ tensorflow/lite/experimental/micro/tools/make/targets/freebsd_makefile.inc
3
@@ -0,0 +1,10 @@
3
@@ -0,0 +1,10 @@
4
+# Settings for x86 on FreeBSD
4
+# Settings for x86 on FreeBSD
5
+ifeq ($(TARGET), freebsd)
5
+ifeq ($(TARGET), freebsd)
(-)a/science/py-tensorflow/files/patch-tensorflow_lite_kernels_internal_build (-11 lines)
Removed Link Here
1
--- tensorflow/lite/kernels/internal/BUILD.orig	2019-07-09 13:22:19.397153000 +0100
2
+++ tensorflow/lite/kernels/internal/BUILD	2019-07-09 13:22:38.288994000 +0100
3
@@ -607,7 +607,7 @@
4
             ":neon_tensor_utils",
5
         ],
6
         "//conditions:default": [
7
-            ":portable_tensor_utils",
8
+	    ":neon_tensor_utils",
9
         ],
10
     }),
11
 )
(-)a/science/py-tensorflow/files/patch-tensorflow_lite_tools_make_makefile (-19 lines)
Removed Link Here
1
--- tensorflow/lite/tools/make/Makefile.orig	2019-07-08 14:04:30.373727000 +0100
2
+++ tensorflow/lite/tools/make/Makefile	2019-07-08 16:44:36.249811000 +0100
3
@@ -16,12 +16,15 @@
4
 	ifeq ($(UNAME_S),Linux)
5
 		HOST_OS := linux
6
 	endif
7
+        ifeq ($(UNAME_S),FreeBSD)
8
+                HOST_OS := freebsd
9
+        endif
10
 	ifeq ($(UNAME_S),Darwin)
11
 		HOST_OS := osx
12
 	endif
13
 endif
14
 
15
-HOST_ARCH := $(shell if uname -m | grep -q i[345678]86; then echo x86_32; else uname -m; fi)
16
+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)
17
 
18
 # Override these on the make command line to target a specific architecture. For example:
19
 # make -f tensorflow/lite/tools/make/Makefile TARGET=rpi TARGET_ARCH=armv7l
(-)b/science/py-tensorflow/files/patch-tensorflow_lite_tools_make_targets_freebsd__makefile.inc (-2 / +2 lines)
Lines 1-5 Link Here
1
--- /dev/null	2019-07-08 14:12:50.536743000 +0100
1
--- tensorflow/lite/tools/make/targets/freebsd_makefile.inc.orig	2021-07-05 16:52:18 UTC
2
+++ tensorflow/lite/tools/make/targets/freebsd_makefile.inc	2019-07-08 14:11:35.495868000 +0100
2
+++ tensorflow/lite/tools/make/targets/freebsd_makefile.inc
3
@@ -0,0 +1,16 @@
3
@@ -0,0 +1,16 @@
4
+# Settings for FreeBSD.
4
+# Settings for FreeBSD.
5
+ifeq ($(TARGET), freebsd)
5
+ifeq ($(TARGET), freebsd)
(-)b/science/py-tensorflow/files/patch-tensorflow_tensorflow.bzl (-11 / +11 lines)
Lines 1-14 Link Here
1
--- tensorflow/tensorflow.bzl.orig	2019-06-18 23:48:23.000000000 +0100
1
--- tensorflow/tensorflow.bzl.orig	2021-01-04 20:18:42 UTC
2
+++ tensorflow/tensorflow.bzl	2019-07-13 13:57:17.579194000 +0100
2
+++ tensorflow/tensorflow.bzl
3
@@ -287,6 +287,7 @@
3
@@ -289,6 +289,7 @@ def tf_copts(
4
             "-Iexternal/gemmlowp",
4
             "-Wno-sign-compare",
5
             "-Wno-sign-compare",
5
             "-fno-exceptions",
6
             "-ftemplate-depth=900",
6
             "-ftemplate-depth=900",
7
+	    "-I%%LOCALBASE%%/include",
7
+	    "-I%%LOCALBASE%%/include",
8
         ]) +
8
         ]) +
9
         (if_not_windows(["-fno-exceptions"]) if not allow_exceptions else []) +
9
         if_cuda(["-DGOOGLE_CUDA=1"]) +
10
         if_cuda(["-DGOOGLE_CUDA=1"]) +
10
         if_tensorrt(["-DGOOGLE_TENSORRT=1"]) +
11
@@ -628,7 +629,7 @@ def tf_cc_binary(
11
@@ -603,7 +604,7 @@
12
                 ],
12
                 ],
13
             ),
13
             ),
14
             data = depset(data + added_data_deps),
14
             data = depset(data + added_data_deps),
Lines 17-23 Link Here
17
             visibility = visibility,
17
             visibility = visibility,
18
             **kwargs
18
             **kwargs
19
         )
19
         )
20
@@ -657,7 +658,7 @@
20
@@ -693,7 +694,7 @@ def tf_gen_op_wrapper_cc(
21
     tf_cc_binary(
21
     tf_cc_binary(
22
         name = tool,
22
         name = tool,
23
         copts = tf_copts(),
23
         copts = tf_copts(),
Lines 26-32 Link Here
26
         linkstatic = 1,  # Faster to link this one-time-use binary dynamically
26
         linkstatic = 1,  # Faster to link this one-time-use binary dynamically
27
         deps = [op_gen] + deps,
27
         deps = [op_gen] + deps,
28
     )
28
     )
29
@@ -839,7 +840,7 @@
29
@@ -878,7 +879,7 @@ def tf_gen_op_wrapper_py(
30
     tf_cc_binary(
30
     tf_cc_binary(
31
         name = tool_name,
31
         name = tool_name,
32
         copts = tf_copts(),
32
         copts = tf_copts(),
Lines 35-41 Link Here
35
         linkstatic = 1,  # Faster to link this one-time-use binary dynamically
35
         linkstatic = 1,  # Faster to link this one-time-use binary dynamically
36
         visibility = [clean_dep("//tensorflow:internal")],
36
         visibility = [clean_dep("//tensorflow:internal")],
37
         deps = ([
37
         deps = ([
38
@@ -954,8 +955,9 @@
38
@@ -992,8 +993,9 @@ def tf_cc_test(
39
             "//conditions:default": [
39
             "//conditions:default": [
40
                 "-lpthread",
40
                 "-lpthread",
41
                 "-lm",
41
                 "-lm",
Lines 46-52 Link Here
46
         deps = deps + tf_binary_dynamic_kernel_deps(kernels) + if_mkl_ml(
46
         deps = deps + tf_binary_dynamic_kernel_deps(kernels) + if_mkl_ml(
47
             [
47
             [
48
                 clean_dep("//third_party/mkl:intel_binary_blob"),
48
                 clean_dep("//third_party/mkl:intel_binary_blob"),
49
@@ -1103,7 +1105,7 @@
49
@@ -1140,7 +1142,7 @@ def tf_gpu_only_cc_test(
50
         ]) + if_rocm_is_configured([
50
         ]) + if_rocm_is_configured([
51
             clean_dep("//tensorflow/core:gpu_lib"),
51
             clean_dep("//tensorflow/core:gpu_lib"),
52
         ]),
52
         ]),
Lines 55-61 Link Here
55
         linkstatic = linkstatic or select({
55
         linkstatic = linkstatic or select({
56
             # cc_tests with ".so"s in srcs incorrectly link on Darwin
56
             # cc_tests with ".so"s in srcs incorrectly link on Darwin
57
             # unless linkstatic=1.
57
             # unless linkstatic=1.
58
@@ -1784,6 +1786,7 @@
58
@@ -1820,6 +1822,7 @@ def tf_custom_op_library(name, srcs = [], gpu_srcs = [
59
         linkopts = linkopts + select({
59
         linkopts = linkopts + select({
60
             "//conditions:default": [
60
             "//conditions:default": [
61
                 "-lm",
61
                 "-lm",
(-)a/science/py-tensorflow/files/patch-tensorflow_tools_lib__package_build (-18 lines)
Removed Link Here
1
--- tensorflow/tools/lib_package/BUILD.orig	2019-07-06 21:58:28.528046000 +0100
2
+++ tensorflow/tools/lib_package/BUILD	2019-07-06 21:58:46.410184000 +0100
3
@@ -152,7 +152,6 @@
4
         "@gemmlowp//:LICENSE",
5
         "@gif_archive//:COPYING",
6
         "@highwayhash//:LICENSE",
7
-        "@hwloc//:COPYING",
8
         "@icu//:icu4c/LICENSE",
9
         "@jpeg//:LICENSE.md",
10
         "@lmdb//:LICENSE",
11
@@ -223,7 +222,6 @@
12
         "@gemmlowp//:LICENSE",
13
         "@gif_archive//:COPYING",
14
         "@highwayhash//:LICENSE",
15
-        "@hwloc//:COPYING",
16
         "@icu//:icu4j/main/shared/licenses/LICENSE",
17
         "@jpeg//:LICENSE.md",
18
         "@lmdb//:LICENSE",
(-)a/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build (-10 lines)
Removed Link Here
1
--- tensorflow/tools/pip_package/BUILD.orig	2019-07-06 22:03:09.438361000 +0100
2
+++ tensorflow/tools/pip_package/BUILD	2019-07-06 22:03:18.385021000 +0100
3
@@ -175,7 +175,6 @@
4
         "@gemmlowp//:LICENSE",
5
         "@gif_archive//:COPYING",
6
         "@highwayhash//:LICENSE",
7
-        "@hwloc//:COPYING",
8
         "@icu//:icu4c/LICENSE",
9
         "@jpeg//:LICENSE.md",
10
         "@keras_applications_archive//:LICENSE",
(-)b/science/py-tensorflow/files/patch-tensorflow_workspace.bzl (-10 / +10 lines)
Lines 1-10 Link Here
1
--- tensorflow/workspace.bzl.orig	2019-07-11 15:46:44.460265000 +0100
1
--- tensorflow/workspace.bzl.orig	2021-07-08 11:05:27 UTC
2
+++ tensorflow/workspace.bzl	2019-07-11 15:47:14.104299000 +0100
2
+++ tensorflow/workspace.bzl
3
@@ -346,6 +346,7 @@
3
@@ -324,6 +324,7 @@ def tf_repositories(path_prefix = "", tf_repo_name = "
4
         ],
4
         build_file = clean_dep("//third_party:functools32.BUILD"),
5
         sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1",
5
         sha256 = "f6253dfbe0538ad2e387bd8fdfd9293c925d63553f5813c4e587745416501e6d",
6
         build_file = clean_dep("//third_party:enum34.BUILD"),
6
         strip_prefix = "functools32-3.2.3-2",
7
+	system_build_file = clean_dep("//third_party/systemlibs:enum34.BUILD"),
7
+        system_build_file = clean_dep("//third_party/systemlibs:functools32.BUILD"),
8
         strip_prefix = "enum34-1.1.6/enum",
8
         urls = [
9
     )
9
             "https://storage.googleapis.com/mirror.tensorflow.org/pypi.python.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz",
10
 
10
             "https://pypi.python.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz",
(-)a/science/py-tensorflow/files/patch-third__party_aws_build.bazel (-13 lines)
Removed Link Here
1
--- third_party/aws/BUILD.bazel.orig	2019-07-07 15:57:49.887118000 +0100
2
+++ third_party/aws/BUILD.bazel	2019-07-07 15:58:39.817675000 +0100
3
@@ -27,7 +27,9 @@
4
         "@org_tensorflow//tensorflow:raspberry_pi_armeabi": glob([
5
             "aws-cpp-sdk-core/source/platform/linux-shared/*.cpp",
6
         ]),
7
-        "//conditions:default": [],
8
+        "//conditions:default":glob([
9
+            "aws-cpp-sdk-core/source/platform/linux-shared/*.cpp",
10
+        ]),
11
     }) + glob([
12
         "aws-cpp-sdk-core/include/**/*.h",
13
         "aws-cpp-sdk-core/source/*.cpp",
(-)a/science/py-tensorflow/files/patch-third__party_systemlibs_enum34.build (-17 lines)
Removed Link Here
1
--- /dev/null	2019-07-11 15:43:12.610969000 +0100
2
+++ third_party/systemlibs/enum34.BUILD	2019-07-11 15:42:45.040593000 +0100
3
@@ -0,0 +1,14 @@
4
+# Description:
5
+#   enum34 provides a backport of the enum module for Python 2.
6
+ 
7
+licenses(["notice"])  # MIT
8
+ 
9
+filegroup(
10
+    name = "LICENSE",
11
+    visibility = ["//visibility:public"],
12
+)
13
+ 
14
+py_library(
15
+    name = "enum",
16
+    visibility = ["//visibility:public"],
17
+)
(-)a/science/py-tensorflow/files/patch-third__party_systemlibs_grpc.build (-11 lines)
Removed Link Here
1
--- third_party/systemlibs/grpc.BUILD.orig	2019-06-18 23:48:23.000000000 +0100
2
+++ third_party/systemlibs/grpc.BUILD	2019-07-13 14:03:35.671155000 +0100
3
@@ -7,7 +7,7 @@
4
 
5
 cc_library(
6
     name = "grpc",
7
-    linkopts = ["-lgrpc"],
8
+    linkopts = ["-lgrpc", "-lgpr"],
9
     visibility = ["//visibility:public"],
10
 )
11
 
(-)a/science/py-tensorflow/files/patch-third__party_systemlibs_jsoncpp.build (-23 lines)
Removed Link Here
1
--- third_party/systemlibs/jsoncpp.BUILD.orig	2019-06-19 00:48:23.000000000 +0200
2
+++ third_party/systemlibs/jsoncpp.BUILD	2020-01-13 00:12:53.470881000 +0100
3
@@ -7,8 +7,10 @@
4
 
5
 HEADERS = [
6
     "include/json/autolink.h",
7
+    "include/json/allocator.h",
8
+    "include/json/assertions.h",
9
     "include/json/config.h",
10
-    "include/json/features.h",
11
+    "include/json/json_features.h",
12
     "include/json/forwards.h",
13
     "include/json/json.h",
14
     "include/json/reader.h",
15
@@ -23,7 +25,7 @@
16
     cmd = """
17
       for i in $(OUTS); do
18
         i=$${i##*/}
19
-        ln -sf $(INCLUDEDIR)/jsoncpp/json/$$i $(@D)/include/json/$$i
20
+        ln -sf $(INCLUDEDIR)/json/$$i $(@D)/include/json/$$i
21
       done
22
     """,
23
 )
(-)b/science/py-tensorflow/files/patch-third__party_systemlibs_protobuf.bzl (-3 / +3 lines)
Lines 1-6 Link Here
1
--- third_party/systemlibs/protobuf.bzl.orig	2019-07-26 12:28:57.790848000 +0100
1
--- third_party/systemlibs/protobuf.bzl.orig	2021-01-04 20:18:42 UTC
2
+++ third_party/systemlibs/protobuf.bzl	2019-07-26 12:29:42.978059000 +0100
2
+++ third_party/systemlibs/protobuf.bzl
3
@@ -76,7 +76,7 @@
3
@@ -76,7 +76,7 @@ def _proto_gen_impl(ctx):
4
     source_dir = _SourceDir(ctx)
4
     source_dir = _SourceDir(ctx)
5
     gen_dir = _GenDir(ctx)
5
     gen_dir = _GenDir(ctx)
6
     if source_dir:
6
     if source_dir:
(-)a/science/py-tensorflow/files/patch-third__party_systemlibs_swig.build (-11 lines)
Removed Link Here
1
--- third_party/systemlibs/swig.BUILD.orig	2019-07-13 11:28:32.539254000 +0100
2
+++ third_party/systemlibs/swig.BUILD	2019-07-13 11:28:47.485432000 +0100
3
@@ -13,7 +13,7 @@
4
 genrule(
5
     name = "lnswiglink",
6
     outs = ["swiglink"],
7
-    cmd = "ln -s $$(which swig) $@",
8
+    cmd = "ln -s $$(which swig3.0) $@",
9
 )
10
 
11
 sh_binary(
(-)b/science/py-tensorflow/files/patch-third__party_systemlibs_syslibs__configure.bzl (-6 / +6 lines)
Lines 1-10 Link Here
1
--- third_party/systemlibs/syslibs_configure.bzl.orig	2019-07-11 15:43:32.713320000 +0100
1
--- third_party/systemlibs/syslibs_configure.bzl.orig	2021-07-08 11:07:25 UTC
2
+++ third_party/systemlibs/syslibs_configure.bzl	2019-07-11 15:43:54.448882000 +0100
2
+++ third_party/systemlibs/syslibs_configure.bzl
3
@@ -21,6 +21,7 @@
3
@@ -22,6 +22,7 @@ VALID_LIBS = [
4
     "curl",
5
     "cython",
6
     "double_conversion",
4
     "double_conversion",
7
+    "enum34_archive",
5
     "enum34_archive",
8
     "flatbuffers",
6
     "flatbuffers",
7
+    "functools32_archive",
9
     "gast_archive",
8
     "gast_archive",
10
     "gif_archive",
9
     "gif_archive",
10
     "grpc",
(-)a/science/py-tensorflow/files/patch-third_party_gpus_rocm_configure.bzl (-11 lines)
Removed Link Here
1
--- third_party/gpus/rocm_configure.bzl.orig	2019-06-18 23:48:23.000000000 +0100
2
+++ third_party/gpus/rocm_configure.bzl	2019-07-06 21:35:41.445803000 +0100
3
@@ -308,7 +308,7 @@
4
     Returns:
5
       The platform-specific name of the library.
6
     """
7
-    if cpu_value in ("Linux"):
8
+    if cpu_value in ("Linux", "FreeBSD"):
9
         if static:
10
             return "lib%s.a" % lib
11
         else:

Return to bug 250646