package/gdk-pixbuf: fix static build
PATCH 1/1 package/gdk-pixbuf: fix static build
Fix static build failure which is raised since the switch to meson-package in commit a7b51ed3013c919b293deb95299e33363fb9df70
Fixes:
- http://autobuild.buildroot.org/results/6cd54c497f5d19342ec94ece713547b887e4c02d
Signed-off-by Fabrice Fontaine <[email protected]>
--- ...ixbuf-io.c-fix-build-without-gmodule.patch | 38 +++++++++++++++++++ package/gdk-pixbuf/gdk-pixbuf.mk | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 package/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patch
package/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 46c7fe11bd0ed8595c3f920d42a9914fa864d893 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Sun, 7 Feb 2021 18:51:14 +0100 +Subject: [PATCH] gdk-pixbuf/gdk-pixbuf-io.c: fix build without gmodule + +Fix the following build failure: + +../gdk-pixbuf/gdk-pixbuf-io.c: In function 'gdk_pixbuf_io_init': +../gdk-pixbuf/gdk-pixbuf-io.c:681:16: error: implicit declaration of function 'gdk_pixbuf_get_module_file'; did you mean '_gdk_pixbuf_get_module'? [-Werror=implicit-function-declaration] + 681 | module_file = gdk_pixbuf_get_module_file (); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ + | _gdk_pixbuf_get_module + +Fixes: + - http://autobuild.buildroot.org/results/6cd54c497f5d19342ec94ece713547b887e4c02d + +Signed-off-by: Fabrice Fontaine <[email protected]> +--- + gdk-pixbuf/gdk-pixbuf-io.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c +index 40eb920c8..2dc2ea6da 100644 +--- a/gdk-pixbuf/gdk-pixbuf-io.c ++++ b/gdk-pixbuf/gdk-pixbuf-io.c +@@ -678,7 +678,9 @@ gdk_pixbuf_io_init (void) + gboolean ret; + + gdk_pixbuf_io_init_builtin (); ++#ifdef USE_GMODULE + module_file = gdk_pixbuf_get_module_file (); ++#endif + ret = gdk_pixbuf_io_init_modules (module_file, NULL); + g_free (module_file); + return ret; +-- +2.29.2 +
package/gdk-pixbuf/gdk-pixbuf.mk +4 -0
@@ -28,6 +28,10 @@ HOST_GDK_PIXBUF_CONF_OPTS = \ -Dintrospection=disabled \ -Dman=false +ifeq ($(BR2_STATIC_LIBS),y) +GDK_PIXBUF_CONF_OPTS += -Dbuiltin_loaders=all +endif + ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) GDK_PIXBUF_CONF_OPTS += -Dintrospection=enabled GDK_PIXBUF_DEPENDENCIES += gobject-introspection
Signature · 1 line
2.29.2
PATCH 1/1 package/gdk-pixbuf: fix static build
Quoted 24 lines · Fabrice Fontaine
Fix static build failure which is raised since the switch to meson-package in commit
a7b51ed3013c919b293deb95299e33363fb9df70Fixes:
- http://autobuild.buildroot.org/results/6cd54c497f5d19342ec94ece713547b887e4c02dSigned-off-by Fabrice Fontaine <[email protected]>--- ...ixbuf-io.c-fix-build-without-gmodule.patch | 38 +++++++++++++++++++ package/gdk-pixbuf/gdk-pixbuf.mk | 4 ++ 2 files changed, 42 insertions(+) create mode 100644 package/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patchpackage/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patch new file +5
-0@@ -0,0 +1,38 @@ +From 46c7fe11bd0ed8595c3f920d42a9914fa864d893 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Sun, 7 Feb 2021 18:51:14 +0100 +Subject: [PATCH] gdk-pixbuf/gdk-pixbuf-io.c: fix build without gmodule +
package/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patch line 15
Quoted 10 lines
package/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patch new file +10
-0+Fix the following build failure: + +../gdk-pixbuf/gdk-pixbuf-io.c: In function 'gdk_pixbuf_io_init': +../gdk-pixbuf/gdk-pixbuf-io.c:681:16: error: implicit declaration of function 'gdk_pixbuf_get_module_file'; did you mean '_gdk_pixbuf_get_module'? [-Werror=implicit-function-declaration] + 681 | module_file = gdk_pixbuf_get_module_file (); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ + | _gdk_pixbuf_get_module + +Fixes: + - http://autobuild.buildroot.org/results/6cd54c497f5d19342ec94ece713547b887e4c02d
I've added a link to the upstream MR and noted that it was merged.
With that, applied to master, thanks.
Regards,
Arnout
Quoted 39 lines
package/gdk-pixbuf/0002-gdk-pixbuf-gdk-pixbuf-io.c-fix-build-without-gmodule.patch new file +23
-0+ +Signed-off-by: Fabrice Fontaine <[email protected]> +--- + gdk-pixbuf/gdk-pixbuf-io.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c +index 40eb920c8..2dc2ea6da 100644 +--- a/gdk-pixbuf/gdk-pixbuf-io.c ++++ b/gdk-pixbuf/gdk-pixbuf-io.c +@@ -678,7 +678,9 @@ gdk_pixbuf_io_init (void) + gboolean ret; + + gdk_pixbuf_io_init_builtin (); ++#ifdef USE_GMODULE + module_file = gdk_pixbuf_get_module_file (); ++#endif + ret = gdk_pixbuf_io_init_modules (module_file, NULL); + g_free (module_file); + return ret; +-- +2.29.2 +package/gdk-pixbuf/gdk-pixbuf.mk +4
-0@@ -28,6 +28,10 @@ HOST_GDK_PIXBUF_CONF_OPTS = \ -Dintrospection=disabled \ -Dman=false +ifeq ($(BR2_STATIC_LIBS),y) +GDK_PIXBUF_CONF_OPTS += -Dbuiltin_loaders=all +endif + ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y) GDK_PIXBUF_CONF_OPTS += -Dintrospection=enabled GDK_PIXBUF_DEPENDENCIES += gobject-introspection