diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2022-08-08 23:27:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-18 17:52:23 +0100 |
commit | 54846f581e6a80caadb5db6fc392efc46114a15d (patch) | |
tree | 64187646be7a6fb4bb23ee506bb8f280a8aad312 /meta/recipes-core/libxml/libxml2_2.9.10.bb | |
parent | b361f2a931bc83c35ae2c4088dca2e3477a964f4 (diff) | |
download | poky-54846f581e6a80caadb5db6fc392efc46114a15d.tar.gz |
libxml2: Port gentest.py to Python-3
* but it still won't work well on hosts without libxml2, make
sure to use pre-generated testapi.c in do_compile_ptest
* this is reproducible with SOURCE_DATE_EPOCH set to 0 which
e.g. meta-updater still sets by default for DISTROs which
use it :(, see https://github.com/uptane/meta-updater/pull/35
(From OE-Core rev: 2f78dbcb300e7deae6cf39263e874ee8776d7a7b)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/libxml/libxml2_2.9.10.bb')
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.9.10.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-core/libxml/libxml2_2.9.10.bb b/meta/recipes-core/libxml/libxml2_2.9.10.bb index b3ebf15751..d1c1f0884f 100644 --- a/meta/recipes-core/libxml/libxml2_2.9.10.bb +++ b/meta/recipes-core/libxml/libxml2_2.9.10.bb | |||
@@ -32,6 +32,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20080827.tar.gz;subdir=${BP};name=te | |||
32 | file://CVE-2022-23308-fix-regression.patch \ | 32 | file://CVE-2022-23308-fix-regression.patch \ |
33 | file://CVE-2022-29824-dependent.patch \ | 33 | file://CVE-2022-29824-dependent.patch \ |
34 | file://CVE-2022-29824.patch \ | 34 | file://CVE-2022-29824.patch \ |
35 | file://0001-Port-gentest.py-to-Python-3.patch \ | ||
35 | " | 36 | " |
36 | 37 | ||
37 | SRC_URI[archive.sha256sum] = "593b7b751dd18c2d6abcd0c4bcb29efc203d0b4373a6df98e3a455ea74ae2813" | 38 | SRC_URI[archive.sha256sum] = "593b7b751dd18c2d6abcd0c4bcb29efc203d0b4373a6df98e3a455ea74ae2813" |
@@ -89,6 +90,16 @@ do_configure_prepend () { | |||
89 | } | 90 | } |
90 | 91 | ||
91 | do_compile_ptest() { | 92 | do_compile_ptest() { |
93 | # Make sure that testapi.c is newer than gentests.py, because | ||
94 | # with reproducible builds, they will both get e.g. Jan 1 1970 | ||
95 | # modification time from SOURCE_DATE_EPOCH and then check-am | ||
96 | # might try to rebuild_testapi, which will fail even with | ||
97 | # 0001-Port-gentest.py-to-Python-3.patch, because it needs | ||
98 | # libxml2 module (libxml2-native dependency and correctly | ||
99 | # set PYTHON_SITE_PACKAGES), it's easier to | ||
100 | # just rely on pre-generated testapi.c from the release | ||
101 | touch ${S}/testapi.c | ||
102 | |||
92 | oe_runmake check-am | 103 | oe_runmake check-am |
93 | } | 104 | } |
94 | 105 | ||