Fix for Eclipse Qemu debugV2
cover Fix for Eclipse Qemu debugV2
This patch fixes YOCTO #9362. The busybox resize utility was running on ssh connections from Eclipse and causing Eclipse to fail to start gdbserver.
Thanks go to Max Krummenacher <[email protected]> for suggesting a good solution to the serial/ssh connection issue in basefiles:etc/profile!
-Brian
The following changes since commit dfc016fbf13e62f7767edaf7abadf1d1b72680b2:
maintainers.inc: remove augeas (2016-08-04 20:56:11 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/eclipse-resize-fixup
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/eclipse-resize-fixup
bavery (1):
base-files: restrict resize to run on serial consoles only in profile
│·
recipes-core/base-files/base-files/profile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
--
1.9.1
PATCH 1/1 base-files: restrict resize to run on serial consoles only in profile │·
We don't need/wan't to run resize on an ssh connection. It's useless and it breaks the Eclipse SSH debug connection. So, we added a check.
YOCTO #9362
--- recipes-core/base-files/base-files/profile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
recipes-core/base-files/base-files/profile +4 -3
@@ -6,7 +6,7 @@ EDITOR="vi" # needed for packages like cron, git-commit test -z "$TERM" && TERM="vt100" # Basic terminal capab. For screen etc. if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then - TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html + TZ="UTC" # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html # for an explanation of how to set this to your local timezone. export TZ fi
@@ -29,10 +29,11 @@ if [ -d /etc/profile.d ]; then fi if [ -x /usr/bin/resize ];then - /usr/bin/resize >/dev/null + # Make sure we are on a serial console (i.e. the device used starts with /dev/tty), + # otherwise we confuse e.g. the eclipse launcher which tries do use ssh + test `tty | cut -c1-8` = "/dev/tty" && resize >/dev/null fi export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM umask 022 -
Signature · 1 line
1.9.1