When trying to build OpenSG with GNU Make 3.81 beta 4, the build fails
because $(MAKE_OLD_DOLLAR) does not get set correctly. This happens because
this GNU Make release reports its version as "3.81beta4" (at least on the
current Ubuntu 6.06 beta), a case that is not handled by
Common/commonBuildDetect.mk. I have attached a patch to this file that
extracts just the GNU Make minor version number without any additional text
afterwards. In this way, the minor version number in 3.81beta4 comes out as 81.

This patch is, admittedly, a hack. Given the arbitrary nature of version
numbers (and the textual presentation of such information), I don't know of
a totally robust way to protect against more problems like this in the
future. It works for now, though.

 -Patrick


-- 
Patrick L. Hartling                    | VP Engineering, Infiscape Corp.
PGP: http://tinyurl.com/2msw3          | http://www.infiscape.com/
Index: commonBuildDetect.mk
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Common/commonBuildDetect.mk,v
retrieving revision 1.16
diff -u -r1.16 commonBuildDetect.mk
--- commonBuildDetect.mk        15 May 2006 06:43:15 -0000      1.16
+++ commonBuildDetect.mk        18 May 2006 13:50:04 -0000
@@ -85,7 +85,7 @@
        $(shell $(MAKE) --version | head -n 1 | cut -d' ' -f 3 | cut -d'.' -f 1)
 
 MAKEMINOR := \
-       $(shell $(MAKE) --version | head -n 1 | cut -d' ' -f 3 | cut -d'.' -f 2)
+       $(shell $(MAKE) --version | head -n 1 | cut -d' ' -f 3 | cut -d'.' -f 2 
| sed -e 's/^\([0-9][0-9]*\)[a-bA-B].*$/\1/')
 endif
 
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to