Skip to contentSkip to conversation

gcc: Switch SRC_URI to use svn

PATCH Superseded Khem Raj 7 participants 12 messages Aug 9, 2012 – Aug 10, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/12 gcc: Switch SRC_URI to use svn

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

---
 meta/recipes-devtools/gcc/gcc-4.7.inc |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta/recipes-devtools/gcc/gcc-4.7.inc +5 -5
index 4ad4819..c6ba0b2 100644
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r9"
+PR = "r10"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
@@ -11,7 +11,7 @@ PR = "r9"
 # using 4.7.1.0 for upgrade path when we move past 4.7.2 release
 # then we should drop the last 0 as well.
 
-PV = "4.7.1.0+git${SRCPV}"
+PV = "4.7.1.0+svn${SRCPV}"
 
 # BINV should be incremented after updating to a revision
 # after a minor gcc release (e.g. 4.7.1 or 4.7.2) has been made
@@ -21,7 +21,7 @@ PV = "4.7.1.0+git${SRCPV}"
 
 BINV = "4.7.2"
 
-SRCREV = "d07e24f4ab59f264d68d21838795349faab5dede"
+SRCREV = "190218"
 BRANCH = "gcc-4_7-branch"
 FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.7' ], d)}"
 
@@ -36,7 +36,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
                    file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
 		   file://COPYING.RUNTIME;md5=fe60d87048567d4fe8c8a0ed2448bcc8"
 
-SRC_URI = "git://github.com/mirrors/gcc.git;branch=${BRANCH};protocol=git \
+SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH};protocol=http \
 	   file://gcc-4.3.1-ARCH_FLAGS_FOR_TARGET.patch \
 	   file://100-uclibc-conf.patch \
            file://gcc-uclibc-locale-ctype_touplow_t.patch \
@@ -77,7 +77,7 @@ SRC_URI = "git://github.com/mirrors/gcc.git;branch=${BRANCH};protocol=git \
 	   file://disablesdt.patch \
 	  "
 
-S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/git"
+S = "${TMPDIR}/work-shared/gcc-${PV}-${PR}/${BRANCH}"
 B = "${WORKDIR}/${BRANCH}/build.${HOST_SYS}.${TARGET_SYS}"
 
 # Language Overrides
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 2/12 eglibc-2.16: Update to top of 2.16 branch

Some translations and tst-gettext fixes

---
 meta/recipes-core/eglibc/eglibc_2.16.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/eglibc/eglibc_2.16.bb +1 -1
index b053a5b..2fb9f5b 100644
@@ -1,6 +1,6 @@
 require eglibc.inc
 
-SRCREV = "19383"
+SRCREV = "19922"
 
 DEPENDS += "gperf-native"
 PR = "r5"
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Khem Raj

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende geschreven:

Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

regards,

Koen

#3 lore raw
Quoted 1 line · On Friday 10 August 2012 10:03:06 Koen Kooi wrote:

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende

geschreven:

Quoted 7 lines
Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

FWIW the git option was much, much, much slower for us here in the UK.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw
Quoted 6 lines · Paul Eggleton
Quoted 1 line · On Friday 10 August 2012 10:03:06 Koen Kooi wrote:

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende

geschreven:

Quoted 3 lines
Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

Quoted 6 lines
Quoted 4 lines

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

FWIW the git option was much, much, much slower for us here in the UK.

Maybe we should just go back to using the released tarballs for gcc rather than any sort of SCM checkout. That would be an 80MB download for the tar.bz2 and of course you can get it from your local mirror.

I think the original reason we switched to using the SCM checkout was that, at the time, we were carrying around a huge number of backported patches that hadn't quite made it into any released version yet. It's not totally clear whether that situation is likely to arise again or not.

In an ideal world I suppose the SVN web UI would expose some sort of API that exported changesets in diff form, in which case you could write:

SRC_URI = "http://gcc.gnu.org/releases/gcc-4.7.1.tar.bz2 \
	http://gcc.gnu.org/svn/fetch?rev=189810"

or whatever for the patches that you wanted to backport. But I don't know of any way of doing that with the current viewvc.

p.

#5 lore raw

Op 10 aug. 2012, om 11:07 heeft Phil Blundell <[email protected]> het volgende geschreven:

Quoted 14 lines · Paul Eggleton
Quoted 6 lines · On Friday 10 August 2012 10:03:06 Koen Kooi wrote:
Quoted 1 line

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende

geschreven:

Quoted 3 lines
Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

Quoted 6 lines
Quoted 4 lines

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

FWIW the git option was much, much, much slower for us here in the UK.

Quoted 7 lines

Maybe we should just go back to using the released tarballs for gcc rather than any sort of SCM checkout. That would be an 80MB download for the tar.bz2 and of course you can get it from your local mirror.

I think the original reason we switched to using the SCM checkout was that, at the time, we were carrying around a huge number of backported patches that hadn't quite made it into any released version yet.

