Patchwork [meta-oe,TEMP] gd: Temporary patch while libgd.org is down, do not commit to main repository!

login
register
mail settings
Submitter Paul Barker
Date March 28, 2013, 11:16 a.m.
Message ID <1364469370-12082-1-git-send-email-paul@paulbarker.me.uk>
Download mbox | patch
Permalink /patch/47073/
State Superseded, archived
Headers show

Comments

Paul Barker - March 28, 2013, 11:16 a.m.
This is just a temporary patch to change the SRC_URI for gd as the upstream
source libgd.org has been down for a week or so now. The MD5 and SHA256 sums
match so this should be the exact same archive. It is not intended to go in the
main repository but may be useful to some of you until libgd.org is back up.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
---
 meta-oe/recipes-support/gd/gd_2.0.35+2.0.36rc1.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Paul Eggleton - March 28, 2013, 1:34 p.m.
On Thursday 28 March 2013 11:16:10 Paul Barker wrote:
> This is just a temporary patch to change the SRC_URI for gd as the upstream
> source libgd.org has been down for a week or so now. The MD5 and SHA256 sums
> match so this should be the exact same archive. It is not intended to go in
> the main repository but may be useful to some of you until libgd.org is
> back up.

This is what we have MIRRORS for - perhaps we could add an entry to MIRRORS to 
handle this?

Cheers,
Paul
Paul Barker - March 28, 2013, 1:56 p.m.
On 28 March 2013 13:34, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
>
> On Thursday 28 March 2013 11:16:10 Paul Barker wrote:
> > This is just a temporary patch to change the SRC_URI for gd as the upstream
> > source libgd.org has been down for a week or so now. The MD5 and SHA256 sums
> > match so this should be the exact same archive. It is not intended to go in
> > the main repository but may be useful to some of you until libgd.org is
> > back up.
>
> This is what we have MIRRORS for - perhaps we could add an entry to MIRRORS to
> handle this?

I just went for a quick and dirty fix as I'm not very experienced with
bitbake recipes yet. Would this be added to mirrors.bbclass directly
or should I add a MIRRORS += line to the gd recipe?

(Apologies, missed reply-all the first time)

Thanks,

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
Paul Eggleton - March 28, 2013, 2 p.m.
On Thursday 28 March 2013 13:56:13 Paul Barker wrote:
> On 28 March 2013 13:34, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> > On Thursday 28 March 2013 11:16:10 Paul Barker wrote:
> > > This is just a temporary patch to change the SRC_URI for gd as the
> > > upstream
> > > source libgd.org has been down for a week or so now. The MD5 and SHA256
> > > sums match so this should be the exact same archive. It is not intended
> > > to go in the main repository but may be useful to some of you until
> > > libgd.org is back up.
> > 
> > This is what we have MIRRORS for - perhaps we could add an entry to
> > MIRRORS to handle this?
> 
> I just went for a quick and dirty fix as I'm not very experienced with
> bitbake recipes yet. Would this be added to mirrors.bbclass directly
> or should I add a MIRRORS += line to the gd recipe?

Since this is specific to the gd recipe I'd say in the recipe itself.

For entries that are more generic we can have them in mirrors.bbclass even if 
there's nothing in OE-Core that uses them, although it would be great if we 
could have a proper mechanism to extend this on a per-layer basis in future.

Cheers,
Paul
Paul Barker - March 28, 2013, 2:03 p.m.
On 28 March 2013 14:00, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> On Thursday 28 March 2013 13:56:13 Paul Barker wrote:
>> On 28 March 2013 13:34, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
>> > On Thursday 28 March 2013 11:16:10 Paul Barker wrote:
>> > > This is just a temporary patch to change the SRC_URI for gd as the
>> > > upstream
>> > > source libgd.org has been down for a week or so now. The MD5 and SHA256
>> > > sums match so this should be the exact same archive. It is not intended
>> > > to go in the main repository but may be useful to some of you until
>> > > libgd.org is back up.
>> >
>> > This is what we have MIRRORS for - perhaps we could add an entry to
>> > MIRRORS to handle this?
>>
>> I just went for a quick and dirty fix as I'm not very experienced with
>> bitbake recipes yet. Would this be added to mirrors.bbclass directly
>> or should I add a MIRRORS += line to the gd recipe?
>
> Since this is specific to the gd recipe I'd say in the recipe itself.

