All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] eglibc: use HTTP for svn checkout
@ 2010-12-13 17:13 Ryan D Phillips
  2010-12-13 20:00 ` Khem Raj
  2010-12-14  7:57 ` Aeschbacher, Fabrice
  0 siblings, 2 replies; 11+ messages in thread
From: Ryan D Phillips @ 2010-12-13 17:13 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 110 bytes --]

  SVN over HTTP is a more reliable transport for developers behind 
restrictive
proxies.

Regards,
Ryan

[-- Attachment #2: 0001-eglibc-Use-HTTP-for-svn-checkout.patch --]
[-- Type: text/plain, Size: 3093 bytes --]

From c0a5ad76e64d961735b5c07326d86107ef98f6a1 Mon Sep 17 00:00:00 2001
From: Ryan D Phillips <ryan_d_phillips@dell.com>
Date: Mon, 13 Dec 2010 10:00:27 -0600
Subject: [PATCH] eglibc: Use HTTP for svn checkout

SVN over HTTP is a more reliable transport for developers behind restrictive
proxies.

Signed-off-by: Ryan D Phillips <ryan_d_phillips@dell.com>
---
 recipes/eglibc/eglibc_2.10.bb |    2 +-
 recipes/eglibc/eglibc_2.11.bb |    2 +-
 recipes/eglibc/eglibc_2.12.bb |    2 +-
 recipes/eglibc/eglibc_2.9.bb  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes/eglibc/eglibc_2.10.bb b/recipes/eglibc/eglibc_2.10.bb
index 1eab7eb..e873bea 100644
--- a/recipes/eglibc/eglibc_2.10.bb
+++ b/recipes/eglibc/eglibc_2.10.bb
@@ -7,7 +7,7 @@ PR = "${INC_PR}.10"
 PR_append = "+svnr${SRCPV}"
 SRCREV="10152"
 EGLIBC_BRANCH="eglibc-2_10"
-SRC_URI = "svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn \
+SRC_URI = "svn://svn.eglibc.org/svn/branches;module=${EGLIBC_BRANCH};proto=http \
            file://eglibc-svn-arm-lowlevellock-include-tls.patch \
            file://armv4t-interworking.patch \
            file://IO-acquire-lock-fix.patch \
diff --git a/recipes/eglibc/eglibc_2.11.bb b/recipes/eglibc/eglibc_2.11.bb
index b249f29..4a6f25d 100644
--- a/recipes/eglibc/eglibc_2.11.bb
+++ b/recipes/eglibc/eglibc_2.11.bb
@@ -8,7 +8,7 @@ PR = "${INC_PR}.8"
 PR_append = "+svnr${SRCPV}"
 SRCREV="12231"
 EGLIBC_BRANCH="eglibc-2_11"
-SRC_URI = "svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn \
+SRC_URI = "svn://svn.eglibc.org/svn/branches;module=${EGLIBC_BRANCH};proto=http \
            file://eglibc-svn-arm-lowlevellock-include-tls.patch \
            file://IO-acquire-lock-fix.patch \
            file://shorten-build-commands.patch \
diff --git a/recipes/eglibc/eglibc_2.12.bb b/recipes/eglibc/eglibc_2.12.bb
index 1285568..214da69 100644
--- a/recipes/eglibc/eglibc_2.12.bb
+++ b/recipes/eglibc/eglibc_2.12.bb
@@ -8,7 +8,7 @@ PR = "${INC_PR}.7"
 PR_append = "+svnr${SRCPV}"
 SRCREV="12230"
 EGLIBC_BRANCH="eglibc-2_12"
-SRC_URI = "svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn \
+SRC_URI = "svn://svn.eglibc.org/svn/branches;module=${EGLIBC_BRANCH};proto=http \
            file://eglibc-svn-arm-lowlevellock-include-tls.patch \
            file://IO-acquire-lock-fix.patch \
            file://shorten-build-commands.patch \
diff --git a/recipes/eglibc/eglibc_2.9.bb b/recipes/eglibc/eglibc_2.9.bb
index c06345e..b096469 100644
--- a/recipes/eglibc/eglibc_2.9.bb
+++ b/recipes/eglibc/eglibc_2.9.bb
@@ -7,7 +7,7 @@ PR = "${INC_PR}.10"
 PR_append = "+svnr${SRCPV}"
 SRCREV="10153"
 EGLIBC_BRANCH="eglibc-2_9"
-SRC_URI = "svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn \
+SRC_URI = "svn://svn.eglibc.org/svn/branches;module=${EGLIBC_BRANCH};proto=http \
            file://eglibc-svn-arm-lowlevellock-include-tls.patch \
            file://armv4t-interworking.patch \
            file://IO-acquire-lock-fix.patch \
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-13 17:13 [PATCH] eglibc: use HTTP for svn checkout Ryan D Phillips
@ 2010-12-13 20:00 ` Khem Raj
  2010-12-14 16:30   ` Ryan D Phillips
  2010-12-14  7:57 ` Aeschbacher, Fabrice
  1 sibling, 1 reply; 11+ messages in thread
From: Khem Raj @ 2010-12-13 20:00 UTC (permalink / raw)
  To: openembedded-devel

On Mon, Dec 13, 2010 at 9:13 AM, Ryan D Phillips
<ryan_d_phillips@dell.com> wrote:
>  SVN over HTTP is a more reliable transport for developers behind
> restrictive
> proxies.
>

and how much slower/faster is it when compared to svn protocol ?


> Regards,
> Ryan
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-13 17:13 [PATCH] eglibc: use HTTP for svn checkout Ryan D Phillips
  2010-12-13 20:00 ` Khem Raj
@ 2010-12-14  7:57 ` Aeschbacher, Fabrice
  1 sibling, 0 replies; 11+ messages in thread
From: Aeschbacher, Fabrice @ 2010-12-14  7:57 UTC (permalink / raw)
  To: openembedded-devel

Agreed; this is a change I have to do manually every time

Regards,
  Fabrice

-----Ursprüngliche Nachricht-----
Von: openembedded-devel-bounces@lists.openembedded.org [mailto:openembedded-devel-bounces@lists.openembedded.org] Im Auftrag von Ryan D Phillips
Gesendet: Montag, 13. Dezember 2010 18:13
An: openembedded-devel@lists.openembedded.org
Betreff: [oe] [PATCH] eglibc: use HTTP for svn checkout

  SVN over HTTP is a more reliable transport for developers behind 
restrictive
proxies.

Regards,
Ryan



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-13 20:00 ` Khem Raj
@ 2010-12-14 16:30   ` Ryan D Phillips
  2010-12-14 16:55     ` Tom Rini
                       ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ryan D Phillips @ 2010-12-14 16:30 UTC (permalink / raw)
  To: openembedded-devel

On 12/13/2010 2:00 PM, Khem Raj wrote:
> On Mon, Dec 13, 2010 at 9:13 AM, Ryan D Phillips
> <ryan_d_phillips@dell.com>  wrote:
>>   SVN over HTTP is a more reliable transport for developers behind
>> restrictive
>> proxies.
>>
>
> and how much slower/faster is it when compared to svn protocol ?
>

The speed depends on which subversion client backend someone is using. 
HTTP will be slower than using the svn native protocol, but the serf 
subversion backend will perform parallel fetches.

I would like to see this patch get into the OE tree to make the tree 
more robust to proxies. Currently, this is the only customization I need 
for the projects I work on.

Regards,
Ryan Phillips



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-14 16:30   ` Ryan D Phillips
@ 2010-12-14 16:55     ` Tom Rini
  2010-12-14 17:11       ` Khem Raj
  2010-12-14 17:09     ` Khem Raj
  2010-12-15 10:32     ` Enrico Scholz
  2 siblings, 1 reply; 11+ messages in thread
From: Tom Rini @ 2010-12-14 16:55 UTC (permalink / raw)
  To: openembedded-devel

On 12/14/2010 09:30 AM, Ryan D Phillips wrote:
> On 12/13/2010 2:00 PM, Khem Raj wrote:
>> On Mon, Dec 13, 2010 at 9:13 AM, Ryan D Phillips
>> <ryan_d_phillips@dell.com> wrote:
>>> SVN over HTTP is a more reliable transport for developers behind
>>> restrictive
>>> proxies.
>>>
>>
>> and how much slower/faster is it when compared to svn protocol ?
>>
>
> The speed depends on which subversion client backend someone is using.
> HTTP will be slower than using the svn native protocol, but the serf
> subversion backend will perform parallel fetches.
>
> I would like to see this patch get into the OE tree to make the tree
> more robust to proxies. Currently, this is the only customization I need
> for the projects I work on.

Note that if you use a mirror site with the SVN checkout archive in it, 
you won't try and do the fetch at all.  This may or may not be 
applicable to your case.  For your case I think what we really want is a 
way to globally toggle the svn protocol argument.

-- 
Tom Rini
Mentor Graphics Corporation



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-14 16:30   ` Ryan D Phillips
  2010-12-14 16:55     ` Tom Rini
@ 2010-12-14 17:09     ` Khem Raj
  2010-12-15 10:32     ` Enrico Scholz
  2 siblings, 0 replies; 11+ messages in thread
From: Khem Raj @ 2010-12-14 17:09 UTC (permalink / raw)
  To: Ryan D Phillips; +Cc: openembedded-devel

On Tue, Dec 14, 2010 at 8:30 AM, Ryan D Phillips
<ryan_d_phillips@dell.com> wrote:
> On 12/13/2010 2:00 PM, Khem Raj wrote:
>>
>> On Mon, Dec 13, 2010 at 9:13 AM, Ryan D Phillips
>> <ryan_d_phillips@dell.com>  wrote:
>>>
>>>  SVN over HTTP is a more reliable transport for developers behind
>>> restrictive
>>> proxies.
>>>
>>
>> and how much slower/faster is it when compared to svn protocol ?
>>
>
> The speed depends on which subversion client backend someone is using. HTTP
> will be slower than using the svn native protocol, but the serf subversion
> backend will perform parallel fetches.
>
> I would like to see this patch get into the OE tree to make the tree more
> robust to proxies. Currently, this is the only customization I need for the
> projects I work on.

Yes your pie :) but this is not the only problem I guess in OE with
regard to fetching behind the proxies.
you can also use a appending mechanism in your layer and make this
change without changing OE at all


>
> Regards,
> Ryan Phillips
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-14 16:55     ` Tom Rini
@ 2010-12-14 17:11       ` Khem Raj
  2010-12-15 16:35         ` Chris Larson
  0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2010-12-14 17:11 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Dec 14, 2010 at 8:55 AM, Tom Rini <tom_rini@mentor.com> wrote:
> On 12/14/2010 09:30 AM, Ryan D Phillips wrote:
>>
>> On 12/13/2010 2:00 PM, Khem Raj wrote:
>>>
>>> On Mon, Dec 13, 2010 at 9:13 AM, Ryan D Phillips
>>> <ryan_d_phillips@dell.com> wrote:
>>>>
>>>> SVN over HTTP is a more reliable transport for developers behind
>>>> restrictive
>>>> proxies.
>>>>
>>>
>>> and how much slower/faster is it when compared to svn protocol ?
>>>
>>
>> The speed depends on which subversion client backend someone is using.
>> HTTP will be slower than using the svn native protocol, but the serf
>> subversion backend will perform parallel fetches.
>>
>> I would like to see this patch get into the OE tree to make the tree
>> more robust to proxies. Currently, this is the only customization I need
>> for the projects I work on.
>
> Note that if you use a mirror site with the SVN checkout archive in it, you
> won't try and do the fetch at all.  This may or may not be applicable to
> your case.  For your case I think what we really want is a way to globally
> toggle the svn protocol argument.

yes that would be something more useful. I guess we could add it to
all SCM fetching recipes.

>
> --
> Tom Rini
> Mentor Graphics Corporation
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-14 16:30   ` Ryan D Phillips
  2010-12-14 16:55     ` Tom Rini
  2010-12-14 17:09     ` Khem Raj
@ 2010-12-15 10:32     ` Enrico Scholz
  2 siblings, 0 replies; 11+ messages in thread
From: Enrico Scholz @ 2010-12-15 10:32 UTC (permalink / raw)
  To: openembedded-devel

Ryan D Phillips <ryan_d_phillips@dell.com> writes:

> I would like to see this patch get into the OE tree to make the tree
> more robust to proxies. Currently, this is the only customization I
> need for the projects I work on.

fwiw, I wrote a local patch for bitbake

          https://www.cvg.de/people/ensc/0004-svn-tunnel.patch

which allows fetching of svn:// uris through an http proxy (which must
be configured to allow CONNECTs to svn servers).  I thought it would be
some local hack but when there is wider interest I will submit it to the
bitbake ml.


