* [Buildroot] [PATCH] linux-pam: unavailable for static builds
@ 2014-07-30 23:14 Gustavo Zacarias
2014-07-31 20:25 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2014-07-30 23:14 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/3bb/3bb8d4662995a11e8e6cc5fdaaba9e25d4c0e0ec/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/linux-pam/Config.in | 6 ++++--
package/rsh-redone/Config.in | 16 ++++++++++------
package/util-linux/Config.in | 16 ++++++++++------
3 files changed, 24 insertions(+), 14 deletions(-)
diff --git a/package/linux-pam/Config.in b/package/linux-pam/Config.in
index 88bdd4f..72ef376 100644
--- a/package/linux-pam/Config.in
+++ b/package/linux-pam/Config.in
@@ -3,10 +3,12 @@ config BR2_PACKAGE_LINUX_PAM
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
select BR2_PACKAGE_FLEX
depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+ depends on !BR2_PREFER_STATIC_LIB
help
A Security Framework that Provides Authentication for Applications
http://linux-pam.org
-comment "linux-pam needs a toolchain w/ wchar, locale"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "linux-pam needs a toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_PREFER_STATIC_LIB
diff --git a/package/rsh-redone/Config.in b/package/rsh-redone/Config.in
index f636e2f..c8f2f51 100644
--- a/package/rsh-redone/Config.in
+++ b/package/rsh-redone/Config.in
@@ -14,21 +14,25 @@ config BR2_PACKAGE_RSH_REDONE_RLOGIN
config BR2_PACKAGE_RSH_REDONE_RLOGIND
bool "rlogind"
- select BR2_PACKAGE_LINUX_PAM
+ depends on !BR2_PREFER_STATIC_LIB
depends on BR2_ENABLE_LOCALE && BR2_USE_WCHAR
+ select BR2_PACKAGE_LINUX_PAM
-comment "rlogind needs a toolchain w/ wchar, locale"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "rlogind needs a toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_PREFER_STATIC_LIB
config BR2_PACKAGE_RSH_REDONE_RSH
bool "rsh"
config BR2_PACKAGE_RSH_REDONE_RSHD
bool "rshd"
- select BR2_PACKAGE_LINUX_PAM
depends on BR2_ENABLE_LOCALE && BR2_USE_WCHAR
+ depends on !BR2_PREFER_STATIC_LIB
+ select BR2_PACKAGE_LINUX_PAM
-comment "rshd needs a toolchain w/ wchar, locale"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "rshd needs a toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_PREFER_STATIC_LIB
endif
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index 28bda11..934021a 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -58,13 +58,15 @@ config BR2_PACKAGE_UTIL_LINUX_ARCH
config BR2_PACKAGE_UTIL_LINUX_CHFN_CHSH
bool "chfn/chsh"
- select BR2_PACKAGE_LINUX_PAM
depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
+ depends on !BR2_PREFER_STATIC_LIB
+ select BR2_PACKAGE_LINUX_PAM
help
Change login shell, real user name and information
-comment "chfn/chsh needs a toolchain w/ wchar, locale"
- depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR)
+comment "chfn/chsh needs a toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_PREFER_STATIC_LIB
config BR2_PACKAGE_UTIL_LINUX_CRAMFS
bool "cramfs utilities"
@@ -100,13 +102,15 @@ config BR2_PACKAGE_UTIL_LINUX_KILL
config BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS
bool "login utilities"
- depends on BR2_ENABLE_LOCALE # linux-pam
+ depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
+ depends on !BR2_PREFER_STATIC_LIB
select BR2_PACKAGE_LINUX_PAM
help
Build login utilities (last, login, su, sulogin)
-comment "login utilities needs a toolchain w/ locale"
- depends on !BR2_ENABLE_LOCALE
+comment "login utilities needs a toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_PREFER_STATIC_LIB
config BR2_PACKAGE_UTIL_LINUX_LOSETUP
bool "losetup"
--
1.8.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] linux-pam: unavailable for static builds
2014-07-30 23:14 [Buildroot] [PATCH] linux-pam: unavailable for static builds Gustavo Zacarias
@ 2014-07-31 20:25 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-07-31 20:25 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Wed, 30 Jul 2014 20:14:51 -0300, Gustavo Zacarias wrote:
> Fixes:
> http://autobuild.buildroot.net/results/3bb/3bb8d4662995a11e8e6cc5fdaaba9e25d4c0e0ec/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> package/linux-pam/Config.in | 6 ++++--
> package/rsh-redone/Config.in | 16 ++++++++++------
> package/util-linux/Config.in | 16 ++++++++++------
> 3 files changed, 24 insertions(+), 14 deletions(-)
I spent quite a bit of time messing up with --enable-static-modules in
linux-pam, in the hope to prove you I can get it to build in a static
fashion. But linux-pam build system doesn't handle the fact that it
should build libpam, then the modules, then libpam again with the
modules linked into it.
Therefore, I've applied your patch, after adding a few more details as
a comment in linux-pam's Config.in file.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-31 20:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 23:14 [Buildroot] [PATCH] linux-pam: unavailable for static builds Gustavo Zacarias
2014-07-31 20:25 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox