From 2d34df8438f40f38cc8f8334241e2105d3e5edad Mon Sep 17 00:00:00 2001 From: xujing Date: Thu, 6 Jul 2023 16:01:06 +0800 Subject: [PATCH] fix objcopy permission denied when rpmbuild fix objcopy permission denied when rpmbuild. And by the way, package sysmaster directory which can be found by "rpm -ql". (cherry picked from commit c802108b47fca5a07638dbebfa30fdc427879ed6) --- sysmaster.spec | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/sysmaster.spec b/sysmaster.spec index a90b8c6..41aaf54 100644 --- a/sysmaster.spec +++ b/sysmaster.spec @@ -11,7 +11,7 @@ Name: sysmaster Version: 0.2.4 -Release: 2 +Release: 3 Summary: redesign and reimplement process1. License: Mulan PSL v2 @@ -48,21 +48,38 @@ sed -i '/\[source.local-registry\]/a directory = "vendor"' ./.cargo/config %cargo_build %install -install -Dm0550 -t %{buildroot}/usr/bin %{sysmaster_install_source}/sctl -install -Dm0550 -t %{sysmaster_install_target} %{sysmaster_install_source}/init -install -Dm0550 -t %{sysmaster_install_target} %{sysmaster_install_source}/sysmaster +install -Dm0750 -t %{buildroot}/usr/bin %{sysmaster_install_source}/sctl +install -Dm0750 -t %{sysmaster_install_target} %{sysmaster_install_source}/init +install -Dm0750 -t %{sysmaster_install_target} %{sysmaster_install_source}/sysmaster install -Dm0640 -t %{sysmaster_install_target} %{unit_install_source}/* -install -Dm0550 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libservice.so -install -Dm0550 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libtarget.so +install -Dm0750 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libservice.so +install -Dm0750 -t %{sysmaster_install_target}/plugin %{sysmaster_install_source}/libtarget.so install -Dm0640 -t %{sysmaster_install_target}/plugin %{conf_install_source}/plugin.conf %files -/usr/bin/sctl -/usr/lib/sysmaster/* +%attr(0550,-,-) /usr/bin/sctl +%dir /usr/lib/sysmaster +/usr/lib/sysmaster/basic.target +%attr(0550,-,-) /usr/lib/sysmaster/init +/usr/lib/sysmaster/multi-user.target +%dir /usr/lib/sysmaster/plugin +%attr(0550,-,-) /usr/lib/sysmaster/plugin/*.so +/usr/lib/sysmaster/plugin/plugin.conf +/usr/lib/sysmaster/shutdown.target +/usr/lib/sysmaster/sshd-keygen.target +/usr/lib/sysmaster/sshd-keygen@ecdsa.service +/usr/lib/sysmaster/sshd-keygen@ed25519.service +/usr/lib/sysmaster/sshd-keygen@rsa.service +/usr/lib/sysmaster/sshd.service +/usr/lib/sysmaster/sysinit.target +%attr(0550,-,-) /usr/lib/sysmaster/sysmaster %changelog +* Thu Jul 06 2023 xujing - 0.2.4-3 +- fix objcopy permission denied when rpmbuild + * Tue Jun 27 2023 shenyangyang - 0.2.4-2 - modify the sshd units