Skip to contentSkip to conversation

Update config.guess and config.sub scripts to latest versions.

PATCH New Jouko Nikula 3 participants 4 messages Sep 27, 2013 – Oct 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update config.guess and config.sub scripts to latest versions.

Current version of config.guess may fail to detect host libc version, which results in problems with configure when building gcc. Current patches are removed and a new patch is added to improve config.guess support for uClibc. New patch should add the same improvements as the original patch from Thomas Petazzoni. Patch to add support for ps2 is removed as it was discussed on buildroot mailing list that it is no longer needed.

---
 support/gnuconfig/README.buildroot                 |    3 +-
 support/gnuconfig/config.guess                     |  113 ++++++------
 support/gnuconfig/config.sub                       |   92 ++++------
 .../patches/0001-Improve-support-for-uClibc.patch  |   36 ++++
 .../0001-config-add-support-for-uClibc.patch       |  184 --------------------
 .../patches/0002-config-add-support-for-ps2.patch  |   60 -------
 6 files changed, 137 insertions(+), 351 deletions(-)
 create mode 100644 support/gnuconfig/patches/0001-Improve-support-for-uClibc.patch
 delete mode 100644 support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch
 delete mode 100644 support/gnuconfig/patches/0002-config-add-support-for-ps2.patch
support/gnuconfig/README.buildroot +2 -1
index 5f96b3c..85ccd42 100644
@@ -25,4 +25,5 @@ have to make sure they're still needed.  The patches are broken
 out in the patches/ dir to keep things simple.
 
 The current Buildroot version is based on the Git commit
-9582436dfae5755279f96898ce30bde28e4e69ea of the config.git repository.
+16a0cbc5e35e639ed7a46c3b28daab12c8bf2060 of the config.git repository.
+
support/gnuconfig/config.guess +61 -52

213 lines not on this page · raw message

support/gnuconfig/config.sub +38 -54

212 lines not on this page · raw message

