diff options
author | Jiaying Song <jiaying.song.cn@windriver.com> | 2024-06-04 11:20:18 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2024-07-23 15:21:31 -0400 |
commit | 71a4bda71714f4a4a85389880cd9274f16a592d5 (patch) | |
tree | 55a8236300a96134c1fac51f25098019be72d135 | |
parent | ef03cdfc90e9c37d2f6d4f2c5ce5ba51dd91a2c1 (diff) | |
download | meta-openembedded-71a4bda71714f4a4a85389880cd9274f16a592d5.tar.gz |
rrdtool: Fix do_populate_sysroot QA issues
This commit addresses the shebang size issue encountered in the
do_populate_sysroot task of the rrdtool-native recipe. The issue
was caused by the shebang line in the cgi-demo.cgi file exceeding
the maximum allowed length of 128 characters.
The following error was observed:
ERROR: rrdtool-native-1.8.0-r0 do_populate_sysroot: QA Issue: : /work/x86_64-linux/rrdtool-native/1.8.0/sysroot-destdir/work/x86_64-linux/rrdtool-native/1.8.0/recipe-sysroot-native/usr/share/rrdtool/examples/cgi-demo.cgi maximum shebang size exceeded, the maximum size is 128. [shebang-size]
ERROR: rrdtool-native-1.8.0-r0 do_populate_sysroot: do_populate_sysroot for this recipe installed files with QA issues
The solution implemented involves modifying the shebang line in the
cgi-demo.cgi file to use '/usr/bin/env rrdcgi', ensuring it adheres
to the length limit.
Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 05c17b63fe0bbc7f94154017f2c54237576df94c)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb b/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb index cbe1af2854..5afb3f2f44 100644 --- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb +++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb | |||
@@ -103,6 +103,11 @@ do_configure() { | |||
103 | ${B}/examples/*.pl | 103 | ${B}/examples/*.pl |
104 | } | 104 | } |
105 | 105 | ||
106 | do_install:append:class-native() { | ||
107 | # Replace the shebang line in cgi-demo.cgi | ||
108 | sed -i '1s|^.*$|#!/usr/bin/env rrdcgi|' ${D}${datadir}/rrdtool/examples/cgi-demo.cgi | ||
109 | } | ||
110 | |||
106 | PACKAGES =+ "${PN}-perl ${PN}-python" | 111 | PACKAGES =+ "${PN}-perl ${PN}-python" |
107 | PACKAGES =+ "rrdcached" | 112 | PACKAGES =+ "rrdcached" |
108 | 113 | ||