Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] dpkg: Ensure target packages don't reference perlnative
@ 2013-04-30 12:41 Richard Purdie
  2013-04-30 13:02 ` Paul Barker
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-04-30 12:41 UTC (permalink / raw)
  To: openembedded-core

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

which is undesireable, this patch fixes that.

Signed-off-by: Richard Purdie <richard.purdie@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
 }
 





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-05-03 15:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-30 12:41 [PATCH] dpkg: Ensure target packages don't reference perlnative Richard Purdie
2013-04-30 13:02 ` Paul Barker
2013-05-03 15:38   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox