!154 kmodtool: use tmp.$$ instand of tmp.txt

From: @yang_yanchao 
Reviewed-by: @xujing99 
Signed-off-by: @xujing99
This commit is contained in:
openeuler-ci-bot 2023-11-03 06:15:16 +00:00 committed by Gitee
commit c888a47237
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 3 deletions

View File

@ -397,7 +397,7 @@ diff --git a/macros.kmp b/macros.kmp
index d46aa04..8440e26 100644
--- a/macros.kmp
+++ b/macros.kmp
@@ -1,22 +1,63 @@
@@ -1,22 +1,64 @@
-# Use these macros to differentiate between __vendor and other KMP implementation(s).
-
-kernel_module_package_release 1
@ -460,7 +460,8 @@ index d46aa04..8440e26 100644
+ flavors_to_build="%*" \
+ else \
+ flavors_to_build=" $flavors "\
+ echo "[$flavors_to_build]" >/tmp/tmp.txt
+ rm -rf /tmp/tmp.$$ \
+ echo "[$flavors_to_build]" >/tmp/tmp.$$ \
+ for i in %* \
+ do \
+ flavors_to_build=${flavors_to_build//$i /}

View File

@ -3,7 +3,7 @@
Name: %{vendor}-rpm-config
Version: 30
Release: 35
Release: 36
License: GPL+
Summary: specific rpm configuration files
URL: https://gitee.com/openeuler/openEuler-rpm-config
@ -136,6 +136,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir
%{rpmvdir}/find-requires.ksyms
%changelog
* Thu Nov 2 2023 Yang Yanchao <yangyanchao6@huawei.com> - 30-36
- kmodtool: use tmp.$$ instand of tmp.txt
* Mon Apr 10 2023 laokz <zhangkai@iscas.ac.cn> - 30-35
- fix riscv64 default library directory of brp-ldconfig