From c6e69c34fac7ae0a9ced72504bca6f1b390ea62f Mon Sep 17 00:00:00 2001 From: Jincheng Miao Date: Sat, 25 Mar 2023 21:36:34 +0800 Subject: [PATCH] Fix EBS build EBS build use different user than OBS's abuild user. In tensorflow.spec, modify all absolute symlink path by current build username. Signed-off-by: Jincheng Miao --- tensorflow.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tensorflow.spec b/tensorflow.spec index 1a6fcac..5e77d88 100755 --- a/tensorflow.spec +++ b/tensorflow.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: tensorflow Version: 2.10.0 -Release: 3 +Release: 4 Summary: An Open Source Machine Learning Framework for Everyone License: Apache License 2.0 URL: https://www.tensorflow.org/ @@ -47,6 +47,7 @@ patch -d ${extdir} -p0 < %{SOURCE4} %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 +for f in $(find $extdir -lname "/home/abuild/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=${HOME}/rpmbuild${OLDLINK#*rpmbuild}; ln -s $NEWLINK $f-new; mv -T $f-new $f; done rm -rf ${extdir}/external/local_config* %build @@ -64,6 +65,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --host_copt=-Wno-string %{_bindir}/* %changelog +* Thu Sat 25 2023 Jincheng Miao - 2.10.0-4 +- Fix EBS build + * Thu Mar 23 2023 Jincheng Miao - 2.10.0-3 - Fix build for openEuler 23.03 -- Gitee