diff options
author | Ross Burton <ross.burton@intel.com> | 2020-02-05 17:32:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-11 23:05:12 +0000 |
commit | 3a54dd9de886a4228a4be1744ba5fd5ff380915c (patch) | |
tree | a7ebf814172a1a679a1ed428b7d3cf21ae1a5d97 /meta/recipes-gnome/gtk+/gtk+3/sort-resources.patch | |
parent | d3d7b1b2d01f1e66dbaeddfa1652de72adcaa2ad (diff) | |
download | poky-3a54dd9de886a4228a4be1744ba5fd5ff380915c.tar.gz |
gtk+3: sort resources for reproducible binaries
The list of resources is gathered with $(wildcard) in Make, which isn't
sorted. If this order changes then the generated libraries will differ.
(From OE-Core rev: f3675be6be29426688187a135221431a0941d007)
(From OE-Core rev: a2a6d9fa4df66a1f52c1c1fec45eedb4199e8162)
(From OE-Core rev: 5c38cdfc67fb2da167012190d24a607dc7b273ba)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+3/sort-resources.patch')
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3/sort-resources.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+3/sort-resources.patch b/meta/recipes-gnome/gtk+/gtk+3/sort-resources.patch new file mode 100644 index 0000000000..7f87372c52 --- /dev/null +++ b/meta/recipes-gnome/gtk+/gtk+3/sort-resources.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | If the resources file isn't sorted in some way then libgdk.so will differ | ||
2 | depending on the inode order of the resource files. | ||
3 | |||
4 | Upstream-Status: Pending | ||
5 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
6 | |||
7 | diff --git a/gdk/Makefile.am b/gdk/Makefile.am | ||
8 | index e25b57ba50..26f2d57c6e 100644 | ||
9 | --- a/gdk/Makefile.am | ||
10 | +++ b/gdk/Makefile.am | ||
11 | @@ -465,7 +465,7 @@ stamp-gc-h: $(top_builddir)/config.status | ||
12 | # Resources | ||
13 | # | ||
14 | |||
15 | -glsl_sources := $(wildcard $(srcdir)/resources/glsl/*.glsl) | ||
16 | +glsl_sources := $(sort $(wildcard $(srcdir)/resources/glsl/*.glsl)) | ||
17 | |||
18 | gdk.gresource.xml: Makefile.am | ||
19 | $(AM_V_GEN) echo "<?xml version='1.0' encoding='UTF-8'?>" > $@; \ | ||