All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting "menuconfig" to work again?
@ 2015-12-31 13:55 Mike Looijmans
  2015-12-31 13:58 ` Mike Looijmans
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Looijmans @ 2015-12-31 13:55 UTC (permalink / raw)
  To: openembedded-core

When running a "menuconfig" (or any other task that needs a terminal), 
bitbake just "stops" and doesn't show any terminal.

I'm using the current master branch of everything, on Ubuntu 15.

When running with "-D" I can see the following log:

DEBUG: Executing task do_menuconfig
DEBUG: Attempting to spawn terminal "custom"
DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
DEBUG: Attempting to spawn terminal "tmux-running"
DEBUG: Attempting to spawn terminal "tmux-new-window"
DEBUG: Attempting to spawn terminal "gnome"

But nothing happens from that point.

-- 
Mike Looijmans


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

* Re: Getting "menuconfig" to work again?
  2015-12-31 13:55 Getting "menuconfig" to work again? Mike Looijmans
@ 2015-12-31 13:58 ` Mike Looijmans
  2015-12-31 17:04   ` Leonardo Sandoval
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Looijmans @ 2015-12-31 13:58 UTC (permalink / raw)
  To: openembedded-core

On 31-12-15 14:55, Mike Looijmans wrote:
> When running a "menuconfig" (or any other task that needs a terminal),
> bitbake just "stops" and doesn't show any terminal.
>
> I'm using the current master branch of everything, on Ubuntu 15.
>
> When running with "-D" I can see the following log:
>
> DEBUG: Executing task do_menuconfig
> DEBUG: Attempting to spawn terminal "custom"
> DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
> DEBUG: Attempting to spawn terminal "tmux-running"
> DEBUG: Attempting to spawn terminal "tmux-new-window"
> DEBUG: Attempting to spawn terminal "gnome"
>
> But nothing happens from that point.

Extra info: apparently it spawns a process:

/usr/bin/python3 /usr/bin/gnome-terminal --version

If I kill that process, the menuconfig magically appears.

-- 
Mike Looijmans


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

* Re: Getting "menuconfig" to work again?
  2015-12-31 13:58 ` Mike Looijmans
@ 2015-12-31 17:04   ` Leonardo Sandoval
  2016-01-01  9:18     ` Mike Looijmans
  0 siblings, 1 reply; 7+ messages in thread
From: Leonardo Sandoval @ 2015-12-31 17:04 UTC (permalink / raw)
  To: Mike Looijmans, openembedded-core



On 12/31/2015 07:58 AM, Mike Looijmans wrote:
> On 31-12-15 14:55, Mike Looijmans wrote:
>> When running a "menuconfig" (or any other task that needs a terminal),
>> bitbake just "stops" and doesn't show any terminal.
>>
>> I'm using the current master branch of everything, on Ubuntu 15.
>>
>> When running with "-D" I can see the following log:
>>
>> DEBUG: Executing task do_menuconfig
>> DEBUG: Attempting to spawn terminal "custom"
>> DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
>> DEBUG: Attempting to spawn terminal "tmux-running"
>> DEBUG: Attempting to spawn terminal "tmux-new-window"
>> DEBUG: Attempting to spawn terminal "gnome"
>>
>> But nothing happens from that point.
>
> Extra info: apparently it spawns a process:
>
> /usr/bin/python3 /usr/bin/gnome-terminal --version
>
gnome-terminal is a pain... there are some checks base on the version 
and based on that certain parameters are set. which g-t version are you 
using?


> If I kill that process, the menuconfig magically appears.
>



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

* Re: Getting "menuconfig" to work again?
  2015-12-31 17:04   ` Leonardo Sandoval
@ 2016-01-01  9:18     ` Mike Looijmans
  2016-01-01 17:58       ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Mike Looijmans @ 2016-01-01  9:18 UTC (permalink / raw)
  To: Leonardo Sandoval, openembedded-core

On 31-12-15 18:04, Leonardo Sandoval wrote:
>
>
> On 12/31/2015 07:58 AM, Mike Looijmans wrote:
>> On 31-12-15 14:55, Mike Looijmans wrote:
>>> When running a "menuconfig" (or any other task that needs a terminal),
>>> bitbake just "stops" and doesn't show any terminal.
>>>
>>> I'm using the current master branch of everything, on Ubuntu 15.
>>>
>>> When running with "-D" I can see the following log:
>>>
>>> DEBUG: Executing task do_menuconfig
>>> DEBUG: Attempting to spawn terminal "custom"
>>> DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
>>> DEBUG: Attempting to spawn terminal "tmux-running"
>>> DEBUG: Attempting to spawn terminal "tmux-new-window"
>>> DEBUG: Attempting to spawn terminal "gnome"
>>>
>>> But nothing happens from that point.
>>
>> Extra info: apparently it spawns a process:
>>
>> /usr/bin/python3 /usr/bin/gnome-terminal --version
>>
> gnome-terminal is a pain... there are some checks base on the version
> and based on that certain parameters are set. which g-t version are you
> using?

$ gnome-terminal --version
GNOME Terminal 3.14.2

