You are not logged in.
following is the snippet, occurred during updating
(13/30) Reloading system bus configuration...
(14/30) Warn about old perl modules
(15/30) e4rat-lite-git-update.hook
call to execv failed (No such file or directory)
error: command failed to execute correctly
(16/30) Updating fontconfig cache...
(17/30) Updating 32-bit fontconfig cache...
(18/30) Probing GDK-Pixbuf loader modules...
here is the e4rat-lite-git update hook
[Trigger]
Operation=Upgrade
Type=Package
Target=boost
[Action]
When=PostTransaction
Exec=echo 'NOTICE: Boost has been updated. Please re-build e4rat-lite-git.'
Depends=e4rat-lite-git
Last edited by amixra (2023-05-24 11:24:24)
Experiment at-least.
Offline
There's no shell, so there's no PATH. You need to specify the path to the executable.
Offline
There's no shell, so there's no PATH. You need to specify the path to the executable.
This hook comes with package itself, may you be more verbose about your point?
Experiment at-least.
Offline
Exec=/bin/echo 'Notice ...'
Though it's interesting that systemd's on man pages (e.g., systemd.service(5)) include examples with Exec=echo which would (wrongly?) imply that it uses execvp rather than execv.
EDIT: technically I suppose that's "ExecStart=" examples, but also notable that "Exec=" doesn't even seem to be a documented option (though there is an example in the man page using it). Further, countless real examples show that ExecStart= does indeed use execvp (or does it's own path search which is less likely). So this error seems to be a combination of using a binary name without a path and using an undocumented "Exec=" directive in place of what should be "ExecStart=". So the real solution would almost certainly instead be the following:
ExecStart=echo 'Notice ...'
Last edited by Trilby (2023-05-22 15:36:33)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I can't verify it just after making the change but hoping that it would work.
Experiment at-least.
Offline
No, I was able to verify. It didn't worked
error: hook /usr/share/libalpm/hooks/e4rat-lite-git-update.hook line 8: invalid option ExecStart
error: failed to commit transaction (failed to run transaction hooks)
Last edited by amixra (2023-05-24 10:42:59)
Experiment at-least.
Offline
It works with EXEC=/bin/echo
(2/5) e4rat-lite-git-update.hook
NOTICE: Boost has been updated. Please re-build e4rat-lite-git.
Experiment at-least.
Offline
Oops! Sorry, this is an alpm-hook not a systemd service file. They have fairly similar looking ini-syntax but are completely different things. So (most of) my previous comments are irrelevant: a full path is the only relevant requirement.
Last edited by Trilby (2023-05-24 12:01:16)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline