!8 [sync] PR-5: 修正spec中的不良提权行为,已验证不影响原本的rpmbuild-nocheck功能
Merge pull request !8 from openeuler-sync-bot/sync-pr5-master-to-openEuler-22.03-LTS-Next
This commit is contained in:
commit
8e9b2ec06b
@ -6,7 +6,7 @@ Summary: custom build tool for obs
|
||||
License: Mulan PSL v2
|
||||
Group: System/Management
|
||||
Version: 1.0.0
|
||||
Release: 18
|
||||
Release: 19
|
||||
BuildRoot: %{_tmppath}/%{name}
|
||||
Source0: https://gitee.com/openeuler/custom_build_tool/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
BuildRequires: util-linux coreutils
|
||||
@ -91,7 +91,7 @@ sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-nocheck' /usr
|
||||
sed -i 's/strict=true/strict=false/' /usr/lib/rpm/find-debuginfo.sh
|
||||
%post target
|
||||
sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-target' /usr/bin/rpmbuild
|
||||
echo "abuild ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
echo "abuild ALL=(ALL) NOPASSWD: /opt/custom_build_tool/rpmbuild-nocheck" >> /etc/sudoers
|
||||
|
||||
%if %{with_ub}
|
||||
%post uploadbuild
|
||||
@ -116,7 +116,6 @@ chmod 755 ${cmd_rpmbuild}
|
||||
%if %{with_san}
|
||||
%post san
|
||||
cp -a /usr/bin/mv /usr/bin/gmv
|
||||
chmod 4777 /usr/bin/gmv
|
||||
sed -i '/####add parameter start/r /opt/custom_build_tool/rpmbuild-san' /usr/bin/rpmbuild
|
||||
old_gcc=/usr/bin/gcc
|
||||
old_gplus=/usr/bin/g++
|
||||
@ -265,6 +264,12 @@ rm -rf %{_tmppath}/%{name}
|
||||
rm -rf $RPM_BUILD_DIR/%{name}
|
||||
|
||||
%changelog
|
||||
* Mon Jan 24 2022 senlin <xiasenlin1@huawei.com> - 1.0.0-19
|
||||
- Type: Correction of bad behavior
|
||||
- ID: NA
|
||||
- SUG: NA
|
||||
- DESC: Specify the specific sudo commands for abuild users
|
||||
|
||||
* Fri Oct 16 2020 zhuchunyi <zhuchunyi@huawei.com> - 1.0.0-18
|
||||
- Type:new package
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user