gcr: ensure gcr-oids.h is generated before use
PATCH 1/1 gcr: ensure gcr-oids.h is generated before use
Add it to the list of sources needed before library building in the ui directory. It is already in the list for the gcr directory.
Signed-off-by Joe Slater <[email protected]>
--- meta/recipes-gnome/gcr/gcr/gcr-oids.patch | 28 ++++++++++++++++++++++++++++ meta/recipes-gnome/gcr/gcr_3.36.0.bb | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-gnome/gcr/gcr/gcr-oids.patch
meta/recipes-gnome/gcr/gcr/gcr-oids.patch new file +28 -0
@@ -0,0 +1,28 @@ +gcr: add two generated files to gcr_ui_sources + +gcr-oids.h is needed by several sources in the ui directory but is not in the +list of sources needed before compile time. In a highly parallel build environment +this can cause errors like -- + +In file included from ../gcr-3.36.0/ui/gcr-certificate-request-renderer.c:20: +./gcr/gcr-oids.h:5: error: unterminated #ifndef + 5 | #ifndef GCR_OIDS_ + | + +We add gcr_oids, which generates the file, to the sources needed. + +Upstream-Status: Pending + +Signed-off-by: Joe Slater <[email protected]> + + +--- a/ui/meson.build ++++ b/ui/meson.build +@@ -75,6 +75,7 @@ gcr_ui_sources = [ + gcr_ui_private_sources, + gcr_ui_public_sources, + gcr_ui_enums_gen, ++ gcr_oids, + ] + + gcr_ui_deps = [
meta/recipes-gnome/gcr/gcr_3.36.0.bb +2 -0
@@ -18,6 +18,8 @@ inherit gnomebase gtk-icon-cache gtk-doc features_check upstream-version-is-even REQUIRED_DISTRO_FEATURES = "x11" SRC_URI += " file://0001-meson.build-correctly-set-internal-vapi-dependencies.patch" +SRC_URI += " file://gcr-oids.patch" + SRC_URI[archive.md5sum] = "adc65563b6b458507b9a578a8b68fb61" SRC_URI[archive.sha256sum] = "aaf9bed017a2263c6145c89a1a84178f9f40f238426463e4ae486694ef5f6601"
Signature · 1 line
2.7.4
Quoted 21 lines · Joe Slater
Add it to the list of sources needed before library building in the ui directory. It is already in the list for the gcr directory.
Signed-off-by Joe Slater <[email protected]>--- meta/recipes-gnome/gcr/gcr/gcr-oids.patch | 28 ++++++++++++++++++++++++++++ meta/recipes-gnome/gcr/gcr_3.36.0.bb | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-gnome/gcr/gcr/gcr-oids.patchmeta/recipes-gnome/gcr/gcr/gcr-oids.patch new file +4
-0@@ -0,0 +1,28 @@ +gcr: add two generated files to gcr_ui_sources + +gcr-oids.h is needed by several sources in the ui directory but is not in the +list of sources needed before compile time. In a highly parallel build environment
meta/recipes-gnome/gcr/gcr/gcr-oids.patch line 14
Quoted 10 lines
meta/recipes-gnome/gcr/gcr/gcr-oids.patch new file +10
-0+this can cause errors like -- + +In file included from ../gcr-3.36.0/ui/gcr-certificate-request-renderer.c:20: +./gcr/gcr-oids.h:5: error: unterminated #ifndef + 5 | #ifndef GCR_OIDS_ + | + +We add gcr_oids, which generates the file, to the sources needed. + +Upstream-Status: Pending
This looks like a straightforward fix upstream should take, has it been mentioned to them?
Cheers,
Richard