All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/libglib2: fix libiconv handling
@ 2023-08-07 21:49 Thomas Petazzoni via buildroot
  2023-09-11 10:30 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-08-07 21:49 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=ff050de534eed1dab152890d748952fc659882a0
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 3f9622fe3d85b4d9f734b879abc1d485afea19b2, 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>
---
 package/libglib2/libglib2.mk | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/package/libglib2/libglib2.mk b/package/libglib2/libglib2.mk
index ecd7d5dbfe..c06ded2a5b 100644
--- a/package/libglib2/libglib2.mk
+++ b/package/libglib2/libglib2.mk
@@ -60,10 +60,6 @@ LIBGLIB2_MESON_EXTRA_PROPERTIES = \
 	have_c99_snprintf=true \
 	have_unix98_printf=true
 
-ifneq ($(BR2_ENABLE_LOCALE),y)
-LIBGLIB2_DEPENDENCIES += libiconv
-endif
-
 ifeq ($(BR2_PACKAGE_ELFUTILS),y)
 LIBGLIB2_DEPENDENCIES += elfutils
 endif
@@ -74,7 +70,6 @@ LIBGLIB2_LDFLAGS += -latomic
 endif
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
-LIBGLIB2_CONF_OPTS += -Diconv=external
 LIBGLIB2_DEPENDENCIES += libiconv
 endif
 
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [git commit] package/libglib2: fix libiconv handling
  2023-08-07 21:49 [Buildroot] [git commit] package/libglib2: fix libiconv handling Thomas Petazzoni via buildroot
@ 2023-09-11 10:30 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2023-09-11 10:30 UTC (permalink / raw)
  To: Thomas Petazzoni via buildroot; +Cc: Thomas Petazzoni

>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot@buildroot.org> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=ff050de534eed1dab152890d748952fc659882a0
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > 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 3f9622fe3d85b4d9f734b879abc1d485afea19b2, 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>

Committed to 2023.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-11 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-07 21:49 [Buildroot] [git commit] package/libglib2: fix libiconv handling Thomas Petazzoni via buildroot
2023-09-11 10:30 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.