update tensorboard for bazel build

This commit is contained in:
desert-sailor 2023-05-12 09:22:24 +08:00
parent 82fa4ddc51
commit 26e1b3d59c
10 changed files with 387 additions and 4 deletions

View File

@ -0,0 +1,25 @@
From a98b915f607ffa2ac5a3913dc91a1da2cccf4876 Mon Sep 17 00:00:00 2001
From: desert-sailor <dxwangk@isoftstone.com>
Date: Sat, 6 May 2023 16:35:45 +0800
Subject: [PATCH] Bumps google-auth-oauthlib dependency restriction
---
tensorboard/pip_package/requirements.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tensorboard/pip_package/requirements.txt b/tensorboard/pip_package/requirements.txt
index e782cef..665da8a 100644
--- a/tensorboard/pip_package/requirements.txt
+++ b/tensorboard/pip_package/requirements.txt
@@ -21,7 +21,7 @@ grpcio >= 1.24.3
# 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.5, < 1.1
markdown >= 2.6.8
numpy >= 1.12.0
# Protobuf 4.0 is incompatible with TF. Force < 3.20 until they unblock upgrade.
--
2.33.0

BIN
2.10.1.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,304 @@
From f4b841f228f65fb3a551dc17c650d24c12e5e4d0 Mon Sep 17 00:00:00 2001
From: desert-sailor <dxwangk@isoftstone.com>
Date: Thu, 11 May 2023 01:20:49 +0800
Subject: [PATCH] adapt external for aarch64
---
.../internal/node/_node_bin/node | 4 +--
.../_/sass/node_modules/.yarn-integrity | 4 +--
build_bazel_rules_sass_deps/_yarn.sh | 2 +-
esbuild_npm/_npm.sh | 2 +-
go_sdk/BUILD.bazel | 8 ++---
go_sdk/src/cmd/internal/objabi/zbootstrap.go | 2 +-
local_config_cc/BUILD | 12 +++----
.../builtin_include_directory_paths | 4 +--
local_config_cc_toolchains/BUILD | 4 +--
local_config_platform/constraints.bzl | 2 +-
local_jdk/BUILD.bazel | 2 +-
nodejs/BUILD.bazel | 30 +++++++++---------
nodejs/index.bzl | 2 +-
npm/_/node_modules/.yarn-integrity | 4 +--
npm/_yarn.sh | 2 +-
16 files changed, 42 insertions(+), 42 deletions(-)
diff --git a/build_bazel_rules_nodejs/internal/node/_node_bin/node b/build_bazel_rules_nodejs/internal/node/_node_bin/node
index ae1ffe2a1..6520b1d29 100755
--- a/build_bazel_rules_nodejs/internal/node/_node_bin/node
+++ b/build_bazel_rules_nodejs/internal/node/_node_bin/node
@@ -2,7 +2,7 @@
export NP_SUBPROCESS_NODE_DIR="/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/build_bazel_rules_nodejs/internal/node/_node_bin"
export PATH="/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/build_bazel_rules_nodejs/internal/node/_node_bin":$PATH
if [[ ! "${@}" =~ "node_patches.js" ]]; then
- exec /root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_amd64/bin/nodejs/bin/node --preserve-symlinks --require "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/build_bazel_rules_nodejs/internal/node/node_patches.js" "$@"
+ exec /root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_arm64/bin/nodejs/bin/node --preserve-symlinks --require "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/build_bazel_rules_nodejs/internal/node/node_patches.js" "$@"
else
- exec /root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_amd64/bin/nodejs/bin/node --preserve-symlinks "$@"
+ exec /root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_arm64/bin/nodejs/bin/node --preserve-symlinks "$@"
fi
diff --git a/build_bazel_rules_sass_deps/_/sass/node_modules/.yarn-integrity b/build_bazel_rules_sass_deps/_/sass/node_modules/.yarn-integrity
index 911fdd087..10589144d 100644
--- a/build_bazel_rules_sass_deps/_/sass/node_modules/.yarn-integrity
+++ b/build_bazel_rules_sass_deps/_/sass/node_modules/.yarn-integrity
@@ -1,5 +1,5 @@
{
- "systemParams": "linux-x64-72",
+ "systemParams": "linux-arm64-72",
"modulesFolders": [
"node_modules"
],
@@ -36,4 +36,4 @@
},
"files": [],
"artifacts": {}
-}
\ No newline at end of file
+}
diff --git a/build_bazel_rules_sass_deps/_yarn.sh b/build_bazel_rules_sass_deps/_yarn.sh
index cf969c40a..f5fc9ca62 100755
--- a/build_bazel_rules_sass_deps/_yarn.sh
+++ b/build_bazel_rules_sass_deps/_yarn.sh
@@ -4,4 +4,4 @@ set -e
unset YARN_IGNORE_PATH
unset INIT_CWD
unset npm_config_registry
-(cd "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/build_bazel_rules_sass_deps/_/sass"; "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_amd64/bin/yarn" --frozen-lockfile --mutex network)
+(cd "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/build_bazel_rules_sass_deps/_/sass"; "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_arm64/bin/yarn" --frozen-lockfile --mutex network)
diff --git a/esbuild_npm/_npm.sh b/esbuild_npm/_npm.sh
index 79213289d..5c7744458 100755
--- a/esbuild_npm/_npm.sh
+++ b/esbuild_npm/_npm.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# Immediately exit if any command fails.
set -e
-(cd "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/esbuild_npm/_/toolchains/esbuild"; "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_amd64/bin/npm" ci --no-optional --ignore-scripts)
+(cd "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/esbuild_npm/_/toolchains/esbuild"; "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_arm64/bin/npm" ci --no-optional --ignore-scripts)
diff --git a/go_sdk/BUILD.bazel b/go_sdk/BUILD.bazel
index 27ba422bd..94de2d1a0 100644
--- a/go_sdk/BUILD.bazel
+++ b/go_sdk/BUILD.bazel
@@ -8,8 +8,8 @@ package(default_visibility = ["//visibility:public"])
filegroup(
name = "libs",
srcs = glob(
- ["pkg/linux_amd64/**/*.a"],
- exclude = ["pkg/linux_amd64/**/cmd/**"],
+ ["pkg/linux_arm64/**/*.a"],
+ exclude = ["pkg/linux_arm64/**/cmd/**"],
),
)
@@ -31,7 +31,7 @@ filegroup(
go_sdk(
name = "go_sdk",
goos = "linux",
- goarch = "amd64",
+ goarch = "arm64",
root_file = "ROOT",
package_list = ":package_list",
libs = [":libs"],
@@ -57,7 +57,7 @@ package_list(
)
declare_toolchains(
- host = "linux_amd64",
+ host = "linux_arm64",
sdk = ":go_sdk",
builder = ":builder",
)
diff --git a/go_sdk/src/cmd/internal/objabi/zbootstrap.go b/go_sdk/src/cmd/internal/objabi/zbootstrap.go
index e694570bb..5bfe64668 100644
--- a/go_sdk/src/cmd/internal/objabi/zbootstrap.go
+++ b/go_sdk/src/cmd/internal/objabi/zbootstrap.go
@@ -4,7 +4,7 @@ package objabi
import "runtime"
-const defaultGO386 = `sse2`
+const defaultGO386 = `387`
const defaultGOARM = `5`
const defaultGOMIPS = `hardfloat`
const defaultGOMIPS64 = `hardfloat`
diff --git a/local_config_cc/BUILD b/local_config_cc/BUILD
index 426ca0cc0..03e329411 100755
--- a/local_config_cc/BUILD
+++ b/local_config_cc/BUILD
@@ -47,15 +47,15 @@ filegroup(
cc_toolchain_suite(
name = "toolchain",
toolchains = {
- "k8|compiler": ":cc-compiler-k8",
- "k8": ":cc-compiler-k8",
+ "aarch64|compiler": ":cc-compiler-aarch64",
+ "aarch64": ":cc-compiler-aarch64",
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
"armeabi-v7a": ":cc-compiler-armeabi-v7a",
},
)
cc_toolchain(
- name = "cc-compiler-k8",
+ name = "cc-compiler-aarch64",
toolchain_identifier = "local",
toolchain_config = ":local",
all_files = ":compiler_deps",
@@ -72,7 +72,7 @@ cc_toolchain(
cc_toolchain_config(
name = "local",
- cpu = "k8",
+ cpu = "aarch64",
compiler = "compiler",
toolchain_identifier = "local",
host_system_name = "local",
@@ -80,11 +80,11 @@ cc_toolchain_config(
target_libc = "local",
abi_version = "local",
abi_libc_version = "local",
- cxx_builtin_include_directories = ["/usr/lib/gcc/x86_64-linux-gnu/10.3.1/include",
+ cxx_builtin_include_directories = ["/usr/lib/gcc/aarch64-linux-gnu/10.3.1/include",
"/usr/local/include",
"/usr/include",
"/usr/include/c++/10.3.1",
- "/usr/include/c++/10.3.1/x86_64-linux-gnu",
+ "/usr/include/c++/10.3.1/aarch64-linux-gnu",
"/usr/include/c++/10.3.1/backward"],
tool_paths = {"ar": "/usr/bin/ar",
"ld": "/usr/bin/ld",
diff --git a/local_config_cc/builtin_include_directory_paths b/local_config_cc/builtin_include_directory_paths
index 50e25225d..548377077 100755
--- a/local_config_cc/builtin_include_directory_paths
+++ b/local_config_cc/builtin_include_directory_paths
@@ -4,9 +4,9 @@ changes to it will be reflected in the action cache key. When some of these
paths change, Bazel will make sure to rerun the action, even though none of
declared action inputs or the action commandline changes.
-/usr/lib/gcc/x86_64-linux-gnu/10.3.1/include
+/usr/lib/gcc/aarch64-linux-gnu/10.3.1/include
/usr/local/include
/usr/include
/usr/include/c++/10.3.1
-/usr/include/c++/10.3.1/x86_64-linux-gnu
+/usr/include/c++/10.3.1/aarch64-linux-gnu
/usr/include/c++/10.3.1/backward
diff --git a/local_config_cc_toolchains/BUILD b/local_config_cc_toolchains/BUILD
index f9c087553..db5234fb0 100755
--- a/local_config_cc_toolchains/BUILD
+++ b/local_config_cc_toolchains/BUILD
@@ -1,10 +1,10 @@
load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS")
toolchain(
- name = "cc-toolchain-k8",
+ name = "cc-toolchain-aarch64",
exec_compatible_with = HOST_CONSTRAINTS,
target_compatible_with = HOST_CONSTRAINTS,
- toolchain = "@local_config_cc//:cc-compiler-k8",
+ toolchain = "@local_config_cc//:cc-compiler-aarch64",
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
)
diff --git a/local_config_platform/constraints.bzl b/local_config_platform/constraints.bzl
index 6a7d8c3e0..4b29ad72c 100644
--- a/local_config_platform/constraints.bzl
+++ b/local_config_platform/constraints.bzl
@@ -1,6 +1,6 @@
# DO NOT EDIT: automatically generated constraints list for local_config_platform
# Auto-detected host platform constraints.
HOST_CONSTRAINTS = [
- '@platforms//cpu:x86_64',
+ '@platforms//cpu:aarch64',
'@platforms//os:linux',
]
diff --git a/local_jdk/BUILD.bazel b/local_jdk/BUILD.bazel
index 67c59e9ea..40d17ace1 100755
--- a/local_jdk/BUILD.bazel
+++ b/local_jdk/BUILD.bazel
@@ -218,6 +218,6 @@ config_setting(
local_java_runtime(
name = "local_jdk",
runtime_name = "jdk",
- java_home = "/usr/lib/jvm/java-11-openjdk-11.0.18.10-1.oe2303.x86_64",
+ java_home = "/usr/lib/jvm/java-11-openjdk",
version = "11",
)
diff --git a/nodejs/BUILD.bazel b/nodejs/BUILD.bazel
index 3a59c491b..c632e0f44 100755
--- a/nodejs/BUILD.bazel
+++ b/nodejs/BUILD.bazel
@@ -1,21 +1,21 @@
# Generated by nodejs_repo_host_os_alias.bzl
package(default_visibility = ["//visibility:public"])
# aliases for exports_files
-alias(name = "run_npm.sh.template", actual = "@nodejs_linux_amd64//:run_npm.sh.template")
-alias(name = "run_npm.bat.template", actual = "@nodejs_linux_amd64//:run_npm.bat.template")
-alias(name = "bin/node_repo_args.sh", actual = "@nodejs_linux_amd64//:bin/node_repo_args.sh")
+alias(name = "run_npm.sh.template", actual = "@nodejs_linux_arm64//:run_npm.sh.template")
+alias(name = "run_npm.bat.template", actual = "@nodejs_linux_arm64//:run_npm.bat.template")
+alias(name = "bin/node_repo_args.sh", actual = "@nodejs_linux_arm64//:bin/node_repo_args.sh")
# aliases for other aliases
-alias(name = "node_bin", actual = "@nodejs_linux_amd64//:node_bin")
-alias(name = "npm_bin", actual = "@nodejs_linux_amd64//:npm_bin")
-alias(name = "npx_bin", actual = "@nodejs_linux_amd64//:npx_bin")
-alias(name = "yarn_bin", actual = "@nodejs_linux_amd64//:yarn_bin")
-alias(name = "node", actual = "@nodejs_linux_amd64//:node")
-alias(name = "npm", actual = "@nodejs_linux_amd64//:npm")
-alias(name = "yarn", actual = "@nodejs_linux_amd64//:yarn")
-alias(name = "npm_node_repositories", actual = "@nodejs_linux_amd64//:npm_node_repositories")
-alias(name = "yarn_node_repositories", actual = "@nodejs_linux_amd64//:yarn_node_repositories")
-alias(name = "node_files", actual = "@nodejs_linux_amd64//:node_files")
-alias(name = "yarn_files", actual = "@nodejs_linux_amd64//:yarn_files")
-alias(name = "npm_files", actual = "@nodejs_linux_amd64//:npm_files")
+alias(name = "node_bin", actual = "@nodejs_linux_arm64//:node_bin")
+alias(name = "npm_bin", actual = "@nodejs_linux_arm64//:npm_bin")
+alias(name = "npx_bin", actual = "@nodejs_linux_arm64//:npx_bin")
+alias(name = "yarn_bin", actual = "@nodejs_linux_arm64//:yarn_bin")
+alias(name = "node", actual = "@nodejs_linux_arm64//:node")
+alias(name = "npm", actual = "@nodejs_linux_arm64//:npm")
+alias(name = "yarn", actual = "@nodejs_linux_arm64//:yarn")
+alias(name = "npm_node_repositories", actual = "@nodejs_linux_arm64//:npm_node_repositories")
+alias(name = "yarn_node_repositories", actual = "@nodejs_linux_arm64//:yarn_node_repositories")
+alias(name = "node_files", actual = "@nodejs_linux_arm64//:node_files")
+alias(name = "yarn_files", actual = "@nodejs_linux_arm64//:yarn_files")
+alias(name = "npm_files", actual = "@nodejs_linux_arm64//:npm_files")
exports_files(["index.bzl"])
diff --git a/nodejs/index.bzl b/nodejs/index.bzl
index a89a803dc..91c3e1e15 100755
--- a/nodejs/index.bzl
+++ b/nodejs/index.bzl
@@ -1,2 +1,2 @@
# Generated by nodejs_repo_host_os_alias.bzl
-host_platform="linux_amd64"
+host_platform="linux_arm64"
diff --git a/npm/_/node_modules/.yarn-integrity b/npm/_/node_modules/.yarn-integrity
index 1756c0195..ebd8d9486 100644
--- a/npm/_/node_modules/.yarn-integrity
+++ b/npm/_/node_modules/.yarn-integrity
@@ -1,5 +1,5 @@
{
- "systemParams": "linux-x64-72",
+ "systemParams": "linux-arm64-72",
"modulesFolders": [
"node_modules"
],
@@ -887,4 +887,4 @@
},
"files": [],
"artifacts": {}
-}
\ No newline at end of file
+}
diff --git a/npm/_yarn.sh b/npm/_yarn.sh
index 01ad3ec00..39360e872 100755
--- a/npm/_yarn.sh
+++ b/npm/_yarn.sh
@@ -4,4 +4,4 @@ set -e
unset YARN_IGNORE_PATH
unset INIT_CWD
unset npm_config_registry
-(cd "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/npm/_"; "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_amd64/bin/yarn" --frozen-lockfile --mutex network)
+(cd "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/npm/_"; "/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/external/nodejs_linux_arm64/bin/yarn" --frozen-lockfile --mutex network)
--
2.39.1

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,19 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-tensorboard Name: python-tensorboard
Version: 2.10.1 Version: 2.10.1
Release: 1 Release: 2
Summary: TensorBoard lets you watch Tensors Flow Summary: TensorBoard lets you watch Tensors Flow
License: Apache 2.0 License: Apache 2.0
URL: https://github.com/tensorflow/tensorboard URL: https://github.com/tensorflow/tensorboard
Source0: https://files.pythonhosted.org/packages/80/49/a5ec29886ef823718c8ae54ed0b3ad7e19066b5bf21cec5038427e6a04c4/tensorboard-2.10.1-py3-none-any.whl Source0: https://github.com/tensorflow/tensorboard/archive/refs/tags/%{version}.tar.gz
Source1: https://files.pythonhosted.org/packages/74/69/5747a957f95e2e1d252ca41476ae40ce79d70d38151d2e494feb7722860c/tensorboard_data_server-0.6.1-py3-none-any.whl Source1: https://files.pythonhosted.org/packages/74/69/5747a957f95e2e1d252ca41476ae40ce79d70d38151d2e494feb7722860c/tensorboard_data_server-0.6.1-py3-none-any.whl
BuildArch: noarch Source2: bazel-tensorboard-external.tar.gzaa
Source3: bazel-tensorboard-external.tar.gzab
Source4: bazel-tensorboard-external.tar.gzac
Source5: adapt-external-for-aarch64.patch
Source6: adds-external-for-aarch64.tar.gzaa
Source7: adds-external-for-aarch64.tar.gzab
Patch0: 0001-Bumps-google-auth-oauthlib-dependency-restriction.patch
Requires: python3-absl-py Requires: python3-absl-py
Requires: python3-grpcio Requires: python3-grpcio
@ -36,6 +42,12 @@ Provides: python-tensorboard
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: python3-packaging
BuildRequires: python3-numpy
BuildRequires: python3-absl-py
BuildRequires: python3-virtualenv
BuildRequires: bazel == 5.1.1 gcc gcc-c++
%description -n python3-tensorboard %description -n python3-tensorboard
TensorBoard is a suite of web applications for inspecting and understanding TensorBoard is a suite of web applications for inspecting and understanding
your TensorFlow runs and graphs. your TensorFlow runs and graphs.
@ -49,6 +61,7 @@ Provides: python3-tensorboard-data-server
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-pip BuildRequires: python3-pip
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-wheel
%description -n python3-tensorboard-data-server %description -n python3-tensorboard-data-server
Fast data loading for TensorBoard. Fast data loading for TensorBoard.
@ -63,11 +76,49 @@ Releases prior to 1.6.0 were published under the ``tensorflow-tensorboard`` name
and may be found at https://pypi.python.org/pypi/tensorflow-tensorboard. and may be found at https://pypi.python.org/pypi/tensorflow-tensorboard.
%prep %prep
%autosetup -p1 -n tensorboard-%{version} -b 0
extdir=$(bazel --output_user_root=`pwd`/../output_user_root info output_base)
mkdir -p ${extdir}
cat %{SOURCE2} %{SOURCE3} %{SOURCE4} > bazel-local-cache.tar.gz
tar xzvf bazel-local-cache.tar.gz -C ${extdir}
%ifarch aarch64
patch -d ${extdir}/external -p1 < %{SOURCE5}
cat %{SOURCE6} %{SOURCE7} > adds-aarch64-cache.tar.gz
tar xzvf adds-aarch64-cache.tar.gz -C ${extdir}
%endif
ln -sfn $(find ${extdir}/../install -name embedded_tools) ${extdir}/external/bazel_tools
ln -sfn $(find ${extdir}/../install -maxdepth 2 -name platforms) ${extdir}/external/platforms
ln -sf ${extdir}/external/io_bazel_rules_go/go/private/compat/v25.bzl ${extdir}/external/io_bazel_rules_go_compat/compat.bzl
ln -sf ${extdir}/external/bazel_tools/tools/cpp/armeabi_cc_toolchain_config.bzl ${extdir}/external/local_config_cc/armeabi_cc_toolchain_config.bzl
ln -sf ${extdir}/external/bazel_tools/tools/cpp/unix_cc_toolchain_config.bzl ${extdir}/external/local_config_cc/cc_toolchain_config.bzl
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/bin ${extdir}/external/local_jdk/bin
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/conf ${extdir}/external/local_jdk/conf
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/include ${extdir}/external/local_jdk/include
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/legal ${extdir}/external/local_jdk/legal
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/lib ${extdir}/external/local_jdk/lib
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/release ${extdir}/external/local_jdk/release
ln -sfn $(find /usr/lib/jvm -maxdepth 1 -name java-11-openjdk)/tapset ${extdir}/external/local_jdk/tapset
ln -sf ${extdir}/external/nodejs_linux_amd64/node_info ${extdir}/external/build_bazel_rules_sass_deps/_node_info
ln -sf ${extdir}/external/nodejs_linux_amd64/node_info ${extdir}/external/esbuild_npm/_node_info
ln -sf ${extdir}/external/nodejs_linux_amd64/node_info ${extdir}/external/npm/_node_info
ln -sfn ${extdir}/external/build_bazel_rules_sass_deps/_/sass/node_modules ${extdir}/external/build_bazel_rules_sass_deps/node_modules
ln -sfn ${extdir}/external/esbuild_npm/_/toolchains/esbuild/node_modules ${extdir}/external/esbuild_npm/node_modules
ln -sfn ${extdir}/external/npm/_/node_modules ${extdir}/external/npm/node_modules
ln -sf ${extdir}/external/nodejs_linux_amd64/yarn_info ${extdir}/external/build_bazel_rules_sass_deps/_yarn_info
ln -sf ${extdir}/external/nodejs_linux_amd64/yarn_info ${extdir}/external/esbuild_npm/_yarn_info
ln -sf ${extdir}/external/nodejs_linux_amd64/yarn_info ${extdir}/external/npm/_yarn_info
ln -sf ${extdir}/external/io_bazel_rules_sass/sass/yarn.lock ${extdir}/external/build_bazel_rules_sass_deps/_/sass/yarn.lock
ln -sf ${_builddir}/tensorboard-2.10.1/yarn.lock ${extdir}/external/npm/_/yarn.lock
ln -sf ${extdir}/external/build_bazel_rules_nodejs/toolchains/esbuild/package-lock.json ${extdir}/external/esbuild_npm/_/toolchains/esbuild/package-lock.json
oldstr='/root/.cache/bazel/_bazel_root/4351bb8fec5747e15a0a9b257c950736/'
sed -i s#${oldstr}#${extdir}#g `grep ${oldstr} -rl ${extdir}`
grep ${extdir} -rl ${extdir}
%build %build
mkdir dist mkdir dist
cp %{SOURCE0} dist
cp %{SOURCE1} dist cp %{SOURCE1} dist
# bazel --output_user_root=`pwd`/../output_user_root build //tensorboard/pip_package:build_pip_package --verbose_failures --experimental_local_memory_estimate --jobs=16
bazel --output_user_root=`pwd`/../output_user_root run //tensorboard/pip_package:extract_pip_package -- `pwd`/dist
%install %install
%py3_install_wheel * %py3_install_wheel *
@ -97,6 +148,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Sat May 06 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.10.1-2
- change depends google-auth
* Thu Nov 10 2022 Bin Hu <hubin73@huawei.com> - 2.10.1-1 * Thu Nov 10 2022 Bin Hu <hubin73@huawei.com> - 2.10.1-1
- upgrade to version 2.10.1 - upgrade to version 2.10.1