All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/parted: disable on uclibc
@ 2020-01-18 16:39 Fabrice Fontaine
  2020-02-13 21:19 ` Giulio Benetti
  2020-02-13 21:51 ` Peter Korsgaard
  0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2020-01-18 16:39 UTC (permalink / raw)
  To: buildroot

Like postgreSQL (and imagemagick), parted does not build against uClibc
with locales enabled, due to an uClibc bug, see
http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html:

In file included from atari.c:42:
atari.c: In function 'atr_part_correct':
atari.c:221:9: error: dereferencing pointer to incomplete type 'struct __uclibc_locale_struct'
  return isalnum_l(part->id[0], atr_c_locale)
         ^~~~~~~~~

So disable parted on uclibc

Fixes:
 - http://autobuild.buildroot.org/results/992518d340a9f32a0721d6e66936850c4c3ef2e4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/parted/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/parted/Config.in b/package/parted/Config.in
index f48b365a2d..a35b30662f 100644
--- a/package/parted/Config.in
+++ b/package/parted/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PARTED
 	bool "parted"
 	depends on BR2_ENABLE_LOCALE
 	depends on BR2_USE_WCHAR
+	depends on !BR2_TOOLCHAIN_USES_UCLIBC
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
 	help
@@ -9,5 +10,6 @@ config BR2_PACKAGE_PARTED
 
 	  http://www.gnu.org/software/parted/
 
-comment "parted needs a toolchain w/ locale, wchar"
-	depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR
+comment "parted needs a glibc or musl toolchain w/ locale, wchar"
+	depends on BR2_TOOLCHAIN_USES_UCLIBC || \
+		!BR2_ENABLE_LOCALE || !BR2_USE_WCHAR
-- 
2.24.1

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

* [Buildroot] [PATCH 1/1] package/parted: disable on uclibc
  2020-01-18 16:39 [Buildroot] [PATCH 1/1] package/parted: disable on uclibc Fabrice Fontaine
@ 2020-02-13 21:19 ` Giulio Benetti
  2020-02-13 21:51 ` Peter Korsgaard
  1 sibling, 0 replies; 5+ messages in thread
From: Giulio Benetti @ 2020-02-13 21:19 UTC (permalink / raw)
  To: buildroot

Hi Fabrice,

On 1/18/20 5:39 PM, Fabrice Fontaine wrote:
> Like postgreSQL (and imagemagick), parted does not build against uClibc
> with locales enabled, due to an uClibc bug, see
> http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html:
> 
> In file included from atari.c:42:
> atari.c: In function 'atr_part_correct':
> atari.c:221:9: error: dereferencing pointer to incomplete type 'struct __uclibc_locale_struct'
>    return isalnum_l(part->id[0], atr_c_locale)
>           ^~~~~~~~~
> 
> So disable parted on uclibc
> 
> Fixes:
>   - http://autobuild.buildroot.org/results/992518d340a9f32a0721d6e66936850c4c3ef2e4
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>

-- 
Giulio Benetti
Benetti Engineering sas

> ---
>   package/parted/Config.in | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/package/parted/Config.in b/package/parted/Config.in
> index f48b365a2d..a35b30662f 100644
> --- a/package/parted/Config.in
> +++ b/package/parted/Config.in
> @@ -2,6 +2,7 @@ config BR2_PACKAGE_PARTED
>   	bool "parted"
>   	depends on BR2_ENABLE_LOCALE
>   	depends on BR2_USE_WCHAR
> +	depends on !BR2_TOOLCHAIN_USES_UCLIBC
>   	select BR2_PACKAGE_UTIL_LINUX
>   	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
>   	help
> @@ -9,5 +10,6 @@ config BR2_PACKAGE_PARTED
>   
>   	  http://www.gnu.org/software/parted/
>   
> -comment "parted needs a toolchain w/ locale, wchar"
> -	depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR
> +comment "parted needs a glibc or musl toolchain w/ locale, wchar"
> +	depends on BR2_TOOLCHAIN_USES_UCLIBC || \
> +		!BR2_ENABLE_LOCALE || !BR2_USE_WCHAR
> 

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

