Date: Wednesday, April 20, 2022 @ 13:43:48 Author: kgizdov Revision: 1187135
archrelease: copy trunk to community-x86_64 Added: tensorboard/repos/community-x86_64/PKGBUILD (from rev 1187134, tensorboard/trunk/PKGBUILD) tensorboard/repos/community-x86_64/bazel.patch (from rev 1187134, tensorboard/trunk/bazel.patch) tensorboard/repos/community-x86_64/oauthlib-version.patch (from rev 1187134, tensorboard/trunk/oauthlib-version.patch) Deleted: tensorboard/repos/community-x86_64/PKGBUILD ------------------------+ PKGBUILD | 124 +++++++++++++++++++++++++---------------------- bazel.patch | 31 +++++++++++ oauthlib-version.patch | 12 ++++ 3 files changed, 111 insertions(+), 56 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-04-20 13:43:39 UTC (rev 1187134) +++ PKGBUILD 2022-04-20 13:43:48 UTC (rev 1187135) @@ -1,56 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> -# Contributor: Konstantin Gizdov <arch at kge dot pw> - -pkgname=tensorboard -pkgver=2.8.0 -pkgrel=1 -pkgdesc="TensorFlow's Visualization Toolkit" -url='https://github.com/tensorflow/tensorboard' -arch=('x86_64') -license=('APACHE') -depends=('python' 'python-werkzeug' 'python-numpy' 'python-bleach' 'python-wheel' 'python-markdown' - 'python-html5lib' 'python-protobuf' 'python-grpcio' 'python-google-auth-oauthlib' - 'python-tensorboard_plugin_wit' 'absl-py') -makedepends=('bazel' 'python-setuptools' 'tree' 'rust' 'python-pip') -optdepends=('python-tensorflow: advanced features for TensorBoard') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz") -options=('!lto') -sha512sums=('9bb53d4ce2e4735bf01e135e382ff5bcf55d41b7e8bd81061096b6a2010ac48793288eb9da9d2ee3c5ce7cd0532cbcaff72d4c0905d3ebee1c5a42fd3851dff7') - -build() { - cd "$pkgname-$pkgver" - - PYTHONWARNINGS=ignore bazel build //tensorboard - bazel build //tensorboard/pip_package:build_pip_package - - cd tensorboard/data/server - cargo build --release - python pip_package/build.py --server-binary target/release/rustboard --out-dir /tmp - cd "$srcdir/$pkgname-$pkgver" - - mkdir pypackage - cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/external pypackage - cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/tensorboard pypackage - cp tensorboard/pip_package/{README.rst,MANIFEST.in,setup.py,requirements.txt} pypackage - cp README.md pypackage - cd pypackage - python setup.py build -} - -package() { - cd "$pkgname-$pkgver" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - pip install --ignore-installed --root "$pkgdir" /tmp/*.whl - - cd pypackage - python setup.py install --root="$pkgdir" --optimize=1 - - rm -r "$pkgdir"/usr/lib/python3.10/site-packages/external/ - - _requires="$pkgdir"/usr/lib/python3.10/site-packages/tensorboard-${pkgver}-py3.10.egg-info/requires.txt - sed -i 's/tensorboard-data-server.*/tensorboard-data-server/' ${_requires} -} - -# vim:set ts=2 sw=2 et: Copied: tensorboard/repos/community-x86_64/PKGBUILD (from rev 1187134, tensorboard/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-04-20 13:43:48 UTC (rev 1187135) @@ -0,0 +1,68 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +# Contributor: Konstantin Gizdov <arch at kge dot pw> + +pkgname=tensorboard +pkgver=2.8.0 +pkgrel=2 +pkgdesc="TensorFlow's Visualization Toolkit" +url='https://github.com/tensorflow/tensorboard' +arch=('x86_64') +license=('APACHE') +depends=('python' 'python-werkzeug' 'python-numpy' 'python-bleach' 'python-wheel' 'python-markdown' + 'python-html5lib' 'python-protobuf' 'python-grpcio' 'python-google-auth-oauthlib' + 'python-tensorboard_plugin_wit' 'absl-py') +makedepends=('bazel' 'python-setuptools' 'tree' 'rust' 'python-pip') +optdepends=('python-tensorflow: advanced features for TensorBoard') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz" + oauthlib-version.patch + bazel.patch) +options=('!lto') +sha512sums=('9bb53d4ce2e4735bf01e135e382ff5bcf55d41b7e8bd81061096b6a2010ac48793288eb9da9d2ee3c5ce7cd0532cbcaff72d4c0905d3ebee1c5a42fd3851dff7' + 'c85bf0c6e67a19bce0af3ad2dd65851991ba15a6bb7f96433650d5a2725706e015a34166656cfb76874d2498067e6c56bdabb07d114fd9299436f68ebdf50ec3' + 'b85a33ea074c1a6022fd9c71a0d2477953400c49a1ddbad149ed356061a70f5c60b26b65dae272d1f88c8f6b22b6a12fd1a9a32322876b38d173201f87ab6846') + +prepare() { + cd "$pkgname-$pkgver" + # FS#74460 + patch -Np1 -i "${srcdir}"/oauthlib-version.patch + # fix build + patch -Np1 -i "${srcdir}"/bazel.patch +} + +build() { + cd "$pkgname-$pkgver" + + PYTHONWARNINGS=ignore bazel build //tensorboard + bazel build //tensorboard/pip_package:build_pip_package + + cd tensorboard/data/server + cargo build --release + python pip_package/build.py --server-binary target/release/rustboard --out-dir /tmp + cd "$srcdir/$pkgname-$pkgver" + + mkdir pypackage + cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/external pypackage + cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/tensorboard pypackage + cp tensorboard/pip_package/{README.rst,MANIFEST.in,setup.py,requirements.txt} pypackage + cp README.md pypackage + cd pypackage + python setup.py build +} + +package() { + cd "$pkgname-$pkgver" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + pip install --ignore-installed --root "$pkgdir" /tmp/*.whl + + cd pypackage + python setup.py install --root="$pkgdir" --optimize=1 + + rm -r "$pkgdir"/usr/lib/python3.10/site-packages/external/ + + _requires="$pkgdir"/usr/lib/python3.10/site-packages/tensorboard-${pkgver}-py3.10.egg-info/requires.txt + sed -i 's/tensorboard-data-server.*/tensorboard-data-server/' ${_requires} +} + +# vim:set ts=2 sw=2 et: Copied: tensorboard/repos/community-x86_64/bazel.patch (from rev 1187134, tensorboard/trunk/bazel.patch) =================================================================== --- bazel.patch (rev 0) +++ bazel.patch 2022-04-20 13:43:48 UTC (rev 1187135) @@ -0,0 +1,31 @@ +diff --color -aur tensorboard-2.8.0-old/WORKSPACE tensorboard-2.8.0-new/WORKSPACE +--- tensorboard-2.8.0-old/WORKSPACE 2022-01-20 22:45:42.000000000 +0200 ++++ tensorboard-2.8.0-new/WORKSPACE 2022-04-20 16:09:22.681666037 +0300 +@@ -3,6 +3,14 @@ + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + + http_archive( ++ name = "build_bazel_rules_apple", ++ sha256 = "0052d452af7742c8f3a4e0929763388a66403de363775db7e90adecb2ba4944b", ++ urls = [ ++ "https://github.com/bazelbuild/rules_apple/releases/download/0.31.3/rules_apple.0.31.3.tar.gz", ++ ], ++) ++ ++http_archive( + name = "io_bazel_rules_webtesting", + sha256 = "9bb461d5ef08e850025480bab185fd269242d4e533bca75bfb748001ceb343c3", + urls = [ +@@ -39,10 +47,9 @@ + + http_archive( + name = "build_bazel_rules_nodejs", +- sha256 = "1134ec9b7baee008f1d54f0483049a97e53a57cd3913ec9d6db625549c98395a", ++ sha256 = "e79c08a488cc5ac40981987d862c7320cee8741122a2649e9b08e850b6f20442", + urls = [ +- "http://mirror.tensorflow.org/github.com/bazelbuild/rules_nodejs/releases/download/3.4.0/rules_nodejs-3.4.0.tar.gz", +- "https://github.com/bazelbuild/rules_nodejs/releases/download/3.4.0/rules_nodejs-3.4.0.tar.gz", ++ "https://github.com/bazelbuild/rules_nodejs/releases/download/3.8.0/rules_nodejs-3.8.0.tar.gz" + ], + ) + Copied: tensorboard/repos/community-x86_64/oauthlib-version.patch (from rev 1187134, tensorboard/trunk/oauthlib-version.patch) =================================================================== --- oauthlib-version.patch (rev 0) +++ oauthlib-version.patch 2022-04-20 13:43:48 UTC (rev 1187135) @@ -0,0 +1,12 @@ +diff --color -aur tensorboard-2.8.0-old/tensorboard/pip_package/requirements.txt tensorboard-2.8.0-new/tensorboard/pip_package/requirements.txt +--- tensorboard-2.8.0-old/tensorboard/pip_package/requirements.txt 2022-01-20 22:45:42.000000000 +0200 ++++ tensorboard-2.8.0-new/tensorboard/pip_package/requirements.txt 2022-04-20 15:24:05.125066973 +0300 +@@ -21,7 +21,7 @@ + # Until this issue is closed + # https://github.com/googleapis/google-cloud-python/issues/10566 + google-auth >= 1.6.3, < 3 +-google-auth-oauthlib >= 0.4.1, < 0.5 ++google-auth-oauthlib >= 0.4.1 + markdown >= 2.6.8 + numpy >= 1.12.0 + protobuf >= 3.6.0