All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libblockdev: needs locale
@ 2023-02-24 10:10 Fabrice Fontaine
  2023-02-25  9:43 ` Thomas Petazzoni via buildroot
  2023-03-13 17:09 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-02-24 10:10 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti, Fabrice Fontaine, Marek Belisko

locale_t is unconditionally used since version 1.5 and
https://github.com/storaged-project/libblockdev/commit/4ed6f0b3a46fc77554dab661c22150829aa75966
resulting in the following build failure since the addition of the
package in commit 0c52826291d1884db0f8f35130216065fbc7b574:

module.c:33:37: error: unknown type name 'locale_t'
   33 | static char *strerror_l(int errnum, locale_t locale UNUSED)
      |                                     ^~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/ede9eb1f13d56c77005cc448416fb2efa9d16ff0

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libblockdev/Config.in | 6 ++++--
 package/udisks/Config.in      | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/package/libblockdev/Config.in b/package/libblockdev/Config.in
index 4389fd794c..4f98621bd8 100644
--- a/package/libblockdev/Config.in
+++ b/package/libblockdev/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_LIBBLOCKDEV
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
 	depends on BR2_USE_MMU # libglib2
 	depends on BR2_PACKAGE_HAS_UDEV
+	depends on BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_KMOD
 	select BR2_PACKAGE_LIBGLIB2
 	help
@@ -66,7 +67,8 @@ config BR2_PACKAGE_LIBBLOCKDEV_SWAP
 
 endif
 
-comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library"
+comment "libblockdev needs udev /dev management and a toolchain w/ wchar, threads, dynamic library, locale"
 	depends on BR2_USE_MMU
 	depends on !BR2_PACKAGE_HAS_UDEV || BR2_STATIC_LIBS || \
-		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+		!BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
+		!BR2_ENABLE_LOCALE
diff --git a/package/udisks/Config.in b/package/udisks/Config.in
index 253d5cdc6b..b1d02a31b2 100644
--- a/package/udisks/Config.in
+++ b/package/udisks/Config.in
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_UDISKS
 	bool "udisks"
-	depends on BR2_ENABLE_LOCALE # parted
+	depends on BR2_ENABLE_LOCALE # libblockdev, parted
 	depends on BR2_PACKAGE_HAS_UDEV
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # polkit -> C++17
 	depends on BR2_TOOLCHAIN_HAS_THREADS # polkit
-- 
2.39.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libblockdev: needs locale
  2023-02-24 10:10 [Buildroot] [PATCH 1/1] package/libblockdev: needs locale Fabrice Fontaine
@ 2023-02-25  9:43 ` Thomas Petazzoni via buildroot
  2023-03-13 17:09 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-25  9:43 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Giulio Benetti, Marek Belisko, buildroot

On Fri, 24 Feb 2023 11:10:39 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> locale_t is unconditionally used since version 1.5 and
> https://github.com/storaged-project/libblockdev/commit/4ed6f0b3a46fc77554dab661c22150829aa75966
> resulting in the following build failure since the addition of the
> package in commit 0c52826291d1884db0f8f35130216065fbc7b574:
> 
> module.c:33:37: error: unknown type name 'locale_t'
>    33 | static char *strerror_l(int errnum, locale_t locale UNUSED)
>       |                                     ^~~~~~~~
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/ede9eb1f13d56c77005cc448416fb2efa9d16ff0
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/libblockdev/Config.in | 6 ++++--
>  package/udisks/Config.in      | 2 +-
>  2 files changed, 5 insertions(+), 3 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/libblockdev: needs locale
  2023-02-24 10:10 [Buildroot] [PATCH 1/1] package/libblockdev: needs locale Fabrice Fontaine
  2023-02-25  9:43 ` Thomas Petazzoni via buildroot
@ 2023-03-13 17:09 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-03-13 17:09 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Giulio Benetti, Marek Belisko, buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > locale_t is unconditionally used since version 1.5 and
 > https://github.com/storaged-project/libblockdev/commit/4ed6f0b3a46fc77554dab661c22150829aa75966
 > resulting in the following build failure since the addition of the
 > package in commit 0c52826291d1884db0f8f35130216065fbc7b574:

 > module.c:33:37: error: unknown type name 'locale_t'
 >    33 | static char *strerror_l(int errnum, locale_t locale UNUSED)
 >       |                                     ^~~~~~~~

 > Fixes:
 >  - http://autobuild.buildroot.org/results/ede9eb1f13d56c77005cc448416fb2efa9d16ff0

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2022.11.x and 2022.02.x, thanks.

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

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

end of thread, other threads:[~2023-03-13 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 10:10 [Buildroot] [PATCH 1/1] package/libblockdev: needs locale Fabrice Fontaine
2023-02-25  9:43 ` Thomas Petazzoni via buildroot
2023-03-13 17:09 ` 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.