* [PATCH 0/1] [krogoth] Fix for Eclipse Qemu debug
@ 2016-08-11 22:29 bavery
2016-08-11 22:29 ` [PATCH 1/1] base-files: restrict resize to run on serial consoles only in profile │· bavery
0 siblings, 1 reply; 2+ messages in thread
From: bavery @ 2016-08-11 22:29 UTC (permalink / raw)
To: openembedded-core
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 <max.oss.09@gmail.com> for suggesting a good solution
to the serial/ssh connection issue in basefiles:etc/profile!
This patch has already been applied to master commitish:
5aca5bc9a13d9d4a477cfd2d04edbcc8a8a0e412
-Brian
The following changes since commit f5da2a5913319ad6ac2141438ba1aa17576326ab:
build-appliance-image: Update to krogoth head revision (2016-08-01 15:48:24 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib bavery/krogoth/eclipse-resize-fixup
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/krogoth/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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] base-files: restrict resize to run on serial consoles only in profile │·
2016-08-11 22:29 [PATCH 0/1] [krogoth] Fix for Eclipse Qemu debug bavery
@ 2016-08-11 22:29 ` bavery
0 siblings, 0 replies; 2+ messages in thread
From: bavery @ 2016-08-11 22:29 UTC (permalink / raw)
To: openembedded-core
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
Signed-off-by: bavery <brian.avery@intel.com>
---
recipes-core/base-files/base-files/profile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/recipes-core/base-files/base-files/profile b/recipes-core/base-files/base-files/profile
index e98e786..ba1b9ba 100644
--- a/recipes-core/base-files/base-files/profile
+++ b/recipes-core/base-files/base-files/profile
@@ -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
-
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-11 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 22:29 [PATCH 0/1] [krogoth] Fix for Eclipse Qemu debug bavery
2016-08-11 22:29 ` [PATCH 1/1] base-files: restrict resize to run on serial consoles only in profile │· bavery
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox