From 2e787b9d75c6fd8efb964b24c6849c3f2dbbd3b6 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Wed, 25 May 2022 20:55:19 -0700 Subject: criu: fix QA issue about shebang too long There's a QA issue about criu complaining the shebang of crit script is too long. We should replace it with '#!/usr/bin/env python3'. Signed-off-by: Chen Qi Signed-off-by: Bruce Ashfield --- recipes-containers/criu/criu_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb index 4b616ccf..77a12abf 100644 --- a/recipes-containers/criu/criu_git.bb +++ b/recipes-containers/criu/criu_git.bb @@ -81,7 +81,7 @@ do_install () { # scripts. 'crit' is one of those scripts. The "executable" or "e" option to the # setup call should fix it, but it is being ignored. So to avoid getting our native # intepreter replaced in the script, we'll do an explicit update ourselves. - sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%g' ${D}/usr/bin/crit + sed -i 's%^\#\!.*%\#\!/usr/bin/env python3%' ${D}/usr/bin/crit ${D}${libdir}/python3*/site-packages/crit-0.0.1-py3*.egg/EGG-INFO/scripts/crit } FILES:${PN} += "${systemd_unitdir}/ \ -- cgit v1.2.3-54-g00ecf