Patchwork mirrors.bbclass: Add mirror site

login
register
mail settings
Submitter Changhyeok Bae
Date April 25, 2014, 12:46 a.m.
Message ID <1398386806-12058-1-git-send-email-changhyeok.bae@lge.com>
Download mbox | patch
Permalink /patch/70921/
State New
Headers show

Comments

Changhyeok Bae - April 25, 2014, 12:46 a.m.
* The SRC_URI is not accessible.
  So need to add mirror site referred by the original site.
* The problem is that
  http://download.savannah.nongnu.org/releases and
  http://download.savannah.gnu.org/releases redirects to closest mirror
  and few mirrors (e.g. .jp) weren't working correctly while
  http://download-mirror.savannah.gnu.org/releases/ seems to be reliable.

Signed-off-by: Changhyeok Bae <changhyeok.bae@lge.com>
---
 meta/classes/mirrors.bbclass |    2 ++
 1 file changed, 2 insertions(+)
Martin Jansa - April 25, 2014, 1:20 a.m.
On Fri, Apr 25, 2014 at 09:46:46AM +0900, Changhyeok Bae wrote:
> * The SRC_URI is not accessible.
>   So need to add mirror site referred by the original site.
> * The problem is that
>   http://download.savannah.nongnu.org/releases and
>   http://download.savannah.gnu.org/releases redirects to closest mirror
>   and few mirrors (e.g. .jp) weren't working correctly while
>   http://download-mirror.savannah.gnu.org/releases/ seems to be reliable.
> 
> Signed-off-by: Changhyeok Bae <changhyeok.bae@lge.com>
> ---
>  meta/classes/mirrors.bbclass |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/classes/mirrors.bbclass b/meta/classes/mirrors.bbclass
> index 1fd7cd8..a632032 100644
> --- a/meta/classes/mirrors.bbclass
> +++ b/meta/classes/mirrors.bbclass
> @@ -45,6 +45,8 @@ ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://sunsite.ualberta.ca/pub/M
>  ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://the.wiretapped.net/pub/security/host-security/lsof/ \n \
>  http://www.apache.org/dist  http://archive.apache.org/dist \n \
>  http://downloads.sourceforge.net/watchdog/ http://fossies.org/linux/misc/ \n \
> +http://download.savannah.nongnu.org/releases/ http://download-mirror.savannah.gnu.org/releases/ \n \
> +http://download.savannah.gnu.org/releases/ http://download-mirror.savannah.gnu.org/releases/ \n \

It would be better to add variable for this url first and then use the
variable here as well as in recipes.

>  cvs://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \
>  svn://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \
>  git://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \
> -- 
> 1.7.9.5
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/classes/mirrors.bbclass b/meta/classes/mirrors.bbclass
index 1fd7cd8..a632032 100644
--- a/meta/classes/mirrors.bbclass
+++ b/meta/classes/mirrors.bbclass
@@ -45,6 +45,8 @@  ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://sunsite.ualberta.ca/pub/M
 ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/  ftp://the.wiretapped.net/pub/security/host-security/lsof/ \n \
 http://www.apache.org/dist  http://archive.apache.org/dist \n \
 http://downloads.sourceforge.net/watchdog/ http://fossies.org/linux/misc/ \n \
+http://download.savannah.nongnu.org/releases/ http://download-mirror.savannah.gnu.org/releases/ \n \
+http://download.savannah.gnu.org/releases/ http://download-mirror.savannah.gnu.org/releases/ \n \
 cvs://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \
 svn://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \
 git://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \n \