Skip to contentSkip to conversation

devshell not working with screen remote shell

DISCUSSION Marco Cavallini 3 participants 6 messages Apr 19, 2009 – Apr 27, 2009

lore
Share & tools
lore
#0 lore raw

devshell is not working when you run bitbake in a screen remote ssh shell (also potest here http://bugs.openembedded.net/show_bug.cgi?id=5084)

$ bitbake -cdevshell bluez-utils
NOTE: Handling BitBake files: - (6658/6658) [100 %]
NOTE: Parsing finished. 6398 cached, 0 parsed, 260 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: build 200904192010: started

OE Build Configuration:
BB_VERSION = "1.8.13"
METADATA_BRANCH = "stable/2009"
METADATA_REVISION = "6ea387ca312c4686746c387b56735f7b96f599b3"

TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "kaeilos"
DISTRO_VERSION    = "2008.1-test-20090419"

NOTE: oestats: build 140918
...snip...
NOTE: package bluez-utils-3.36-r5: task do_patch: completed
NOTE: Running task 32 of 32 (ID: 4, /home/koan/devel/openembedded/recipes/bluez/bluez-utils_3.36.bb,
do_devshell)
NOTE: package bluez-utils-3.36-r5: task do_devshell: started
ERROR: function do_devshell failed
ERROR: log data follows (/home/koan/devel/build/kaeilos/tmp/work/i586-kaeilos-linux/bluez-utils-3.36-r5/temp/log.do_devshell.5388) | cannot open display:
| Run 'gnome-terminal --help' to see a full list of available command line
options.

I already tried to solve this time ago using different option in bitbake code
(trying to activate xterm instead of the default x terminal) and trying to set
DISPLAY and xauth in several ways without success.

/marco

#1 lore raw

You might want to add this to your local.conf

TERMCMD = "${SCREEN_TERMCMD}"
TERMCMDRUN = "${SCREEN_TERMCMDRUN}"

devshell will open in a new screen session, witch you can attach to manually.

Siebren

Quoted 49 lines · Marco Cavallini

devshell is not working when you run bitbake in a screen remote ssh shell (also potest here http://bugs.openembedded.net/show_bug.cgi?id=5084)

$ bitbake -cdevshell bluez-utils
NOTE: Handling BitBake files: - (6658/6658) [100 %]
NOTE: Parsing finished. 6398 cached, 0 parsed, 260 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: build 200904192010: started

OE Build Configuration:
BB_VERSION = "1.8.13"
METADATA_BRANCH = "stable/2009"
METADATA_REVISION = "6ea387ca312c4686746c387b56735f7b96f599b3"

TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "qemux86"
DISTRO            = "kaeilos"
DISTRO_VERSION    = "2008.1-test-20090419"

NOTE: oestats: build 140918
...snip...
NOTE: package bluez-utils-3.36-r5: task do_patch: completed
NOTE: Running task 32 of 32 (ID: 4, /home/koan/devel/openembedded/recipes/bluez/bluez-utils_3.36.bb, do_devshell)
NOTE: package bluez-utils-3.36-r5: task do_devshell: started
ERROR: function do_devshell failed
ERROR: log data follows

(/home/koan/devel/build/kaeilos/tmp/work/i586-kaeilos-linux/bluez-utils-3.36-r5/temp/log.do_devshell.5388) | cannot open display:
| Run 'gnome-terminal --help' to see a full list of available command line
options.

I already tried to solve this time ago using different option in bitbake code
(trying to activate xterm instead of the default x terminal) and trying to set
DISPLAY and xauth in several ways without success.

/marco

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#2 lore raw

s hakkesteegt ha scritto:

Quoted 8 lines

You might want to add this to your local.conf

TERMCMD = "${SCREEN_TERMCMD}"
TERMCMDRUN = "${SCREEN_TERMCMDRUN}"

devshell will open in a new screen session, witch you can attach to manually.

Siebren,
thank you for answering.
I am using a remote ssh connection to the OE development server and I use screen package inside it.
I tried adding your lines and now the build stops here

NOTE: package bluez-utils-3.36-r5: task do_devshell: started

but nothing happens.

Are you using this with the same conditions (remote ssh + screen) or locally?

/marco

#4 lore raw
In reply to s hakkesteegt

s hakkesteegt ha scritto:

Quoted 8 lines

You might want to add this to your local.conf

TERMCMD = "${SCREEN_TERMCMD}"
TERMCMDRUN = "${SCREEN_TERMCMDRUN}"

devshell will open in a new screen session, witch you can attach to manually.

I already tried all the available option witout success. Maybe I'm the only using a remote ssh shell + screen... :-(

# Some common terminal programs to choose from
GNOME_TERMCMD = 'gnome-terminal --disable-factory -t "$TERMWINDOWTITLE"' GNOME_TERMCMDRUN = '${GNOME_TERMCMD} -x $SHELLCMDS' SCREEN_TERMCMD = 'screen -D -m -t "$TERMWINDOWTITLE"' SCREEN_TERMCMDRUN = '${SCREEN_TERMCMD} $SHELLCMDS' XTERM_TERMCMD = 'xterm -T "$TERMWINDOWTITLE"' XTERM_TERMCMDRUN = '${XTERM_TERMCMD} -e $SHELLCMDS' KONSOLE_TERMCMD = 'konsole -T "$TERMWINDOWTITLE"' KONSOLE_TERMCMDRUN = '${KONSOLE_TERMCMD} -e $SHELLCMDS'

/marco

#3 lore raw
In reply to Marco Cavallini

Hi Marco,

That's correct, I do use a similar setup.

After you get the message 'task-do_devshell: started', you should open a new ssh session to your server (in a different console) and you can see there with 'screen -list' that a new screen session has opened, next to the first screen session where you executed the bitbake command. Attach to the new screen session (screen -r). Then you've arrived in the devshell.

When you're ready in the devshell, close it with exit, and the bitbake in your first screen session will continue .

Siebren (irc: tsjsieb)

Quoted 33 lines · Marco Cavallini

s hakkesteegt ha scritto:

Quoted 8 lines

You might want to add this to your local.conf

TERMCMD = "${SCREEN_TERMCMD}"
TERMCMDRUN = "${SCREEN_TERMCMDRUN}"

devshell will open in a new screen session, witch you can attach to manually.

Siebren,
thank you for answering.
I am using a remote ssh connection to the OE development server and I use screen package inside it.
I tried adding your lines and now the build stops here

NOTE: package bluez-utils-3.36-r5: task do_devshell: started

but nothing happens.

Are you using this with the same conditions (remote ssh + screen) or locally?

/marco

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel