aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2022-05-25 20:55:19 -0700
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-06-07 10:00:50 -0400
commitb70d6bb35734c3863051098eb2dd3c2dbe11c92f (patch)
tree826020dd39058f955bf504f7b2013241f53e2f2c
parent8a7823821078a6c21990393b0a1c352231458100 (diff)
downloadmeta-virtualization-b70d6bb35734c3863051098eb2dd3c2dbe11c92f.tar.gz
meta-virtualization-b70d6bb35734c3863051098eb2dd3c2dbe11c92f.tar.bz2
meta-virtualization-b70d6bb35734c3863051098eb2dd3c2dbe11c92f.zip
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 <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/criu/criu_git.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-containers/criu/criu_git.bb b/recipes-containers/criu/criu_git.bb
index 4b616cc..77a12ab 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}/ \