Patchwork dpkg: Ensure target packages don't reference perlnative

login
register
mail settings
Submitter Richard Purdie
Date April 30, 2013, 12:41 p.m.
Message ID <1367325716.5379.90.camel@ted>
Download mbox | patch
Permalink /patch/49145/
State Accepted
Commit 82a55f7808ba635f8ffc841cf9f3e7b675f91aea
Headers show

Comments

Richard Purdie - April 30, 2013, 12:41 p.m.
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>
---
Paul Barker - April 30, 2013, 1:02 p.m.
On 30 April 2013 13:41, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> 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>

Missing a line in the commit message?

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
Richard Purdie - May 3, 2013, 3:38 p.m.
On Tue, 2013-04-30 at 14:02 +0100, Paul Barker wrote:
> On 30 April 2013 13:41, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > 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>
> 
> Missing a line in the commit message?

It was swallowed by git. I fixed it when I merged the commit.

Cheers,

Richard

Patch

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
 }