diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-02-01 17:00:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 23:59:42 +0000 |
commit | 4db983142fb3a575c4a6930bbc504796cd0c86f6 (patch) | |
tree | 179bac94ed932c00881cbef167f2081c544e4b42 /meta | |
parent | e1a9c8fb0316c3461b88e37b662823167b5954cd (diff) | |
download | openembedded-core-4db983142fb3a575c4a6930bbc504796cd0c86f6.tar.gz openembedded-core-4db983142fb3a575c4a6930bbc504796cd0c86f6.tar.bz2 openembedded-core-4db983142fb3a575c4a6930bbc504796cd0c86f6.zip |
opkg: Update to svn r596 to fix segfault when upgrading packages
The longlinks patch is upstream and and be removed now
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/conf/distro/include/poky-default-revisions.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg/longlinksfix.patch | 92 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_svn.bb | 1 |
3 files changed, 1 insertions, 94 deletions
diff --git a/meta/conf/distro/include/poky-default-revisions.inc b/meta/conf/distro/include/poky-default-revisions.inc index f8b35c6f65..cd6c95fd8e 100644 --- a/meta/conf/distro/include/poky-default-revisions.inc +++ b/meta/conf/distro/include/poky-default-revisions.inc @@ -134,7 +134,7 @@ SRCREV_pn-networkmanager ??= "2984" SRCREV_pn-ofono ??= "14544d5996836f628613c2ce544380ee6fc8f514" SRCREV_pn-oh-puzzles ??= "23" SRCREV_pn-ohm ??= "edfe25d49d67884bf004de7ae0724c162bb5e65e" -OPKGSRCREV = "590" +OPKGSRCREV = "596" SRCREV_pn-opkg ??= "${OPKGSRCREV}" SRCREV_pn-opkg-native ??= "${OPKGSRCREV}" SRCREV_pn-opkg-nativesdk ??= "${OPKGSRCREV}" diff --git a/meta/recipes-devtools/opkg/opkg/longlinksfix.patch b/meta/recipes-devtools/opkg/opkg/longlinksfix.patch deleted file mode 100644 index 6908392932..0000000000 --- a/meta/recipes-devtools/opkg/opkg/longlinksfix.patch +++ /dev/null @@ -1,92 +0,0 @@ -If a tarball contains a long symlink (over 100 chars) in a longpath (over 100 -chars) then the resulting link or path can be truncated to 100 chars. - -This is due to a bug where if both 'L' and 'K' entries are found in the tarball, -only the first one takes affect due to get_header_tar recursively calling itself. -To fix this, process longname and linkname at the end of the function rather -than the start after any subcalls have taken place. - -Richard Purdie -22/12/2010 - -Index: trunk/libbb/unarchive.c -=================================================================== ---- trunk.orig/libbb/unarchive.c 2010-12-22 18:14:52.575074849 +0000 -+++ trunk/libbb/unarchive.c 2010-12-22 18:16:01.845103832 +0000 -@@ -506,23 +506,7 @@ - /* convert to type'ed variables */ - tar_entry = xcalloc(1, sizeof(file_header_t)); - --#ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS -- if (longname) { -- tar_entry->name = longname; -- longname = NULL; -- } else --#endif -- { -- tar_entry->name = xstrndup(tar.formated.name, 100); - -- if (tar.formated.prefix[0]) { -- char *temp = tar_entry->name; -- char *prefixTemp = xstrndup(tar.formated.prefix, 155); -- tar_entry->name = concat_path_file(prefixTemp, temp); -- free(temp); -- free(prefixTemp); -- } -- } - - // tar_entry->name = xstrdup(tar.formated.name); - -@@ -535,16 +519,7 @@ - tar_entry->gid = strtol(tar.formated.gid, NULL, 8); - tar_entry->size = strtol(tar.formated.size, NULL, 8); - tar_entry->mtime = strtol(tar.formated.mtime, NULL, 8); --#ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS -- if (linkname) { -- tar_entry->link_name = linkname; -- linkname = NULL; -- } else --#endif -- { -- tar_entry->link_name = *tar.formated.linkname != '\0' ? -- xstrndup(tar.formated.linkname, 100) : NULL; -- } -+ - tar_entry->device = (strtol(tar.formated.devmajor, NULL, 8) << 8) + - strtol(tar.formated.devminor, NULL, 8); - -@@ -611,6 +586,34 @@ - - } - -+ -+#ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS -+ if (longname) { -+ tar_entry->name = longname; -+ longname = NULL; -+ } else -+#endif -+ { -+ tar_entry->name = xstrndup(tar.formated.name, 100); -+ -+ if (tar.formated.prefix[0]) { -+ char *temp = tar_entry->name; -+ char *prefixTemp = xstrndup(tar.formated.prefix, 155); -+ tar_entry->name = concat_path_file(prefixTemp, temp); -+ free(temp); -+ free(prefixTemp); -+ } -+ } -+ -+ if (linkname) { -+ tar_entry->link_name = linkname; -+ linkname = NULL; -+ } else -+ { -+ tar_entry->link_name = *tar.formated.linkname != '\0' ? -+ xstrndup(tar.formated.linkname, 100) : NULL; -+ } -+ - return(tar_entry); - } - diff --git a/meta/recipes-devtools/opkg/opkg_svn.bb b/meta/recipes-devtools/opkg/opkg_svn.bb index 141e00db06..76ec838875 100644 --- a/meta/recipes-devtools/opkg/opkg_svn.bb +++ b/meta/recipes-devtools/opkg/opkg_svn.bb @@ -11,7 +11,6 @@ PACKAGE_ARCH_update-alternatives-cworth = "all" SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ file://add_vercmp.patch \ file://headerfix.patch \ - file://longlinksfix.patch \ " S = "${WORKDIR}/trunk" |