Bug 11491 - devtool modify from eSDK fails
Summary: devtool modify from eSDK fails
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4 M1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-05-10 09:53 UTC by Andrea Galbusera
Modified: 2017-05-15 22:39 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
devtool modify log (4.40 KB, text/x-log)
2017-05-10 09:53 UTC, Andrea Galbusera
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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!