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

login
register
mail settings
Submitter Peter Bigot
Date Aug. 27, 2013, 7:59 p.m.
Message ID <1377633551-11880-1-git-send-email-pab@pabigot.com>
Download mbox | patch
Permalink /patch/56769/
State Accepted
Commit 118d74e28ca73135a7c0924a791a17847752e655
Headers show

Comments

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

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"