python3-cython: improve reprodcibility

Submitted by chee.yang.lee@intel.com on Oct. 8, 2020, 1:21 a.m. | Patch ID: 177052

Details

Message ID 20201008012139.56459-1-chee.yang.lee@intel.com
State New
Headers show

Commit Message

chee.yang.lee@intel.com Oct. 8, 2020, 1:21 a.m.
From: Lee Chee Yang <chee.yang.lee@intel.com>

fix below diff in diffoscope.
diffoscope diff :-
│ │ ├──
./usr/lib/python3.8/site-packages/Cython-0.29.21-py3.8.egg-info/SOURCES.txt
│ │ │ @@ -11,22 +11,22 @@
│ │ │  cygdb.py
│ │ │  cython.py
│ │ │  cythonize.py
│ │ │  pylintrc
│ │ │  runtests.py
│ │ │  setup.py
│ │ │  setupegg.py
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/FlowControl.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/FusedNode.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/Scanning.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/Visitor.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Plex/Actions.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Plex/Scanners.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Runtime/refnanny.c
│ │ │
-/yocto/poky-master/build-2/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Tempita/_tempita.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/FlowControl.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/FusedNode.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/Scanning.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Compiler/Visitor.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Plex/Actions.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Plex/Scanners.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Runtime/refnanny.c
│ │ │
+/yocto/poky-master/build/tmp/work/skylake-64-poky-linux/python3-cython/0.29.21-r0/Cython-0.29.21/Cython/Tempita/_tempita.c
│ │ │  Cython/CodeWriter.py

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
---
 meta/recipes-devtools/python/python3-cython_0.29.21.bb | 3 +++
 1 file changed, 3 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-devtools/python/python3-cython_0.29.21.bb b/meta/recipes-devtools/python/python3-cython_0.29.21.bb
index 2ce6bdbd68..81b3c02180 100644
--- a/meta/recipes-devtools/python/python3-cython_0.29.21.bb
+++ b/meta/recipes-devtools/python/python3-cython_0.29.21.bb
@@ -15,4 +15,7 @@  do_install_append() {
     mv ${D}${bindir}/cython ${D}${bindir}/cython3
     mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3
     mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3
+
+    # remove WORKDIR info from SOURCES.txt to improve reproducibility
+    sed -i 's#${WORKDIR}#/#g' ${D}${PYTHON_SITEPACKAGES_DIR}/Cython-*-info/SOURCES.txt
 }