summaryrefslogtreecommitdiff
path: root/recipes-devtools/opkg
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-08-04 13:15:31 -0500
committerJohn Klug <john.klug@multitech.com>2017-08-04 13:15:31 -0500
commit80cbe585fbf8afa01a026045887738b70f03d079 (patch)
tree850e3c9c0b058aea59918137e62e7053cbddda3f /recipes-devtools/opkg
parent9b0df37ef0c58871a8e88bd8273b3db99aa11953 (diff)
downloadmeta-mlinux-80cbe585fbf8afa01a026045887738b70f03d079.tar.gz
meta-mlinux-80cbe585fbf8afa01a026045887738b70f03d079.tar.bz2
meta-mlinux-80cbe585fbf8afa01a026045887738b70f03d079.zip
Lock file is in wrong place, disallowing non-root list, files, search
Diffstat (limited to 'recipes-devtools/opkg')
-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:"
+
+