Bug 10247

Summary: bitbake does not parse ~ (home) correctly
Product: [Build System, Metadata & Runtime] BitBake Reporter: Juro Bystricky <juro.bystricky>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: 2.1   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: Don't know

Description Juro Bystricky 2016-09-08 20:54:18 UTC
Put this in local.conf:
DL_DIR="~/my-yocto-downloads"

$ bitbake <whatever>

Witness all kinds of downloads errors and downloaded files in various
wrong locations.
Comment 1 Richard Purdie 2016-09-09 13:51:07 UTC
~ is a shell expansion and bitbake doesn't expand in the same way as the shell does. Supporting this would turn into a nightmare as you'd have to know which variables were considered "paths" and there is no such markup, we'd have to guess. You can guarantee that if we did try, we'd get it wrong (e.g. ~ can also be used in version strings).

So I really can't see any way to support this, sorry.