]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
igt-gpu-tools: do not write shortened git commit hash into binaries
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 17 Sep 2023 19:30:43 +0000 (21:30 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Sep 2023 21:39:47 +0000 (22:39 +0100)
Shortened hashes are prone to collisions, and in this case git
lengthens the hash to resolve the collision. This in turn breaks
reproducibility, depending on whether the colliding hash is present
in the history or not. This has been observed here:
http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20230917-br60if6q/packages/diff-html/

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/igt-gpu-tools/igt-gpu-tools_git.bb

index f4799fbc773a3559150cc85d620ffc7ea5d2b03d..6bbc601986d6f9638c7116b76e16fad331ac1ed7 100644 (file)
@@ -26,7 +26,7 @@ PACKAGE_BEFORE_PN = "${PN}-benchmarks ${PN}-tests"
 
 PACKAGECONFIG[chamelium] = "-Dchamelium=enabled,-Dchamelium=disabled,gsl xmlrpc-c"
 
-EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dsrcdir=/usr/src/debug/${PN}/${PV}-${PR}/git/"
+EXTRA_OEMESON = "-Ddocs=disabled -Drunner=enabled -Dsrcdir=/usr/src/debug/${PN}/${PV}-${PR}/git/ -Dversion_hash=${PV}"
 COMPATIBLE_HOST = "(x86_64.*|i.86.*|arm.*|aarch64).*-linux"
 COMPATIBLE_HOST:libc-musl:class-target = "null"
 SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}"