I'll rewrite my fix to append to MIRRORS in the recipe, test it and
re-send the patch if it works.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
Khem Raj - March 28, 2013, 4 p.m.
On Mar 28, 2013, at 6:34 AM, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:

> On Thursday 28 March 2013 11:16:10 Paul Barker wrote:
>> This is just a temporary patch to change the SRC_URI for gd as the upstream
>> source libgd.org has been down for a week or so now. The MD5 and SHA256 sums
>> match so this should be the exact same archive. It is not intended to go in
>> the main repository but may be useful to some of you until libgd.org is
>> back up.
> 
> This is what we have MIRRORS for - perhaps we could add an entry to MIRRORS to 
> handle this?
> 

exactly, send the tar ball to Tom he will populate the oe mirror.

> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Paul Barker - March 28, 2013, 4:08 p.m.
On 28 March 2013 16:00, Khem Raj <raj.khem@gmail.com> wrote:
>
> exactly, send the tar ball to Tom he will populate the oe mirror.
>

In which case, these two need adding to the mirror:

ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/live.2011.03.14.tar.gz
http://fossies.org/unix/www/gd-2.0.36RC1.tar.gz

I think I'm going about this the wrong way by just throwing patches at
the list when I'm not so experienced with OpenEmbedded. I'll slow down
a bit and ask questions about what the best solution is before I send
a patch. I am currently trying to build just about everything I can
for my raspberrypi to create my own package repository I can install
from so it does mean that most of the current recipes will get a good
testing.

Thanks,

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
Paul Barker - March 28, 2013, 6:18 p.m.
On 28 March 2013 16:08, Paul Barker <paul@paulbarker.me.uk> wrote:
> On 28 March 2013 16:00, Khem Raj <raj.khem@gmail.com> wrote:
>>
>> exactly, send the tar ball to Tom he will populate the oe mirror.
>>
>
> In which case, these two need adding to the mirror:
>
> ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/live.2011.03.14.tar.gz
> http://fossies.org/unix/www/gd-2.0.36RC1.tar.gz
>

Another one: lzip fails to fetch as the upstream source has discarded
the old version in .tar.gz format (It's still available as a .tar.lz
but that would create a circular dependency unless the host already
had lzip). The file is available from
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/lzip-1.13.tar.gz and
matches the existing MD5/SHA256 sums.

--
Paul Barker

Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk

Patch

diff --git a/meta-oe/recipes-support/gd/gd_2.0.35+2.0.36rc1.bb b/meta-oe/recipes-support/gd/gd_2.0.35+2.0.36rc1.bb
index 9615371..9d21c05 100644
--- a/meta-oe/recipes-support/gd/gd_2.0.35+2.0.36rc1.bb
+++ b/meta-oe/recipes-support/gd/gd_2.0.35+2.0.36rc1.bb
@@ -5,7 +5,7 @@  DESCRIPTION = "gd is a library used to create PNG, JPEG, or WBMP images."
 DEPENDS = "freetype libpng jpeg zlib"
 PR = "r5"
 
-SRC_URI = "http://www.libgd.org/releases/gd-2.0.36RC1.tar.gz"
+SRC_URI = "http://fossies.org/unix/www/gd-2.0.36RC1.tar.gz"
 SRC_URI[md5sum] = "39ac48e6d5e0012a3bd2248a0102f209"
 SRC_URI[sha256sum] = "dd7c1795271221b9237769b96b8cec7fbdc5db7b8954d864ead51fc1296a6ac8"