Enrico



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-14 17:11       ` Khem Raj
@ 2010-12-15 16:35         ` Chris Larson
  2010-12-15 16:43           ` Andreas Oberritter
  0 siblings, 1 reply; 11+ messages in thread
From: Chris Larson @ 2010-12-15 16:35 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Dec 14, 2010 at 10:11 AM, Khem Raj <raj.khem@gmail.com> wrote:
>> Note that if you use a mirror site with the SVN checkout archive in it, you
>> won't try and do the fetch at all.  This may or may not be applicable to
>> your case.  For your case I think what we really want is a way to globally
>> toggle the svn protocol argument.
>
> yes that would be something more useful. I guess we could add it to
> all SCM fetching recipes.

I wonder if the PREMIRRORS/MIRRORS handling is smart enough to let us
use its regex for the components to replace protocol= in the url
parameters.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-15 16:35         ` Chris Larson
@ 2010-12-15 16:43           ` Andreas Oberritter
  2010-12-15 16:45             ` Chris Larson
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Oberritter @ 2010-12-15 16:43 UTC (permalink / raw)
  To: openembedded-devel

On 12/15/2010 05:35 PM, Chris Larson wrote:
> On Tue, Dec 14, 2010 at 10:11 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>> Note that if you use a mirror site with the SVN checkout archive in it, you
>>> won't try and do the fetch at all.  This may or may not be applicable to
>>> your case.  For your case I think what we really want is a way to globally
>>> toggle the svn protocol argument.
>>
>> yes that would be something more useful. I guess we could add it to
>> all SCM fetching recipes.
> 
> I wonder if the PREMIRRORS/MIRRORS handling is smart enough to let us
> use its regex for the components to replace protocol= in the url
> parameters.