>> If I kill that process, the menuconfig magically appears.

Digging into the source code, I saw that "gnome-terminal --version" is 
only being called to determine if the "--disable-factory" option should 
be passed to it. For some reason, in OE that call "hangs", I suspect 
because of the way the environment and pipes are laid out at that point.

If I just run 'gnome-terminal -t hello --disable-factory -x sh' I don't 
get any errors and it works just fine. To me it looks like the whole 
version check could be removed and always pass "--disable-factory".

Happy New Year!

-- 
Mike Looijmans


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

* Re: Getting "menuconfig" to work again?
  2016-01-01  9:18     ` Mike Looijmans
@ 2016-01-01 17:58       ` Paul Eggleton
  2016-01-07 15:11         ` Leonardo Sandoval
  2016-01-08  8:12         ` Mike Looijmans
  0 siblings, 2 replies; 7+ messages in thread
From: Paul Eggleton @ 2016-01-01 17:58 UTC (permalink / raw)
  To: Mike Looijmans; +Cc: openembedded-core

Hi Mike,

On Fri, 01 Jan 2016 10:18:55 Mike Looijmans wrote:
> On 31-12-15 18:04, Leonardo Sandoval wrote:
> > On 12/31/2015 07:58 AM, Mike Looijmans wrote:
> >> On 31-12-15 14:55, Mike Looijmans wrote:
> >>> When running a "menuconfig" (or any other task that needs a terminal),
> >>> bitbake just "stops" and doesn't show any terminal.
> >>> 
> >>> I'm using the current master branch of everything, on Ubuntu 15.
> >>> 
> >>> When running with "-D" I can see the following log:
> >>> 
> >>> DEBUG: Executing task do_menuconfig
> >>> DEBUG: Attempting to spawn terminal "custom"
> >>> DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
> >>> DEBUG: Attempting to spawn terminal "tmux-running"
> >>> DEBUG: Attempting to spawn terminal "tmux-new-window"
> >>> DEBUG: Attempting to spawn terminal "gnome"
> >>> 
> >>> But nothing happens from that point.
> >> 
> >> Extra info: apparently it spawns a process:
> >> 
> >> /usr/bin/python3 /usr/bin/gnome-terminal --version
> > 
> > gnome-terminal is a pain... there are some checks base on the version
> > and based on that certain parameters are set. which g-t version are you
> > using?
> 
> $ gnome-terminal --version
> GNOME Terminal 3.14.2
> 
> >> If I kill that process, the menuconfig magically appears.
> 
> Digging into the source code, I saw that "gnome-terminal --version" is
> only being called to determine if the "--disable-factory" option should
> be passed to it. For some reason, in OE that call "hangs", I suspect
> because of the way the environment and pipes are laid out at that point.
> 
> If I just run 'gnome-terminal -t hello --disable-factory -x sh' I don't
> get any errors and it works just fine. To me it looks like the whole
> version check could be removed and always pass "--disable-factory".

Unfortunately that's what we did earlier and it was fine until gnome-terminal 
stopped accepting that option. Perhaps it's now a no-op in the version you're 
using, I'm not sure; but in 3.10 they made it trigger an error.

It ought not to be too hard to fix the hanging - hopefully someone with a GNOME 
desktop installed (not me) can figure out what's happening there.

> Happy New Year!

Same to you! :)

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: Getting "menuconfig" to work again?
  2016-01-01 17:58       ` Paul Eggleton
@ 2016-01-07 15:11         ` Leonardo Sandoval
  2016-01-08  8:12         ` Mike Looijmans
  1 sibling, 0 replies; 7+ messages in thread
From: Leonardo Sandoval @ 2016-01-07 15:11 UTC (permalink / raw)
  To: Paul Eggleton, Mike Looijmans; +Cc: openembedded-core



On 01/01/2016 11:58 AM, Paul Eggleton wrote:
> Hi Mike,
>
> On Fri, 01 Jan 2016 10:18:55 Mike Looijmans wrote:
>> On 31-12-15 18:04, Leonardo Sandoval wrote:
>>> On 12/31/2015 07:58 AM, Mike Looijmans wrote:
>>>> On 31-12-15 14:55, Mike Looijmans wrote:
>>>>> When running a "menuconfig" (or any other task that needs a terminal),
>>>>> bitbake just "stops" and doesn't show any terminal.
>>>>>
>>>>> I'm using the current master branch of everything, on Ubuntu 15.
>>>>>
>>>>> When running with "-D" I can see the following log:
>>>>>
>>>>> DEBUG: Executing task do_menuconfig
>>>>> DEBUG: Attempting to spawn terminal "custom"
>>>>> DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
>>>>> DEBUG: Attempting to spawn terminal "tmux-running"
>>>>> DEBUG: Attempting to spawn terminal "tmux-new-window"
>>>>> DEBUG: Attempting to spawn terminal "gnome"
>>>>>
>>>>> But nothing happens from that point.
>>>> Extra info: apparently it spawns a process:
>>>>
>>>> /usr/bin/python3 /usr/bin/gnome-terminal --version
>>> gnome-terminal is a pain... there are some checks base on the version
>>> and based on that certain parameters are set. which g-t version are you
>>> using?
>> $ gnome-terminal --version
>> GNOME Terminal 3.14.2
>>
>>>> If I kill that process, the menuconfig magically appears.
>> Digging into the source code, I saw that "gnome-terminal --version" is
>> only being called to determine if the "--disable-factory" option should
>> be passed to it. For some reason, in OE that call "hangs", I suspect
>> because of the way the environment and pipes are laid out at that point.
>>
>> If I just run 'gnome-terminal -t hello --disable-factory -x sh' I don't
>> get any errors and it works just fine. To me it looks like the whole
>> version check could be removed and always pass "--disable-factory".
Mike, this is definitely a bug that you hit. Can you file it in 
https://bugzilla.yoctoproject.org/?

> Unfortunately that's what we did earlier and it was fine until gnome-terminal
> stopped accepting that option. Perhaps it's now a no-op in the version you're
> using, I'm not sure; but in 3.10 they made it trigger an error.
>
> It ought not to be too hard to fix the hanging - hopefully someone with a GNOME
> desktop installed (not me) can figure out what's happening there.
>
>> Happy New Year!
> Same to you! :)
>
> Cheers,
> Paul
>



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

* Re: Getting "menuconfig" to work again?
  2016-01-01 17:58       ` Paul Eggleton
  2016-01-07 15:11         ` Leonardo Sandoval
@ 2016-01-08  8:12         ` Mike Looijmans
  1 sibling, 0 replies; 7+ messages in thread
