buildroot/package/libglib2
Thomas Petazzoni ff050de534 package/libglib2: fix libiconv handling
In upstream commit e71ecc8771a4f13bc6046438ab0845944831b9a6 ("build:
Remove deprecated -Diconv option"), merged since glib 2.75.1, the
meson -Diconv option was removed.

In Buildroot, this means that the build of libglib2 has been broken
since commit 3f9622fe3d, which bumped
libglib2 from 2.72.3 to 2.76.1 for configurations that have libiconv
enabled, causing this build failure:

../output-1/build/libglib2-2.76.1/meson.build:1:0: ERROR: Unknown options: "iconv"

iconv is now automatically detected by Meson machinery, and so the
option was considered as no longer being needed. This commit fixes
that by dropping the useless -Diconv=external.

Another related change done is remove the double addition of libiconv
into the <pkg>_DEPENDENCIES variable: libiconv can only be enabled
when BR2_ENABLE_LOCALE is disabled, and libglib2/Config.in selects
BR2_PACKAGE_LIBICONV when !BR2_ENABLE_LOCALE. So testing
BR2_ENABLE_LOCALE!=y and BR2_PACKAGE_LIBICONV=y is exactly the same
thing, causing libiconv to be added twice to the dependencies.

Fixes:

  http://autobuild.buildroot.net/results/d2da03f7558f3b6ee59c813bb64115702e52704c/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-08-07 23:49:16 +02:00
..
0001-meson.build-add-girdir-to-gio-2.0.pc-and-glib-2.0.pc.patch package/libglib2: bump version to 2.76.1 2023-04-23 13:01:34 +02:00
0002-Fix-error-format-in-gio-gunixconnection.c-part-2.patch package/libglib2: bump version to 2.76.1 2023-04-23 13:01:34 +02:00
0003-meson-wrap-html-documentation-generation-with-gtk_do.patch package/libglib2/0003-disable-building-docs.patch: new patch 2023-05-09 21:38:03 +02:00
Config.in package/libglib2: bump version to 2.76.1 2023-04-23 13:01:34 +02:00
libglib2.hash package/libglib2: bump version to 2.76.1 2023-04-23 13:01:34 +02:00
libglib2.mk package/libglib2: fix libiconv handling 2023-08-07 23:49:16 +02:00