* [PATCH 0/1] ADT Disable wget server side cache
@ 2011-03-10 9:31 Liping Ke
2011-03-10 9:31 ` [PATCH 1/1] " Liping Ke
0 siblings, 1 reply; 2+ messages in thread
From: Liping Ke @ 2011-03-10 9:31 UTC (permalink / raw)
To: poky
From: Liping Ke <liping.ke@intel.com>
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.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: lke/disable_cache
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=lke/disable_cache
Thanks,
Liping Ke <liping.ke@intel.com>
---
Liping Ke (1):
Disable wget server side cache
.../installer/adt-installer_1.0.bb | 3 ++-
.../installer/files/wget_cache.patch | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/installer/files/wget_cache.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] Disable wget server side cache
2011-03-10 9:31 [PATCH 0/1] ADT Disable wget server side cache Liping Ke
@ 2011-03-10 9:31 ` Liping Ke
0 siblings, 0 replies; 2+ messages in thread
From: Liping Ke @ 2011-03-10 9:31 UTC (permalink / raw)
To: poky
From: Liping Ke <liping.ke@intel.com>
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.
Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
---
.../installer/adt-installer_1.0.bb | 3 ++-
.../installer/files/wget_cache.patch | 10 ++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
create mode 100644 meta/recipes-devtools/installer/files/wget_cache.patch
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb b/meta/recipes-devtools/installer/adt-installer_1.0.bb
index 50290f9..ff7afe6 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"
ADT_DEPLOY = "${TMPDIR}/deploy/sdk/"
ADT_DIR = "${WORKDIR}/adt-installer/"
YOCTOADT_VERSION = "${SDK_VERSION}"
+S = "${WORKDIR}/trunk"
inherit deploy
PV = "0.1.8+svnr${SRCPV}"
SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \
+ file://wget_cache.patch \
file://adt_installer \
file://scripts/adt_installer_internal \
file://scripts/util \
@@ -70,7 +72,6 @@ fakeroot do_deploy () {
cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY}
}
-do_patch[noexec] = "1"
do_install[noexec] = "1"
do_configure[noexec] = "1"
do_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 0000000..6fd38e5
--- /dev/null
+++ b/meta/recipes-devtools/installer/files/wget_cache.patch
@@ -0,0 +1,10 @@
+--- trunk/libopkg/opkg_download.c 2011-03-10 16:41:29.000000000 +0800
++++ trunk/libopkg/opkg_download.c 2011-03-10 16:42:33.000000000 +0800
+@@ -162,6 +162,7 @@
+
+ argv[i++] = "wget";
+ argv[i++] = "-q";
++ argv[i++] = "--no-cache";
+ if (conf->http_proxy || conf->ftp_proxy) {
+ argv[i++] = "-Y";
+ argv[i++] = "on";
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-10 9:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 9:31 [PATCH 0/1] ADT Disable wget server side cache Liping Ke
2011-03-10 9:31 ` [PATCH 1/1] " Liping Ke
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.