Skip to contentSkip to conversation

Create ${CPAN_MIRROR} option

PATCH New Tim Orling 1 participant 3 messages May 21, 2014

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

cover Create ${CPAN_MIRROR} option

From: Tim Orling <[email protected]>

* Perl modules are beginning to fail to fetch
* Default CPAN site seems to be flaky lately
* Add option to mirrors.bbclass to use metacpan.org
* Continue to use main CPAN site as default in bitbake.conf

Tim Orling (2):
mirrors.bbclass: add ${CPAN_MIRROR} option
bitbake.conf: add default ${CPAN_MIRROR}

 meta/classes/mirrors.bbclass | 2 ++
 meta/conf/bitbake.conf       | 1 +
 2 files changed, 3 insertions(+)
Signature · 1 line
1.8.3.2
author
#1 lore raw

PATCH 1/2 mirrors.bbclass: add ${CPAN_MIRROR} option

From: Tim Orling <[email protected]>

* Perl modules fail to fetch because default CPAN site has been flaky lately.
* Create option to use metacpan.org as a mirror.

---
 meta/classes/mirrors.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/mirrors.bbclass +2 -0
index 90fb1e0..0d9b517 100644
@@ -67,4 +67,6 @@ p4://.*/.*      http://sources.openembedded.org/ \n \
 osc://.*/.*     http://sources.openembedded.org/ \n \
 https?$://.*/.* http://sources.openembedded.org/ \n \
 ftp://.*/.*     http://sources.openembedded.org/ \n \
+${CPAN_MIRROR}  http://cpan.metacpan.org/ \n \
+${CPAN_MIRROR}  http://search.cpan.org/CPAN/ \n \
 "
Signature · 1 line
1.8.3.2
author
#2 lore raw

PATCH 2/2 bitbake.conf: add default ${CPAN_MIRROR}

In reply to Tim Orling

From: Tim Orling <[email protected]>

* Set default to http://search.cpan.org/CPAN/, as it should be

---
 meta/conf/bitbake.conf | 1 +
 1 file changed, 1 insertion(+)
meta/conf/bitbake.conf +1 -0
index 9f14785..fde8d76 100644
@@ -570,6 +570,7 @@ XLIBS_MIRROR = "http://xlibs.freedesktop.org/release"
 XORG_MIRROR = "http://xorg.freedesktop.org/releases"
 SAVANNAH_GNU_MIRROR = "http://download.savannah.gnu.org/releases"
 SAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases"
+CPAN_MIRROR = "http://search.cpan.org/CPAN"
 
 # You can use the mirror of your country to get faster downloads by putting
 #  export DEBIAN_MIRROR = "ftp://ftp.de.debian.org/debian/pool"
Signature · 1 line
1.8.3.2