Bug 10798 - eSDK: sdk-update fails with error if no updates are available
Summary: eSDK: sdk-update fails with error if no updates are available
Status: NEW
Alias: None
Product: eSDK
Classification: Yocto Project Subprojects
Component: eSDK (show other bugs)
Version: 2.4.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-12-13 01:42 UTC by Henry Bruce
Modified: 2025-07-03 15:32 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Bruce 2016-12-13 01:42:58 UTC
I built an core-image-base eSDK targeting qemux86. eSDK has SDK_UPDATE_URL set and oe-publish-sdk has been run

$ bitbake core-image-base -c populate_sdk_ext
$ oe-publish-sdk tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-i586-toolchain-ext-2.2.sh /path/to/esdk/update

Observed behavior
=================
$ wget poky-glibc-x86_64-core-image-base-i586-toolchain-ext-2.2.sh http://....
$ ./poky-glibc-x86_64-core-image-base-i586-toolchain-ext-2.2.sh -d /path/to/esdk
$ /path/to/esdk/environment-setup-i586-poky-linux
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.
$ devtool sdk-update
Cloning into 'layers'...
Checking connectivity... done.
NOTE: Preparing build system... (This may take some time.)
ERROR: Preparation failed:
Nothing to do.  Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.

Expected behavior
=================
Install eSDK and set up environment as above
$ devtool sdk-update
Your eSDK is up-to-date (or some similar message)
Comment 1 Paul Eggleton 2016-12-13 02:53:15 UTC
Minor missing detail - this is with SDK_EXT_TYPE = "minimal".
Comment 2 brian avery 2017-03-22 20:30:36 UTC
grabbing so I can build knowledge :)
Comment 3 brian avery 2017-07-30 13:33:55 UTC
Moving to M3
Comment 4 brian avery 2017-08-29 22:59:05 UTC
moving to m4
Comment 5 brian avery 2017-12-08 22:16:57 UTC
Moving to Paul
Comment 6 Vineeth Chowdary 2018-08-09 14:29:41 UTC
I am able to see this error in rocko release with full e-SDK

Steps:
=====

$ wget http://mirrors.kernel.org/yocto/yocto/yocto-2.4/poky-rocko-18.0.0.tar.bz2
$ tar xvf poky-rocko-18.0.0.tar.bz2
$ cd poky-rocko-18.0.0
$ source oe-init-build-env
$ bitbake core-image-minimal -c do_populate_sdk_ext

(publish eSDK over http )
$ oe-publish-sdk tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4.sh ~/sdk/update/
$ cd ~/sdk
$ python -m SimpleHTTPServer 8090

(Install eSDK from installer)
$ tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4.sh -p -y -d ~/sdk/sdk-1
$ . ~/sdk/sdk-1/environment-setup-i586-poky-linux

(Update SDK with broken link)
$ devtool sdk-update http://mylocal


(Build and publish new eSDK )
Follow above steps till publish with change ( ex - example.bb )

(Update SDK with proper link )
$ cd ~/sdk/sdk-1
$ . environment-setup-i586-poky-linux
$ devtool sdk-update http://myip:8090/update

Observed Behaviour:
==================

ERROR: Preparation failed:
Nothing to do.  Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.

Expected Behaviour:
==================
sdk update should be success
Comment 7 Vineeth Chowdary 2018-08-09 15:48:16 UTC
(In reply to comment #6)
> I am able to see this error in rocko release with full e-SDK
> 
> Steps:
> =====
> 
> $ wget
> http://mirrors.kernel.org/yocto/yocto/yocto-2.4/poky-rocko-18.0.0.tar.bz2
> $ tar xvf poky-rocko-18.0.0.tar.bz2
> $ cd poky-rocko-18.0.0
> $ source oe-init-build-env
> $ bitbake core-image-minimal -c do_populate_sdk_ext
> 
> (publish eSDK over http )
> $ oe-publish-sdk
> tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4.
> sh ~/sdk/update/
> $ cd ~/sdk
> $ python -m SimpleHTTPServer 8090
> 
> (Install eSDK from installer)
> $
> tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-2.4.
> sh -p -y -d ~/sdk/sdk-1
> $ . ~/sdk/sdk-1/environment-setup-i586-poky-linux
> 
> (Update SDK with broken link)
> $ devtool sdk-update http://mylocal
> 
> 
> (Build and publish new eSDK )
> Follow above steps till publish with change ( ex - example.bb )
> 
> (Update SDK with proper link )
> $ cd ~/sdk/sdk-1
> $ . environment-setup-i586-poky-linux
> $ devtool sdk-update http://myip:8090/update
> 
> Observed Behaviour:
> ==================
> 
> ERROR: Preparation failed:
> Nothing to do.  Use 'bitbake world' to build everything, or run 'bitbake
> --help' for usage information.
> 
> Expected Behaviour:
> ==================
> sdk update should be success

please ignore it.

we have to use --skip-prepare, as I installed e-SDK in  publish mode
Comment 8 Randy MacLeod 2023-06-29 16:38:24 UTC
Still worth doing when we have the people available. -- YP bug review.
Comment 9 Randy MacLeod 2025-07-03 15:32:51 UTC
Still worth doing when we have the people available. -- YP bug review.