package/python-pyparted: add locale dependency
PATCH 1/3 package/python-pyparted: add locale dependency
Commit b5f0c6efb24826641719c493382211e5d768417b forgot to propagate new locale dependency from parted to python-pyparted
--- package/python-pyparted/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/python-pyparted/Config.in +3 -2
@@ -1,5 +1,6 @@ config BR2_PACKAGE_PYTHON_PYPARTED bool "python-pyparted" + depends on BR2_ENABLE_LOCALE # parted depends on BR2_USE_WCHAR select BR2_PACKAGE_PARTED help
@@ -7,5 +8,5 @@ config BR2_PACKAGE_PYTHON_PYPARTED https://github.com/rhinstaller/pyparted -comment "pyparted needs a toolchain w/ wchar" - depends on !BR2_USE_WCHAR +comment "pyparted needs a toolchain w/ locale, wchar" + depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR
Signature · 1 line
2.24.1
PATCH 2/3 package/udisks: add locale dependency
Commit b5f0c6efb24826641719c493382211e5d768417b forgot to propagate new locale dependency from parted to udisks
--- package/udisks/Config.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
package/udisks/Config.in +3 -2
@@ -1,5 +1,6 @@ config BR2_PACKAGE_UDISKS bool "udisks" + depends on BR2_ENABLE_LOCALE # parted depends on BR2_HOST_GCC_AT_LEAST_4_9 # spidermonkey depends on BR2_INSTALL_LIBSTDCPP # spidermonkey depends on BR2_PACKAGE_HAS_UDEV
@@ -49,10 +50,10 @@ comment "udisks needs udev /dev management" depends on BR2_USE_MMU depends on !BR2_PACKAGE_HAS_UDEV -comment "udisks needs a glibc or musl toolchain with C++, wchar, dynamic library, NPTL, gcc >= 4.9" +comment "udisks needs a glibc or musl toolchain with locale, C++, wchar, dynamic library, NPTL, gcc >= 4.9" depends on BR2_USE_MMU depends on BR2_PACKAGE_SPIDERMONKEY_ARCH_SUPPORTS - depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + depends on !BR2_ENABLE_LOCALE || BR2_TOOLCHAIN_USES_UCLIBC || \ !BR2_INSTALL_LIBSTDCPP || \ BR2_STATIC_LIBS || \ !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
Signature · 1 line
2.24.1
PATCH 2/3 package/udisks: add locale dependency
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Commit
b5f0c6efb24826641719c493382211e5d768417bforgot to propagate new locale dependency from parted to udisksSigned-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 3/3 package/parted: disable on uclibc
In reply to Fabrice FontaineLike 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
---
Changes v1 -> v2 (after review of Peter Korsgaard):
- Update parted's reverse dependencies
package/parted/Config.in | 6 ++++-- package/python-pyparted/Config.in | 7 +++++-- package/udisks/Config.in | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-)
package/parted/Config.in +4 -2
@@ -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
package/python-pyparted/Config.in +5 -2
@@ -2,11 +2,14 @@ config BR2_PACKAGE_PYTHON_PYPARTED bool "python-pyparted" depends on BR2_ENABLE_LOCALE # parted depends on BR2_USE_WCHAR + depends on !BR2_TOOLCHAIN_USES_UCLIBC # parted select BR2_PACKAGE_PARTED help Python bindings for GNU parted (libparted). https://github.com/rhinstaller/pyparted -comment "pyparted needs a toolchain w/ locale, wchar" - depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR +comment "pyparted needs a glibc or musl toolchain w/ locale, wchar" + depends on BR2_TOOLCHAIN_USES_UCLIBC || \ + !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR +
package/udisks/Config.in +1 -1
@@ -9,7 +9,7 @@ config BR2_PACKAGE_UDISKS depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # polkit depends on BR2_USE_MMU # lvm2 depends on BR2_USE_WCHAR # dbus-glib -> glib2 - depends on !BR2_TOOLCHAIN_USES_UCLIBC # polkit, lvm2 + depends on !BR2_TOOLCHAIN_USES_UCLIBC # polkit, lvm2, parted depends on !BR2_STATIC_LIBS # lvm2, spidermonkey select BR2_PACKAGE_DBUS select BR2_PACKAGE_DBUS_GLIB
Signature · 1 line
2.24.1
PATCH v2 3/3 package/parted: disable on uclibc
Quoted 14 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'
returnisalnum_l(part->id[0], atr_c_locale)^~~~~~~~~So disable parted on uclibc
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/992518d340a9f32a0721d6e66936850c4c3ef2e4Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v1 -> v2 (after review of Peter Korsgaard):
- Update parted's reverse dependencies
Committed after fixing the white space issues, thanks.
check-package warns about this:
Applying: package/parted: disable on uclibc package/python-pyparted/Config.in:15: line contains trailing whitespace package/python-pyparted/Config.in:15: empty line at end of file 92 lines processed
2 warnings generated
Consider adding a post-commit hook with it, E.G. something like:
cat .git/hooks/post-commit
#!/bin/sh
#
# An example hook script that is called after a successful
# commit is made. # # To enable this hook, rename this file to "post-commit".
# check-package on added/changed files
git show --no-renames HEAD | \
lsdiff -s | \
awk '{ if ($1 != "-") print substr($2, 3) }' | \
xargs -r ./utils/check-packageSignature · 1 line
Bye, Peter Korsgaard
PATCH 1/3 package/python-pyparted: add locale dependency
In reply to Fabrice FontaineQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
Commit
b5f0c6efb24826641719c493382211e5d768417bforgot to propagate new locale dependency from parted to python-pypartedSigned-off-by Fabrice Fontaine <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard