Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl
@ 2015-08-20 22:32 Brendan Heading
  2015-08-26 13:28 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Brendan Heading @ 2015-08-20 22:32 UTC (permalink / raw)
  To: buildroot

Fixes: http://autobuild.buildroot.net/results/e33/e337d69420ad00b2cc4017d639a31803926f2353/

linux-pam needs some surgery to build under musl, so for the time being
disable it until the issues are solved. Also disables dependent package
python-pam, and dependent suboptions under openvmtools, rsh-redone and
util-linux.

---
v1 -> v2 - added missing comments to document that packages require
non-musl (ie uclibc or (e)glibc) toolchains.
---

Signed-off-by: Brendan Heading <brendanheading@gmail.com>
---
 package/linux-pam/Config.in   |  5 +++--
 package/openvmtools/Config.in |  5 +++--
 package/python-pam/Config.in  |  6 ++++--
 package/rsh-redone/Config.in  | 10 ++++++----
 package/util-linux/Config.in  | 10 ++++++----
 5 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
index 6b92886..04618be 100644
--- a/package/linux-pam/Config.in
+++ b/package/linux-pam/Config.in
@@ -10,11 +10,12 @@ config BR2_PACKAGE_LINUX_PAM
 	# https://lists.fedorahosted.org/pipermail/linux-pam-commits/2012-February/000105.html
 	# for details.
 	depends on !BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_USES_MUSL	# linux-pam
 	help
 	  A Security Framework that Provides Authentication for Applications
 
 	  http://linux-pam.org
 
-comment "linux-pam needs a toolchain w/ wchar, locale, dynamic library"
+comment "linux-pam needs a uClibc or (e)glibc toolchain w/ wchar, locale, dynamic library"
 	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
-		|| BR2_STATIC_LIBS
+		|| BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
diff --git a/package/openvmtools/Config.in b/package/openvmtools/Config.in
index 8e22eff..091f640 100644
--- a/package/openvmtools/Config.in
+++ b/package/openvmtools/Config.in
@@ -36,11 +36,12 @@ config BR2_PACKAGE_OPENVMTOOLS_PAM
 	# linux-pam needs locale and wchar, but we already have this
 	# dependency on the main symbol, above.
 	depends on !BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_USES_MUSL	# linux-pam
 	help
 	  Support for PAM in openvmtools
 
-comment "PAM support needs a toolchain w/ dynamic library"
-	depends on BR2_STATIC_LIBS
+comment "PAM support needs a uClibc or (e)glibc toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
 
 endif
 
diff --git a/package/python-pam/Config.in b/package/python-pam/Config.in
index 6c7bc63..b23a8e0 100644
--- a/package/python-pam/Config.in
+++ b/package/python-pam/Config.in
@@ -1,6 +1,7 @@
-comment "python-pam needs a toolchain w/ wchar, locale, dynamic library"
+comment "python-pam needs a uClibc or (e)glibc toolchain w/ wchar, locale, dynamic library"
 	depends on BR2_PACKAGE_PYTHON
-	depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR || BR2_STATIC_LIBS
+	depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
+		BR2_TOOLCHAIN_USES_MUSL
 
 config BR2_PACKAGE_PYTHON_PAM
 	bool "python-pam"
@@ -8,6 +9,7 @@ config BR2_PACKAGE_PYTHON_PAM
 	depends on BR2_ENABLE_LOCALE # linux-pam
 	depends on BR2_USE_WCHAR # linux-pam
 	depends on !BR2_STATIC_LIBS # linux-pam
+	depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
 	select BR2_PACKAGE_LINUX_PAM
 	help
 	  PAM (Pluggable Authentication Module) bindings for Python.
diff --git a/package/rsh-redone/Config.in b/package/rsh-redone/Config.in
index 218b47c..4bd0c19 100644
--- a/package/rsh-redone/Config.in
+++ b/package/rsh-redone/Config.in
@@ -16,11 +16,12 @@ config BR2_PACKAGE_RSH_REDONE_RLOGIND
 	bool "rlogind"
 	depends on !BR2_STATIC_LIBS
 	depends on BR2_ENABLE_LOCALE && BR2_USE_WCHAR
+	depends on !BR2_TOOLCHAIN_USES_MUSL	# linux-pam
 	select BR2_PACKAGE_LINUX_PAM
 
-comment "rlogind needs a toolchain w/ wchar, locale, dynamic library"
+comment "rlogind needs a uClibc or (e)glibc toolchain w/ wchar, locale, dynamic library"
 	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
-		|| BR2_STATIC_LIBS
+		|| BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
 
 config BR2_PACKAGE_RSH_REDONE_RSH
 	bool "rsh"
@@ -29,10 +30,11 @@ config BR2_PACKAGE_RSH_REDONE_RSHD
 	bool "rshd"
 	depends on BR2_ENABLE_LOCALE && BR2_USE_WCHAR
 	depends on !BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_USES_MUSL	# linux-pam
 	select BR2_PACKAGE_LINUX_PAM
 
-comment "rshd needs a toolchain w/ wchar, locale, dynamic library"
+comment "rshd needs a uClibc or (e)glibc toolchain w/ wchar, locale, dynamic library"
 	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
-		|| BR2_STATIC_LIBS
+		|| BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
 
 endif
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 39df11c..cc6e9a5 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -66,13 +66,14 @@ config BR2_PACKAGE_UTIL_LINUX_CHFN_CHSH
 	bool "chfn/chsh"
 	depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
 	depends on !BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
 	select BR2_PACKAGE_LINUX_PAM
 	help
 	  Change login shell, real user name and information
 
