1 |
commit: 81d6d00f81b49112fcca4b91f2121878db355724 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 25 14:21:01 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 26 05:35:17 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81d6d00f |
7 |
|
8 |
sci-libs/tensorflow: bump 2.1.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/701334 |
11 |
Closes: https://bugs.gentoo.org/704490 |
12 |
Closes: https://bugs.gentoo.org/701342 |
13 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
14 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
15 |
|
16 |
sci-libs/tensorflow/Manifest | 3 ++- |
17 |
.../files/tensorflow-2.1.0-external_libs.patch | 26 ---------------------- |
18 |
.../tensorflow-2.1.0-python3.8-pywrap_tensor.patch | 11 --------- |
19 |
...ow-2.1.0_rc2.ebuild => tensorflow-2.1.0.ebuild} | 14 +++++------- |
20 |
4 files changed, 7 insertions(+), 47 deletions(-) |
21 |
|
22 |
diff --git a/sci-libs/tensorflow/Manifest b/sci-libs/tensorflow/Manifest |
23 |
index 22bc344ccf2..297457526e4 100644 |
24 |
--- a/sci-libs/tensorflow/Manifest |
25 |
+++ b/sci-libs/tensorflow/Manifest |
26 |
@@ -28,4 +28,5 @@ DIST re2-506cfa4bffd060c06ec338ce50ea3468daa6c814.tar.gz 316237 BLAKE2B 8a975bc3 |
27 |
DIST tensorflow-1.15.0-python-license.rst.txt 45132 BLAKE2B 8a8ace4b64fd9eda1932272704dd4fea002d2562cd9c2c94470d3ff5de58bb171ff849d3f998ea90cd779d1084d39af1267aca8400b74b701205d2e76e6a2628 SHA512 c79c42f4ceecf33c8f8778ca17b53595b75d5d0bdf30b11058cf01dd70a6351f530ca9dd846460aba14edc1d5876f7bf6fa0f9f49f7915590b0f54d267ce3856 |
28 |
DIST tensorflow-1.15.0.tar.gz 46183168 BLAKE2B 5ccd87d5b53d6c543728e9c7ef96f12149bd8729620838b07a28f752fd5c57ef88350c2b62e8c44ec3561469eda38d8a64cbfca5e1ac7850674e1dd2c4d605d6 SHA512 f8683a950be6a3fa234d42e0f46bd9e049280e0c1d203c5c00ad44cf4728d894f2c301939d6d71203f815130a1ead53127adcc7565009589ff5aafc878b4dba7 |
29 |
DIST tensorflow-2.0.0.tar.gz 46176997 BLAKE2B 761e91a774f61b50459240a83fe52f723a76c2cc3eaf7c371684849cb7365b94fb3743ab8de9adffe64bef0f70da2bb0b7e6426a3f402e436eff841d3edefe8d SHA512 c3a2cb9673d2ade8e83961f7d944165123d0e4d94e6ca4d8fdee4f02f536893b879bbbf78d3ad5e557467b58f97f7194f2d9cfc64d7d05540969be732070eecc |
30 |
-DIST tensorflow-2.1.0_rc2.tar.gz 41641498 BLAKE2B 1ab001f6804cd6b2b3122cd5bf84905d81b1632f363134dc30aee92869077da2420799d0e70ea050004ac854a7e887a44176806b8cdfab5f12b9c8f7440d22be SHA512 7b8c9a83b5c25b36f680cfdaeefdc932cab93ecfc25622cd46ac14b2f5582eea4f04c6bdd5d63058266d5e0bf2cd9e1fb7a0647be62fb4ec4b910b0e7b4214e0 |
31 |
+DIST tensorflow-2.1.0.tar.gz 41637803 BLAKE2B 63aac95cdb71097d2e7a257a691a2b51703fb22d2535395494adebfae0d3f97f8dd9e0deaadf1c2f3d3d26138066a7c6fb9b9728b5b0ac3d54360d7b5e4bebff SHA512 6d09ba3c097e4b3d712e7164d649841572c418d56c207eea6d31e3b1851b84ce57e82801d9887d84cfd8fcf990a3ea4c4b4b05265f8d625509986412c230c3c6 |
32 |
+DIST tensorflow-patches-2.1.0.tar.bz2 5737 BLAKE2B 67f5004312389ed19e810aad9f2d5d4839d806b5a7422963520e0dff06b91346683647db757ac463af13ca70861a7ed9c94be242910abacc6be350e162947225 SHA512 a20bfb619d59e0d2741a27ce36e3d38dbb7a5a706d6bc56f8aa94b5b72288139ad301fc06390b128ef1c3a88b758d09d0224351590dedcda9c5309cc55af6fed |
33 |
|
34 |
diff --git a/sci-libs/tensorflow/files/tensorflow-2.1.0-external_libs.patch b/sci-libs/tensorflow/files/tensorflow-2.1.0-external_libs.patch |
35 |
deleted file mode 100644 |
36 |
index 194cdc16651..00000000000 |
37 |
--- a/sci-libs/tensorflow/files/tensorflow-2.1.0-external_libs.patch |
38 |
+++ /dev/null |
39 |
@@ -1,26 +0,0 @@ |
40 |
-diff --git a/WORKSPACE b/WORKSPACE |
41 |
-index babb14b509..bcdd4f46e2 100644 |
42 |
---- a/WORKSPACE |
43 |
-+++ b/WORKSPACE |
44 |
-@@ -67,7 +67,7 @@ http_archive( |
45 |
- http_archive( |
46 |
- name = "bazel_skylib", |
47 |
- sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", |
48 |
-- urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel-skylib.0.9.0.tar.gz"], |
49 |
-+ urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz"], |
50 |
- ) # https://github.com/bazelbuild/bazel-skylib/releases |
51 |
- http_archive( |
52 |
- name = "com_github_apple_swift_swift_protobuf", |
53 |
-diff --git a/third_party/systemlibs/syslibs_configure.bzl b/third_party/systemlibs/syslibs_configure.bzl |
54 |
-index 8619cddfdd..4b57df0cbe 100644 |
55 |
---- a/third_party/systemlibs/syslibs_configure.bzl |
56 |
-+++ b/third_party/systemlibs/syslibs_configure.bzl |
57 |
-@@ -27,7 +27,7 @@ VALID_LIBS = [ |
58 |
- "grpc", |
59 |
- "hwloc", |
60 |
- "icu", |
61 |
-- "jpeg", |
62 |
-+ "libjpeg_turbo", |
63 |
- "jsoncpp_git", |
64 |
- "keras_applications_archive", |
65 |
- "lmdb", |
66 |
|
67 |
diff --git a/sci-libs/tensorflow/files/tensorflow-2.1.0-python3.8-pywrap_tensor.patch b/sci-libs/tensorflow/files/tensorflow-2.1.0-python3.8-pywrap_tensor.patch |
68 |
deleted file mode 100644 |
69 |
index bc53750b070..00000000000 |
70 |
--- a/sci-libs/tensorflow/files/tensorflow-2.1.0-python3.8-pywrap_tensor.patch |
71 |
+++ /dev/null |
72 |
@@ -1,11 +0,0 @@ |
73 |
---- a/tensorflow/python/eager/pywrap_tensor.cc.ORIG 2019-09-27 23:56:33.000000000 +0200 |
74 |
-+++ b/tensorflow/python/eager/pywrap_tensor.cc 2019-11-27 16:39:00.996713385 +0100 |
75 |
-@@ -839,7 +839,7 @@ |
76 |
- sizeof(EagerTensor), /* tp_basicsize */ |
77 |
- 0, /* tp_itemsize */ |
78 |
- (destructor)EagerTensor_dealloc, /* tp_dealloc */ |
79 |
-- nullptr, /* tp_print */ |
80 |
-+ 0, /* tp_vectorcall_offset */ |
81 |
- nullptr, /* tp_getattr */ |
82 |
- nullptr, /* tp_setattr */ |
83 |
- nullptr, /* tp_compare */ |
84 |
|
85 |
diff --git a/sci-libs/tensorflow/tensorflow-2.1.0_rc2.ebuild b/sci-libs/tensorflow/tensorflow-2.1.0.ebuild |
86 |
similarity index 96% |
87 |
rename from sci-libs/tensorflow/tensorflow-2.1.0_rc2.ebuild |
88 |
rename to sci-libs/tensorflow/tensorflow-2.1.0.ebuild |
89 |
index 8ae81ea41a8..5a87c8ff00d 100644 |
90 |
--- a/sci-libs/tensorflow/tensorflow-2.1.0_rc2.ebuild |
91 |
+++ b/sci-libs/tensorflow/tensorflow-2.1.0.ebuild |
92 |
@@ -52,6 +52,7 @@ bazel_external_uris=" |
93 |
)" |
94 |
|
95 |
SRC_URI="https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz |
96 |
+ https://dev.gentoo.org/~perfinion/patches/tensorflow-patches-${PVR}.tar.bz2 |
97 |
${bazel_external_uris}" |
98 |
|
99 |
RDEPEND=" |
100 |
@@ -60,7 +61,7 @@ RDEPEND=" |
101 |
dev-db/sqlite |
102 |
dev-libs/double-conversion |
103 |
dev-libs/icu |
104 |
- ~dev-libs/jsoncpp-1.9.1 |
105 |
+ >=dev-libs/jsoncpp-1.9.2 |
106 |
dev-libs/libpcre |
107 |
dev-libs/nsync |
108 |
dev-libs/openssl:0= |
109 |
@@ -127,11 +128,6 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
110 |
|
111 |
S="${WORKDIR}/${MY_P}" |
112 |
|
113 |
-PATCHES=( |
114 |
- "${FILESDIR}/tensorflow-1.15.0_rc0-0001-WORKSPACE-add-rules-docker-http_archive-bazel-toolch.patch" |
115 |
- "${FILESDIR}/tensorflow-2.1.0-external_libs.patch" |
116 |
- "${FILESDIR}/tensorflow-2.1.0-python3.8-pywrap_tensor.patch" |
117 |
-) |
118 |
DOCS=( AUTHORS CONTRIBUTING.md ISSUE_TEMPLATE.md README.md RELEASE.md ) |
119 |
CHECKREQS_MEMORY="5G" |
120 |
CHECKREQS_DISK_BUILD="10G" |
121 |
@@ -166,6 +162,7 @@ pkg_setup() { |
122 |
src_unpack() { |
123 |
# Only unpack the main distfile |
124 |
unpack "${P}.tar.gz" |
125 |
+ unpack tensorflow-patches-${PVR}.tar.bz2 |
126 |
bazel_load_distfiles "${bazel_external_uris}" |
127 |
} |
128 |
|
129 |
@@ -175,9 +172,7 @@ src_prepare() { |
130 |
append-flags $(get-cpu-flags) |
131 |
bazel_setup_bazelrc |
132 |
|
133 |
- if ver_test "$(cuda_toolkit_version)" -ge "10.2"; then |
134 |
- eapply "${FILESDIR}/tensorflow-2.1.0-cuda_10.2_support_bin2c.patch" |
135 |
- fi |
136 |
+ eapply "${WORKDIR}"/patches/*.patch |
137 |
|
138 |
default |
139 |
use python && python_copy_sources |
140 |
@@ -262,6 +257,7 @@ src_configure() { |
141 |
pasta |
142 |
pcre |
143 |
png |
144 |
+ pybind11 |
145 |
six_archive |
146 |
snappy |
147 |
swig |