From mboxrd@z Thu Jan 1 00:00:00 1970 From: Digimer Date: Fri, 02 Dec 2011 00:42:03 -0500 Subject: [Cluster-devel] patch for cluster 3.1.8's 'configure' Message-ID: <4ED8652B.6030407@alteeve.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This patch fixes two small bugs in cluster's "configure" script; 1. When checking the x.y.z kernel version values, it changes the '!$foo' to 'not defined $foo'. This is because a version number of '0' matches "not" (!$foo). A safer but slower approach would be to do '$foo =~ /^\d+$/'. Not sure which is preferred. 2. Added a check where if 'x' in 'x.y.z' is greater in the detected kernel than in the minimum required kernel, the test passes. This handles 3.x kernels where the minimum is 2.y. I tested this patch against Fedora 16 x86-64 and Ubuntu 11.10 amd64. -- Digimer E-Mail: digimer at alteeve.com Freenode handle: digimer Papers and Projects: http://alteeve.com Node Assassin: http://nodeassassin.org "omg my singularity battery is dead again. stupid hawking radiation." - epitron -------------- next part -------------- A non-text attachment was scrubbed... Name: configure_detect-kernel-3-properly.patch Type: text/x-patch Size: 852 bytes Desc: not available URL: