Lukas Fleischer pushed to branch main at Arch Linux / Packaging / Packages / 
tensorflow


Commits:
b0d36874 by Lukas Fleischer at 2024-04-18T12:56:02+07:00
upgpkg: 2.16.1-1: update to 2.16.1

Remove --config=mkl from $BAZEL_ARGS. As of TensorFlow 5.12, this build
option is no longer supported/required; for details, see
https://github.com/tensorflow/tensorflow/issues/63360.

Remove a patch that's no longer needed.

Signed-off-by: Lukas Fleischer <lfleisc...@archlinux.org>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
# Your branch is up to date with 'origin/main'.
#
# Changes to be committed:
#       deleted:    fix-c++17-compat.patch
#
# Changes not staged for commit:
#       modified:   PKGBUILD
#
# Untracked files:
#       bazel_nojdk-6.1.0-linux-x86_64
#

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- − fix-c++17-compat.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = tensorflow
        pkgdesc = Library for computation using data flow graphs for scalable 
machine learning
-       pkgver = 2.15.0
-       pkgrel = 6
+       pkgver = 2.16.1
+       pkgrel = 1
        url = https://www.tensorflow.org/
        arch = x86_64
        license = APACHE
@@ -35,12 +35,10 @@ pkgbase = tensorflow
        depends = intel-oneapi-openmp
        depends = intel-oneapi-compiler-shared-runtime-libs
        optdepends = tensorboard: Tensorflow visualization toolkit
-       source = 
tensorflow-2.15.0.tar.gz::https://github.com/tensorflow/tensorflow/archive/v2.15.0.tar.gz
+       source = 
tensorflow-2.16.1.tar.gz::https://github.com/tensorflow/tensorflow/archive/v2.16.1.tar.gz
        source = 
https://github.com/bazelbuild/bazel/releases/download/6.1.0/bazel_nojdk-6.1.0-linux-x86_64
-       source = fix-c++17-compat.patch
-       sha512sums = 
51976c7255ffbdb98fe67a28f6ae1c3b9a073e49fe6b44187a53d99654e4af753de53bfa7229cdd1997ac71e8ddecbc15e4759d46c6d24b55eb84c5d31523dfe
+       sha512sums = 
6f02261b3e72b476a3adb8e47efe2bee76b8564315b853e3b16f443193204d363b5fb22ac5c388cebd6a1f326f0daf00586e0ccbf6a305d761a9266534fde13f
        sha512sums = 
b71aed83ae1c3f610df77f7c148703fd3e7aa5901794a2b31c6044c71b3f030831d59f7f3641992105117a422655160fc9b509326b31586c6bca378cbff08762
-       sha512sums = 
f682368bb47b2b022a51aa77345dfa30f3b0d7911c56515d428b8326ee3751242f375f4e715a37bb723ef20a86916dad9871c3c81b1b58da85e1ca202bc4901e
 
 pkgname = tensorflow
 


=====================================
PKGBUILD
=====================================
@@ -5,9 +5,9 @@
 
 pkgbase=tensorflow
 pkgname=(tensorflow tensorflow-opt tensorflow-cuda tensorflow-opt-cuda 
python-tensorflow python-tensorflow-opt python-tensorflow-cuda 
python-tensorflow-opt-cuda)
-pkgver=2.15.0
-_pkgver=2.15.0
-pkgrel=6
+pkgver=2.16.1
+_pkgver=2.16.1
+pkgrel=1
 pkgdesc="Library for computation using data flow graphs for scalable machine 
learning"
 url="https://www.tensorflow.org/";
 license=('APACHE')
@@ -19,11 +19,9 @@ makedepends=('bazel' 'python-numpy' 'cuda' 'nvidia-utils' 
'nccl' 'git' 'cudnn' '
              'python-keras-preprocessing' 'cython' 'patchelf' 
'python-requests' 'libxcrypt-compat' 'clang')
 optdepends=('tensorboard: Tensorflow visualization toolkit')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/tensorflow/tensorflow/archive/v${_pkgver}.tar.gz";
-        
https://github.com/bazelbuild/bazel/releases/download/6.1.0/bazel_nojdk-6.1.0-linux-x86_64
-        fix-c++17-compat.patch)
-sha512sums=('51976c7255ffbdb98fe67a28f6ae1c3b9a073e49fe6b44187a53d99654e4af753de53bfa7229cdd1997ac71e8ddecbc15e4759d46c6d24b55eb84c5d31523dfe'
-            
'b71aed83ae1c3f610df77f7c148703fd3e7aa5901794a2b31c6044c71b3f030831d59f7f3641992105117a422655160fc9b509326b31586c6bca378cbff08762'
-            
'f682368bb47b2b022a51aa77345dfa30f3b0d7911c56515d428b8326ee3751242f375f4e715a37bb723ef20a86916dad9871c3c81b1b58da85e1ca202bc4901e')
+        
https://github.com/bazelbuild/bazel/releases/download/6.1.0/bazel_nojdk-6.1.0-linux-x86_64)
+sha512sums=('6f02261b3e72b476a3adb8e47efe2bee76b8564315b853e3b16f443193204d363b5fb22ac5c388cebd6a1f326f0daf00586e0ccbf6a305d761a9266534fde13f'
+            
'b71aed83ae1c3f610df77f7c148703fd3e7aa5901794a2b31c6044c71b3f030831d59f7f3641992105117a422655160fc9b509326b31586c6bca378cbff08762')
 
 # consolidate common dependencies to prevent mishaps
 _common_py_depends=(python-termcolor python-astor python-gast python-numpy 
python-protobuf
@@ -117,7 +115,7 @@ prepare() {
   export PYTHON_BIN_PATH=/usr/bin/python$(get_pyver)
   export USE_DEFAULT_PYTHON_LIB_PATH=1
 
-  export BAZEL_ARGS="--config=mkl -c opt"
+  export BAZEL_ARGS="-c opt"
 }
 
 build() {
@@ -224,9 +222,6 @@ _package() {
   ln -s libtensorflow_framework.so.${pkgver:0:1} 
"${pkgdir}"/usr/lib/libtensorflow_framework.so
   install -Dm644 tensorflow/c/c_api.h 
"${pkgdir}"/usr/include/tensorflow/tensorflow/c/c_api.h
   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-
-  # Fix interoperability of C++14 and C++17. See 
https://bugs.archlinux.org/task/65953
-  patch -Np0 -i "${srcdir}"/fix-c++17-compat.patch -d 
"${pkgdir}"/usr/include/tensorflow/absl/base
 }
 
 _python_package() {


=====================================
fix-c++17-compat.patch deleted
=====================================
@@ -1,11 +0,0 @@
---- config-old.h       2021-06-13 04:22:15.841839739 +0200
-+++ config.h   2021-06-13 04:22:32.308939638 +0200
-@@ -533,7 +533,7 @@
- #ifdef __has_include
- #if __has_include(<string_view>) && defined(__cplusplus) && \
-     __cplusplus >= 201703L
--#define ABSL_HAVE_STD_STRING_VIEW 1
-+// #define ABSL_HAVE_STD_STRING_VIEW 1
- #endif
- #endif
- 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/commit/b0d36874be7b1e865f1cc54779ff2fc2d38fd5c7

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/tensorflow/-/commit/b0d36874be7b1e865f1cc54779ff2fc2d38fd5c7
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to