* [Buildroot] [PATCH 1/1] package/parted: disable on uclibc
  2020-01-18 16:39 [Buildroot] [PATCH 1/1] package/parted: disable on uclibc Fabrice Fontaine
  2020-02-13 21:19 ` Giulio Benetti
@ 2020-02-13 21:51 ` Peter Korsgaard
  2020-02-13 22:26   ` Giulio Benetti
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2020-02-13 21:51 UTC (permalink / raw)
  To: buildroot

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

 > Like postgreSQL (and imagemagick), parted does not build against uClibc
 > with locales enabled, due to an uClibc bug, see
 > http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html:

 > In file included from atari.c:42:
 > atari.c: In function 'atr_part_correct':
 > atari.c:221:9: error: dereferencing pointer to incomplete type 'struct __uclibc_locale_struct'
 >   return isalnum_l(part->id[0], atr_c_locale)
 >          ^~~~~~~~~

 > So disable parted on uclibc

 > Fixes:
 >  - http://autobuild.buildroot.org/results/992518d340a9f32a0721d6e66936850c4c3ef2e4

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

What about the reverse dependencies? E.G. udisks and python-pyparted?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] package/parted: disable on uclibc
  2020-02-13 21:51 ` Peter Korsgaard
@ 2020-02-13 22:26   ` Giulio Benetti
  2020-02-13 22:30     ` Giulio Benetti
  0 siblings, 1 reply; 5+ messages in thread
From: Giulio Benetti @ 2020-02-13 22:26 UTC (permalink / raw)
  To: buildroot

Hi Peter,

On 2/13/20 10:51 PM, Peter Korsgaard wrote:
>>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> 
>   > Like postgreSQL (and imagemagick), parted does not build against uClibc
>   > with locales enabled, due to an uClibc bug, see
>   > http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html:
> 
>   > In file included from atari.c:42:
>   > atari.c: In function 'atr_part_correct':
>   > atari.c:221:9: error: dereferencing pointer to incomplete type 'struct __uclibc_locale_struct'
>   >   return isalnum_l(part->id[0], atr_c_locale)
>   >          ^~~~~~~~~
> 
>   > So disable parted on uclibc
> 
>   > Fixes:
>   >  - http://autobuild.buildroot.org/results/992518d340a9f32a0721d6e66936850c4c3ef2e4
> 
>   > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> 
> What about the reverse dependencies? E.G. udisks and python-pyparted?

Since I'm bumping udisks :-), udisks already depends on 
!BR2_TOOLCHAIN_USES_UCLIBC, but python-pyparted does not, so it deserves 
a build with the same autobuilder failure defconfig, I let you know.

-- 
Giulio Benetti
Benetti Engineering sas

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

* [Buildroot] [PATCH 1/1] package/parted: disable on uclibc
  2020-02-13 22:26   ` Giulio Benetti
@ 2020-02-13 22:30     ` Giulio Benetti
  0 siblings, 0 replies; 5+ messages in thread
From: Giulio Benetti @ 2020-02-13 22:30 UTC (permalink / raw)
  To: buildroot

On 2/13/20 11:26 PM, Giulio Benetti wrote:
> Hi Peter,
> 
> On 2/13/20 10:51 PM, Peter Korsgaard wrote:
>>>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
>>
>>    > Like postgreSQL (and imagemagick), parted does not build against uClibc
>>    > with locales enabled, due to an uClibc bug, see
>>    > http://lists.uclibc.org/pipermail/uclibc/2014-April/048326.html:
>>
>>    > In file included from atari.c:42:
>>    > atari.c: In function 'atr_part_correct':
>>    > atari.c:221:9: error: dereferencing pointer to incomplete type 'struct __uclibc_locale_struct'
>>    >   return isalnum_l(part->id[0], atr_c_locale)
>>    >          ^~~~~~~~~
>>
>>    > So disable parted on uclibc
>>
>>    > Fixes:
>>    >  - http://autobuild.buildroot.org/results/992518d340a9f32a0721d6e66936850c4c3ef2e4
>>
>>    > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>>
>> What about the reverse dependencies? E.G. udisks and python-pyparted?
> 
> Since I'm bumping udisks :-), udisks already depends on
> !BR2_TOOLCHAIN_USES_UCLIBC, but python-pyparted does not, so it deserves
> a build with the same autobuilder failure defconfig, I let you know.

Right, "!BR2_TOOLCHAIN_USES_UCLIBC" must be added to 
python-pyparted/Config.in. And then it must not be possible to build it 
with uclibc, so this patch must be adjusted.

Sorry for the noise
Best regards
-- 
Giulio Benetti
Benetti Engineering sas

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

end of thread, other threads:[~2020-02-13 22:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-18 16:39 [Buildroot] [PATCH 1/1] package/parted: disable on uclibc Fabrice Fontaine
2020-02-13 21:19 ` Giulio Benetti
2020-02-13 21:51 ` Peter Korsgaard
2020-02-13 22:26   ` Giulio Benetti
2020-02-13 22:30     ` Giulio Benetti

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.