Bug 12363 - unset BBPATH before starting bbserver for Rocko compatibility
Summary: unset BBPATH before starting bbserver for Rocko compatibility
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 2.4.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4.1
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-18 06:40 UTC by David Reyna
Modified: 2018-01-04 16:30 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Reyna 2017-11-18 06:40:41 UTC
In Rocko and before, the BBPATH is not set when sourcing a build environment. However, a recent change in master has changed that.

This results in a Toaster failure when attempting to build a Rocko project with a Toaster from master, because a side effect of the unexpected inheritance of BBPATH is that when the bbserver is started with the Rocko bitbake the "bitbake.lock" file is created in the Toaster build directory instead of the respective build directory.

The resolution is to always unset BBPATH before starting the bbserver. This is forward and backwards compatible.

For example, if Toaster was started from Rocko, it can build both Rocko (because BBPATH was not set) and master projects (because BBPATH will be set by the new environment).