summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-10-30 23:26:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-31 08:54:13 +0000
commit0f34a5b10567333b970ea5c335ee4c98dbe9b9e4 (patch)
tree8a92db876b0f0e315f8d3bbbb2fdb2b27aab394d /meta/recipes-gnome
parentebf52f90d824896439aa9a34b07943bbf74363c2 (diff)
downloadpoky-0f34a5b10567333b970ea5c335ee4c98dbe9b9e4.tar.gz
json-glib: fix reproducibility
(From OE-Core rev: fd7e1a40bf29b552b90e3b20863b8c79594bcd85) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r--meta/recipes-gnome/json-glib/json-glib/0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch30
-rw-r--r--meta/recipes-gnome/json-glib/json-glib_1.6.0.bb3
2 files changed, 32 insertions, 1 deletions
diff --git a/meta/recipes-gnome/json-glib/json-glib/0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch b/meta/recipes-gnome/json-glib/json-glib/0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch
new file mode 100644
index 0000000000..e5bfdcd4b7
--- /dev/null
+++ b/meta/recipes-gnome/json-glib/json-glib/0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch
@@ -0,0 +1,30 @@
1From 0f06c4cb4a57083c08312144b03c8346cf620be6 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Oct 2020 22:15:29 +0000
4Subject: [PATCH] json-glib/json-enum-types.c.in: fix build reproducibility
5
6Changes the comment and include to reference the file basename
7instead of the full path. This ensures that the generated file is
8reproducible when it is included in source packages meant for debugging.
9
10Upstream-Status: Pending
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 json-glib/json-enum-types.c.in | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/json-glib/json-enum-types.c.in b/json-glib/json-enum-types.c.in
17index da07c46..7b39290 100644
18--- a/json-glib/json-enum-types.c.in
19+++ b/json-glib/json-enum-types.c.in
20@@ -9,8 +9,8 @@
21
22 /*** BEGIN file-production ***/
23
24-/* enumerations from "@filename@" */
25-#include "@filename@"
26+/* enumerations from "@basename@" */
27+#include "@basename@"
28
29 /*** END file-production ***/
30
diff --git a/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb b/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb
index 3cb637f220..82f983f3c5 100644
--- a/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb
+++ b/meta/recipes-gnome/json-glib/json-glib_1.6.0.bb
@@ -19,7 +19,8 @@ GTKDOC_MESON_OPTION = "gtk_doc"
19GTKDOC_MESON_ENABLE_FLAG = 'enabled' 19GTKDOC_MESON_ENABLE_FLAG = 'enabled'
20GTKDOC_MESON_DISABLE_FLAG = 'disabled' 20GTKDOC_MESON_DISABLE_FLAG = 'disabled'
21 21
22SRC_URI += " file://run-ptest" 22SRC_URI += "file://run-ptest \
23 file://0001-json-glib-json-enum-types.c.in-fix-build-reproducibi.patch"
23SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73" 24SRC_URI[archive.sha256sum] = "0d7c67602c4161ea7070fab6c5823afd9bd7f7bc955f652a50d3753b08494e73"
24 25
25PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native" 26PACKAGECONFIG[manpages] = "-Dman=true,-Dman=false,libxslt-native xmlto-native"