Skip to contentSkip to conversation

eglibc: Fix configure when re-building with gold

PATCH Superseded Khem Raj 1 participant 2 messages May 29, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 eglibc: Fix configure when re-building with gold

---
 .../eglibc/eglibc-2.19/grok_gold.patch             | 34 ++++++++++++++++++++++
 meta/recipes-core/eglibc/eglibc_2.19.bb            |  3 +-
 2 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-core/eglibc/eglibc-2.19/grok_gold.patch
meta/recipes-core/eglibc/eglibc-2.19/grok_gold.patch new file +34 -0
new file mode 100644
index 0000000..d46737a
@@ -0,0 +1,34 @@
+Make ld --version output matching grok gold's output
+
+adapted from from upstream branch roland/gold-vs-libc
+
+Signed-off-by: Khem Raj <[email protected]>
+Upstream-Status: Backport
+
+
+Index: libc/configure
+===================================================================
+--- libc.orig/configure
++++ libc/configure
+@@ -4654,7 +4654,7 @@ else
+   # Found it, now check the version.
+   { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
+ $as_echo_n "checking version of $LD... " >&6; }
+-  ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
++  ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU [Bbinutilsd][^.]* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
+   case $ac_prog_version in
+     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
+     2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
+Index: libc/configure.ac
+===================================================================
+--- libc.orig/configure.ac
++++ libc/configure.ac
+@@ -990,7 +990,7 @@ AC_CHECK_PROG_VER(AS, $AS, --version,
+ 		  [GNU assembler.* \([0-9]*\.[0-9.]*\)],
+ 		  [2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*], AS=: critic_missing="$critic_missing as")
+ AC_CHECK_PROG_VER(LD, $LD, --version,
+-		  [GNU ld.* \([0-9][0-9]*\.[0-9.]*\)],
++		  [GNU [Bbinutilsd][^.]* \([0-9][0-9]*\.[0-9.]*\)],
+ 		  [2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*], LD=: critic_missing="$critic_missing ld")
+ 
+ # These programs are version sensitive.
meta/recipes-core/eglibc/eglibc_2.19.bb +2 -1
index 8f09676..c65e6a5 100644
@@ -24,7 +24,8 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/eglibc/eglibc-${PV}-svnr25
            file://0001-R_ARM_TLS_DTPOFF32.patch \
            file://0001-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \
            file://fix-tibetian-locales.patch \
-	   file://ppce6500-32b_slow_ieee754_sqrt.patch \
+           file://ppce6500-32b_slow_ieee754_sqrt.patch \
+           file://grok_gold.patch \
           "
 SRC_URI[md5sum] = "197836c2ba42fb146e971222647198dd"
 SRC_URI[sha256sum] = "baaa030531fc308f7820c46acdf8e1b2f8e3c1f40bcd28b6e440d1c95d170d4c"
Signature · 1 line
1.9.3
author
#1 lore raw

PATCH 2/2 gcc, uclibc: Add/Fix Upstream-Status in patches

---
 .../recipes-core/uclibc/uclibc-git/0004-Add-clock_adjtime-syscall.patch | 2 ++
 meta/recipes-devtools/gcc/gcc-4.9/0047-repomembug.patch                 | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/uclibc/uclibc-git/0004-Add-clock_adjtime-syscall.patch +2 -0
index 3062ae4..c596db6 100644
@@ -1,3 +1,5 @@
+Upstream-Status: Pending
+
 From 8e19e651145554fbcb90179f3dfbc7ea8a07c900 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Sat, 15 Mar 2014 09:32:20 -0700
meta/recipes-devtools/gcc/gcc-4.9/0047-repomembug.patch +1 -1
index 868a4f3..9afd55c 100644
@@ -31,7 +31,7 @@ RP 2013/10/9
 
 [YOCTO #5133]
 
-Upstream-State: Pending
+Upstream-Status: Pending
 
 Index: gcc-4.8.1/gcc/toplev.c
 ===================================================================
Signature · 1 line
1.9.3