summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg/preinst.patch
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2013-07-29 11:11:09 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-03 10:33:10 +0100
commitc342715965ae173879fd6f8366dc60c093a393f7 (patch)
tree015620bb535705ab8fca774792ca855adee42787 /meta/recipes-devtools/dpkg/dpkg/preinst.patch
parent46e50e3703c822b4c2d7beb6873f3835274f4302 (diff)
downloadast2050-yocto-poky-c342715965ae173879fd6f8366dc60c093a393f7.zip
ast2050-yocto-poky-c342715965ae173879fd6f8366dc60c093a393f7.tar.gz
dpkg: upgrade to 1.17.1
Rebased patches and removed mips related arch triptlet patch due to being upstreamed (From OE-Core rev: 6d4257217f8c5c61ae9bc02b6607d1066168c03a) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg/preinst.patch')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg/preinst.patch30
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 f9cb408..0549121 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
+ /**
OpenPOWER on IntegriCloud