diff mbox

[07/11] ulogd: needs mmu and shared objects

Message ID 1378841180-23467-7-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit f560d38dc8b832ea32f777bbab22bc2c7f9c7005
Headers show

Commit Message

Gustavo Zacarias Sept. 10, 2013, 7:26 p.m. UTC
The plugin infrastructure is based on shared objects so it won't build
for static-only scenarios.
And the daemon uses fork() so MMU is required.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/ulogd/Config.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Axel Lin Sept. 11, 2013, 12:48 a.m. UTC | #1
2013/9/11 Gustavo Zacarias <gustavo@zacarias.com.ar>:
> The plugin infrastructure is based on shared objects so it won't build
> for static-only scenarios.
> And the daemon uses fork() so MMU is required.
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
>  package/ulogd/Config.in | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/package/ulogd/Config.in b/package/ulogd/Config.in
> index 7dc4f11..a524056 100644
> --- a/package/ulogd/Config.in
> +++ b/package/ulogd/Config.in
> @@ -2,6 +2,8 @@ config BR2_PACKAGE_ULOGD
>         bool "ulogd"
>         depends on BR2_INET_IPV6
>         depends on BR2_LARGEFILE
> +       depends on !BR2_PREFER_STATIC_LIB
> +       depends on BR2_USE_MMU
>         select BR2_PACKAGE_LIBMNL
>         select BR2_PACKAGE_LIBNETFILTER_ACCT
>         select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
> @@ -12,5 +14,6 @@ config BR2_PACKAGE_ULOGD
>
>           http://www.netfilter.org/projects/ulogd/
>
> -comment "ulogd requires a toolchain with IPV6 and LARGEFILE support"
> -       depends on !BR2_INET_IPV6 || !BR2_LARGEFILE
> +comment "ulogd requires a toolchain with IPV6, LARGEFILE and dynamic library support"
> +       depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || BR2_PREFER_STATIC_LIB
> +       depends on BR2_USE_MMU
I guess what you want is "depends on !BR2_USE_MMU" here?
Gustavo Zacarias Sept. 11, 2013, 12:51 a.m. UTC | #2
On 09/10/2013 09:48 PM, Axel Lin wrote:

>> +comment "ulogd requires a toolchain with IPV6, LARGEFILE and dynamic library support"
>> +       depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || BR2_PREFER_STATIC_LIB
>> +       depends on BR2_USE_MMU
> I guess what you want is "depends on !BR2_USE_MMU" here?

No, ulogd needs a MMU, so the comment is still valid, you can't do
anything about lacking a MMU like you could with toolchain options (it
would show ulogd as being available for your nommu target if the
toolchain lacks the necessary features?)
Not the first time someone complains about negative logic :)
Regards.
diff mbox

Patch

diff --git a/package/ulogd/Config.in b/package/ulogd/Config.in
index 7dc4f11..a524056 100644
--- a/package/ulogd/Config.in
+++ b/package/ulogd/Config.in
@@ -2,6 +2,8 @@  config BR2_PACKAGE_ULOGD
 	bool "ulogd"
 	depends on BR2_INET_IPV6
 	depends on BR2_LARGEFILE
+	depends on !BR2_PREFER_STATIC_LIB
+	depends on BR2_USE_MMU
 	select BR2_PACKAGE_LIBMNL
 	select BR2_PACKAGE_LIBNETFILTER_ACCT
 	select BR2_PACKAGE_LIBNETFILTER_CONNTRACK
@@ -12,5 +14,6 @@  config BR2_PACKAGE_ULOGD
 
 	  http://www.netfilter.org/projects/ulogd/
 
-comment "ulogd requires a toolchain with IPV6 and LARGEFILE support"
-	depends on !BR2_INET_IPV6 || !BR2_LARGEFILE
+comment "ulogd requires a toolchain with IPV6, LARGEFILE and dynamic library support"
+	depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || BR2_PREFER_STATIC_LIB
+	depends on BR2_USE_MMU