patches/dmalloc/5.5.2/110-block_size.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:28:10 2011 +0200 (2011-08-02)
changeset 2590 b64cfb67944e
permissions -rw-r--r--
scripts/functions: svn retrieval first tries the mirror for tarballs

The svn download helper looks for the local tarballs dir to see if it
can find a pre-downloaded tarball, and if it does not find it, does
the actual fetch to upstream via svn.

In the process, it does not even try to get a tarball from the local
mirror, which can be useful if the mirror has been pre-populated
manually (or with a previously downloaded tree).

Fake a tarball get with the standard tarball-download helper, but
without specifying any upstream URL, which makes the helper directly
try the LAN mirror.

Of course, if no mirror is specified, no URL wil be available, and
the standard svn retrieval will kick in.

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