Skip to contentSkip to conversation

dpkg: Ensure target packages don't reference perlnative

PATCH In review Richard Purdie 2 participants 3 messages Apr 30, 2013 – May 3, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dpkg: Ensure target packages don't reference perlnative

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

which is undesireable, this patch fixes that.

---

meta/recipes-devtools/dpkg/dpkg.inc +1 -0
index 92a5adc..d773fbd 100644
@@ -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
 }
 
#2 lore raw
Quoted 9 lines · Paul Barker
Quoted 5 lines · Richard Purdie

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

which is undesireable, this patch fixes that.

Missing a line in the commit message?

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

Cheers,

Richard