* [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes
@ 2011-11-13 8:55 Thomas Petazzoni
2011-11-13 8:55 ` [Buildroot] [PATCH 1/3] gdb: do not allow native gdb on SuperH architecture Thomas Petazzoni
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2011-11-13 8:55 UTC (permalink / raw)
To: buildroot
Hello,
Here are three fixes for build failures detected when doing
randpackageconfig builds.
Thomas
The following changes since commit 296eb11299d1240b3570aba5abb8374a0911bf44:
pulseaudio: needs host-intltool (2011-10-29 16:35:47 +0200)
are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git for-2011.11/build-fixes
Thomas Petazzoni (3):
gdb: do not allow native gdb on SuperH architecture
crosstool-ng: add patch to use wget instead of curl
target gdb: depend on thread support
.../crosstool-ng-001-wget-instead-of-curl.patch | 52 ++++++++++++++++++++
toolchain/gdb/Config.in | 2 +
2 files changed, 54 insertions(+), 0 deletions(-)
create mode 100644 package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch
Thanks,
--
Thomas Petazzoni
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] [PATCH 1/3] gdb: do not allow native gdb on SuperH architecture 2011-11-13 8:55 [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Thomas Petazzoni @ 2011-11-13 8:55 ` Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 2/3] crosstool-ng: add patch to use wget instead of curl Thomas Petazzoni ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: Thomas Petazzoni @ 2011-11-13 8:55 UTC (permalink / raw) To: buildroot The gdb debugger does not have support for running as the native debugger on the SuperH architecture: configure: error: "*** Gdb does not support native target sh4-unknown-linux-gnu" See also http://lists.debian.org/debian-superh/2010/04/msg00000.html. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- toolchain/gdb/Config.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/toolchain/gdb/Config.in b/toolchain/gdb/Config.in index e593698..af6e56a 100644 --- a/toolchain/gdb/Config.in +++ b/toolchain/gdb/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_GDB bool "Build gdb debugger for the Target" select BR2_PACKAGE_NCURSES depends on BR2_USE_WCHAR + depends on !BR2_sh && !BR2_sh64 help Build the full gdb debugger to run on the target. -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 2/3] crosstool-ng: add patch to use wget instead of curl 2011-11-13 8:55 [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 1/3] gdb: do not allow native gdb on SuperH architecture Thomas Petazzoni @ 2011-11-13 8:55 ` Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 3/3] target gdb: depend on thread support Thomas Petazzoni 2011-11-13 20:33 ` [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Peter Korsgaard 3 siblings, 0 replies; 5+ messages in thread From: Thomas Petazzoni @ 2011-11-13 8:55 UTC (permalink / raw) To: buildroot Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- .../crosstool-ng-001-wget-instead-of-curl.patch | 52 ++++++++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) create mode 100644 package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch diff --git a/package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch b/package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch new file mode 100644 index 0000000..d40f178 --- /dev/null +++ b/package/crosstool-ng/crosstool-ng-001-wget-instead-of-curl.patch @@ -0,0 +1,52 @@ +Use wget instead of curl + +While crosstool-NG did support either curl or wget in the past, it now +only supports curl. Unfortunately, Buildroot uses wget for all its +downloads, so wget is a hard dependency of Buildroot, while curl +isn't. + +Instead of adding curl as a new Buildroot dependency, or building curl +for the host, we simply tweak crosstool-NG to use wget instead of +curl. + +The script/functions change has been provided by Yann E. Morin. + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> + +Index: crosstool-ng-1.13.0/configure +=================================================================== +--- crosstool-ng-1.13.0.orig/configure ++++ crosstool-ng-1.13.0/configure +@@ -496,7 +496,7 @@ + ver='\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)' \ + err="'libtoolize' 1.5.26 or above was not found" + has_or_abort prog=stat +-has_or_abort prog="curl" ++has_or_abort prog="wget" + has_or_abort prog=patch + has_or_abort prog=tar + has_or_abort prog=gzip +Index: crosstool-ng-1.13.0/scripts/functions +=================================================================== +--- crosstool-ng-1.13.0.orig/scripts/functions ++++ crosstool-ng-1.13.0/scripts/functions +@@ -456,13 +456,12 @@ + # Some company networks have firewalls to connect to the internet, but it's + # not easy to detect them, so force a global ${CT_CONNECT_TIMEOUT}-second + # timeout. +- # For curl, no good progress indicator is available. So, be silent. +- if CT_DoExecLog ALL curl --ftp-pasv \ +- --retry 3 \ +- --connect-timeout ${CT_CONNECT_TIMEOUT} \ +- --location --fail --silent \ +- --output "${tmp}" \ +- "${url}" ++ if CT_DoExecLog ALL wget --passive-ftp --tries=3 -nc \ ++ -T ${CT_CONNECT_TIMEOUT} \ ++ -O "${tmp}" \ ++ "${url}" ++ ++ + then + # Success, we got it, good! + mv "${tmp}" "${dest}" -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH 3/3] target gdb: depend on thread support 2011-11-13 8:55 [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 1/3] gdb: do not allow native gdb on SuperH architecture Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 2/3] crosstool-ng: add patch to use wget instead of curl Thomas Petazzoni @ 2011-11-13 8:55 ` Thomas Petazzoni 2011-11-13 20:33 ` [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Peter Korsgaard 3 siblings, 0 replies; 5+ messages in thread From: Thomas Petazzoni @ 2011-11-13 8:55 UTC (permalink / raw) To: buildroot Compiling gdb for the target requires thread support in the C library, otherwise: /home/test/outputs/test-888/toolchain/gdb-7.3.1/gdb/gdb_thread_db.h:37:21: fatal error: pthread.h: No such file or directory Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- toolchain/gdb/Config.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/toolchain/gdb/Config.in b/toolchain/gdb/Config.in index af6e56a..8a02255 100644 --- a/toolchain/gdb/Config.in +++ b/toolchain/gdb/Config.in @@ -4,6 +4,7 @@ config BR2_PACKAGE_GDB bool "Build gdb debugger for the Target" select BR2_PACKAGE_NCURSES depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_sh && !BR2_sh64 help Build the full gdb debugger to run on the target. -- 1.7.4.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes 2011-11-13 8:55 [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Thomas Petazzoni ` (2 preceding siblings ...) 2011-11-13 8:55 ` [Buildroot] [PATCH 3/3] target gdb: depend on thread support Thomas Petazzoni @ 2011-11-13 20:33 ` Peter Korsgaard 3 siblings, 0 replies; 5+ messages in thread From: Peter Korsgaard @ 2011-11-13 20:33 UTC (permalink / raw) To: buildroot >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes: Thomas> Hello, Thomas> Here are three fixes for build failures detected when doing Thomas> randpackageconfig builds. Committed all 3, thanks. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-11-13 20:33 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-11-13 8:55 [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 1/3] gdb: do not allow native gdb on SuperH architecture Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 2/3] crosstool-ng: add patch to use wget instead of curl Thomas Petazzoni 2011-11-13 8:55 ` [Buildroot] [PATCH 3/3] target gdb: depend on thread support Thomas Petazzoni 2011-11-13 20:33 ` [Buildroot] [pull request] Pull request for branch for-2011.11/build-fixes Peter Korsgaard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox