[asterisk-commits] rizzo: trunk r89328 - /trunk/build_tools/make_buildopts_h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Nov 16 12:48:16 CST 2007


Author: rizzo
Date: Fri Nov 16 12:48:15 2007
New Revision: 89328

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89328
Log:
both md5sum and variable substitutions such as ${BUILDSUM:0:8}
are not available in FreeBSD.
For the time being, put in a workaround so we can build the system,
and wait for the result of the discussion on whether we can store
the md5 as a string rather than 4 ints (if so, we won't need more
complex tricks with awk or sed for splitting the md5).

1.4 will be fixed when we decide the issue.


Modified:
    trunk/build_tools/make_buildopts_h

Modified: trunk/build_tools/make_buildopts_h
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/make_buildopts_h?view=diff&rev=89328&r1=89327&r2=89328
==============================================================================
--- trunk/build_tools/make_buildopts_h (original)
+++ trunk/build_tools/make_buildopts_h Fri Nov 16 12:48:15 2007
@@ -21,5 +21,14 @@
 	echo "#define AST_DEVMODE 1"
 	TMP="${TMP} AST_DEVMODE"
 fi
-BUILDSUM=`echo ${TMP} | md5sum`
-echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8}, 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}"
+
+case ${OSARCH} in
+*BSD)
+	BUILDSUM=`echo ${TMP} | md5`
+	echo "#define AST_BUILDOPT_SUM {0x0, 0x0, 0x0, 0x0} /* dummy */"
+	;;
+*)
+	BUILDSUM=`echo ${TMP} | md5sum`
+	echo "#define AST_BUILDOPT_SUM {0x${BUILDSUM:0:8}, 0x${BUILDSUM:8:8}, 0x${BUILDSUM:16:8}, 0x${BUILDSUM:24:8}}"
+	;;
+esac




More information about the asterisk-commits mailing list