From ab2d1c0873591104f5208ee56a0283f4594baad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Thu, 17 Apr 2014 10:07:14 +0200 Subject: [PATCH] opkg: add debug messages to analyse polkit's file ownership issue in rootfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../opkg/0001-unarchive-c-add-debug-messages.patch | 34 ++++++++++++++++++++++ meta/recipes-devtools/opkg/opkg_0.2.1.bb | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-devtools/opkg/opkg/0001-unarchive-c-add-debug-messages.patch diff --git a/meta/recipes-devtools/opkg/opkg/0001-unarchive-c-add-debug-messages.patch b/meta/recipes-devtools/opkg/opkg/0001-unarchive-c-add-debug-messages.patch new file mode 100644 index 0000000..3625926 --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg/0001-unarchive-c-add-debug-messages.patch @@ -0,0 +1,34 @@ +From 8033659f170b7f45162172cd3a761c313db809e5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Wed, 16 Apr 2014 17:30:31 +0200 +Subject: [PATCH] unarchive.c: add debug messages + +--- + libbb/unarchive.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/libbb/unarchive.c b/libbb/unarchive.c +index d583767..46587d5 100644 +--- a/libbb/unarchive.c ++++ b/libbb/unarchive.c +@@ -554,10 +554,17 @@ get_header_tar(FILE *tar_stream) + */ + tar_entry->mode = 07777 & strtol(tar.formated.mode, NULL, 8); + ++ + if (update_unamecache(tar.formated.uname)) ++ { + tar_entry->uid = uid_cache; ++ opkg_msg(NOTICE,"update_unamecache returned true for %s UID: %i\n", tar.formated.uname, tar_entry->uid); ++ } + else ++ { + tar_entry->uid = strtol(tar.formated.uid, NULL, 8); ++ opkg_msg(NOTICE,"update_unamecache returned false for %s UID: %i\n", tar.formated.uname, tar_entry->uid); ++ } + if (update_gnamecache(tar.formated.gname)) + tar_entry->gid = gid_cache; + else +-- +1.8.3.1 + diff --git a/meta/recipes-devtools/opkg/opkg_0.2.1.bb b/meta/recipes-devtools/opkg/opkg_0.2.1.bb index 09c0cca..a85acc6 100644 --- a/meta/recipes-devtools/opkg/opkg_0.2.1.bb +++ b/meta/recipes-devtools/opkg/opkg_0.2.1.bb @@ -6,6 +6,8 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz file://opkg-configure.service \ " +SRC_URI_append_class-native = "file://0001-unarchive-c-add-debug-messages.patch" + S = "${WORKDIR}/${BPN}-${PV}" SRC_URI[md5sum] = "1881d170b9dfbd7ecf0aa468cb9779c0" -- 1.8.3.1