support/gnuconfig/patches/0001-Improve-support-for-uClibc.patch new file +36 -0
new file mode 100644
index 0000000..cf6f81c
@@ -0,0 +1,36 @@
+From e6525390da5fbdbc1e1f2aed2b8a58c97edb75ff Mon Sep 17 00:00:00 2001
+From: Jouko Nikula <[email protected]>
+Date: Tue, 24 Sep 2013 15:30:43 +0300
+Subject: [PATCH] Improve support for uClibc.
+
+---
+ config.guess |    6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/config.guess b/config.guess
+index b79252d..0d9679e 100755
+--- a/config.guess
++++ b/config.guess
+@@ -142,14 +142,18 @@ Linux|GNU|GNU/*)
+ 	cat <<-EOF > $dummy.c
+ 	#include <features.h>
+ 	#if defined(__UCLIBC__)
++	# ifdef __UCLIBC_CONFIG_VERSION__
++	LIBC=uclibc __UCLIBC_CONFIG_VERSION__
++	# else
+ 	LIBC=uclibc
++	# endif
+ 	#elif defined(__dietlibc__)
+ 	LIBC=dietlibc
+ 	#else
+ 	LIBC=gnu
+ 	#endif
+ 	EOF
+-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
++	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC=' | sed -e 's: ::g'`
+ 	;;
+ esac
+ 
+-- 
+1.7.9.5
+
support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch deleted +0 -184

184 lines not on this page · raw message

support/gnuconfig/patches/0002-config-add-support-for-ps2.patch deleted +0 -60

60 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 1/1 Update config.guess and config.sub scripts to latest versions.

Current version of config.guess may fail to detect host libc version, which results in problems with configure when building gcc. Current patches are removed. Patch to add support for ps2 is removed as it was discussed on buildroot mailing list that it is no longer needed.

[Arnout: drop the 'improve uClibc' patch, update commit message.]

---
v3: drop the 'improve uClibc' patch.

This patch turns out not to be needed. It was an experimental uClibc feature of 9 years ago which never made it into a release. That's why this change didn't make it into upstream gnuconfig.

---
 support/gnuconfig/README.buildroot                 |   3 +-
 support/gnuconfig/config.guess                     | 113 +++++++------
 support/gnuconfig/config.sub                       |  92 +++++------
 .../0001-config-add-support-for-uClibc.patch       | 184 ---------------------
 .../patches/0002-config-add-support-for-ps2.patch  |  60 -------
 5 files changed, 101 insertions(+), 351 deletions(-)
 delete mode 100644 support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch
 delete mode 100644 support/gnuconfig/patches/0002-config-add-support-for-ps2.patch
support/gnuconfig/README.buildroot +2 -1
index 5f96b3c..85ccd42 100644
@@ -25,4 +25,5 @@ have to make sure they're still needed.  The patches are broken
 out in the patches/ dir to keep things simple.
 
 The current Buildroot version is based on the Git commit
-9582436dfae5755279f96898ce30bde28e4e69ea of the config.git repository.
+16a0cbc5e35e639ed7a46c3b28daab12c8bf2060 of the config.git repository.
+
support/gnuconfig/config.guess +61 -52

213 lines not on this page · raw message

support/gnuconfig/config.sub +38 -54

212 lines not on this page · raw message

support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch deleted +0 -184

184 lines not on this page · raw message

support/gnuconfig/patches/0002-config-add-support-for-ps2.patch deleted +0 -60

60 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3
#2 lore raw

PATCH v2 1/1 Update config.guess and config.sub scripts to latest versions.

From: Jouko Nikula <[email protected]>

Current version of config.guess may fail to detect host libc version, which results in problems with configure when building gcc. Current patches are removed. Patch to add support for ps2 is removed as it was discussed on buildroot mailing list that it is no longer needed.

[Arnout: drop the 'improve uClibc' patch, update commit message, update to more recent version, update README.]

---
v3: Now actually update the config.guess as well. And while I'm at
it, I've also updated to the current latest git version of gnuconfig.

Also I reset the Author to Jouko now.

v2: drop the 'improve uClibc' patch.

This patch turns out not to be needed. It was an experimental uClibc feature of 9 years ago which never made it into a release. That's why this change didn't make it into upstream gnuconfig.

---
 support/gnuconfig/README.buildroot                 |   7 +-
 support/gnuconfig/config.guess                     | 117 ++++++-------
 support/gnuconfig/config.sub                       |  94 +++++------
 .../0001-config-add-support-for-uClibc.patch       | 184 ---------------------
 .../patches/0002-config-add-support-for-ps2.patch  |  60 -------
 5 files changed, 104 insertions(+), 358 deletions(-)
 delete mode 100644 support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch
 delete mode 100644 support/gnuconfig/patches/0002-config-add-support-for-ps2.patch
support/gnuconfig/README.buildroot +3 -4
index 5f96b3c..0898cb5 100644
@@ -20,9 +20,8 @@ GNU config is now managed in git, so to update:
 # for p in $(ls patches/*.patch); do patch -p1 < $p; done
 # rm -rf config
 
-A few local customizations are used to support uClibc so you may
-have to make sure they're still needed.  The patches are broken
-out in the patches/ dir to keep things simple.
+Currently no patches are needed, but they may be needed again in the
+future.
 
 The current Buildroot version is based on the Git commit
-9582436dfae5755279f96898ce30bde28e4e69ea of the config.git repository.
+5e4de70bb0064d974a848fbe3a445d5dafaf7b48 of the config.git repository.
support/gnuconfig/config.guess +61 -56

213 lines not on this page · raw message

support/gnuconfig/config.sub +40 -54

226 lines not on this page · raw message

support/gnuconfig/patches/0001-config-add-support-for-uClibc.patch deleted +0 -184

184 lines not on this page · raw message

support/gnuconfig/patches/0002-config-add-support-for-ps2.patch deleted +0 -60

60 lines not on this page · raw message

Signature · 1 line
1.8.4.rc3
#3 lore raw

PATCH v2 1/1 Update config.guess and config.sub scripts to latest versions.

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

From: Jouko Nikula <[email protected]>
Current version of config.guess may fail to detect host libc version, which results in problems with configure when building gcc. Current patches are removed. Patch to add support for ps2 is removed as it was discussed on buildroot mailing list that it is no longer needed.

[Arnout: drop the 'improve uClibc' patch, update commit message, update to more recent version, update README.]

Quoted 7 lines

---
v3: Now actually update the config.guess as well. And while I'm at
it, I've also updated to the current latest git version of gnuconfig.

Also I reset the Author to Jouko now.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard