This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: Change install dir of libv4l2tracer.so
Author:  Jianfeng Liu <[email protected]>
Date:    Fri Sep 12 11:43:04 2025 +0800

The default install dir of libv4l2tracer.so is libdir, which will
be packaged to libv4l-dev in debian or libv4l-devel in fedora by default.
While libv4l2tracer.so is different from other library files like
libv4lconvert.so in this path, it is only used by v4l2-tracer at runtime,
 and it is not a good idea to let binary file in v4l-utils depend on
libv4l development package.

Installing libv4l2tracer.so to the default libdir won't pass debian
lintian check because this library doesn't have a SONAME.

This commit will change the install dir to the same path as other
libv4l2 wrapper libraies, so libv4l2tracer.so will get packaged to
libv4l, which is the dependency of v4l-utils, and it will also make
debian lintian check pass.

Signed-off-by: Jianfeng Liu <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>

 meson_options.txt             | 2 ++
 utils/v4l2-tracer/meson.build | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=f02a42e345273f2b8c5d5a169f76eeaf58c3d293
diff --git a/meson_options.txt b/meson_options.txt
index 1e4aa87f8bee..3d04cfb457d8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -46,6 +46,8 @@ option('libv4l2subdir', type : 'string', value : 'libv4l',
        description : 'Set libv4l2 library subdir')
 option('libv4lconvertsubdir', type : 'string', value : 'libv4l',
        description : 'Set libv4lconvert library subdir')
+option('libv4l2tracersubdir', type : 'string', value : 'libv4l',
+       description : 'Set libv4l2tracer library subdir')
 option('systemdsystemunitdir', type : 'string',
        description : 'Set systemd system unit directory')
 option('udevdir', type : 'string',
diff --git a/utils/v4l2-tracer/meson.build b/utils/v4l2-tracer/meson.build
index d059eb6ded52..92deac319ec1 100644
--- a/utils/v4l2-tracer/meson.build
+++ b/utils/v4l2-tracer/meson.build
@@ -24,9 +24,12 @@ libv4l2_tracer_incdir = [
     v4l2_utils_incdir,
 ]
 
+libv4l2tracerdir = get_option('prefix') / get_option('libdir') / 
get_option('libv4l2tracersubdir')
+
 libv4l2tracer = shared_module('v4l2tracer',
                               libv4l2tracer_sources,
                               install : true,
+                              install_dir : libv4l2tracerdir,
                               cpp_args : v4l2_wrapper_args,
                               dependencies : libv4l2tracer_deps,
                               include_directories : libv4l2_tracer_incdir)
@@ -51,7 +54,7 @@ v4l2_tracer_deps = [
 ]
 
 v4l2_tracer_cpp_args = [
-    '-DLIBTRACER_PATH="@0@"'.format(get_option('prefix') / 
get_option('libdir')),
+    '-DLIBTRACER_PATH="@0@"'.format(libv4l2tracerdir),
 ]
 
 if have_visibility

Reply via email to