Openbmc: [bitbake] Taskhash mismatch for os-release

Created on 19 Dec 2016  路  5Comments  路  Source: openbmc/openbmc

I've faced two issues:

  1. DISTRO_VERSION is not overwritten by phosphor's settings (got v1.99.0-githash-...)
  2. When moving .git out get a taskhash mismatch.

To fix this just add a line after this:

do_deploy[vardepsexclude] = "BUILD_ID VERSION VERSION_ID"

All 5 comments

Duplicate to #124

@ya-mouse do you mind pushing a fix into gerrit? I've run into this as well and it's a little irritating.

I've found that it fix (while os-release.bb has changed) only for the first time. If I change env, then it came back until I touch the os-release.bb. So, need to dive deeper to find a cause.

Just to backlog the findings. There is a build_dependencies routine to calculate deps depending on flags. We have to use:

do_compile[vardepsexclude] = "VAR1 VAR2..."

instead of:

do_compile_remove[vardeps] = "VAR1 VAR2..."

Here is the hash calculation part including variables values.
In our case we miss to exclude at least one more variable: PRETTY_NAME. Also, we might exclude NAME.

I can push a fix to gerrit. It's just one line fix.

Yes, please do. It would be appreciated.

Was this page helpful?
0 / 5 - 0 ratings