summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/convert-srcuri.py
diff options
context:
space:
mode:
authorOleksandr Hnatiuk <ohnatiuk@cisco.com>2023-07-25 09:51:48 -0700
committerSteve Sakoman <steve@sakoman.com>2023-08-15 06:18:49 -1000
commit805b208d23409be039e043691c663803955d5196 (patch)
tree37c13b18c97b9eb8341e4fd2424708b63efec5fb /scripts/contrib/convert-srcuri.py
parent9c34365a3d56520117938aba7c05deb4746f0b4d (diff)
downloadpoky-805b208d23409be039e043691c663803955d5196.tar.gz
file: fix the way path is written to environment-setup.d
$OECORE_NATIVE_SYSROOT is not escaped, thus it is expanded to an empty string. This happens to work because we have ${datadir} which in this context is relocated to the buildtools sysroot after installation of buildtools. If the $ before OECORE_NATIVE_SYSROOT is escaped, it will be saved to file.sh as intended, but MAGIC will point to the wrong location because both OECORE_NATIVE_SYSROOT and datadir resolve to sysroot which doubles the path like so: /path/to/buildtools/sysroots/x86_64-xesdk-linux/path/to/buildtools/sysroots/x86_64-xesdk-linux/usr/share/misc/magic.mgc which does not exist. So, removing reference to OECORE_NATIVE_SYSROOT. (From OE-Core rev: 7ae5c9a17d6f8133fa5b4e127dd4e9cc43454ee8) Signed-off-by: Oleksandr Hnatiuk <ohnatiuk@cisco.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit c6206249683876670602888e78ecaf719753a317) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'scripts/contrib/convert-srcuri.py')
0 files changed, 0 insertions, 0 deletions