utils/evl: Respect custom libexecdir
PATCH 1/1 utils/evl: Respect custom libexecdir
From: Jan Kiszka <[email protected]>
This fixes execution of evl on Debian which uses multiarch-compatible paths for libexecdir.
Signed-off-by Jan Kiszka <[email protected]>
--- utils/evl.c | 2 +- utils/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
utils/evl.c +1 -1
@@ -118,7 +118,7 @@ int main(int argc, char *const argv[])error (1 ,ENOMEM ,"%s" , arg0);if (cmddir ==NULL ) - cmddir =find_install_dir (arg0,"libexec/evl" ); + cmddir =find_install_dir (arg0,LIBEXECDIR "/evl" ); ret =asprintf (&searchpath,"%s:%s" ,getenv ("PATH" ), cmddir);if (ret <0 )
utils/meson.build +1 -0
@@ -2,6 +2,7 @@ executable('evl', 'evl.c', + c_args: [ '-DLIBEXECDIR="' + get_option('libexecdir') + '"' ], install: true, dependencies: libevl_dep )
Signature · 1 line
2.35.3
Philippe Gerum
AppliedQuoted 29 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
This fixes execution of evl on Debian which uses multiarch-compatible paths for libexecdir.
Signed-off-by Jan Kiszka <[email protected]>--- utils/evl.c | 2 +- utils/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)utils/evl.c +1
-1@@ -118,7 +118,7 @@ int main(int argc, char *const argv[])error (1 ,ENOMEM ,"%s" , arg0);if (cmddir ==NULL ) - cmddir =find_install_dir (arg0,"libexec/evl" ); + cmddir =find_install_dir (arg0,LIBEXECDIR "/evl" ); ret =asprintf (&searchpath,"%s:%s" ,getenv ("PATH" ), cmddir);if (ret <0 )utils/meson.build +0
-0
utils/meson.build line 8
Quoted 7 lines
utils/meson.build +1
-0@@ -2,6 +2,7 @@ executable('evl', 'evl.c', + c_args: [ '-DLIBEXECDIR="' + get_option('libexecdir') + '"' ], install: true, dependencies: libevl_dep )
Merged, thanks.
Signature · 1 line
Philippe.