summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg/opkg-no-sync-offline.patch18
-rw-r--r--meta/recipes-devtools/opkg/opkg_svn.bb3
2 files changed, 20 insertions, 1 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/opkg-no-sync-offline.patch b/meta/recipes-devtools/opkg/opkg/opkg-no-sync-offline.patch
new file mode 100644
index 0000000000..b1b3453484
--- /dev/null
+++ b/meta/recipes-devtools/opkg/opkg/opkg-no-sync-offline.patch
@@ -0,0 +1,18 @@
1When installing into an offline root, calling sync() is pointless and just
2hurts performance. Don't let's do that.
3
4Signed-off-by: Phil Blundell <philb@gnu.org>
5Upstream-Status: Pending
6
7--- a/libopkg/opkg_cmd.c 2011-09-08 10:53:07.000000000 +0100
8+++ b/libopkg/opkg_cmd.c 2011-10-04 10:45:22.278615584 +0100
9@@ -64,7 +64,8 @@ write_status_files_if_changed(void)
10 opkg_msg(INFO, "Writing status file.\n");
11 opkg_conf_write_status_files();
12 pkg_write_changed_filelists();
13- sync();
14+ if (!conf->offline_root)
15+ sync();
16 } else {
17 opkg_msg(DEBUG, "Nothing to be done.\n");
18 }
diff --git a/meta/recipes-devtools/opkg/opkg_svn.bb b/meta/recipes-devtools/opkg/opkg_svn.bb
index d89a3f6c66..59bb2d94e2 100644
--- a/meta/recipes-devtools/opkg/opkg_svn.bb
+++ b/meta/recipes-devtools/opkg/opkg_svn.bb
@@ -11,6 +11,7 @@ SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;protocol=http \
11 file://0008-select_higher_version.patch \ 11 file://0008-select_higher_version.patch \
12 file://0009-pkg_depends-fix-version-constraints.patch \ 12 file://0009-pkg_depends-fix-version-constraints.patch \
13 file://0010-pkg_depends-fix-version_constraints_satisfied.patch \ 13 file://0010-pkg_depends-fix-version_constraints_satisfied.patch \
14 file://opkg-no-sync-offline.patch \
14" 15"
15 16
16S = "${WORKDIR}/trunk" 17S = "${WORKDIR}/trunk"
@@ -18,4 +19,4 @@ S = "${WORKDIR}/trunk"
18SRCREV = "633" 19SRCREV = "633"
19PV = "0.1.8+svnr${SRCPV}" 20PV = "0.1.8+svnr${SRCPV}"
20 21
21PR = "${INC_PR}.5" 22PR = "${INC_PR}.6"