From af2105137c410ed1b524bab4fb21493a0d52112a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A4=E7=8B=AC=E7=9A=84=E5=A4=A7=E6=B2=B3=E9=A9=AC?= =?UTF-8?q?=E5=9C=A8=E8=BA=BA=E5=B9=B3?= Date: Wed, 24 Apr 2024 09:44:41 +0000 Subject: [PATCH 1/2] Replace x86_64-openEuler-linux with dynamic gcc target using 'gcc -dumpmachine' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孤独的大河马在躺平 --- tensorflow.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tensorflow.spec b/tensorflow.spec index 05520ab..d70cbea 100644 --- a/tensorflow.spec +++ b/tensorflow.spec @@ -47,6 +47,9 @@ tar xf external.tar.bz2 -C ${extdir} %ifarch aarch64 patch -d ${extdir} -p0 < %{SOURCE4} %endif +gcc_machine=$(gcc -dumpmachine) +sed -i -e "s/x86_64-openEuler-linux/${gcc_machine}/g" $extdir/external/local_config_cc/BUILD +sed -i -e "s/x86_64-openEuler-linux/${gcc_machine}/g" $extdir/external/local_config_cc/builtin_include_directory_paths ln -sfn ${instdir}/embedded_tools ${extdir}/external/bazel_tools for f in $(find $extdir/external -lname "*/external/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=${extdir}/external/${OLDLINK#*external}; ln -sf $NEWLINK $f-newlink; mv -Tf $f-newlink $f; done for f in $(find $extdir/external -lname "*/rpmbuild/*"); do OLDLINK=$(readlink $f); echo $OLDLINK; NEWLINK=${HOME}/rpmbuild/${OLDLINK#*rpmbuild}; ln -sf $NEWLINK $f-newlink; mv -Tf $f-newlink $f;done @@ -67,6 +70,9 @@ bazel --output_user_root=`pwd`/../output_user_root build --nofetch --host_copt=- %{_bindir}/* %changelog +* Wed Apr 24 2024 shaojiansong - 1.17.1-2 +- Replace x86_64-openEuler-linux with dynamic gcc target using 'gcc -dumpmachine' + * Wed Sep 13 2023 Jincheng Miao - 2.12.1-0 - update version to 2.12.1 -- Gitee From 0e0238dc634c5d36386d64fcfa4535e5cd52c826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A4=E7=8B=AC=E7=9A=84=E5=A4=A7=E6=B2=B3=E9=A9=AC?= =?UTF-8?q?=E5=9C=A8=E8=BA=BA=E5=B9=B3?= Date: Wed, 24 Apr 2024 09:46:17 +0000 Subject: [PATCH 2/2] Replace x86_64-openEuler-linux with dynamic gcc target using 'gcc -dumpmachine' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孤独的大河马在躺平 --- tensorflow.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow.spec b/tensorflow.spec index d70cbea..dd67ea1 100644 --- a/tensorflow.spec +++ b/tensorflow.spec @@ -1,7 +1,7 @@ %global _empty_manifest_terminate_build 0 Name: tensorflow Version: 2.12.1 -Release: 0 +Release: 1 Summary: An Open Source Machine Learning Framework for Everyone License: Apache License 2.0 URL: https://www.tensorflow.org/ @@ -70,7 +70,7 @@ bazel --output_user_root=`pwd`/../output_user_root build --nofetch --host_copt=- %{_bindir}/* %changelog -* Wed Apr 24 2024 shaojiansong - 1.17.1-2 +* Wed Apr 24 2024 shaojiansong - 2.12.1-1 - Replace x86_64-openEuler-linux with dynamic gcc target using 'gcc -dumpmachine' * Wed Sep 13 2023 Jincheng Miao - 2.12.1-0 -- Gitee