package/libblockdev: needs locale

locale_t is unconditionally used since version 1.5 and
4ed6f0b3a4
resulting in the following build failure since the addition of the
package in commit 0c52826291:

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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2023-02-24 11:10:39 +01:00 committed by Thomas Petazzoni
parent c8985cf50c
commit a6b4217312
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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