diff options
author | Saul Wold <sgw@linux.intel.com> | 2013-07-29 11:11:09 +0300 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-02 08:01:39 -0700 |
commit | 6d4257217f8c5c61ae9bc02b6607d1066168c03a (patch) | |
tree | 2b7d68facf01b9ba81bcef93c6e12d290e1dad2d /meta/recipes-devtools/dpkg/dpkg/preinst.patch | |
parent | f68eccd67a3f9ed0d62e5ab75545891bd724daa3 (diff) | |
download | openembedded-core-contrib-6d4257217f8c5c61ae9bc02b6607d1066168c03a.tar.gz |
dpkg: upgrade to 1.17.1
Rebased patches and removed mips related arch triptlet patch due to being upstreamed
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg/preinst.patch')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg/preinst.patch | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg/preinst.patch b/meta/recipes-devtools/dpkg/dpkg/preinst.patch index f9cb4089fb..0549121ef1 100644 --- a/meta/recipes-devtools/dpkg/dpkg/preinst.patch +++ b/meta/recipes-devtools/dpkg/dpkg/preinst.patch @@ -6,17 +6,13 @@ Upstream-Status: Inappropriate [OE Specific] RP 2011/12/07 -Index: dpkg-1.16.8/src/script.c +Index: dpkg-1.17.1/src/script.c =================================================================== ---- dpkg-1.16.8.orig/src/script.c -+++ dpkg-1.16.8/src/script.c -@@ -102,38 +102,10 @@ setexecute(const char *path, struct stat - static const char * - preexecscript(struct command *cmd) - { -- const char *admindir = dpkg_db_get_dir(); -- size_t instdirl = strlen(instdir); -- +--- dpkg-1.17.1.orig/src/script.c ++++ dpkg-1.17.1/src/script.c +@@ -111,36 +111,9 @@ preexecscript(struct command *cmd) + size_t instdirl = strlen(instdir); + if (*instdir) { - if (strncmp(admindir, instdir, instdirl) != 0) - ohshit(_("admindir must be inside instdir for dpkg to work properly")); @@ -25,10 +21,11 @@ Index: dpkg-1.16.8/src/script.c - - if (chroot(instdir)) - ohshite(_("failed to chroot to `%.250s'"), instdir); -- if (chdir("/")) -- ohshite(_("failed to chdir to `%.255s'"), "/"); -+ setenv("D", instdir, 1); - } +- } +- /* Switch to a known good directory to give the maintainer script +- * a saner environment, also needed after the chroot(). */ +- if (chdir("/")) +- ohshite(_("failed to chdir to `%.255s'"), "/"); - if (debug_has_flag(dbg_scripts)) { - struct varbuf args = VARBUF_INIT; - const char **argv = cmd->argv; @@ -41,7 +38,8 @@ Index: dpkg-1.16.8/src/script.c - debug(dbg_scripts, "fork/exec %s (%s )", cmd->filename, - args.buf); - varbuf_destroy(&args); -- } ++ setenv("D", instdir, 1); + } - if (!instdirl) - return cmd->filename; - @@ -50,4 +48,4 @@ Index: dpkg-1.16.8/src/script.c + return cmd->filename; } - static int + /** |