From: Mike Looijmans @ 2016-01-08  8:12 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On 01-01-16 18:58, Paul Eggleton wrote:
> Hi Mike,
>
> On Fri, 01 Jan 2016 10:18:55 Mike Looijmans wrote:
>> On 31-12-15 18:04, Leonardo Sandoval wrote:
>>> On 12/31/2015 07:58 AM, Mike Looijmans wrote:
>>>> On 31-12-15 14:55, Mike Looijmans wrote:
>>>>> When running a "menuconfig" (or any other task that needs a terminal),
>>>>> bitbake just "stops" and doesn't show any terminal.
>>>>>
>>>>> I'm using the current master branch of everything, on Ubuntu 15.
>>>>>
>>>>> When running with "-D" I can see the following log:
>>>>>
>>>>> DEBUG: Executing task do_menuconfig
>>>>> DEBUG: Attempting to spawn terminal "custom"
>>>>> DEBUG: No custom terminal (OE_TERMINAL_CUSTOMCMD) set
>>>>> DEBUG: Attempting to spawn terminal "tmux-running"
>>>>> DEBUG: Attempting to spawn terminal "tmux-new-window"
>>>>> DEBUG: Attempting to spawn terminal "gnome"
>>>>>
>>>>> But nothing happens from that point.
>>>>
>>>> Extra info: apparently it spawns a process:
>>>>
>>>> /usr/bin/python3 /usr/bin/gnome-terminal --version
>>>
>>> gnome-terminal is a pain... there are some checks base on the version
>>> and based on that certain parameters are set. which g-t version are you
>>> using?
>>
>> $ gnome-terminal --version
>> GNOME Terminal 3.14.2
>>
>>>> If I kill that process, the menuconfig magically appears.
>>
>> Digging into the source code, I saw that "gnome-terminal --version" is
>> only being called to determine if the "--disable-factory" option should
>> be passed to it. For some reason, in OE that call "hangs", I suspect
>> because of the way the environment and pipes are laid out at that point.
>>
>> If I just run 'gnome-terminal -t hello --disable-factory -x sh' I don't
>> get any errors and it works just fine. To me it looks like the whole
>> version check could be removed and always pass "--disable-factory".
>
> Unfortunately that's what we did earlier and it was fine until gnome-terminal
> stopped accepting that option. Perhaps it's now a no-op in the version you're
> using, I'm not sure; but in 3.10 they made it trigger an error.

Nice... For me simply removing the "version" part fixed the problem. A simple 
"try and ask forgiveness" patch wasn't as simple as I thought, the actual 
terminal command execution is being done elsewhere.

On newer Ubuntus, the "--version" just hangs, probably waiting for terminal 
input or something silly like that.

For now, I'd say removing the version check would be better - if you happen to 
have that bad 3.10 version, you get a nice error message. That's a lot easier 
to diagnose than a hangup.

> It ought not to be too hard to fix the hanging - hopefully someone with a GNOME
> desktop installed (not me) can figure out what's happening there.

To be quite honest, I don't know what desktop I'm running. I just run whatever 
was default with Ubuntu, so that might be Gnome...




Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
E-mail: mike.looijmans@topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail







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

end of thread, other threads:[~2016-01-08  8:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-31 13:55 Getting "menuconfig" to work again? Mike Looijmans
2015-12-31 13:58 ` Mike Looijmans
2015-12-31 17:04   ` Leonardo Sandoval
2016-01-01  9:18     ` Mike Looijmans
2016-01-01 17:58       ` Paul Eggleton
2016-01-07 15:11         ` Leonardo Sandoval
2016-01-08  8:12         ` Mike Looijmans

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.