diff options
| author | Yoann Congal <yoann.congal@smile.fr> | 2024-09-13 00:42:51 +0200 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2025-11-19 16:56:37 +0530 |
| commit | b79cf94b4d53d75ddc4b4f468c1b1ad42a3fffe2 (patch) | |
| tree | 9778d59802fd7fb484645930ad5224e2144532bf | |
| parent | 4e69ebbcf98d79311b93872bf655d52f15baa0df (diff) | |
| download | meta-openembedded-scarthgap.tar.gz | |
grilo: fix buildpaths QA errorscarthgap
grl-type-builtins.* are generated by glib-mkenums which leave full paths
in comment and #include directives. Rewrite those before *-src packaging.
Previous fix did not correct the .c file and did not work in the
"devtool modify" case.
Fix these errors:
ERROR: grilo-0.3.16-r0 do_package_qa: QA Issue: File /usr/src/debug/grilo/0.3.16/src/grl-type-builtins.c in package grilo-src contains reference to TMPDIR [buildpaths]
ERROR: grilo-0.3.16-r0 do_package_qa: QA Issue: File /usr/src/debug/grilo/0.3.16/src/grl-type-builtins.h in package grilo-src contains reference to TMPDIR [buildpaths]
ERROR: grilo-0.3.16-r0 do_package_qa: Fatal QA errors were found, failing task.
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit aa88276c26b465039b45281b8c206dd5d7baa58e)
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
| -rw-r--r-- | meta-gnome/recipes-gnome/grilo/grilo_0.3.16.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta-gnome/recipes-gnome/grilo/grilo_0.3.16.bb b/meta-gnome/recipes-gnome/grilo/grilo_0.3.16.bb index 14e1ca9fe1..b6ac75dd8a 100644 --- a/meta-gnome/recipes-gnome/grilo/grilo_0.3.16.bb +++ b/meta-gnome/recipes-gnome/grilo/grilo_0.3.16.bb | |||
| @@ -26,5 +26,14 @@ PACKAGECONFIG[test-ui] = "-Denable-test-ui=true, -Denable-test-ui=false, gtk+3 l | |||
| 26 | EXTRA_OEMESON = "-Denable-grl-pls=false" | 26 | EXTRA_OEMESON = "-Denable-grl-pls=false" |
| 27 | 27 | ||
| 28 | do_compile:append() { | 28 | do_compile:append() { |
| 29 | sed -i -e 's,${B}/../,,' ${B}/src/grl-type-builtins.h | 29 | # grl-type-builtins.* are generated by glib-mkenums which leave full paths |
| 30 | # in comment and #include directives. Rewrite those before *-src packaging. | ||
| 31 | |||
| 32 | # Path can be relative to B or WORKDIR in devtool modify | ||
| 33 | for base in ${B} ${WORKDIR} ; do | ||
| 34 | relpath="$(realpath --relative-to="$base" "${S}")" | ||
| 35 | sed -i -e "s,$base/$relpath/src/,," \ | ||
| 36 | ${B}/src/grl-type-builtins.h \ | ||
| 37 | ${B}/src/grl-type-builtins.c | ||
| 38 | done | ||
| 30 | } | 39 | } |
