summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes-devtools/opkg/files/0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch12
-rw-r--r--recipes-devtools/opkg/opkg_%.bbappend7
2 files changed, 19 insertions, 0 deletions
diff --git a/recipes-devtools/opkg/files/0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch b/recipes-devtools/opkg/files/0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch
new file mode 100644
index 0000000..794f82d
--- /dev/null
+++ b/recipes-devtools/opkg/files/0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch
@@ -0,0 +1,12 @@
+diff -Naru old/libopkg/opkg_conf.h new/libopkg/opkg_conf.h
+--- old/libopkg/opkg_conf.h 2017-08-03 17:47:57.375435517 -0500
++++ new/libopkg/opkg_conf.h 2017-08-03 17:48:55.499433796 -0500
+@@ -40,7 +40,7 @@
+ #define OPKG_CONF_DEFAULT_STATUS_FILE "/var/lib/opkg/status"
+ #define OPKG_CONF_DEFAULT_CACHE_DIR "/var/cache/opkg"
+ #define OPKG_CONF_DEFAULT_CONF_FILE_DIR "/etc/opkg"
+-#define OPKG_CONF_DEFAULT_LOCK_FILE "/run/opkg.lock"
++#define OPKG_CONF_DEFAULT_LOCK_FILE "/run/lock/opkg.lock"
+
+ /* In case the config file defines no dest */
+ #define OPKG_CONF_DEFAULT_DEST_NAME "root"
diff --git a/recipes-devtools/opkg/opkg_%.bbappend b/recipes-devtools/opkg/opkg_%.bbappend
new file mode 100644
index 0000000..7b45903
--- /dev/null
+++ b/recipes-devtools/opkg/opkg_%.bbappend
@@ -0,0 +1,7 @@
+PR .= ".mlinux1"
+
+SRC_URI += " file://0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch \
+ "
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+