source: patches/gcc-4.3.2-posix-1.patch@ 1d2997a1

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1d2997a1 was 7b31c44, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Coreutils to 6.12.
Drop Mktemp in favor of the version included in Coreutils.
Updated Perl to 5.10.0.
Updated File to 4.25.
Updated File to 4.26.
Updated GCC to 4.3.2.

  • Property mode set to 100644
File size: 15.0 KB
  • contrib/patch_tester.sh

    Submitted By: Joe Ciccone <jciccone@gmail.com>
    Date: 2008-08-24
    Initial Package Version: 4.1.2
    Origin: Jim Gifford
            Rediffed against 4.1.0 by Chris Staub
            Rediffed against 4.1.2 by Jim Gifford
    	Rediffed and additions against 4.2.0 by Joe Ciccone
    	Rediffed against 4.3.0 by Joe Ciccone
    Upstream Status: On Hold
    Description: Makes GCC Posix Compliant
    
    diff -Naur gcc-4.3.1.orig/contrib/patch_tester.sh gcc-4.3.1/contrib/patch_tester.sh
    old new  
    287287
    288288    if ! make $dashj `grep "^make:" $PATCH | sed -e "s/^make://g"` bootstrap &> $1/bootstrap ; then
    289289        report "bootstrap failed with last lines:"
    290         tail -30 $1/bootstrap > $1/last_bootstrap
     290        tail -n 30 $1/bootstrap > $1/last_bootstrap
    291291        freport $1/last_bootstrap
    292292        report "grep --context=20 Error bootstrap:"
    293293        grep --context=20 Error $1/bootstrap > $1/bootstrap_error
     
    420420# After selfexec, $TESTING is already set up. 
    421421if [ -d $TESTING ]; then
    422422    # The only file in $TESTING is the patch.
    423     PATCH=`ls -rt -1 $TESTING | head -1`
     423    PATCH=`ls -rt -1 $TESTING | head -n 1`
    424424    PATCH=$TESTING/$PATCH
    425425    if [ -f $PATCH ]; then
    426426        bootntest_patched && bootntest_pristine && compare_passes
     
    429429fi
    430430
    431431while true; do
    432     PATCH=`ls -rt -1 $PATCHES | head -1`
     432    PATCH=`ls -rt -1 $PATCHES | head -n 1`
    433433    if [ x$PATCH = x ]; then
    434434        sleep ${standby}m
    435435    else
  • contrib/test_summary

    diff -Naur gcc-4.3.1.orig/contrib/test_summary gcc-4.3.1/contrib/test_summary
    old new  
    107107    srcdir = configflags;
    108108    sub(/\/configure .*/, "", srcdir);
    109109    printf "LAST_UPDATED: ";
    110     system("tail -1 " srcdir "/LAST_UPDATED");
     110    system("tail -n 1 " srcdir "/LAST_UPDATED");
    111111    print "";
    112112
    113113    sub(/^[^ ]*\/configure */, " ", configflags);
  • gcc/configure

    diff -Naur gcc-4.3.1.orig/gcc/configure gcc-4.3.1/gcc/configure
    old new  
    1426514265  # Therefore, use diff -b for the comparisons.
    1426614266  if test x$gcc_cv_objdump != x \
    1426714267  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    14268      | tail -3 > conftest.got \
     14268     | tail -n 3 > conftest.got \
    1426914269  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
    1427014270    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    1427114271  then
  • gcc/configure.ac

    diff -Naur gcc-4.3.1.orig/gcc/configure.ac gcc-4.3.1/gcc/configure.ac
    old new  
    22262226  # Therefore, use diff -b for the comparisons.
    22272227  if test x$gcc_cv_objdump != x \
    22282228  && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
    2229      | tail -3 > conftest.got \
     2229     | tail -n 3 > conftest.got \
    22302230  && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
    22312231    || diff -b conftest.big conftest.got > /dev/null 2>&1; }
    22322232  then
  • gcc/gccbug.in

    diff -Naur gcc-4.3.1.orig/gcc/gccbug.in gcc-4.3.1/gcc/gccbug.in
    old new  
    3131
    3232# The default release for this host.
    3333# We have to guess at what program_transform_name might have done.
    34 # "sed 1q" because neither "head -1" nor "head -n 1" is universal, argh.
     34# "sed 1q" because neither "head -n 1" nor "head -n n 1" is universal, argh.
    3535
    3636DEFAULT_GCC="`echo $0 | sed -e 's/bug//'`"
    3737DEFAULT_RELEASE="`$DEFAULT_GCC --version | sed 1q`"
  • gcc/testsuite/ada/acats/run_all.sh

    diff -Naur gcc-4.3.1.orig/gcc/testsuite/ada/acats/run_all.sh gcc-4.3.1/gcc/testsuite/ada/acats/run_all.sh
    old new  
    6868  ls ${i}?.adb > ${i}.lst 2> /dev/null
    6969  ls ${i}*m.adb >> ${i}.lst 2> /dev/null
    7070  ls ${i}.adb >> ${i}.lst 2> /dev/null
    71   main=`tail -1 ${i}.lst`
     71  main=`tail -n 1 ${i}.lst`
    7272}
    7373
    7474EXTERNAL_OBJECTS=""
  • libgomp/acinclude.m4

    diff -Naur gcc-4.3.1.orig/libgomp/acinclude.m4 gcc-4.3.1/libgomp/acinclude.m4
    old new  
    147147  # Start by getting the version number.  I think the libtool test already
    148148  # does some of this, but throws away the result.
    149149  changequote(,)
    150   ldver=`$LD --version 2>/dev/null | head -1 | \
     150  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    151151         sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    152152  changequote([,])
    153153  libgomp_gnu_ld_version=`echo $ldver | \
  • libgomp/configure

    diff -Naur gcc-4.3.1.orig/libgomp/configure gcc-4.3.1/libgomp/configure
    old new  
    1760017600  # Start by getting the version number.  I think the libtool test already
    1760117601  # does some of this, but throws away the result.
    1760217602
    17603   ldver=`$LD --version 2>/dev/null | head -1 | \
     17603  ldver=`$LD --version 2>/dev/null | head -n 1 | \
    1760417604         sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    1760517605
    1760617606  libgomp_gnu_ld_version=`echo $ldver | \
  • libjava/classpath/ChangeLog-2004

    diff -Naur gcc-4.3.1.orig/libjava/classpath/ChangeLog-2004 gcc-4.3.1/libjava/classpath/ChangeLog-2004
    old new  
    82568256
    825782572004-08-17  Casey Marshall <csm@gnu.org>
    82588258
    8259         * autogen.sh: use `head -n 1' instead of `head -1'.
     8259        * autogen.sh: use `head -n n 1' instead of `head -n 1'.
    82608260
    826182612004-08-16  Andrew John Hughes  <gnu_andrew@member.fsf.org>
    82628262
  • libjava/classpath/configure

    diff -Naur gcc-4.3.1.orig/libjava/classpath/configure gcc-4.3.1/libjava/classpath/configure
    old new  
    2912629126fi # shortcircut to system "stdint.h"
    2912729127# ------------------ PREPARE VARIABLES ------------------------------
    2912829128if test "$GCC" = "yes" ; then
    29129 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
     29129ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
    2913029130else
    2913129131ac_cv_stdint_message="using $CC"
    2913229132fi
  • libjava/classpath/ltcf-c.sh

    diff -Naur gcc-4.3.1.orig/libjava/classpath/ltcf-c.sh gcc-4.3.1/libjava/classpath/ltcf-c.sh
    old new  
    153153    # If the export-symbols file already is a .def file (1st line
    154154    # is EXPORTS), use it as is.
    155155    # If DATA tags from a recent dlltool are present, honour them!
    156     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     156    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    157157        cp $export_symbols $output_objdir/$soname-def;
    158158      else
    159159        echo EXPORTS > $output_objdir/$soname-def;
  • libjava/classpath/ltcf-gcj.sh

    diff -Naur gcc-4.3.1.orig/libjava/classpath/ltcf-gcj.sh gcc-4.3.1/libjava/classpath/ltcf-gcj.sh
    old new  
    156156    # If the export-symbols file already is a .def file (1st line
    157157    # is EXPORTS), use it as is.
    158158    # If DATA tags from a recent dlltool are present, honour them!
    159     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
     159    archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then
    160160        cp $export_symbols $output_objdir/$soname-def;
    161161      else
    162162        echo EXPORTS > $output_objdir/$soname-def;
  • libjava/classpath/m4/ax_create_stdint_h.m4

    diff -Naur gcc-4.3.1.orig/libjava/classpath/m4/ax_create_stdint_h.m4 gcc-4.3.1/libjava/classpath/m4/ax_create_stdint_h.m4
    old new  
    217217fi # shortcircut to system "stdint.h"
    218218# ------------------ PREPARE VARIABLES ------------------------------
    219219if test "$GCC" = "yes" ; then
    220 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
     220ac_cv_stdint_message="using gnu compiler "`$CC --version | head -n 1`
    221221else
    222222ac_cv_stdint_message="using $CC"
    223223fi
  • libjava/configure

    diff -Naur gcc-4.3.1.orig/libjava/configure gcc-4.3.1/libjava/configure
    old new  
    1867318673echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
    1867418674LD_PROG=`$CC --print-prog-name=ld`
    1867518675LD_VERSION=`$LD_PROG --version`
    18676 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    18677 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     18676LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     18677LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    1867818678if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    1867918679  LD_OK="ok"
    1868018680else
  • libjava/mingwld.m4

    diff -Naur gcc-4.3.1.orig/libjava/mingwld.m4 gcc-4.3.1/libjava/mingwld.m4
    old new  
    33AC_MSG_CHECKING(whether 'ld' is at least 2.13)
    44LD_PROG=`$CC --print-prog-name=ld`
    55LD_VERSION=`$LD_PROG --version`
    6 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
    7 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
     6LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
     7LD_VERSION_MINOR=`echo "$LD_VERSION" | head -n 1 | cut -d '.' -f 2`
    88if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
    99  LD_OK="ok"
    1010else
  • libstdc++-v3/acinclude.m4

    diff -Naur gcc-4.3.1.orig/libstdc++-v3/acinclude.m4 gcc-4.3.1/libstdc++-v3/acinclude.m4
    old new  
    234234  if test x"$with_gnu_ld" = x"yes"; then
    235235    AC_MSG_CHECKING([for ld version])
    236236    changequote(,)
    237     ldver=`$LD --version 2>/dev/null | head -1 | \
     237    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    238238           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    239239    changequote([,])
    240240    glibcxx_gnu_ld_version=`echo $ldver | \
  • libstdc++-v3/configure

    diff -Naur gcc-4.3.1.orig/libstdc++-v3/configure gcc-4.3.1/libstdc++-v3/configure
    old new  
    1748817488    echo "$as_me:$LINENO: checking for ld version" >&5
    1748917489echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    1749017490
    17491     ldver=`$LD --version 2>/dev/null | head -1 | \
     17491    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    1749217492           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    1749317493
    1749417494    glibcxx_gnu_ld_version=`echo $ldver | \
     
    4221342213    echo "$as_me:$LINENO: checking for ld version" >&5
    4221442214echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    4221542215
    42216     ldver=`$LD --version 2>/dev/null | head -1 | \
     42216    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    4221742217           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    4221842218
    4221942219    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8460484604    echo "$as_me:$LINENO: checking for ld version" >&5
    8460584605echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    8460684606
    84607     ldver=`$LD --version 2>/dev/null | head -1 | \
     84607    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8460884608           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    8460984609
    8461084610    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8562085620    echo "$as_me:$LINENO: checking for ld version" >&5
    8562185621echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    8562285622
    85623     ldver=`$LD --version 2>/dev/null | head -1 | \
     85623    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8562485624           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    8562585625
    8562685626    glibcxx_gnu_ld_version=`echo $ldver | \
     
    8660886608    echo "$as_me:$LINENO: checking for ld version" >&5
    8660986609echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    8661086610
    86611     ldver=`$LD --version 2>/dev/null | head -1 | \
     86611    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    8661286612           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    8661386613
    8661486614    glibcxx_gnu_ld_version=`echo $ldver | \
     
    109087109087    echo "$as_me:$LINENO: checking for ld version" >&5
    109088109088echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    109089109089
    109090     ldver=`$LD --version 2>/dev/null | head -1 | \
     109090    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    109091109091           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    109092109092
    109093109093    glibcxx_gnu_ld_version=`echo $ldver | \
     
    109932109932    echo "$as_me:$LINENO: checking for ld version" >&5
    109933109933echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    109934109934
    109935     ldver=`$LD --version 2>/dev/null | head -1 | \
     109935    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    109936109936           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    109937109937
    109938109938    glibcxx_gnu_ld_version=`echo $ldver | \
     
    110826110826    echo "$as_me:$LINENO: checking for ld version" >&5
    110827110827echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    110828110828
    110829     ldver=`$LD --version 2>/dev/null | head -1 | \
     110829    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    110830110830           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    110831110831
    110832110832    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112112112112    echo "$as_me:$LINENO: checking for ld version" >&5
    112113112113echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    112114112114
    112115     ldver=`$LD --version 2>/dev/null | head -1 | \
     112115    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112116112116           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    112117112117
    112118112118    glibcxx_gnu_ld_version=`echo $ldver | \
     
    112848112848    echo "$as_me:$LINENO: checking for ld version" >&5
    112849112849echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    112850112850
    112851     ldver=`$LD --version 2>/dev/null | head -1 | \
     112851    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    112852112852           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    112853112853
    112854112854    glibcxx_gnu_ld_version=`echo $ldver | \
     
    113349113349    echo "$as_me:$LINENO: checking for ld version" >&5
    113350113350echo $ECHO_N "checking for ld version... $ECHO_C" >&6
    113351113351
    113352     ldver=`$LD --version 2>/dev/null | head -1 | \
     113352    ldver=`$LD --version 2>/dev/null | head -n 1 | \
    113353113353           sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
    113354113354
    113355113355    glibcxx_gnu_ld_version=`echo $ldver | \
Note: See TracBrowser for help on using the repository browser.