[OE-core] [PATCH] dpkg: Ensure target packages don't reference perlnative

Richard Purdie richard.purdie at linuxfoundation.org
Tue Apr 30 12:41:56 UTC 2013


Currently a load of scripts in ${bindir} start with:

which is undesireable, this patch fixes that.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 92a5adc..d773fbd 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -47,6 +47,7 @@ do_install_append () {
 		rm ${D}${bindir}/update-alternatives
 	else
 		mv ${D}${bindir}/update-alternatives ${D}${sbindir}
+		sed -i -e 's|^#!.*${bindir}/perl-native.*/perl|#!/usr/bin/env perl|' ${D}${bindir}/dpkg-*
 	fi
 }
 






More information about the Openembedded-core mailing list