* [Buildroot] [PATCH for-master] package/quota: disable for musl toolchains
@ 2016-11-11 22:25 Romain Naour
2016-11-13 17:16 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Romain Naour @ 2016-11-11 22:25 UTC (permalink / raw)
To: buildroot
Quota doesn't build with musl toolchains without fixing several usual
musl issues like:
- missing headers
- replacing all variables type like __uint64_t all over the code
- removing __P()
These changes are easy to fix but requires a lot of change in the code.
Upstream started to fix some of them, so it would be possible to build
Quota with musl with the next version bump.
Fixes:
http://autobuild.buildroot.net/results/f45/f4595538f4b627fcf07912baac230744c037f842
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/quota/Config.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/package/quota/Config.in b/package/quota/Config.in
index c8ab0d7..85df753 100644
--- a/package/quota/Config.in
+++ b/package/quota/Config.in
@@ -3,6 +3,9 @@ config BR2_PACKAGE_QUOTA
depends on BR2_USE_WCHAR
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
+ # Usual Musl issues:
+ # missing headers, variable type like __uint64_t all over the code, __P().
+ depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
help
@@ -10,7 +13,8 @@ config BR2_PACKAGE_QUOTA
http://sourceforge.net/projects/linuxquota/
-comment "quota needs a toolchain w/ wchar, threads"
+comment "quota needs a glibc or uClibc toolchain w/ wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || \
- !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
+ !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC) || \
+ !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH for-master] package/quota: disable for musl toolchains
2016-11-11 22:25 [Buildroot] [PATCH for-master] package/quota: disable for musl toolchains Romain Naour
@ 2016-11-13 17:16 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-11-13 17:16 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 11 Nov 2016 23:25:13 +0100, Romain Naour wrote:
> Quota doesn't build with musl toolchains without fixing several usual
> musl issues like:
> - missing headers
> - replacing all variables type like __uint64_t all over the code
> - removing __P()
>
> These changes are easy to fix but requires a lot of change in the code.
> Upstream started to fix some of them, so it would be possible to build
> Quota with musl with the next version bump.
Well, in fact, really not many changes were needed to make quota build
with the musl C library, so I did them, and committed:
https://git.buildroot.org/buildroot/commit/?id=9317b9542bd3971bc340808ca8efadee36f5b263
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-13 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-11 22:25 [Buildroot] [PATCH for-master] package/quota: disable for musl toolchains Romain Naour
2016-11-13 17:16 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox