summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-11-20 14:12:01 +0800
committerKhem Raj <raj.khem@gmail.com>2025-11-20 02:01:29 -0800
commit20b8ac86a1d3dfffbc5700e4f53fbc3980f2b230 (patch)
tree4331219703dfcb3849ecf144c3cc4115c6f6c98e
parent3e446998209fbb1f3d917300db91993834eeb02d (diff)
downloadmeta-openembedded-20b8ac86a1d3dfffbc5700e4f53fbc3980f2b230.tar.gz
libtracefs: support reproducible builds
[snip of Makefile] # bison will create both sqlhist.tab.c and sqlhist.tab.h sqlhist.tab.h: sqlhist.tab.c: sqlhist.y sqlhist.tab.h bison --debug -v --report-file=bison.report -d -o $@ $< [snip] sources of libtracefs is fetched by git, the mtime of sqlhist.y, sqlhist.tab.c is random. so sometimes, sqlhist.tab.c is regenerated, sometimes, sqlhist.tab.c in original sources in used. bison used to gernerate sqlhist.tab.c by upstream libtracefs maybe has different version with the build host one. This make the final libtracefs.so not reproducible. This fix touch sqlhist.tab.c to make it has the newest mtime, and sqlhist.tab.c is not regenerated during build. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb b/meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb
index b6bae96896..35eabc7b11 100644
--- a/meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb
+++ b/meta-oe/recipes-kernel/libtracefs/libtracefs_1.8.2.bb
@@ -16,6 +16,10 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git;branch=${BP
16 16
17inherit pkgconfig bash-completion 17inherit pkgconfig bash-completion
18 18
19do_compile:prepend() {
20 touch ${S}/src/sqlhist.tab.c
21}
22
19do_install() { 23do_install() {
20 oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig 24 oe_runmake install DESTDIR=${D} pkgconfig_dir=${libdir}/pkgconfig
21} 25}