This won't suffice, because svn may have different URLs for svn and
http, like in the discussed patch (branches vs. svn/branches):

-SRC_URI =
"svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn \
+SRC_URI =
"svn://svn.eglibc.org/svn/branches;module=${EGLIBC_BRANCH};proto=http \

Regards,
Andreas




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH] eglibc: use HTTP for svn checkout
  2010-12-15 16:43           ` Andreas Oberritter
@ 2010-12-15 16:45             ` Chris Larson
  0 siblings, 0 replies; 11+ messages in thread
From: Chris Larson @ 2010-12-15 16:45 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Dec 15, 2010 at 9:43 AM, Andreas Oberritter
<obi@opendreambox.org> wrote:
> On 12/15/2010 05:35 PM, Chris Larson wrote:
>> On Tue, Dec 14, 2010 at 10:11 AM, Khem Raj <raj.khem@gmail.com> wrote:
>>>> Note that if you use a mirror site with the SVN checkout archive in it, you
>>>> won't try and do the fetch at all.  This may or may not be applicable to
>>>> your case.  For your case I think what we really want is a way to globally
>>>> toggle the svn protocol argument.
>>>
>>> yes that would be something more useful. I guess we could add it to
>>> all SCM fetching recipes.
>>
>> I wonder if the PREMIRRORS/MIRRORS handling is smart enough to let us
>> use its regex for the components to replace protocol= in the url
>> parameters.
>
> This won't suffice, because svn may have different URLs for svn and
> http, like in the discussed patch (branches vs. svn/branches):
>
> -SRC_URI =
> "svn://svn.eglibc.org/branches;module=${EGLIBC_BRANCH};proto=svn
>
> \
> +SRC_URI =
> "svn://svn.eglibc.org/svn/branches;module=${EGLIBC_BRANCH};proto=http
>
> \

And of course, changes to the url can also be done via PREMIRRORS.
You'd just have the first one a specific entry to redirect eglibc, and
the second a fallback for non-specific.  Of course, there's nothing
wrong with using bbappend/amend.inc for this, just another
possibility.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-12-15 16:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-13 17:13 [PATCH] eglibc: use HTTP for svn checkout Ryan D Phillips
2010-12-13 20:00 ` Khem Raj
2010-12-14 16:30   ` Ryan D Phillips
2010-12-14 16:55     ` Tom Rini
2010-12-14 17:11       ` Khem Raj
2010-12-15 16:35         ` Chris Larson
2010-12-15 16:43           ` Andreas Oberritter
2010-12-15 16:45             ` Chris Larson
2010-12-14 17:09     ` Khem Raj
2010-12-15 10:32     ` Enrico Scholz
2010-12-14  7:57 ` Aeschbacher, Fabrice

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.