diff options
| -rw-r--r-- | meta-gnome/recipes-gnome/eog/eog/0001-Replace-filename-with-basename.patch | 48 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/eog/eog_44.1.bb | 1 |
2 files changed, 49 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/eog/eog/0001-Replace-filename-with-basename.patch b/meta-gnome/recipes-gnome/eog/eog/0001-Replace-filename-with-basename.patch new file mode 100644 index 0000000000..26d75780b2 --- /dev/null +++ b/meta-gnome/recipes-gnome/eog/eog/0001-Replace-filename-with-basename.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From d00edda1f57f904e1590828bea3cedb53d789c48 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 24 May 2023 20:33:59 -0700 | ||
| 4 | Subject: [PATCH] Replace filename with basename | ||
| 5 | |||
| 6 | This avoids emitting absolute paths into generated sourcecode, it | ||
| 7 | improves reproducibility. See [1] | ||
| 8 | |||
| 9 | [1] https://developer-old.gnome.org/gobject/stable/glib-mkenums.html | ||
| 10 | |||
| 11 | Upstream-Status: Submitted [https://gitlab.gnome.org/GNOME/eog/-/merge_requests/154] | ||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | src/eog-enum-types.c.template | 4 ++-- | ||
| 15 | src/eog-enum-types.h.template | 2 +- | ||
| 16 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
| 17 | |||
| 18 | diff --git a/src/eog-enum-types.c.template b/src/eog-enum-types.c.template | ||
| 19 | index 0249baf..1013dcf 100644 | ||
| 20 | --- a/src/eog-enum-types.c.template | ||
| 21 | +++ b/src/eog-enum-types.c.template | ||
| 22 | @@ -4,8 +4,8 @@ | ||
| 23 | /*** END file-header ***/ | ||
| 24 | |||
| 25 | /*** BEGIN file-production ***/ | ||
| 26 | -/* enumerations from "@filename@" */ | ||
| 27 | -#include "@filename@" | ||
| 28 | +/* enumerations from "@basename@" */ | ||
| 29 | +#include "@basename@" | ||
| 30 | |||
| 31 | /*** END file-production ***/ | ||
| 32 | |||
| 33 | diff --git a/src/eog-enum-types.h.template b/src/eog-enum-types.h.template | ||
| 34 | index bc3c195..8f4e916 100644 | ||
| 35 | --- a/src/eog-enum-types.h.template | ||
| 36 | +++ b/src/eog-enum-types.h.template | ||
| 37 | @@ -8,7 +8,7 @@ G_BEGIN_DECLS | ||
| 38 | /*** END file-header ***/ | ||
| 39 | |||
| 40 | /*** BEGIN file-production ***/ | ||
| 41 | -/* Enumerations from "@filename@" */ | ||
| 42 | +/* Enumerations from "@basename@" */ | ||
| 43 | |||
| 44 | /*** END file-production ***/ | ||
| 45 | |||
| 46 | -- | ||
| 47 | 2.40.1 | ||
| 48 | |||
diff --git a/meta-gnome/recipes-gnome/eog/eog_44.1.bb b/meta-gnome/recipes-gnome/eog/eog_44.1.bb index fad7de6b28..95e421c883 100644 --- a/meta-gnome/recipes-gnome/eog/eog_44.1.bb +++ b/meta-gnome/recipes-gnome/eog/eog_44.1.bb | |||
| @@ -21,6 +21,7 @@ inherit gnomebase pkgconfig gsettings gobject-introspection gettext mime-xdg fea | |||
| 21 | 21 | ||
| 22 | REQUIRED_DISTRO_FEATURES = "opengl" | 22 | REQUIRED_DISTRO_FEATURES = "opengl" |
| 23 | 23 | ||
| 24 | SRC_URI += "file://0001-Replace-filename-with-basename.patch" | ||
| 24 | SRC_URI[archive.sha256sum] = "e2c963f232fe5a1091dcc18bec25a730e91b02af6e466601efa55e500cd74cab" | 25 | SRC_URI[archive.sha256sum] = "e2c963f232fe5a1091dcc18bec25a730e91b02af6e466601efa55e500cd74cab" |
| 25 | 26 | ||
| 26 | GTKDOC_MESON_OPTION = "gtk_doc" | 27 | GTKDOC_MESON_OPTION = "gtk_doc" |
