summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-03 15:59:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-04 15:15:14 +0100
commite8fd5149faf0b78ae5674e30b01077edecd53799 (patch)
tree945e701b395eebc432362c6984961324c531c49c /meta/recipes-core/glibc/glibc
parent48b89b735d852daa0e4b51efb714344cea8369d2 (diff)
downloadpoky-e8fd5149faf0b78ae5674e30b01077edecd53799.tar.gz
glibc-tests: Avoid reproducibility issues
Currently, there are hardcoded paths in the binaries installed by this recipe, at least one some architectures. Change the compile definitions to point to more appropriate paths. Ideally we'd rework this patch into a form acceptable to upstream but I'm not entirely sure what that would look like right now. (From OE-Core rev: ede7ab3bbf87cc7d7e713d435ea8a88035c2e46e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc/glibc')
-rw-r--r--meta/recipes-core/glibc/glibc/reproducible-paths.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/reproducible-paths.patch b/meta/recipes-core/glibc/glibc/reproducible-paths.patch
new file mode 100644
index 0000000000..0754dca62b
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/reproducible-paths.patch
@@ -0,0 +1,23 @@
1Avoid hardcoded build time paths in the output binaries by replacing the compile
2definitions with the output locations.
3
4Upstream-Status: Inappropriate [would need reworking somehow to be acceptable upstream]
5Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6
7Index: git/support/Makefile
8===================================================================
9--- git.orig/support/Makefile
10+++ git/support/Makefile
11@@ -216,9 +216,9 @@ libsupport-inhibit-o += .o
12 endif
13
14 CFLAGS-support_paths.c = \
15- -DSRCDIR_PATH=\"`cd .. ; pwd`\" \
16- -DOBJDIR_PATH=\"`cd $(objpfx)/..; pwd`\" \
17- -DOBJDIR_ELF_LDSO_PATH=\"`cd $(objpfx)/..; pwd`/elf/$(rtld-installed-name)\" \
18+ -DSRCDIR_PATH=\"$(oe_srcdir)\" \
19+ -DOBJDIR_PATH=\"$(libdir)/glibc-tests/ptest/tests/glibc-ptest\" \
20+ -DOBJDIR_ELF_LDSO_PATH=\"$(slibdir)/$(rtld-installed-name)\" \
21 -DINSTDIR_PATH=\"$(prefix)\" \
22 -DLIBDIR_PATH=\"$(libdir)\" \
23 -DBINDIR_PATH=\"$(bindir)\" \