Disabled for GOMP issue with rpmbuild

This commit is contained in:
solarhu 2021-05-18 17:50:52 +08:00
parent d582493b97
commit eb1e841492
2 changed files with 7 additions and 3 deletions

View File

@ -9,8 +9,9 @@
#PURPOSE.
#See the Mulan PSL v2 for more details.
CPUNO=`cat /proc/cpuinfo|grep processor|wc -l`
export GOMP_CPU_AFFINITY=0-$[CPUNO - 1]
#Disable for GOMP issue with rpmbuild
#CPUNO=`cat /proc/cpuinfo|grep processor|wc -l`
#export GOMP_CPU_AFFINITY=0-$[CPUNO - 1]
sysctl -w vm.min_free_kbytes=112640 &> /dev/null
sysctl -w vm.dirty_ratio=60 &> /dev/null

View File

@ -5,7 +5,7 @@
%define dist_release_version 8
%define generic_version 20.03
%define generic_patch_level LTS
%define generic_release 38
%define generic_release 39
%define builtin_release_version 1.0
%define current_arch %{_arch}
@ -170,6 +170,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Jan 7 2020 shenyangyang <shenyangyang4@huawei.com> - 1.0-38
* Tue May 18 2021 solar.hu <solar.hu@foxmail.com> - 1.0-39
- Disable for GOMP issue with rpmbuild
- add %{product_family}-rootfiles package that contains the basic
.bash* config for root user