blob: e94a4123dd820d6c98869511a69d920b20cba281 [file] [log] [blame]
Patrick Williamsf1e5d692016-03-30 15:21:19 -05001From a4628a6171f393add9a2b287483ca39bb72b4dd6 Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com>
3Date: Mon, 21 Sep 2015 20:23:23 +1000
4Subject: [PATCH] opkg_conf: create opkg.lock in /run instead of /var/run
5
6This avoids a "Could not unlink" warning when extracting a /var/run
7symbolic link pointing to /run from a package as it is unable to
8unlink the /var/run directory when it contains opkg.lock.
9
10This also fixes an issue where /var/run is created as a directory
11instead of a symbolic link to /run.
12
13Upstream-Status: Inappropriate [OE-Specific]
14Signed-off-by: Jonathan Liu <net147@gmail.com>
15---
16 libopkg/opkg_conf.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/libopkg/opkg_conf.h b/libopkg/opkg_conf.h
20index 7bca948..5a1bc44 100644
21--- a/libopkg/opkg_conf.h
22+++ b/libopkg/opkg_conf.h
23@@ -40,7 +40,7 @@ extern "C" {
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 #define OPKG_CONF_DEFAULT_STATUS_FILE VARDIR "/lib/opkg/status"
25 #define OPKG_CONF_DEFAULT_CACHE_DIR VARDIR "/cache/opkg"
26 #define OPKG_CONF_DEFAULT_CONF_FILE_DIR SYSCONFDIR "/opkg"
27-#define OPKG_CONF_DEFAULT_LOCK_FILE VARDIR "/run/opkg.lock"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050028+#define OPKG_CONF_DEFAULT_LOCK_FILE "/run/opkg.lock"
29
30 /* In case the config file defines no dest */
31 #define OPKG_CONF_DEFAULT_DEST_NAME "root"
32--
332.5.0
34