-comment "chfn/chsh needs a toolchain w/ wchar, locale, dynamic library"
+comment "chfn/chsh needs a uClibc or (e)glibc toolchain w/ wchar, locale, dynamic library"
 	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
-		|| BR2_STATIC_LIBS
+		|| BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
 
 config BR2_PACKAGE_UTIL_LINUX_CRAMFS
 	bool "cramfs utilities"
@@ -124,13 +125,14 @@ config BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS
 	bool "login utilities"
 	depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
 	depends on !BR2_STATIC_LIBS
+	depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
 	select BR2_PACKAGE_LINUX_PAM
 	help
 	  Build login utilities (last, login, su, sulogin)
 
-comment "login utilities needs a toolchain w/ wchar, locale, dynamic library"
+comment "login utilities needs a uClibc or (e)glibc toolchain w/ wchar, locale, dynamic library"
 	depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
-		|| BR2_STATIC_LIBS
+		|| BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
 
 config BR2_PACKAGE_UTIL_LINUX_LOSETUP
 	bool "losetup"
-- 
2.4.3

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

* [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl
  2015-08-20 22:32 [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl Brendan Heading
@ 2015-08-26 13:28 ` Thomas Petazzoni
  2015-08-26 17:06   ` Brendan Heading
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-08-26 13:28 UTC (permalink / raw)
  To: buildroot

Brendan,

On Thu, 20 Aug 2015 23:32:13 +0100, Brendan Heading wrote:
> Fixes: http://autobuild.buildroot.net/results/e33/e337d69420ad00b2cc4017d639a31803926f2353/
> 
> linux-pam needs some surgery to build under musl, so for the time being
> disable it until the issues are solved. Also disables dependent package
> python-pam, and dependent suboptions under openvmtools, rsh-redone and
> util-linux.
> 
> ---
> v1 -> v2 - added missing comments to document that packages require
> non-musl (ie uclibc or (e)glibc) toolchains.
> ---
> 
> Signed-off-by: Brendan Heading <brendanheading@gmail.com>

Your SoB line should be before the first "---" otherwise it gets
stripped by Git when applying.


> +	depends on !BR2_TOOLCHAIN_USES_MUSL	# linux-pam

We use a space before the comment, not a tab.

I've applied to master after fixing those minor nits.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl
  2015-08-26 13:28 ` Thomas Petazzoni
@ 2015-08-26 17:06   ` Brendan Heading
  2015-08-26 17:26     ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Brendan Heading @ 2015-08-26 17:06 UTC (permalink / raw)
  To: buildroot

Thanks Thomas!

I have submitted a separate patch set to support linux-pam under musl,
but I think I'll rebase and re-issue it against the August release
when it goes out.

regards

Brendan

On 26 August 2015 at 14:28, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Brendan,
>
> On Thu, 20 Aug 2015 23:32:13 +0100, Brendan Heading wrote:
>> Fixes: http://autobuild.buildroot.net/results/e33/e337d69420ad00b2cc4017d639a31803926f2353/
>>
>> linux-pam needs some surgery to build under musl, so for the time being
>> disable it until the issues are solved. Also disables dependent package
>> python-pam, and dependent suboptions under openvmtools, rsh-redone and
>> util-linux.
>>
>> ---
>> v1 -> v2 - added missing comments to document that packages require
>> non-musl (ie uclibc or (e)glibc) toolchains.
>> ---
>>
>> Signed-off-by: Brendan Heading <brendanheading@gmail.com>
>
> Your SoB line should be before the first "---" otherwise it gets
> stripped by Git when applying.
>
>
>> +     depends on !BR2_TOOLCHAIN_USES_MUSL     # linux-pam
>
> We use a space before the comment, not a tab.
>
> I've applied to master after fixing those minor nits.
>
> Thanks a lot!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com

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

* [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl
  2015-08-26 17:06   ` Brendan Heading
@ 2015-08-26 17:26     ` Thomas Petazzoni
  2015-08-26 17:44       ` Brendan Heading
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2015-08-26 17:26 UTC (permalink / raw)
  To: buildroot

Dear Brendan Heading,

On Wed, 26 Aug 2015 18:06:21 +0100, Brendan Heading wrote:
> Thanks Thomas!
> 
> I have submitted a separate patch set to support linux-pam under musl,
> but I think I'll rebase and re-issue it against the August release
> when it goes out.

Is upstream interested about musl support, and active?

The thing that worries me a bit about the changes required to get
things (in general, not only linux-pam) is that many of those patches
will probably never make their way to the respective upstream
projects.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl
  2015-08-26 17:26     ` Thomas Petazzoni
@ 2015-08-26 17:44       ` Brendan Heading
  0 siblings, 0 replies; 5+ messages in thread
From: Brendan Heading @ 2015-08-26 17:44 UTC (permalink / raw)
  To: buildroot

> Is upstream interested about musl support, and active?
>
> The thing that worries me a bit about the changes required to get
> things (in general, not only linux-pam) is that many of those patches
> will probably never make their way to the respective upstream
> projects.

Good question.

I'd sent the patch here first as folks here are generally more clued
up on cross compiling, differing C libraries, autoconf/automake and so
on.

But I can certainly go ahead and raise it with the upstream maintainers.

Brendan

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

end of thread, other threads:[~2015-08-26 17:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-20 22:32 [Buildroot] [PATCH v2 1/1] packages/linux-pam: disable when using musl Brendan Heading
2015-08-26 13:28 ` Thomas Petazzoni
2015-08-26 17:06   ` Brendan Heading
2015-08-26 17:26     ` Thomas Petazzoni
2015-08-26 17:44       ` Brendan Heading

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox