All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configure: Fix logic for flex version check
@ 2016-06-16 22:06 Shivani Bhardwaj
  2016-06-17 11:00 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Shivani Bhardwaj @ 2016-06-16 22:06 UTC (permalink / raw)
  To: netfilter-devel

According to the previous logic of version check for flex, anything
greater than 2.5.33 but within 2.5.x was acceptable. The issue was
observed when a false warning generated for flex version 2.6.0.
New logic works for basically everything greater than 2.5.33.

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b170add..0040f0b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -164,7 +164,7 @@ if test "x$enable_nftables" = "xyes"; then
 	flex_minor=`echo $flex_version| cut -d . -f 2`
 	flex_rev=`echo $flex_version| cut -d . -f 3`
 
-	if test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33"; then
+	if (test "$flex_major" -eq "2" && test "$flex_minor" -eq "5" && test "$flex_rev" -ge "33") || (test "$flex_major" -eq "2" && test "$flex_minor" -gt "5") || test "$flex_major" -gt "2"; then
 		AC_MSG_RESULT([$flex_version. OK])
 	else
 		AC_MSG_WARN([flex version $flex_version found.
-- 
2.7.4


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

* Re: [PATCH] configure: Fix logic for flex version check
  2016-06-16 22:06 [PATCH] configure: Fix logic for flex version check Shivani Bhardwaj
@ 2016-06-17 11:00 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2016-06-17 11:00 UTC (permalink / raw)
  To: Shivani Bhardwaj; +Cc: netfilter-devel

Hi Shivani,

On Fri, Jun 17, 2016 at 03:36:14AM +0530, Shivani Bhardwaj wrote:
> According to the previous logic of version check for flex, anything
> greater than 2.5.33 but within 2.5.x was acceptable. The issue was
> observed when a false warning generated for flex version 2.6.0.
> New logic works for basically everything greater than 2.5.33.

The patch doesn't say what tree this patch is intended for.

Anyway, this idiom has been copy and pasted from other netfilter
trees so it would be good to check if conntrack-tools, iptables and
nft suffer from this problem that you describe above.

Please, resubmit including prefix, eg. [PATCH iptables] configure: ...
and let me know, thanks.

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

end of thread, other threads:[~2016-06-17 11:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-16 22:06 [PATCH] configure: Fix logic for flex version check Shivani Bhardwaj
2016-06-17 11:00 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.