patches/strace/4.5.17/100-autoreconf.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Aug 02 18:26:53 2011 +0200 (2011-08-02)
changeset 2592 4908eb2b6f17
parent 746 b150d6f590fc
permissions -rw-r--r--
scripts/functions: cvs retrieval first tries the mirror for tarballs

The cvs 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 cvs.

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 cvs retrieval will kick in.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 Original patch from gentoo: ../../dev/crosstool-NG/ct-ng.trunk/patches/strace/4.5.17/100-autoreconf.patch
     2 -= BEGIN original header =-
     3 diff -dur strace-4.5.16.orig/configure strace-4.5.16/configure
     4 -= END original header =-
     5 diff -durN strace-4.5.17.orig/configure strace-4.5.17/configure
     6 --- strace-4.5.17.orig/configure	2008-07-22 02:43:21.000000000 +0200
     7 +++ strace-4.5.17/configure	2008-10-24 21:30:13.000000000 +0200
     8 @@ -5808,6 +5808,73 @@
     9  
    10  fi
    11  
    12 +echo "$as_me:$LINENO: checking for statfs64 in sys/(statfs|vfs).h" >&5
    13 +echo $ECHO_N "checking for statfs64 in sys/(statfs|vfs).h... $ECHO_C" >&6
    14 +if test "${ac_cv_type_statfs64+set}" = set; then
    15 +  echo $ECHO_N "(cached) $ECHO_C" >&6
    16 +else
    17 +  cat >conftest.$ac_ext <<_ACEOF
    18 +/* confdefs.h.  */
    19 +_ACEOF
    20 +cat confdefs.h >>conftest.$ac_ext
    21 +cat >>conftest.$ac_ext <<_ACEOF
    22 +/* end confdefs.h.  */
    23 +#ifdef LINUX
    24 +#include <linux/types.h>
    25 +#include <sys/statfs.h>
    26 +#else
    27 +#include <sys/vfs.h>
    28 +#endif
    29 +int
    30 +main ()
    31 +{
    32 +struct statfs64 st;
    33 +  ;
    34 +  return 0;
    35 +}
    36 +_ACEOF
    37 +rm -f conftest.$ac_objext
    38 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    39 +  (eval $ac_compile) 2>conftest.er1
    40 +  ac_status=$?
    41 +  grep -v '^ *+' conftest.er1 >conftest.err
    42 +  rm -f conftest.er1
    43 +  cat conftest.err >&5
    44 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    45 +  (exit $ac_status); } &&
    46 +	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
    47 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    48 +  (eval $ac_try) 2>&5
    49 +  ac_status=$?
    50 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    51 +  (exit $ac_status); }; } &&
    52 +	 { ac_try='test -s conftest.$ac_objext'
    53 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    54 +  (eval $ac_try) 2>&5
    55 +  ac_status=$?
    56 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    57 +  (exit $ac_status); }; }; then
    58 +  ac_cv_type_statfs64=yes
    59 +else
    60 +  echo "$as_me: failed program was:" >&5
    61 +sed 's/^/| /' conftest.$ac_ext >&5
    62 +
    63 +ac_cv_type_statfs64=no
    64 +fi
    65 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    66 +fi
    67 +
    68 +echo "$as_me:$LINENO: result: $ac_cv_type_statfs64" >&5
    69 +echo "${ECHO_T}$ac_cv_type_statfs64" >&6
    70 +if test "$ac_cv_type_statfs64" = yes
    71 +then
    72 +
    73 +cat >>confdefs.h <<\_ACEOF
    74 +#define HAVE_STATFS64 1
    75 +_ACEOF
    76 +
    77 +fi
    78 +
    79  
    80  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
    81  echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }