This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CT_PREFER_MIRROR working?


Andy, All,

[Please keep the list CCed.]

On Monday 01 August 2011 19:51:27 ANDY KENNEDY wrote:
> > It might be possible to try the mirror for SVN as well. Care to try
> > the attached patch, please?
> 
> Yes.  I'll try the patch.  Will the do_eglibc_get() still get called?

Yes, it will. The patch is against the current repo, where the direct calls
to svn have been replaced by calls to the SVN helper. It's the helper that
now:
 - tries to search for a local tarball in ${CT_LOCAL_TARBALLS_DIR}
 - then tries the mirror
 - falls back to downloading via svn

So it goes a bit like that, now:
  eglibc::do_libc_get()
  -> CT_GetSVN "basename" "svn_url" "revision"
     -> [ -f "${local_dir}/${basename}" ]
     -> wget "${mirror_base}/${basename}"
     -> svn co -r "${revision}" "${svn_url}"
... stopping at the first which works.

The patch will not work on ct-ng-1.11.x, you'll have to update to 1.12.0
Now that the 1.12 branch is live, maintenance only happens there. The old
1.11 branch is closed, and no changes will get backported onto 1.11.

> The reason I ask is that I cannot fully test whether this works, since
> I have svn installed on my box.  If it still gets called, svn is
> required by do_eglibc_get() which will break my build on uncontrolled-
> by-me boxes that don't have svn.  I can do a host-build of svn, if
> that is what I need to do, but I'm trying to avoid more work ;).

It will (hopefully!) work with 1.12.0.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]