diff options
| -rw-r--r-- | meta/lib/oe/sstatesig.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index d24e3738ae..d5a6200562 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
| @@ -477,6 +477,9 @@ def OEOuthashBasic(path, sigfile, task, d): | |||
| 477 | h = hashlib.sha256() | 477 | h = hashlib.sha256() |
| 478 | prev_dir = os.getcwd() | 478 | prev_dir = os.getcwd() |
| 479 | include_owners = os.environ.get('PSEUDO_DISABLED') == '0' | 479 | include_owners = os.environ.get('PSEUDO_DISABLED') == '0' |
| 480 | include_timestamps = False | ||
| 481 | if task == "package": | ||
| 482 | include_timestamps = d.getVar('BUILD_REPRODUCIBLE_BINARIES') == '1' | ||
| 480 | extra_content = d.getVar('HASHEQUIV_HASH_VERSION') | 483 | extra_content = d.getVar('HASHEQUIV_HASH_VERSION') |
| 481 | 484 | ||
| 482 | try: | 485 | try: |
| @@ -551,6 +554,9 @@ def OEOuthashBasic(path, sigfile, task, d): | |||
| 551 | bb.warn("KeyError in %s" % path) | 554 | bb.warn("KeyError in %s" % path) |
| 552 | raise | 555 | raise |
| 553 | 556 | ||
| 557 | if include_timestamps: | ||
| 558 | update_hash(" %10d" % s.st_mtime) | ||
| 559 | |||
| 554 | update_hash(" ") | 560 | update_hash(" ") |
| 555 | if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode): | 561 | if stat.S_ISBLK(s.st_mode) or stat.S_ISCHR(s.st_mode): |
| 556 | update_hash("%9s" % ("%d.%d" % (os.major(s.st_rdev), os.minor(s.st_rdev)))) | 562 | update_hash("%9s" % ("%d.%d" % (os.major(s.st_rdev), os.minor(s.st_rdev)))) |
