Bug 11491

Summary: devtool modify from eSDK fails
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Andrea Galbusera <gizero>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, ross.burton
Version: unspecified   
Target Milestone: 2.4 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
devtool modify log none

Description Andrea Galbusera 2017-05-10 09:53:59 UTC
Created attachment 3761 [details]
devtool modify log

Steps to Repeat
================
* Build a stock eSDK for core-image-minimal
$ bitbake core-image-minimal -c populate_sdk_ext
* install the SDK on another host than the one that generated the SDK
* source the eSDK environment
* use devtool to modify a recipe
(sdk)$ devtool modify openssh

Attached is the full log. Further investigation with 'devtool -d modify --keep-temp openssh' (--keep-temp only available after commit 2338032) reveals that one of the scripts running behind the scene, uses paths from the build host.

In particular, the script /home/vagrant/poky_sdk_i586/tmp/work/i586-poky-linux/openssh/7.4p1-r0/devtooltmp-0dew_vqb/workdir/recipe-sysroot/usr/bin/postinst-useradd-dbus declare a quite suspicious PSEUDO variable as:


export PSEUDO="PSEUDO_PREFIX=/scratch/gizero/poky-master-build/tmp/sysroots-components/x86_64/pseudo-native/usr PSEUDO_LOCALSTATEDIR=/scratch/gizero/poky-master-build/tmp/work/i586-poky-linux/dbus/1.10.14-r0/pseudo/ PSEUDO_PASSWD=/home/vagrant/poky_sdk_i586/tmp/work/i586-poky-linux/openssh/7.4p1-r0/devtooltmp-0dew_vqb/workdir/recipe-sysroot:/scratch/gizero/poky-master-build/tmp/sysroots-components/x86_64/pseudo-native PSEUDO_NOSYMLINKEXP=1 PSEUDO_DISABLED=0 PSEUDO_LOCALSTATEDIR=/home/vagrant/poky_sdk_i586/tmp/work/i586-poky-linux/openssh/7.4p1-r0/devtooltmp-0dew_vqb/workdir/recipe-sysroot/var/pseudo /scratch/gizero/poky-master-build/tmp/sysroots-components/x86_64/pseudo-native/usr/bin/pseudo"

Shouln't this be all relative to SDK path instead of build host ones?
Comment 1 Paul Eggleton 2017-05-10 10:59:12 UTC
I think this should be resolved by Peter's recent patchset:

https://patchwork.openembedded.org/series/6598/
Comment 2 Andrea Galbusera 2017-05-11 14:59:18 UTC
Peter's patchset worked for me here. Thanks Paul for pointing to it!