Bug 12543

Summary: (reproducibility) python-xcbgen contains host references and timestamps
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Juro Bystricky <juro.bystricky>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: liezhi.yang, meta.mr.watcher, meta.watcher, randy.macleod, stephano
Version: 2.5   
Target Milestone: 2.7 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: reproducibility
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
diffoscope output demonstrating the bug. none

Description Juro Bystricky 2018-02-12 23:17:10 UTC
Created attachment 4205 [details]
diffoscope output demonstrating the bug.

Please see the attached file: diffoscope output of two builds in two different folders at two different times.
Notice the host references (build path)). This can be fixed by the patch 
https://patchwork.openembedded.org/patch/147228/

In order to remove the timestamps from all .pyc files we need to recompile them with python-native, as we cannot rely on the host python being able to do that.
(both python-native and python3-native were patched to derive the timestamp from SOURCE_DATE_EPOCH if present)
Comment 1 Juro Bystricky 2018-05-22 07:29:31 UTC
Part of the problem (build host references) fixed here:
https://patchwork.openembedded.org/patch/147228/

timestamps fix proposed here:

https://patchwork.openembedded.org/patch/149947/
Comment 2 Hongxu Jia 2018-12-05 02:53:59 UTC
Merged to oe-core

commit 7709b2551c07cfad591bb37817474fd106e7c2f1
Author: Ross Burton <ross.burton@intel.com>
Date:   Tue Nov 20 15:18:44 2018 +0000

    xcb-proto: use python3native to have reproducible pyc files
    
    Signed-off-by: Ross Burton <ross.burton@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>