From 80cbe585fbf8afa01a026045887738b70f03d079 Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 4 Aug 2017 13:15:31 -0500 Subject: Lock file is in wrong place, disallowing non-root list, files, search --- ...kg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch | 12 ++++++++++++ recipes-devtools/opkg/opkg_%.bbappend | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 recipes-devtools/opkg/files/0003-opkg_conf-create-opkg.lock-in-run-lock-instead-of-run.patch create mode 100644 recipes-devtools/opkg/opkg_%.bbappend (limited to 'recipes-devtools/opkg') 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:" + + -- cgit v1.2.3