Skip to contentSkip to conversation

Specify extra paths

PATCH In review Khem Raj 3 participants 5 messages Aug 18, 2016

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 Specify extra paths

Some layers have gstreamer plugin recipes which include the .inc files from OE-Core but they do not get to find the patch that is being forced by the .inc file and ends up with errors like

WARNING: /mnt/oe/meta-qcom/recipes-multimedia/gstreamer/gstreamer1.0-plugins-v4l2.bb: Unable to get checksum for gstreamer1.0-plugins-v4l2 SRC_URI entry 0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch: file could not be fo und

This path prepend fixes it

---
 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc +1 -0
index 2dcec50..b066941 100644
@@ -28,6 +28,7 @@ EXTRA_OECONF = " \
     --disable-examples \
 "
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 SRC_URI_append = " file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch"
 
 delete_pkg_m4_file() {
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 5 lines · Khem Raj

Some layers have gstreamer plugin recipes which include the .inc files from OE-Core but they do not get to find the patch that is being forced by the .inc file and ends up with errors like

Bad commit message as you don't specify the module.

But should this SRC_URI_append be in the common plugins.inc anyway? Are there out-of-tree modules that don't use gst-common and so the patch won't apply?

Ross

author
#2 lore raw
Quoted 10 lines · Ross

On 18 August 2016 at 17:41, Khem Raj <[email protected] <mailto:[email protected]>> wrote:
Some layers have gstreamer plugin recipes which include
the .inc files from OE-Core but they do not get to find
the patch that is being forced by the .inc file and
ends up with errors like

Quoted 3 lines

Bad commit message as you don't specify the module.

But should this SRC_URI_append be in the common plugins.inc anyway? Are there out-of-tree modules that don't use gst-common and so the patch won't apply?

yes there are see
https://github.com/ndechesne/meta-qcom/blob/master/recipes-multimedia/gstreamer/gstreamer1.0-plugins-v4l2.bb <https://github.com/ndechesne/meta-qcom/blob/master/recipes-multimedia/gstreamer/gstreamer1.0-plugins-v4l2.bb>

Quoted 2 lines

Ross

#3 lore raw
In reply to Khem Raj
Quoted 7 lines · Khem Raj

Some layers have gstreamer plugin recipes which include the .inc files from OE-Core but they do not get to find the patch that is being forced by the .inc file and ends up with errors like

WARNING: /mnt/oe/meta-qcom/recipes-multimedia/gstreamer/gstreamer1.0-plugins-v4l2.bb: Unable to get checksum for gstreamer1.0-plugins-v4l2 SRC_URI entry 0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch: file could not be fo und

Isn't it better to move this SRC_URI_append to the individual .bb files?

Other versions of plugins might not be able to apply this .patch and such recipes will need to use SRC_URI_remove (or SRC_URI with override) to get rid of this.

Quoted 28 lines

This path prepend fixes it

---
 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc +1 -0
index 2dcec50..b066941 100644
@@ -28,6 +28,7 @@ EXTRA_OECONF = " \
     --disable-examples \
 "
 
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 SRC_URI_append = " file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch"
 
 delete_pkg_m4_file() {
Signature · 7 lines
1.8.3.1

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#4 lore raw
Quoted 9 lines · Martin Jansa
Quoted 5 lines · Khem Raj

Some layers have gstreamer plugin recipes which include the .inc files from OE-Core but they do not get to find the patch that is being forced by the .inc file and ends up with errors like

Quoted 8 lines
Quoted 2 lines

WARNING: /mnt/oe/meta-qcom/recipes-multimedia/gstreamer/gstreamer1.0-plugins-v4l2.bb: Unable to get checksum for gstreamer1.0-plugins-v4l2 SRC_URI entry 0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch: file could not be fo und

Isn't it better to move this SRC_URI_append to the individual .bb files?

Other versions of plugins might not be able to apply this .patch and such recipes will need to use SRC_URI_remove (or SRC_URI with override) to get rid of this.

I thought of doing that, but then this patch is needed for g-ir to work in cross env. may be its better to also expose the SRCREV and SRC_URI or common repo in the inc file in case where external plugins would like to override that, then they will automatically remove the patch too.

Quoted 32 lines
Quoted 24 lines

This path prepend fixes it

---
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc | 1 +

1 file changed, 1 insertion(+)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins.inc +0 -0
index 2dcec50..b066941 100644
@@ -28,6 +28,7 @@ EXTRA_OECONF = " \
    --disable-examples \

"

+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI_append = " file://0001-introspection.m4-prefix-pkgconfig-paths-with-PKG_CON.patch"

delete_pkg_m4_file() {
--
1.8.3.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
Martin 'JaMa' Jansa jabber: [email protected]