[arch-commits] Commit in tensorflow/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at gemini.archlinux.org
Sun Dec 5 02:41:50 UTC 2021
Date: Sunday, December 5, 2021 @ 02:41:49
Author: svenstaro
Revision: 1065109
upgpkg: tensorflow 2.7.0-4: python 3.10 rebuild
Modified:
tensorflow/trunk/PKGBUILD
----------+
PKGBUILD | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-05 00:50:53 UTC (rev 1065108)
+++ PKGBUILD 2021-12-05 02:41:49 UTC (rev 1065109)
@@ -7,7 +7,7 @@
pkgname=(tensorflow tensorflow-opt tensorflow-cuda tensorflow-opt-cuda python-tensorflow python-tensorflow-opt python-tensorflow-cuda python-tensorflow-opt-cuda)
pkgver=2.7.0
_pkgver=2.7.0
-pkgrel=3
+pkgrel=4
pkgdesc="Library for computation using data flow graphs for scalable machine learning"
url="https://www.tensorflow.org/"
license=('APACHE')
@@ -19,8 +19,10 @@
'cython')
optdepends=('tensorboard: Tensorflow visualization toolkit')
source=("$pkgname-$pkgver.tar.gz::https://github.com/tensorflow/tensorflow/archive/v${_pkgver}.tar.gz"
+ $pkgname-python310-protobuf.patch::https://github.com/tensorflow/tensorflow/commit/14966ee409b8.patch
fix-c++17-compat.patch)
sha512sums=('f1e892583c7b3a73d4d39ec65dc135a5b02c789b357d57414ad2b6d05ad9fbfc8ef81918ba6410e314abd6928b76f764e6ef64c0b0c84b58b50796634be03f39'
+ '463a839c95a6b0f844cc7aa93bcbaa3294e951e47e965be32fc030124bf48ef3153a7c9ecc166abd4300d1e2ef2e164afd11920c8d30db11cc351ce6507e8b0f'
'f682368bb47b2b022a51aa77345dfa30f3b0d7911c56515d428b8326ee3751242f375f4e715a37bb723ef20a86916dad9871c3c81b1b58da85e1ca202bc4901e')
# consolidate common dependencies to prevent mishaps
@@ -55,6 +57,9 @@
# Allow any bazel version
echo "*" > tensorflow-${_pkgver}/.bazelversion
+ # https://github.com/tensorflow/tensorflow/issues/51776
+ patch -Np1 -d tensorflow-${_pkgver} <${pkgname}-python310-protobuf.patch
+
# Get rid of hardcoded versions. Not like we ever cared about what upstream
# thinks about which versions should be used anyway. ;) (FS#68772)
sed -i -E "s/'([0-9a-z_-]+) .= [0-9].+[0-9]'/'\1'/" tensorflow-${_pkgver}/tensorflow/tools/pip_package/setup.py
More information about the arch-commits
mailing list