* [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
2017-07-07 3:36 ` Baruch Siach
2017-07-07 2:22 ` [Buildroot] [PATCH 2/7] nodm: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
` (5 subsequent siblings)
6 siblings, 1 reply; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
This will allow us to use the hidden option in dependent packages,
instead of repeating the dependencies in each Config.in file.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/linux-pam/Config.in | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
index 33e5154..0daffe4 100644
--- a/package/linux-pam/Config.in
+++ b/package/linux-pam/Config.in
@@ -1,9 +1,20 @@
-config BR2_PACKAGE_LINUX_PAM
- bool "linux-pam"
+# Use this option instead of duplicating the dependencies in each
+# dependent package.
+#
+# If you change these dependencies then update the comment below
+# and the # corresponding ones in other Config.in files.
+#
+config BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
+ bool
+ default y
depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
depends on !BR2_STATIC_LIBS
depends on !BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_MMU # fork()
+
+config BR2_PACKAGE_LINUX_PAM
+ bool "linux-pam"
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_FLEX
help
A Security Framework that Provides Authentication for Applications
@@ -11,5 +22,4 @@ config BR2_PACKAGE_LINUX_PAM
http://linux-pam.org
comment "linux-pam needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
- || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 ` [Buildroot] [PATCH 1/7] linux-pam: " Carlos Santos
@ 2017-07-07 3:36 ` Baruch Siach
2017-07-07 7:50 ` Thomas Petazzoni
0 siblings, 1 reply; 12+ messages in thread
From: Baruch Siach @ 2017-07-07 3:36 UTC (permalink / raw)
To: buildroot
Hi Carlos,
On Thu, Jul 06, 2017 at 11:22:36PM -0300, Carlos Santos wrote:
> This will allow us to use the hidden option in dependent packages,
> instead of repeating the dependencies in each Config.in file.
>
> Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> ---
> package/linux-pam/Config.in | 18 ++++++++++++++----
> 1 file changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
> index 33e5154..0daffe4 100644
> --- a/package/linux-pam/Config.in
> +++ b/package/linux-pam/Config.in
> @@ -1,9 +1,20 @@
> -config BR2_PACKAGE_LINUX_PAM
> - bool "linux-pam"
> +# Use this option instead of duplicating the dependencies in each
> +# dependent package.
> +#
> +# If you change these dependencies then update the comment below
> +# and the # corresponding ones in other Config.in files.
> +#
> +config BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
> + bool
> + default y
> depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
> depends on !BR2_STATIC_LIBS
> depends on !BR2_TOOLCHAIN_USES_MUSL
> depends on BR2_USE_MMU # fork()
These are feature dependencies, not arch dependencies, so the config name is
misleading. But regardless of that, we want to see this list in all dependent
packages, IMO. This allows us to (more) easily see and grep for direct and
indirect dependencies. It also makes dependencies comments easier to maintain
as you noted.
baruch
> +
> +config BR2_PACKAGE_LINUX_PAM
> + bool "linux-pam"
> + depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
> select BR2_PACKAGE_FLEX
> help
> A Security Framework that Provides Authentication for Applications
> @@ -11,5 +22,4 @@ config BR2_PACKAGE_LINUX_PAM
> http://linux-pam.org
>
> comment "linux-pam needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
> - depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
> - || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
> + depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 3:36 ` Baruch Siach
@ 2017-07-07 7:50 ` Thomas Petazzoni
2017-07-07 11:11 ` Carlos Santos
0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2017-07-07 7:50 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 7 Jul 2017 06:36:26 +0300, Baruch Siach wrote:
> > diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
> > index 33e5154..0daffe4 100644
> > --- a/package/linux-pam/Config.in
> > +++ b/package/linux-pam/Config.in
> > @@ -1,9 +1,20 @@
> > -config BR2_PACKAGE_LINUX_PAM
> > - bool "linux-pam"
> > +# Use this option instead of duplicating the dependencies in each
> > +# dependent package.
> > +#
> > +# If you change these dependencies then update the comment below
> > +# and the # corresponding ones in other Config.in files.
> > +#
> > +config BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
> > + bool
> > + default y
> > depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
> > depends on !BR2_STATIC_LIBS
> > depends on !BR2_TOOLCHAIN_USES_MUSL
> > depends on BR2_USE_MMU # fork()
>
> These are feature dependencies, not arch dependencies, so the config name is
> misleading. But regardless of that, we want to see this list in all dependent
> packages, IMO. This allows us to (more) easily see and grep for direct and
> indirect dependencies. It also makes dependencies comments easier to maintain
> as you noted.
Correct: the <foo>_ARCH_SUPPORTS hidden options should really only be
used for architecture dependencies. So in the list above, that would be
just BR2_USE_MMU. All the other dependencies are *not* architecture
dependencies, and we want to repeat them explicitly, because each
package anyway needs to have a Config.in comment that tells the user
about such toolchain dependencies.
Therefore, I'm afraid the patch series is not correct :/
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 7:50 ` Thomas Petazzoni
@ 2017-07-07 11:11 ` Carlos Santos
2017-07-07 11:52 ` Thomas Petazzoni
0 siblings, 1 reply; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 11:11 UTC (permalink / raw)
To: buildroot
> To: "Baruch Siach" <baruch@tkos.co.il>
> Cc: "Carlos Santos" <casantos@datacom.ind.br>, "Karoly Kasza" <kaszak@gmail.com>, "Ezequiel Garcia"
> <ezequiel@vanguardiasur.com.ar>, buildroot at buildroot.org
> Sent: Friday, July 7, 2017 4:50:35 AM
> Subject: Re: [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
> Hello,
>
> On Fri, 7 Jul 2017 06:36:26 +0300, Baruch Siach wrote:
>
>> > diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
>> > index 33e5154..0daffe4 100644
>> > --- a/package/linux-pam/Config.in
>> > +++ b/package/linux-pam/Config.in
>> > @@ -1,9 +1,20 @@
>> > -config BR2_PACKAGE_LINUX_PAM
>> > - bool "linux-pam"
>> > +# Use this option instead of duplicating the dependencies in each
>> > +# dependent package.
>> > +#
>> > +# If you change these dependencies then update the comment below
>> > +# and the # corresponding ones in other Config.in files.
>> > +#
>> > +config BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
>> > + bool
>> > + default y
>> > depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
>> > depends on !BR2_STATIC_LIBS
>> > depends on !BR2_TOOLCHAIN_USES_MUSL
>> > depends on BR2_USE_MMU # fork()
>>
>> These are feature dependencies, not arch dependencies, so the config name is
>> misleading. But regardless of that, we want to see this list in all dependent
>> packages, IMO. This allows us to (more) easily see and grep for direct and
>> indirect dependencies. It also makes dependencies comments easier to maintain
>> as you noted.
How would repeating the list in all dependent packages make dependencies
comments *easier* to maintain? I didn't meant to say that.
> Correct: the <foo>_ARCH_SUPPORTS hidden options should really only be
> used for architecture dependencies. So in the list above, that would be
> just BR2_USE_MMU. All the other dependencies are *not* architecture
> dependencies, and we want to repeat them explicitly, because each
> package anyway needs to have a Config.in comment that tells the user
> about such toolchain dependencies.
What could be used instead of <foo>_ARCH_SUPPORTS in cases like this?
--
Carlos Santos (Casantos) - DATACOM, P&D
?The greatest triumph that modern PR can offer is the transcendent
success of having your words and actions judged by your reputation,
rather than the other way about.? ? Christopher Hitchens
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH 1/7] linux-pam: introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 11:11 ` Carlos Santos
@ 2017-07-07 11:52 ` Thomas Petazzoni
0 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2017-07-07 11:52 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 7 Jul 2017 08:11:26 -0300 (BRT), Carlos Santos wrote:
> >> These are feature dependencies, not arch dependencies, so the config name is
> >> misleading. But regardless of that, we want to see this list in all dependent
> >> packages, IMO. This allows us to (more) easily see and grep for direct and
> >> indirect dependencies. It also makes dependencies comments easier to maintain
> >> as you noted.
>
> How would repeating the list in all dependent packages make dependencies
> comments *easier* to maintain? I didn't meant to say that.
It makes maintaining the comments easier to maintain, because they are
always next to the list of dependencies, in the same Config.in file.
With your patches, to know what the Config.in comment in
package/nodm/Config.in should be, you need to recursively look into
package/linux-pam/Config.in to find what
BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS actually means.
> > Correct: the <foo>_ARCH_SUPPORTS hidden options should really only be
> > used for architecture dependencies. So in the list above, that would be
> > just BR2_USE_MMU. All the other dependencies are *not* architecture
> > dependencies, and we want to repeat them explicitly, because each
> > package anyway needs to have a Config.in comment that tells the user
> > about such toolchain dependencies.
>
> What could be used instead of <foo>_ARCH_SUPPORTS in cases like this?
I don't think we want to change how things are done today. Since we
anyway wants to have this Config.in comment that details what the
dependencies are, I believe keeping the full list of dependencies is
the most reasonable solution.
Yes, it's not perfect, but we simply work within the limitations of
kconfig.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Buildroot] [PATCH 2/7] nodm: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 1/7] linux-pam: " Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 3/7] openvmtools: " Carlos Santos
` (4 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
Do not repeat linux-pam dependencies.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/nodm/Config.in | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/package/nodm/Config.in b/package/nodm/Config.in
index 38171e8..038b1fd 100644
--- a/package/nodm/Config.in
+++ b/package/nodm/Config.in
@@ -1,10 +1,7 @@
config BR2_PACKAGE_NODM
bool "nodm"
depends on BR2_PACKAGE_XORG7
- depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
- depends on !BR2_STATIC_LIBS # linux-pam
- depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
- depends on BR2_USE_MMU # linux-pam
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_XLIB_LIBX11
select BR2_PACKAGE_LINUX_PAM
help
@@ -20,5 +17,4 @@ config BR2_PACKAGE_NODM
comment "nodm needs a glibc or uClibc toolchain w/ wchar, locale, dynamic library"
depends on BR2_PACKAGE_XORG7
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
- || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 3/7] openvmtools: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 1/7] linux-pam: " Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 2/7] nodm: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 4/7] python-pam: " Carlos Santos
` (3 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
Do not repeat linux-pam dependencies.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/openvmtools/Config.in | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/package/openvmtools/Config.in b/package/openvmtools/Config.in
index f76bdf2..d0bb27c 100644
--- a/package/openvmtools/Config.in
+++ b/package/openvmtools/Config.in
@@ -33,16 +33,13 @@ comment "procps support needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
config BR2_PACKAGE_OPENVMTOOLS_PAM
bool "PAM support"
- # 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
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_PAM
help
Support for PAM in openvmtools
comment "PAM support needs a glibc toolchain w/ dynamic library"
- depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
endif
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 4/7] python-pam: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
` (2 preceding siblings ...)
2017-07-07 2:22 ` [Buildroot] [PATCH 3/7] openvmtools: " Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 5/7] rsh-redone: " Carlos Santos
` (2 subsequent siblings)
6 siblings, 0 replies; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
Do not repeat linux-pam dependencies.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/python-pam/Config.in | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/package/python-pam/Config.in b/package/python-pam/Config.in
index 02865d0..366492b 100644
--- a/package/python-pam/Config.in
+++ b/package/python-pam/Config.in
@@ -1,16 +1,11 @@
comment "python-pam needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
depends on BR2_PACKAGE_PYTHON
- depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR || BR2_STATIC_LIBS || \
- BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
config BR2_PACKAGE_PYTHON_PAM
bool "python-pam"
depends on BR2_PACKAGE_PYTHON # C extension not compatible with python3
- depends on BR2_ENABLE_LOCALE # linux-pam
- depends on BR2_USE_WCHAR # linux-pam
- depends on BR2_USE_MMU # linux-pam
- depends on !BR2_STATIC_LIBS # linux-pam
- depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_PAM
help
PAM (Pluggable Authentication Module) bindings for Python.
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 5/7] rsh-redone: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
` (3 preceding siblings ...)
2017-07-07 2:22 ` [Buildroot] [PATCH 4/7] python-pam: " Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 6/7] sudo: " Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 7/7] util-linux: " Carlos Santos
6 siblings, 0 replies; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
Do not repeat linux-pam dependencies.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/rsh-redone/Config.in | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/package/rsh-redone/Config.in b/package/rsh-redone/Config.in
index 6a8aec0..4042f39 100644
--- a/package/rsh-redone/Config.in
+++ b/package/rsh-redone/Config.in
@@ -14,29 +14,21 @@ config BR2_PACKAGE_RSH_REDONE_RLOGIN
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
- depends on BR2_USE_MMU # linux-pam
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_PAM
comment "rlogind needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
- || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
config BR2_PACKAGE_RSH_REDONE_RSH
bool "rsh"
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
- depends on BR2_USE_MMU # linux-pam
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_PAM
comment "rshd needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
- || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
endif
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 6/7] sudo: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
` (4 preceding siblings ...)
2017-07-07 2:22 ` [Buildroot] [PATCH 5/7] rsh-redone: " Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
2017-07-07 2:22 ` [Buildroot] [PATCH 7/7] util-linux: " Carlos Santos
6 siblings, 0 replies; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
Do not repeat linux-pam dependencies.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/sudo/Config.in | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/package/sudo/Config.in b/package/sudo/Config.in
index cbef15d..a604848 100644
--- a/package/sudo/Config.in
+++ b/package/sudo/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_SUDO
bool "sudo"
- # uses fork()
- depends on BR2_USE_MMU
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
+ select BR2_PACKAGE_LINUX_PAM
help
Sudo is a program designed to allow a sysadmin to give
limited root privileges to users and log root activity. The
@@ -9,3 +9,6 @@ config BR2_PACKAGE_SUDO
but still allow people to get their work done.
http://www.sudo.ws/sudo/
+
+comment "sudo needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread* [Buildroot] [PATCH 7/7] util-linux: use BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
2017-07-07 2:22 [Buildroot] [PATCH 0/7] introduce BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS Carlos Santos
` (5 preceding siblings ...)
2017-07-07 2:22 ` [Buildroot] [PATCH 6/7] sudo: " Carlos Santos
@ 2017-07-07 2:22 ` Carlos Santos
6 siblings, 0 replies; 12+ messages in thread
From: Carlos Santos @ 2017-07-07 2:22 UTC (permalink / raw)
To: buildroot
Do not repeat linux-pam dependencies.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/util-linux/Config.in | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index cba590c..858f523 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -82,17 +82,13 @@ config BR2_PACKAGE_UTIL_LINUX_CAL
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
- depends on BR2_USE_MMU # linux-pam
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_PAM
help
Change login shell, real user name and information
comment "chfn/chsh needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
- || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
config BR2_PACKAGE_UTIL_LINUX_CHMEM
bool "chmem"
@@ -167,17 +163,13 @@ config BR2_PACKAGE_UTIL_LINUX_LINE
config BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS
bool "login utilities"
depends on BR2_USE_MMU # fork() (login, runuser, su, sulogin)
- depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
- depends on !BR2_STATIC_LIBS
- depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
- depends on BR2_USE_MMU # linux-pam
+ depends on BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
select BR2_PACKAGE_LINUX_PAM
help
Login utilities (last, login, runuser, su, sulogin)
comment "login utilities needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
- || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+ depends on !BR2_PACKAGE_LINUX_PAM_ARCH_SUPPORTS
config BR2_PACKAGE_UTIL_LINUX_LOGGER
bool "logger"
--
2.9.4
^ permalink raw reply related [flat|nested] 12+ messages in thread