We pointed it at the release branch, so updating from x.y.0 to x.y.4 was just a srcrev change. But the same can be done by exporting the patches with git-format-patch and importing them into the OE tree.

regards,

Koen

#6 lore raw
Quoted 20 lines · Koen Kooi

Op 10 aug. 2012, om 11:07 heeft Phil Blundell <[email protected]> het volgende geschreven:

Quoted 18 lines · Paul Eggleton
Quoted 6 lines · On Friday 10 August 2012 10:03:06 Koen Kooi wrote:
Quoted 1 line

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende

geschreven:

Quoted 3 lines
Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

Quoted 6 lines
Quoted 4 lines

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

FWIW the git option was much, much, much slower for us here in the UK.

Maybe we should just go back to using the released tarballs for gcc rather than any sort of SCM checkout. That would be an 80MB download for the tar.bz2 and of course you can get it from your local mirror.

Quoted 5 lines
Quoted 3 lines

I think the original reason we switched to using the SCM checkout was that, at the time, we were carrying around a huge number of backported patches that hadn't quite made it into any released version yet.

We pointed it at the release branch, so updating from x.y.0 to x.y.4 was just a srcrev change. But the same can be done by exporting the patches with git-format-patch and importing them into the OE tree.

Right. Or, once x.y.4 actually gets released, it would be available as a tarball in its own right anyway. The only time when it's at all tricky is the period just before that happens, when there are potentially-important fixes in the gcc-x.y branch that aren't yet in any released version. But, as you say, we can just import those as patches and I think/hope their number should be fairly limited.

p.

author
#7 lore raw
In reply to Phil Blundell

-Khem

Quoted 12 lines · Phil Blundell
Quoted 11 lines · Paul Eggleton
Quoted 1 line · On Friday 10 August 2012 10:03:06 Koen Kooi wrote:

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende

geschreven:

Quoted 7 lines
Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

Quoted 5 lines
Quoted 1 line

FWIW the git option was much, much, much slower for us here in the UK.

Maybe we should just go back to using the released tarballs for gcc rather than any sort of SCM checkout. That would be an 80MB download for the tar.bz2 and of course you can get it from your local mirror.

That's the plan when next release of gcc comes out

Quoted 24 lines

I think the original reason we switched to using the SCM checkout was that, at the time, we were carrying around a huge number of backported patches that hadn't quite made it into any released version yet. It's not totally clear whether that situation is likely to arise again or not.

In an ideal world I suppose the SVN web UI would expose some sort of API that exported changesets in diff form, in which case you could write:

SRC_URI = "http://gcc.gnu.org/releases/gcc-4.7.1.tar.bz2 \
   http://gcc.gnu.org/svn/fetch?rev=189810"

or whatever for the patches that you wanted to backport. But I don't know of any way of doing that with the current viewvc.

p.

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#8 lore raw
In reply to Paul Eggleton

Op 10 aug. 2012, om 10:47 heeft Paul Eggleton <[email protected]> het volgende geschreven:

Quoted 6 lines · On Friday 10 August 2012 10:03:06 Koen Kooi wrote:
Quoted 1 line

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende

geschreven:

Quoted 3 lines
Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

Quoted 6 lines
Quoted 4 lines

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

FWIW the git option was much, much, much slower for us here in the UK.

I had similar problems as well when I worked for TI UK, it turned out to be proxy end point issues. After manually assigning an endpoint that was close by things improved a lot. The geo-ip based CDNs worked properly from then on.
It might be that github suck in the UK, I only have one datapoint for the gcc stuff, which is my own connection at home. I only need to fetch gcc once, so I don't have a strong opinion on this switch, I just wanted to add some anecdotal evidence that the 1.3gb git download isn't all bad :)

regards,

Koen

#9 lore raw
In reply to Koen Kooi
Quoted 6 lines · Koen Kooi

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende geschreven:

Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

Couldn't OE do the initial git clone with --depth=1?

#10 lore raw
Quoted 9 lines · Colin Walters
Quoted 6 lines · Koen Kooi

Op 9 aug. 2012, om 03:25 heeft Khem Raj <[email protected]> het volgende geschreven:

Quoted 2 lines

svn tar balls are 96M as compared to 1.3G git tars its unnessary to suck in that much of data.

That's indeed a big difference and also expected, with svn you only get revision N and N-1, with git you get everything. But even so, I can fetch that 1.3GB a *lot* faster than that 0.1GB svn. Maybe I'm on the wrong side of the ocean, but that gcc svn server is sloooooooooooooooooooooow.

Couldn't OE do the initial git clone with --depth=1?

That doesn't work very well when SRCREV is set to revision older then HEAD^1.

Cheers,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#11 lore raw
In reply to Khem Raj
Quoted 1 line · Khem Raj

svn tar balls are 96M as compared to 1.3G git tars

perhaps it's time to implement support for shallow git repositories to bitbake...

Enrico