summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorLiping Ke <liping.ke@intel.com>2011-03-10 17:27:55 +0800
committerSaul Wold <sgw@linux.intel.com>2011-03-10 21:43:04 -0800
commite415fd6d5be5ce7f05ff4ce68e751958360e7771 (patch)
tree5452bc188198c0aeab7617eb5bc562456536f704 /meta/recipes-devtools
parentd6c639e64b0b6073665faef8fe1c5fe626bc3dde (diff)
downloadpoky-e415fd6d5be5ce7f05ff4ce68e751958360e7771.tar.gz
Disable wget server side cache
We found some proxy server has wrong cache for long http file name. It will cause fetching wrong ipk files from adt repo. To avoid this, we use wget options --no-cache to disable all server side cache. It will make the fetch speed slower, yet correct always. (From OE-Core rev: 2e9e8af197671ae06de1bdc9201765b160869d60) Signed-off-by: Liping Ke <liping.ke@intel.com> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/installer/adt-installer_1.0.bb3
-rw-r--r--meta/recipes-devtools/installer/files/wget_cache.patch10
2 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb b/meta/recipes-devtools/installer/adt-installer_1.0.bb
index 50290f9ffd..ff7afe6623 100644
--- a/meta/recipes-devtools/installer/adt-installer_1.0.bb
+++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb
@@ -36,11 +36,13 @@ PR = "r0"
36ADT_DEPLOY = "${TMPDIR}/deploy/sdk/" 36ADT_DEPLOY = "${TMPDIR}/deploy/sdk/"
37ADT_DIR = "${WORKDIR}/adt-installer/" 37ADT_DIR = "${WORKDIR}/adt-installer/"
38YOCTOADT_VERSION = "${SDK_VERSION}" 38YOCTOADT_VERSION = "${SDK_VERSION}"
39S = "${WORKDIR}/trunk"
39 40
40inherit deploy 41inherit deploy
41 42
42PV = "0.1.8+svnr${SRCPV}" 43PV = "0.1.8+svnr${SRCPV}"
43SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ 44SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \
45 file://wget_cache.patch \
44 file://adt_installer \ 46 file://adt_installer \
45 file://scripts/adt_installer_internal \ 47 file://scripts/adt_installer_internal \
46 file://scripts/util \ 48 file://scripts/util \
@@ -70,7 +72,6 @@ fakeroot do_deploy () {
70 cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY} 72 cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY}
71} 73}
72 74
73do_patch[noexec] = "1"
74do_install[noexec] = "1" 75do_install[noexec] = "1"
75do_configure[noexec] = "1" 76do_configure[noexec] = "1"
76do_compile[noexec] = "1" 77do_compile[noexec] = "1"
diff --git a/meta/recipes-devtools/installer/files/wget_cache.patch b/meta/recipes-devtools/installer/files/wget_cache.patch
new file mode 100644
index 0000000000..6fd38e5fc4
--- /dev/null
+++ b/meta/recipes-devtools/installer/files/wget_cache.patch
@@ -0,0 +1,10 @@
1--- trunk/libopkg/opkg_download.c 2011-03-10 16:41:29.000000000 +0800
2+++ trunk/libopkg/opkg_download.c 2011-03-10 16:42:33.000000000 +0800
3@@ -162,6 +162,7 @@
4
5 argv[i++] = "wget";
6 argv[i++] = "-q";
7+ argv[i++] = "--no-cache";
8 if (conf->http_proxy || conf->ftp_proxy) {
9 argv[i++] = "-Y";
10 argv[i++] = "on";