* [PATCH 3/3] dtprobed: fix install of dtprobed.service
@ 2024-11-11 4:10 Kris Van Hees
2024-11-11 15:58 ` Nick Alcock
0 siblings, 1 reply; 2+ messages in thread
From: Kris Van Hees @ 2024-11-11 4:10 UTC (permalink / raw)
To: dtrace, dtrace-devel
Commit 4d4ba4997 "build: make dtrace and dtprobed relocatable" added
makefile instructions to install dtprobed.service that could fail due
to permission problems. Instead of using sed to write to the install
location, and then applying chown/chmod, use the install command.
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
---
dtprobed/Build | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dtprobed/Build b/dtprobed/Build
index c43b6277..8619a5b5 100644
--- a/dtprobed/Build
+++ b/dtprobed/Build
@@ -41,9 +41,8 @@ install-dtprobed-autostart::
ifneq ($(WITH_SYSTEMD),)
mkdir -p $(INSTSYSTEMDUNITDIR) $(INSTSYSTEMDPRESETDIR)
$(call describe-install-target,$(INSTSYSTEMDUNITDIR),dtprobed.service)
- sed 's,@SBINDIR@,$(SBINDIR),' < $(dtprobed_DIR)dtprobed.service.in > $(INSTSYSTEMDUNITDIR)/dtprobed.service
- chown root:root $(INSTSYSTEMDUNITDIR)/dtprobed.service
- chmod 0644 $(INSTSYSTEMDUNITDIR)/dtprobed.service
+ sed 's,@SBINDIR@,$(SBINDIR),' < $(dtprobed_DIR)dtprobed.service.in > $(objdir)/dtprobed.service
+ install -m 644 $(objdir)/dtprobed.service $(INSTSYSTEMDUNITDIR)
$(call describe-install-target,$(INSTSYSTEMDUNITDIR),dtrace-usdt.target)
install -m 644 $(dtprobed_DIR)dtrace-usdt.target $(INSTSYSTEMDUNITDIR)
$(call describe-install-target,$(INSTSYSTEMDPRESETDIR),50-dtprobed.preset)
--
2.42.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 3/3] dtprobed: fix install of dtprobed.service
2024-11-11 4:10 [PATCH 3/3] dtprobed: fix install of dtprobed.service Kris Van Hees
@ 2024-11-11 15:58 ` Nick Alcock
0 siblings, 0 replies; 2+ messages in thread
From: Nick Alcock @ 2024-11-11 15:58 UTC (permalink / raw)
To: Kris Van Hees; +Cc: dtrace, dtrace-devel
On 11 Nov 2024, Kris Van Hees said:
> Commit 4d4ba4997 "build: make dtrace and dtprobed relocatable" added
> makefile instructions to install dtprobed.service that could fail due
> to permission problems. Instead of using sed to write to the install
> location, and then applying chown/chmod, use the install command.
>
> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
Reviewed-by: Nick Alcock <nick.alcock@oracle.com>
(better than what I did.)
--
NULL && (void)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-11 15:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11 4:10 [PATCH 3/3] dtprobed: fix install of dtprobed.service Kris Van Hees
2024-11-11 15:58 ` Nick Alcock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox