oe-setup-rpmrepo: add native sysroot so nativepython can be found by env

Submitted by Peter Bigot on Aug. 27, 2013, 7:59 p.m.

Details

Message ID 1377633551-11880-1-git-send-email-pab@pabigot.com
State Accepted
Commit ce37ef05c14ba28773823d1f14f629c37c76d827
Headers show

Commit Message

Peter Bigot Aug. 27, 2013, 7:59 p.m.
From: "Peter A. Bigot" <pab@pabigot.com>

This avoids the following new behavior resulting from the create_wrapper
fixes:

  llc[11]$ ../poky/scripts/oe-setup-rpmrepo
  /usr/bin/env: nativepython: No such file or directory

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
---
 scripts/oe-setup-rpmrepo |    1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/scripts/oe-setup-rpmrepo b/scripts/oe-setup-rpmrepo
index ea885f6..917b98b 100755
--- a/scripts/oe-setup-rpmrepo
+++ b/scripts/oe-setup-rpmrepo
@@ -90,6 +90,7 @@  if [ ! -e "$CREATEREPO" ]; then
 	exit 1
 fi
 
+export PATH=${PATH}:${OECORE_NATIVE_SYSROOT}/usr/bin
 
 $CREATEREPO "$RPM_DIR"