Skip to contentSkip to conversation

v4l-utils: Install media ctrl pkgconfig files

PATCH In review Einar Gunnarsson 2 participants 4 messages Sep 10, 2024 – Sep 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l-utils: Install media ctrl pkgconfig files

Commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab installs libraries but without the pkgconfig files, making them harder to link to. This adds pkgconfig files for these libraries

---
 ...l-Install-media-ctl-pkg-config-files.patch | 49 +++++++++++++++++++
 .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch
meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file +49 -0
new file mode 100644
index 000000000..8a009ae80
@@ -0,0 +1,49 @@
+From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001
+From: Einar Jon Gunnarsson <[email protected]>
+Date: Fri, 10 May 2024 11:56:17 +0200
+Subject: [PATCH] media-ctl: Install media-ctl pkg-config files
+
+libv4l2subdev/libmediactl can not be used in projects without the
+pkg-config files. This adds them as well.
+
+Upstream-Status: Denied
+
+This is an add-on to the previous patch:
+0001-media-ctl-Install-media-ctl-header-and-library-files.patch
+so same restrictions apply.
+
+Signed-off-by: Einar Jon Gunnarsson <[email protected]>
+---
+ utils/media-ctl/meson.build | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 40669b4c..6feba1af 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -38,6 +38,12 @@ libv4l2subdev = library('v4l2subdev',
+ 
+ dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
+ 
++pkg.generate(
++      libv4l2subdev,
++      name : 'libv4l2subdev',
++      version : meson.project_version(),
++      description : 'v4l2 subdev library')
++
+ media_ctl_sources = files(
+     'media-ctl.c',
+     'options.c',
+@@ -55,3 +61,9 @@ media_ctl = executable('media-ctl',
+                        dependencies : media_ctl_deps,
+                        install : true,
+                        include_directories : v4l2_utils_incdir)
++
++pkg.generate(
++     libmediactl,
++     name : 'libmediactl',
++     version : meson.project_version(),
++     description : 'v4l2 mediactl library')
+-- 
+2.43.5
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +1 -0
index eb38d9713..8ab96760a 100644
@@ -29,6 +29,7 @@ SRC_URI = "\
     git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \
     file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
     file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
+    file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \
 "
 
 SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
Signature · 1 line
2.43.5
#1 lore raw

Hi all

I'm not sure if this one should be a separate patch file or simply added to file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch

I was not able to use the libraries without the pkgconfig files, but this makes CMake
integration easy.
Best regards
Einar Jon

Quoted 90 lines · Einar Jon Gunnarsson

Commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab installs libraries but without the pkgconfig files, making them harder to link to. This adds pkgconfig files for these libraries

---
 ...l-Install-media-ctl-pkg-config-files.patch | 49 +++++++++++++++++++
 .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch

diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file mode 100644
index 000000000..8a009ae80
--- /dev/null
+++
b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file +49 -0
@@ -0,0 +1,49 @@
+From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001
+From: Einar Jon Gunnarsson <[email protected]>
+Date: Fri, 10 May 2024 11:56:17 +0200
+Subject: [PATCH] media-ctl: Install media-ctl pkg-config files
+
+libv4l2subdev/libmediactl can not be used in projects without the
+pkg-config files. This adds them as well.
+
+Upstream-Status: Denied
+
+This is an add-on to the previous patch:
+0001-media-ctl-Install-media-ctl-header-and-library-files.patch
+so same restrictions apply.
+
+Signed-off-by: Einar Jon Gunnarsson <[email protected]>
+---
+ utils/media-ctl/meson.build | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 40669b4c..6feba1af 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -38,6 +38,12 @@ libv4l2subdev = library('v4l2subdev',
+
+ dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
+
++pkg.generate(
++      libv4l2subdev,
++      name : 'libv4l2subdev',
++      version : meson.project_version(),
++      description : 'v4l2 subdev library')
++
+ media_ctl_sources = files(
+     'media-ctl.c',
+     'options.c',
+@@ -55,3 +61,9 @@ media_ctl = executable('media-ctl',
+                        dependencies : media_ctl_deps,
+                        install : true,
+                        include_directories : v4l2_utils_incdir)
++
++pkg.generate(
++     libmediactl,
++     name : 'libmediactl',
++     version : meson.project_version(),
++     description : 'v4l2 mediactl library')
+--
+2.43.5
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +1 -0
index eb38d9713..8ab96760a 100644
@@ -29,6 +29,7 @@ SRC_URI = "\
     git://git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26
 \
 
 file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
 
 file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
+    file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \

"

SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
--
2.43.5

Signature · 3 lines
Regards
Einar Jón
+31 610 957234
#2 lore raw
Quoted 6 lines · Einar Gunnarsson via lists.openembedded.org

Hi all

I'm not sure if this one should be a separate patch file or simply added to file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch

Perhaps it could be squashed into that but it worries me that it was denied upstream. What was the reason ? Is there a better way to do this? That upstream will prefer

Quoted 117 lines

I was not able to use the libraries without the pkgconfig files, but this makes CMake
integration easy.
Best regards
Einar Jon

Quoted 85 lines · Einar Jon Gunnarsson

Commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab installs libraries but without the pkgconfig files, making them harder to link to. This adds pkgconfig files for these libraries

---
 ...l-Install-media-ctl-pkg-config-files.patch | 49 +++++++++++++++++++
 .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch

diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file mode 100644
index 000000000..8a009ae80
--- /dev/null
+++
b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file +49 -0
@@ -0,0 +1,49 @@
+From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001
+From: Einar Jon Gunnarsson <[email protected]>
+Date: Fri, 10 May 2024 11:56:17 +0200
+Subject: [PATCH] media-ctl: Install media-ctl pkg-config files
+
+libv4l2subdev/libmediactl can not be used in projects without the
+pkg-config files. This adds them as well.
+
+Upstream-Status: Denied
+
+This is an add-on to the previous patch:
+0001-media-ctl-Install-media-ctl-header-and-library-files.patch
+so same restrictions apply.
+
+Signed-off-by: Einar Jon Gunnarsson <[email protected]>
+---
+ utils/media-ctl/meson.build | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 40669b4c..6feba1af 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -38,6 +38,12 @@ libv4l2subdev = library('v4l2subdev',
+
+ dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
+
++pkg.generate(
++      libv4l2subdev,
++      name : 'libv4l2subdev',
++      version : meson.project_version(),
++      description : 'v4l2 subdev library')
++
+ media_ctl_sources = files(
+     'media-ctl.c',
+     'options.c',
+@@ -55,3 +61,9 @@ media_ctl = executable('media-ctl',
+                        dependencies : media_ctl_deps,
+                        install : true,
+                        include_directories : v4l2_utils_incdir)
++
++pkg.generate(
++     libmediactl,
++     name : 'libmediactl',
++     version : meson.project_version(),
++     description : 'v4l2 mediactl library')
+--
+2.43.5
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +1 -0
index eb38d9713..8ab96760a 100644
@@ -29,6 +29,7 @@ SRC_URI = "\
     git://
 git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \
 
 file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
 
 file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
+    file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \

"

Quoted 5 lines

SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
--
2.43.5

--
Regards
Einar Jón
+31 610 957234

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#112231):
https://lists.openembedded.org/g/openembedded-devel/message/112231
Mute This Topic: https://lists.openembedded.org/mt/108374820/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Hello Khem

Quoted 8 lines · Khem Raj
Quoted 2 lines · Einar Gunnarsson via lists.openembedded.org

Hi all

Quoted 9 lines
Quoted 4 lines

I'm not sure if this one should be a separate patch file or simply added to file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch

Perhaps it could be squashed into that but it worries me that it was denied upstream. What was the reason ? Is there a better way to do this? That upstream will prefer

As stated in the linked commit
"The libraries APIs are not deemed to be stable yet, don't install the libraries."
https://github.com/gjasny/v4l-utils/commit/0911dce53b08b0df3066be2c75f67e8a314d8729

Since we're ignoring that and installing the libraries anyway, we might as well do it properly.

Quoted 109 lines
Quoted 109 lines

I was not able to use the libraries without the pkgconfig files, but this makes CMake
integration easy.
Best regards
Einar Jon

Quoted 85 lines · Einar Jon Gunnarsson

Commit 5f453c3401e20eb5489fac4d3b54a5bf96d019ab installs libraries but without the pkgconfig files, making them harder to link to. This adds pkgconfig files for these libraries

---
 ...l-Install-media-ctl-pkg-config-files.patch | 49 +++++++++++++++++++
 .../v4l2apps/v4l-utils_1.26.1.bb              |  1 +
 2 files changed, 50 insertions(+)
 create mode 100644

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch

diff --git a/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file mode 100644
index 000000000..8a009ae80
--- /dev/null
+++
b/meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch

meta-oe/recipes-multimedia/v4l2apps/v4l-utils/0002-media-ctl-Install-media-ctl-pkg-config-files.patch new file +49 -0
@@ -0,0 +1,49 @@
+From a422ddf7f8805d34ff1fbb46d335993c9cd05ead Mon Sep 17 00:00:00 2001
+From: Einar Jon Gunnarsson <[email protected]>
+Date: Fri, 10 May 2024 11:56:17 +0200
+Subject: [PATCH] media-ctl: Install media-ctl pkg-config files
+
+libv4l2subdev/libmediactl can not be used in projects without the
+pkg-config files. This adds them as well.
+
+Upstream-Status: Denied
+
+This is an add-on to the previous patch:
+0001-media-ctl-Install-media-ctl-header-and-library-files.patch
+so same restrictions apply.
+
+Signed-off-by: Einar Jon Gunnarsson <[email protected]>
+---
+ utils/media-ctl/meson.build | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/utils/media-ctl/meson.build b/utils/media-ctl/meson.build
+index 40669b4c..6feba1af 100644
+--- a/utils/media-ctl/meson.build
++++ b/utils/media-ctl/meson.build
+@@ -38,6 +38,12 @@ libv4l2subdev = library('v4l2subdev',
+
+ dep_libv4l2subdev = declare_dependency(link_with : libv4l2subdev)
+
++pkg.generate(
++      libv4l2subdev,
++      name : 'libv4l2subdev',
++      version : meson.project_version(),
++      description : 'v4l2 subdev library')
++
+ media_ctl_sources = files(
+     'media-ctl.c',
+     'options.c',
+@@ -55,3 +61,9 @@ media_ctl = executable('media-ctl',
+                        dependencies : media_ctl_deps,
+                        install : true,
+                        include_directories : v4l2_utils_incdir)
++
++pkg.generate(
++     libmediactl,
++     name : 'libmediactl',
++     version : meson.project_version(),
++     description : 'v4l2 mediactl library')
+--
+2.43.5
+
meta-oe/recipes-multimedia/v4l2apps/v4l-utils_1.26.1.bb +1 -0
index eb38d9713..8ab96760a 100644
@@ -29,6 +29,7 @@ SRC_URI = "\
     git://
 git.linuxtv.org/v4l-utils.git;protocol=https;branch=stable-1.26 \
 
 file://0001-keytable-meson-Restrict-the-installation-of-50-rc_ke.patch \
 
 file://0001-media-ctl-Install-media-ctl-header-and-library-files.patch \
+    file://0002-media-ctl-Install-media-ctl-pkg-config-files.patch \

"

Quoted 5 lines

SRCREV = "4aee01a027923cab1e40969f56f8ba58d3e6c0d1"
--
2.43.5

--
Regards
Einar Jón
+31 610 957234

Signature · 2 lines
Regards
Einar Jón