Patchwork git: don't hardcode the full path to perl

login
register
mail settings
Submitter Richard Purdie
Date June 13, 2014, 4:37 p.m.
Message ID <1402677465.29913.12.camel@ted>
Download mbox | patch
Permalink /patch/73775/
State Accepted
Commit ce4cd2c31c13f1916e43f70cd0979334a864bee3
Headers show

Comments

Richard Purdie - June 13, 2014, 4:37 p.m.
From: Christopher Larson <kergoth@gmail.com>

Hardcoded paths to perl don't make sense, use from the environment instead.

[Patch taken from meta-mentor by RP]

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Patch

diff --git a/meta/recipes-devtools/git/git.inc b/meta/recipes-devtools/git/git.inc
index 96254f0..0b3807b 100644
--- a/meta/recipes-devtools/git/git.inc
+++ b/meta/recipes-devtools/git/git.inc
@@ -16,6 +16,7 @@  EXTRA_OECONF = "--with-perl=${STAGING_BINDIR_NATIVE}/perl-native/perl \
 inherit autotools-brokensep perlnative
 
 EXTRA_OEMAKE = "NO_PYTHON=1 CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'"
+EXTRA_OEMAKE += "'PERL_PATH=/usr/bin/env perl'"
 EXTRA_OEMAKE_append_class-native = " NO_CROSS_DIRECTORY_HARDLINKS=1"
 
 do_compile_prepend () {