Skip to contentSkip to conversation

package/parted: disable on uclibc

PATCH Superseded Fabrice Fontaine 3 participants 5 messages Jan 18, 2020 – Feb 13, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/parted: disable on uclibc

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

---
 package/parted/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/parted/Config.in +4 -2
index f48b365a2d..a35b30662f 100644
@@ -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
Signature · 1 line
2.24.1
#1 lore raw

PATCH 1/1 package/parted: disable on uclibc

Hi Fabrice,

Quoted 8 lines · Fabrice Fontaine

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)

Quoted 8 lines
          ^~~~~~~~~

So disable parted on uclibc

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

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 26 lines
---
  package/parted/Config.in | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
package/parted/Config.in +4 -2
index f48b365a2d..a35b30662f 100644
@@ -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 lore raw

PATCH 1/1 package/parted: disable on uclibc

In reply to Fabrice Fontaine
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> 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)

Quoted 8 lines
         ^~~~~~~~~

So disable parted on uclibc

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

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

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/1 package/parted: disable on uclibc

Hi Peter,

Quoted 12 lines · Peter Korsgaard
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> 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)

         ^~~~~~~~~
Quoted 8 lines
Quoted 6 lines

So disable parted on uclibc

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

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.

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
#4 lore raw

PATCH 1/1 package/parted: disable on uclibc

Quoted 20 lines · Giulio Benetti

Hi Peter,

Quoted 17 lines · Peter Korsgaard
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> 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

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

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

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas