[arch-commits] Commit in tensorflow/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Jun 19 03:54:53 UTC 2019


    Date: Wednesday, June 19, 2019 @ 03:54:52
  Author: svenstaro
Revision: 482292

upgpkg: tensorflow 1.14.0rc1-2

Fix wrong stuff being packaged resulting in lack of cuda and optimiziations

Modified:
  tensorflow/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-06-19 03:36:04 UTC (rev 482291)
+++ PKGBUILD	2019-06-19 03:54:52 UTC (rev 482292)
@@ -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=1.14.0rc1
 _pkgver=1.14.0-rc1
-pkgrel=1
+pkgrel=2
 pkgdesc="Library for computation using data flow graphs for scalable machine learning"
 url="https://www.tensorflow.org/"
 license=('APACHE')
@@ -118,7 +118,7 @@
       //tensorflow:libtensorflow_cc.so \
       //tensorflow:install_headers \
       //tensorflow/tools/pip_package:build_pip_package
-  bazel-bin/tensorflow/tools/pip_package/build_pip_package "${srcdir}"/tmpcudaopt
+  bazel-bin/tensorflow/tools/pip_package/build_pip_package "${srcdir}"/tmpoptcuda
 }
 
 _package() {
@@ -126,7 +126,7 @@
   install -d "${pkgdir}"/usr/include/tensorflow
   cp -r bazel-genfiles/tensorflow/include/* "${pkgdir}"/usr/include/tensorflow/
   # install python-version to get all extra headers
-  WHEEL_PACKAGE=$(find "${srcdir}"/tmp -name "tensor*.whl")
+  WHEEL_PACKAGE=$(find "${srcdir}"/$1 -name "tensor*.whl")
   pip install --ignore-installed --upgrade --root "${pkgdir}"/ $WHEEL_PACKAGE --no-dependencies
   # move extra headers to correct location
   find "${pkgdir}/usr/lib/python$(get_pyver)"/site-packages/tensorflow/include -maxdepth 1 -mindepth 1 -type d -print0 | while read -rd $'\0' _folder; do
@@ -149,7 +149,7 @@
 }
 
 _python_package() {
-  WHEEL_PACKAGE=$(find "${srcdir}"/tmp -name "tensor*.whl")
+  WHEEL_PACKAGE=$(find "${srcdir}"/$1 -name "tensor*.whl")
   pip install --ignore-installed --upgrade --root "${pkgdir}"/ $WHEEL_PACKAGE --no-dependencies
 
   # create symlinks to headers
@@ -169,7 +169,7 @@
 
 package_tensorflow() {
   cd "${srcdir}"/tensorflow-${_pkgver}
-  _package
+  _package tmp
 }
 
 package_tensorflow-opt() {
@@ -178,7 +178,7 @@
   provides=(tensorflow)
 
   cd "${srcdir}"/tensorflow-${_pkgver}-opt
-  _package
+  _package tmpopt
 }
 
 package_tensorflow-cuda() {
@@ -188,7 +188,7 @@
   provides=(tensorflow)
 
   cd "${srcdir}"/tensorflow-${_pkgver}-cuda
-  _package
+  _package tmpcuda
 }
 
 package_tensorflow-opt-cuda() {
@@ -198,7 +198,7 @@
   provides=(tensorflow tensorflow-cuda)
 
   cd "${srcdir}"/tensorflow-${_pkgver}-opt-cuda
-  _package
+  _package tmpoptcuda
 }
 
 package_python-tensorflow() {
@@ -205,7 +205,7 @@
   depends+=(tensorflow python-termcolor python-astor python-gast python-numpy python-protobuf absl-py python-h5py python-keras-applications python-keras-preprocessing python-tensorflow-estimator)
 
   cd "${srcdir}"/tensorflow-${_pkgver}
-  _python_package
+  _python_package tmp
 }
 
 package_python-tensorflow-opt() {
@@ -215,7 +215,7 @@
   provides=(python-tensorflow)
 
   cd "${srcdir}"/tensorflow-${_pkgver}-opt
-  _python_package
+  _python_package tmpopt
 }
 
 package_python-tensorflow-cuda() {
@@ -225,7 +225,7 @@
   provides=(python-tensorflow)
 
   cd "${srcdir}"/tensorflow-${_pkgver}-cuda
-  _python_package
+  _python_package tmpcuda
 }
 
 package_python-tensorflow-opt-cuda() {
@@ -235,7 +235,7 @@
   provides=(python-tensorflow python-tensorflow-cuda)
 
   cd "${srcdir}"/tensorflow-${_pkgver}-opt-cuda
-  _python_package
+  _python_package tmpoptcuda
 }
 
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list