components/gcc48/patches/006-fixincludes-check.tpl.patch
changeset 7016 401dd746ea8d
parent 7015 47aaa6f8ec6e
child 7017 25872950aa80
--- a/components/gcc48/patches/006-fixincludes-check.tpl.patch	Fri Sep 30 18:15:48 2016 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,68 +0,0 @@
-# 2013-02-07  Stefan Teleman <[email protected]>
-# This is a new addition in GCC 4.7.3 and later. It is broken
-# on Solaris 12 (it starts patching <pthread.h>) amongst other things.
-# Hopefully it will be fixed upstream.
---- gcc-4.8.2/fixincludes/check.tpl	2012-10-29 09:44:34.000000000 -0700
-+++ gcc-4.8.2/fixincludes/check.tpl	2013-10-17 11:15:49.089924443 -0700
-@@ -106,14 +106,20 @@
- exitok=true
- 
- find * -type f -print > ${TESTDIR}/LIST
-+cat ${TESTDIR}/LIST | egrep -v 'pthread.h|math_iso.h|comm_err.h|setjmp_iso.h|sys/types.h' > ${TESTDIR}/LIST.2
-+mv ${TESTDIR}/LIST ${TESTDIR}/LIST.OLD
-+cp -fp ${TESTDIR}/LIST.2 ${TESTDIR}/LIST
-+touch -r ${TESTDIR}/LIST.OLD -acm ${TESTDIR}/LIST
- 
- #  Special hack for sys/types.h:  the #define-d types for size_t,
- #  ptrdiff_t and wchar_t are different for each port.  Therefore,
- #  strip off the defined-to type so that the test results are the
- #  same for all platforms.
- #
-+if [ -f sys/types.h ] ; then
- sed 's/\(#define __[A-Z_]*_TYPE__\).*/\1/' sys/types.h > XX
- mv -f XX sys/types.h
-+fi
- 
- #  The following subshell weirdness is for saving an exit
- #  status from within a while loop that reads input.  If you can
-@@ -125,8 +131,7 @@
- do
-   if [ ! -f ${TESTBASE}/$f ]
-   then
--    echo "Newly fixed header:  $f" >&2
--    exitok=false
-+    echo "Newly fixed header: $f (ignore)" >&2
- 
-   elif cmp $f ${TESTBASE}/$f >&2
-   then
-@@ -134,7 +139,7 @@
- 
-   else
-     ${DIFF:-diff} -c $f ${TESTBASE}/$f >&2 || :
--    exitok=false
-+    echo "Diffs seen between $f and ${TESTBASE}/$f (ignore)"
-   fi
- done
- echo $exitok`
-@@ -151,8 +156,7 @@
- do
-   if [ -s $f ] && [ ! -f ${DESTDIR}/$f ]
-   then
--    echo "Missing header fix:  $f" >&2
--    exitok=false
-+    echo "Missing header fix: $f (ignore)" >&2
-   fi
- done
- echo $exitok`
-@@ -164,9 +168,9 @@
-   rm -rf inc res LIST
-   cd ..
-   rmdir ${TESTDIR} > /dev/null 2>&1 || :
--  echo All fixinclude tests pass >&2
-+  echo "All fixinclude tests pass" >&2
- else
--  echo There were fixinclude test FAILURES  >&2
-+  echo "There were fixinclude test FAILURES (ignore)" >&2
- fi
- $exitok[=
-