[oe-commits] org.oe.dev glibc-2.2.5: Added a couple of well-known patches to allow this old version of glibc to be built with gcc 4.x and dash.

rwhitby commit openembedded-commits at lists.openembedded.org
Wed Dec 19 08:13:04 UTC 2007


glibc-2.2.5: Added a couple of well-known patches to allow this old version of glibc to be built with gcc 4.x and dash.

Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: ded971cd42396a9c4b702747ed462e3b2ae4129c
ViewMTN: http://monotone.openembedded.org/revision/info/ded971cd42396a9c4b702747ed462e3b2ae4129c
Files:
1
packages/glibc/glibc-2.2.5/glibc-2.2.5-allow-gcc-4.x-configure.patch
packages/glibc/glibc-2.2.5/glibc-2.3.2-allow-solaris.patch
packages/glibc/glibc_2.2.5.bb
Diffs:

#
# mt diff -r6834c8854d34a28405ba69e170089d3a873e3d1a -rded971cd42396a9c4b702747ed462e3b2ae4129c
#
# 
# 
# add_file "packages/glibc/glibc-2.2.5/glibc-2.2.5-allow-gcc-4.x-configure.patch"
#  content [677ca0b52ec0fe18848b08965dd750c56a836ee2]
# 
# add_file "packages/glibc/glibc-2.2.5/glibc-2.3.2-allow-solaris.patch"
#  content [c5f0de043a35f455594733a38746fddc51f70fd6]
# 
# patch "packages/glibc/glibc_2.2.5.bb"
#  from [c1e515394463dc364c06a656f0ddca88820ee0a6]
#    to [cdfac969ce99053491837a5ec0a0ee9148bc1880]
# 
============================================================
--- packages/glibc/glibc-2.2.5/glibc-2.2.5-allow-gcc-4.x-configure.patch	677ca0b52ec0fe18848b08965dd750c56a836ee2
+++ packages/glibc/glibc-2.2.5/glibc-2.2.5-allow-gcc-4.x-configure.patch	677ca0b52ec0fe18848b08965dd750c56a836ee2
@@ -0,0 +1,21 @@
+Fixes
+checking version of powerpc-405-linux-gnu-gcc ... 4.0.0, bad
+checking for gnumake... no
+checking for gmake... no
+checking for make... make
+checking version of make... 3.80, ok
+configure: error:
+*** These critical programs are missing or too old:gcc 
+
+
+--- glibc-2.2.5/configure.old	2005-03-10 00:23:46.374213600 -0800
++++ glibc-2.2.5/configure	2005-03-10 00:25:13.313996744 -0800
+@@ -1476,7 +1476,7 @@
+   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
+   case $ac_prog_version in
+     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+-    *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
++    *gcc-2.9[5-9].*|*2.8.[1-9]*|*2.9|*2.9.[0-9]*|2.9[5-9]*|3.[0-9]*|4.[0-9]*|cygnus-2.9[1-9]*|gcc-2.9[5-9]|gcc-2.1[0-9][0-9]|sgicc-*)
+        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
+     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
+ 
============================================================
--- packages/glibc/glibc-2.2.5/glibc-2.3.2-allow-solaris.patch	c5f0de043a35f455594733a38746fddc51f70fd6
+++ packages/glibc/glibc-2.2.5/glibc-2.3.2-allow-solaris.patch	c5f0de043a35f455594733a38746fddc51f70fd6
@@ -0,0 +1,41 @@
+See http://sources.redhat.com/ml/crossgcc/2003-11/msg00111.html
+Might fix error
+... gcc-3.2.3-glibc-2.3.2/build-glibc/csu/version-info.h:8: too many decimal points in floating constant
+make[2]: ***
+when building on Solaris.  I haven't seen this be needed yet, but what the heck,
+here it is in case someone needs it.
+
+Retrieved with http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/csu/Makefile.diff?r1=1.70&r2=1.71&cvsroot=glibc
+
+Revision 1.71, Thu Sep 25 20:29:39 2003 UTC (8 months, 2 weeks ago) by drepper
+Branch: MAIN
+CVS Tags: glibc-2_3_3
+
+($(objpfx)version-info.h): Fix sed script to handle banners.
+
+===================================================================
+RCS file: /cvs/glibc/libc/csu/Makefile,v
+retrieving revision 1.70
+retrieving revision 1.71
+diff -u -r1.70 -r1.71
+--- libc/csu/Makefile	2003/06/26 07:27:39	1.70
++++ libc/csu/Makefile	2003/09/25 20:29:39	1.71
+@@ -222,14 +222,14 @@
+ 		   if [ -z "$$os" ]; then \
+ 		     os=Linux; \
+ 		   fi; \
+-		   echo "\"Compiled on a $$os $$version system" \
+-			"on `date +%Y-%m-%d`.\\n\"" ;; \
++		   printf '"Compiled on a %s %s system on %s.\\n"\n' \
++			"$os" "$version" "`date +%Y-%m-%d`" ;; \
+ 	   *) ;; \
+ 	 esac; \
+ 	 files="$(all-Banner-files)";				\
+ 	 if test -n "$$files"; then				\
+-	   echo "\"Available extensions:\\n\"";			\
++	   printf '"Available extensions:\\n"\n';		\
+ 	   sed -e '/^#/d' -e 's/^[[:space:]]*/	/'		\
+-	       -e 's/\(^.*$$\)/\"\1\\n\"/' $$files;		\
++	       -e 's/^\(.*\)$$/\"\1\\n\"/' $$files;		\
+ 	 fi) > $@T
+ 	mv -f $@T $@
============================================================
--- packages/glibc/glibc_2.2.5.bb	c1e515394463dc364c06a656f0ddca88820ee0a6
+++ packages/glibc/glibc_2.2.5.bb	cdfac969ce99053491837a5ec0a0ee9148bc1880
@@ -1,7 +1,7 @@ FILESDIR = "${@os.path.dirname(bb.data.g
 require glibc.inc
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/glibc-cvs"
-PR = "r11"
+PR = "r12"
 
 DEFAULT_PREFERENCE_sh3 = "-99"
 
@@ -63,6 +63,7 @@ SRC_URI = "${GNU_MIRROR}/glibc/glibc-${P
 	   file://errlist-arm.patch;patch=1 \
 	   file://glibc-2.2.5-allow-gcc-3.4-fixup.patch;patch=1 \
 	   file://glibc-2.2.5-allow-gcc-3.4-grp.patch;patch=1 \
+	   file://glibc-2.2.5-allow-gcc-4.x-configure.patch;patch=1 \
 	   file://glibc-2.2.5-alpha-pwrite64.patch;patch=1 \
 	   file://glibc-2.2.5-arm-pwrite64.patch;patch=1 \
 	   file://glibc-2.2.5-crosstest.patch;patch=1 \
@@ -95,6 +96,7 @@ SRC_URI = "${GNU_MIRROR}/glibc/glibc-${P
 	   file://threadparam.patch;patch=1 \
 	   file://initfini-flags.patch;patch=1 \
 	   file://pt-initfini-flags.patch;patch=1 \
+	   file://glibc-2.3.2-allow-solaris.patch;patch=1 \
 	   \
            file://etc/ld.so.conf \
 	   file://generate-supported.mk"






More information about the Openembedded-commits mailing list