All of lore.kernel.org
 help / color / mirror / Atom feed
* [dylan][PATCH] classes/terminal: fix pseudo exiting when launching devshell
@ 2013-08-14 15:46 Paul Eggleton
  2013-08-14 16:55 ` Nicolas Dechesne
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2013-08-14 15:46 UTC (permalink / raw)
  To: openembedded-core

In dylan, since the entire bitbake process is run under pseudo,
LD_PRELOAD is set when we collect BB_ORIGENV and thus when we construct
the devshell environment from the latter, LD_PRELOAD is included.
However, for a fakeroot task we explicitly run the devshell under pseudo
(e.g. "pseudo /bin/bash"), and if LD_PRELOAD is set to preload
libpseudo.so when pseudo is run, it seems to exit immediately without
error. Since LD_PRELOAD shouldn't be exported anyway, exclude this from
the environment so it doesn't prevent running the shell.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/terminal.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass
index ae338e9..96d2d2a 100644
--- a/meta/classes/terminal.bbclass
+++ b/meta/classes/terminal.bbclass
@@ -62,6 +62,10 @@ def oe_terminal(command, title, d):
             envdata.setVar(key, str(value))
             envdata.setVarFlag(key, 'export', 1)
 
+    # LD_PRELOAD of pseudo will cause problems if this is a fakeroot task
+    # and we shouldn't be exporting it anyway
+    envdata.delVar('LD_PRELOAD')
+
     # Replace command with an executable wrapper script
     command = emit_terminal_func(command, envdata, d)
 
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [dylan][PATCH] classes/terminal: fix pseudo exiting when launching devshell
  2013-08-14 15:46 [dylan][PATCH] classes/terminal: fix pseudo exiting when launching devshell Paul Eggleton
@ 2013-08-14 16:55 ` Nicolas Dechesne
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Dechesne @ 2013-08-14 16:55 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 879 bytes --]

On Wed, Aug 14, 2013 at 5:46 PM, Paul Eggleton <
paul.eggleton@linux.intel.com> wrote:

> In dylan, since the entire bitbake process is run under pseudo,
> LD_PRELOAD is set when we collect BB_ORIGENV and thus when we construct
> the devshell environment from the latter, LD_PRELOAD is included.
> However, for a fakeroot task we explicitly run the devshell under pseudo
> (e.g. "pseudo /bin/bash"), and if LD_PRELOAD is set to preload
> libpseudo.so when pseudo is run, it seems to exit immediately without
> error. Since LD_PRELOAD shouldn't be exported anyway, exclude this from
> the environment so it doesn't prevent running the shell.
>
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
>

thanks for fixing quickly. I have tested with gnome-terminal and screen,
and it works fine.

Tested-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>

[-- Attachment #2: Type: text/html, Size: 1511 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-14 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-14 15:46 [dylan][PATCH] classes/terminal: fix pseudo exiting when launching devshell Paul Eggleton
2013-08-14 16:55 ` Nicolas Dechesne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.