Skip to contentSkip to conversation

gnome-online-accounts: Fix build race seen on musl systems

PATCH New Khem Raj 1 participant 2 messages Dec 31, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 gnome-online-accounts: Fix build race seen on musl systems

Backport a patch to fix correct use of dependency object

---
 ...se-the-appropriate-dependency-object.patch | 35 +++++++++++++++++++
 .../gnome-online-accounts_3.46.0.bb           |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-build-Use-the-appropriate-dependency-object.patch
meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-build-Use-the-appropriate-dependency-object.patch new file +35 -0
new file mode 100644
index 0000000000..838ca1a7d4
@@ -0,0 +1,35 @@
+From 06240574626eb21af37cf7dde5bf81e892dff467 Mon Sep 17 00:00:00 2001
+From: Emmanuele Bassi <[email protected]>
+Date: Wed, 5 Oct 2022 22:15:37 +0100
+Subject: [PATCH] build: Use the appropriate dependency object
+
+Just using `link_with` will not ensure that the GOA web extension shared
+module is properly built against libgoa-backend and libgoa; the
+generated headers must be transitively available by the time we build
+the shared module.
+
+Fixes: #226
+Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/commit/fe86bfb0271735c8130367c46536b08dad5c20d8]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ src/goabackend/meson.build | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/src/goabackend/meson.build b/src/goabackend/meson.build
+index f5382b3..865b2d2 100644
+--- a/src/goabackend/meson.build
++++ b/src/goabackend/meson.build
+@@ -157,9 +157,8 @@ libgoa_web_extension = shared_module(
+   'goawebextension',
+   libgoawebextension_sources,
+   include_directories: common_incs + [goa_inc],
+-  dependencies: deps,
++  dependencies: [deps, libgoa_backend_dep],
+   c_args: cflags,
+-  link_with: libgoa_backend,
+   install: true,
+   install_dir: join_paths(goa_pkglibdir, 'web-extensions')
+ )
+-- 
+2.39.0
+
meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.46.0.bb +1 -0
index 80cf4969cd..ce02a507da 100644
@@ -8,6 +8,7 @@ inherit gnomebase gsettings gobject-introspection gtk-icon-cache vala features_c
 
 DEPENDS = "gtk+3 gtk+3-native gdk-pixbuf dbus json-glib libxml2 webkitgtk glib-2.0 rest libsecret"
 
+SRC_URI += "file://0001-build-Use-the-appropriate-dependency-object.patch"
 SRC_URI[archive.sha256sum] = "5e7859ce4858a6b99d3995ed70527d66e297bb90bbf75ec8780fe9da22c1fcaa"
 
 PACKAGECONFIG_SOUP ?= "soup3"
Signature · 1 line
2.39.0
author
#1 lore raw

PATCH 2/2 imagemagick: Do not set ac_cv_sys_file_offset_bits

This is detected during configure due to AC_SYS_LARGEFILE autoconf macro which is set to 64 if off_t is 64bit and then assigned to -D_FILE_OFFSET_BITS=${ac_cv_sys_file_offset_bits} and system expects it to be a number not a string.

---
 meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb | 1 -
 1 file changed, 1 deletion(-)
meta-oe/recipes-support/imagemagick/imagemagick_7.0.10.bb +0 -1
index 010288b0d6..b6344a381f 100644
@@ -22,7 +22,6 @@ inherit autotools pkgconfig update-alternatives
 # if someone needs xml support then fix it first
 EXTRA_OECONF = "--program-prefix= --program-suffix=.im7 --without-perl --disable-openmp --without-xml --disable-opencl"
 
-CACHED_CONFIGUREVARS = "ac_cv_sys_file_offset_bits=yes"
 PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
 PACKAGECONFIG[cxx] = "--with-magick-plus-plus,--without-magick-plus-plus"
 PACKAGECONFIG[graphviz] = "--with-gvc,--without-gvc,graphviz"
Signature · 1 line
2.39.0