Skip to contentSkip to conversation

poky-extract-sdk bugfix for #670

PATCH In review Scott Garman 2 participants 3 messages Jan 22, 2011 – Jan 28, 2011

lore
Share & tools
lore
#0 lore raw

cover poky-extract-sdk bugfix for #670

Hi Saul,

This pull request includes a fix for the issue Diego Sueiro reported where relative paths given to the poky-extract-sdk script cause errors.

Josh: This is a low-risk commit that I'd like to see included with our Laverne point-release.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: sgarman/extract-sdk-fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/extract-sdk-fix

Thanks,
Scott Garman <[email protected]>
---

Scott Garman (1):
poky-extract-sdk: allow relative paths for extract-dir

 scripts/poky-extract-sdk |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
#1 lore raw

PATCH 1/1 poky-extract-sdk: allow relative paths for extract-dir

psuedo needs a full path to its pid file, so convert relative extract-dir paths to full ones.

The symptom of this bug is receiving the following error:

pseudo: Couldn't open relative/path/to/var/pseudo/pseudo.pid: No such file or directory

This fixes [BUGID #670]

---
 scripts/poky-extract-sdk |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
scripts/poky-extract-sdk +5 -0
index 977adde..a36d79d 100755
@@ -47,6 +47,11 @@ if [ ! -e "$ROOTFS_TARBALL" ]; then
    	exit 1
 fi
 
+# Convert SDK_ROOTFS_DIR to a full pathname
+if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then
+	SDK_ROOTFS_DIR=$(pwd)/$SDK_ROOTFS_DIR
+fi
+
 TAR_OPTS=""
 if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then
 	TAR_OPTS="-xjf"
Signature · 1 line
1.7.1
#2 lore raw
In reply to Scott Garman
Quoted 22 lines · Scott Garman

Hi Saul,

This pull request includes a fix for the issue Diego Sueiro reported where relative paths given to the poky-extract-sdk script cause errors.

Josh: This is a low-risk commit that I'd like to see included with our Laverne point-release.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: sgarman/extract-sdk-fix
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=sgarman/extract-sdk-fix

Thanks,
Scott Garman<[email protected]>
---

Scott Garman (1):
poky-extract-sdk: allow relative paths for extract-dir

Quoted 8 lines
  scripts/poky-extract-sdk |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Pulled into Master

Thanks
Sau!