From 05c17b63fe0bbc7f94154017f2c54237576df94c Mon Sep 17 00:00:00 2001 From: Jiaying Song Date: Tue, 4 Jun 2024 11:20:18 +0800 Subject: rrdtool: Fix do_populate_sysroot QA issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Khem Raj --- meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-oe/recipes-extended/rrdtool') 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 425a98f0c0..ff173dec5b 100644 --- a/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb +++ b/meta-oe/recipes-extended/rrdtool/rrdtool_1.8.0.bb @@ -104,6 +104,11 @@ do_configure() { ${B}/examples/*.pl } +do_install:append:class-native() { + # Replace the shebang line in cgi-demo.cgi + sed -i '1s|^.*$|#!/usr/bin/env rrdcgi|' ${D}${datadir}/rrdtool/examples/cgi-demo.cgi +} + PACKAGES =+ "${PN}-perl ${PN}-python" PACKAGES =+ "rrdcached" -- cgit v1.2.3-54-g00ecf