summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/rpm2cpio/rpm2cpio-native_1.2_2.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/rpm2cpio/rpm2cpio-native_1.2_2.bb b/packages/rpm2cpio/rpm2cpio-native_1.2_2.bb
index 4d3392c128..23d6fead53 100644
--- a/packages/rpm2cpio/rpm2cpio-native_1.2_2.bb
+++ b/packages/rpm2cpio/rpm2cpio-native_1.2_2.bb
@@ -17,5 +17,9 @@ do_stage() {
install -d ${STAGING_BINDIR}
sed -e '1,1s|${bindir}/|${bindir}/env |' bin/rpm2cpio.pl \
> ${STAGING_BINDIR}/rpm2cpio.pl
+
+ my_PERL="/usr/bin/env perl"
+ sed -e "s%/[a-zA-Z0-9/]*/bin/perl%$my_PERL%g" -i ${STAGING_BINDIR}/rpm2cpio.pl
+
chmod 0755 ${STAGING_BINDIR}/rpm2cpio.pl
}