patches/dmalloc/5.5.2/110-block_size.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
yann@103
     1
This patch sets the page size to a default 12, that is a 4KiB block size.
yann@103
     2
Testing for the correct block-size is impossible when cross-compiling.
yann@103
     3
yann@103
     4
It was build up by Yann E. MORIN <yann.morin.1998@anciens.enib.fr> from some
yann@103
     5
bits gathered from buildroot, which is LGPL v2.1
yann@103
     6
License for dmalloc is:
yann@103
     7
 * Permission to use, copy, modify, and distribute this software for
yann@103
     8
 * any purpose and without fee is hereby granted, provided that the
yann@103
     9
 * above copyright notice and this permission notice appear in all
yann@103
    10
 * copies, and that the name of Gray Watson not be used in advertising
yann@103
    11
 * or publicity pertaining to distribution of the document or software
yann@103
    12
 * without specific, written prior permission.
yann@103
    13
 *
yann@103
    14
 * Gray Watson makes no representations about the suitability of the
yann@103
    15
 * software described herein for any purpose.  It is provided "as is"
yann@103
    16
 * without express or implied warranty.
yann@103
    17
yann@103
    18
I personnaly believe that the resulting code should therefore be
yann@103
    19
LGPL v2.1, but don't believe me, ask your lawyers!
yann@103
    20
yann@103
    21
diff -dur dmalloc-5.5.2.orig/configure dmalloc-5.5.2/configure
yann@103
    22
--- dmalloc-5.5.2.orig/configure	2007-05-14 19:26:14.000000000 +0200
yann@103
    23
+++ dmalloc-5.5.2/configure	2007-05-18 11:38:25.000000000 +0200
yann@103
    24
@@ -5306,7 +5306,7 @@
yann@103
    25
 
yann@103
    26
 echo "$as_me:$LINENO: checking basic-block size" >&5
yann@103
    27
 echo $ECHO_N "checking basic-block size... $ECHO_C" >&6
yann@103
    28
-ac_cv_page_size=0
yann@103
    29
+ac_cv_page_size=12
yann@103
    30
 if test $ac_cv_page_size = 0; then
yann@103
    31
    if test "$cross_compiling" = yes; then
yann@103
    32
   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling