Bug 12543 - (reproducibility) python-xcbgen contains host references and timestamps
Summary: (reproducibility) python-xcbgen contains host references and timestamps
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7 M2
Assignee: Hongxu Jia
QA Contact:
URL:
Whiteboard: reproducibility
Depends on:
Blocks:
 
Reported: 2018-02-12 23:17 UTC by Juro Bystricky
Modified: 2018-12-05 02:53 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
diffoscope output demonstrating the bug. (293.53 KB, text/html)
2018-02-12 23:17 UTC, Juro Bystricky
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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>