summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorChristopher Clark <christopher.w.clark@gmail.com>2018-08-09 18:32:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-14 11:36:31 +0100
commite02e5c52fdc5e37670bb6d0e3e81675cdbee04ae (patch)
treee89decd283b05e3fcb50e007a488a7a6ccd97275 /meta/recipes-graphics
parentc0f9caeda5480968c5d05fdacde8f10676db5c51 (diff)
downloadpoky-e02e5c52fdc5e37670bb6d0e3e81675cdbee04ae.tar.gz
libjpeg-turbo: fix timezone of reproducible build timestamp
Avoids producing different build results in different timezones. Uses UTC with SOURCE_DATE_EPOCH. (From OE-Core rev: b159cb615feb7f27f8d2afc71f547742bb19cde0) Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb
index 15353b5b5d..6be6aa572c 100644
--- a/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb
+++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.3.bb
@@ -46,7 +46,7 @@ DEBUG_OPTIMIZATION_append_armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb
46def get_build_time(d): 46def get_build_time(d):
47 if d.getVar('SOURCE_DATE_EPOCH') != None: 47 if d.getVar('SOURCE_DATE_EPOCH') != None:
48 import datetime 48 import datetime
49 return " --with-build-date="+ datetime.datetime.fromtimestamp(float(d.getVar('SOURCE_DATE_EPOCH'))).strftime("%Y%m%d") 49 return " --with-build-date="+ datetime.datetime.utcfromtimestamp(float(d.getVar('SOURCE_DATE_EPOCH'))).strftime("%Y%m%d")
50 return "" 50 return ""
51 51
52EXTRA_OECONF_append_class-target = "${@get_build_time(d)}" 52EXTRA_OECONF_append_class-target = "${@get_build_time(d)}"