crosstool-NG 1.9.0 fails to download eglibc-2.12. Patch
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Fri Nov 5 23:24:00 GMT 2010
Bob, All,
On Thursday 04 November 2010 15:08:10 Bob Dunlop wrote:
> Crosstool-NG 1.9.0 fails to download eglibc-2.12 for me.
Works OK for me here, with:
# svn --version
svn, version 1.6.12 (r955767)
> [ALL ] A eglibc-2_12/localedef/vasprintf.c
> [ALL ] A eglibc-2_12/localedef/install-sh
> [ALL ] Exported revision 11956.
> [DEBUG] ==> Executing: 'mv libc eglibc-2_12'
> [ALL ] mv: cannot stat `libc': No such file or directory
> [ERROR] Build failed in step 'Retrieving needed toolchain components' tarballs'
> It looks like the files are being extracted in a subdirectory of where
> they should be by the svn export ?
What is your svn version, just in case?
> The following patch spots this condition
> and shuffles them up a layer.
>
> Following the patch eglibc is downloaded, tarballs generated and the
> build completes normally.
>
>
> --- crosstool-ng-1.9.0/scripts/build/libc/eglibc.sh-orig 2010-11-04 13:20:23.000000000 +0000
> +++ crosstool-ng-1.9.0/scripts/build/libc/eglibc.sh 2010-11-04 13:24:10.000000000 +0000
> @@ -16,6 +16,13 @@
>
> CT_DoExecLog ALL svn ${svn_action} -r "${CT_EGLIBC_REVISION:-HEAD}" "${svn_url}" . 2>&1
>
> + # If things got extracted in a subdir, move them up one.
> + if [ -d "eglibc-${CT_LIBC_VERSION}/libc" -a ! -d libc ]
> + then
> + CT_DoExecLog ALL mv "eglibc-${CT_LIBC_VERSION}"/* .
> + CT_DoExecLog ALL rmdir "eglibc-${CT_LIBC_VERSION}"
Do not use tabs, only spaces.
Well, I do not know what to thing of Subversion's behavior. It is working
very fine here, and the '.' at the end of the line should tell svn to
extract into the current directory, and omit the top-level directory.
What's the distribution you're using?
Per-se, the patch is OK, but I would really, really like to understand
why on Earth svn is behaving badly... <puzzled>
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list