If ncurses is compiled with the 'tinfo' USE flag, the terminal output of joe gets corrupted when scrolling and makes it unusable. In my setup the ncurses 'tinfo' flag is required by the CUDA debugger. Recompiling joe didn't help. Recompiling ncurses without 'tinfo' USE flag restores normal behavior of joe. Affects all versions of joe (3.7-4.1). Restricting ncurses:5 to use tinfo only pulls in ncurses:0 with tinfo also.
I cannot reproduce this problem (and yes, I have ncurses compiled with tinfo USE flag being enabled) Can you please describe in what environment you have this problem? What shell are you using? What kind of terminal? Also please post the output of "emerge --info" to this bug. Furthermore please try with joe-4.2 which I added to portage in order to have the latest release for testing ready.
No difference with joe-4.2. Actually the terminal gets f'ed up only after recompiling joe after ncurses also. emerge --info: Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0, gcc-5.3.0, glibc-2.21-r2, 4.4.6 x86_64) ================================================================= System uname: Linux-4.4.6-x86_64-Intel-R-_Core-TM-_i7-4960X_CPU_@_3.60GHz-with-gentoo-2.2 KiB Mem: 32960216 total, 15430368 free KiB Swap: 16778236 total, 16778236 free Timestamp of repository gentoo: Fri, 08 Apr 2016 14:45:01 +0000 sh bash 4.3_p42-r1 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.3_p42-r1::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo dev-util/ccache: 3.1.9-r4::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.21-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://gentoo.digadd.de/gentoo-portage priority: -1000 crossdev location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA FraunhoferFDK Intel-SDP PUEL dlj-1.1 cadsoft IBM-J1.6 RTCW-ETEULA googleearth AdobeFlash-11.x Nero-AAC-EULA Oracle-BCLA-JavaSE NVIDIA-CUDA ut2003 Q3AEULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/maven-bin-3.3/conf /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=12 --load-average=11.95" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg candy ccache2 cgroup config-protect-if-modified distcc2 distlocks ebuild-locks fixlafiles installsources merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://gentoo.digadd.de/gentoo http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="--jobs=12 --load-average=11.95" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="7zip R X a52 aac aacplus accessibility acl acpi aes aio akonadi alsa amd64 amr asf asm aspell audacious audio audiofile avx berkdb bluray bookmarks boost bzip2 c++ c++0x cairo caps cdda cddb cdio cdparanoia cdr chm clucene cmake collada colorio consolekit cracklib cron crypt css cuda cups curl cxx d dbus dds dirac divx doc dri drm dts dvb dvbpsi dvd dvdr dvdread egl eigen emacs encode exceptions exif expat faac faad ffmpeg fftw firefox flac fluidsynth fontconfig fortran ftp fuse gcj gd gdbm geoloc gif git glade gles gles2 glew glib gltf glut gmp gnutls gpg gptfdisk gsm gstreamer gtk gtk3 handbook hddtemp hdf5 holidays http iconv icu id3tag imap imlib inotify introspection ipc ipv6 irda jack java java6 javascript jemalloc3 jit joystick jpeg jpeg2k json kde kdepim kerberos kmod kontact ladspa lame lapack lash latex lcms ldap libass libnotify libsamplerate libxml2 llvm lm_sensors logrotate lua lzma lzo mad matroska midi mikmod mmap mmx mmxext mng mod modplug mono moonlight mp3 mp4 mpeg mplayer mtp mysql ncurses ndof nfsv4 nls nptl nscd nsplugin nss numa nvidia ogg openal opencl opencv openexr opengl openimageio openmp openrc openssl opus pam pango pcap pcf pci pcre pda pdf perl phonon php pic plasma png pnm policykit popcnt posix postscript python qt3support qt4 quicktime rar readline real regexp rss rtmp rtsp ruby samba sasl schroedinger sdl seamonkey semantic-desktop sftp sharedmem shm shmem shout sid slang slp sndfile soap sockets sound sox speex sql sqlite sqlite3 sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 subversion svg symlink tcl tetex theora threads thumbnails tiff timidity tk toolame truetype twolame udev udisks unicode upnp upower usb v4l v4l2 vaapi vba vcd vdpau video vlc vorbis vpx wallpapers wav wayland webdav webgl webkit webm webp win32codecs wma wmf x264 x265 xattr xcb xcomposite xine xinerama xml xmlrpc xorg xpm xrandr xscreensaver xsl xulrunner xv xvid xvmc youtube zeroconf zip zlib" ABI_X86="32 64" ALSA_CARDS="ctxfi emu10k1 hda-intel" CALLIGRA_FEATURES="braindump flow karbon kexi krita plan sheets stage words" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse" KERNEL="linux" LINGUAS="en de" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php php-profiler profiler ruby webcommon websvccommon xml" OFED_DRIVERS="mlx4" OPENMPI_FABRICS="ofed" OPENMPI_OFED_FEATURES="rdmacm" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau nv radeon vesa" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Addendum: Terminal is KDE's Konsole.
I don't see the terminal corruption but I found today that joe fails to link against ncurses[tinfo]. I have a patch at hand and will a) apply it to latest available joe ebuild (4.3) b) send it to upstream for inclusion. Thanks for the report.
commit d3d7b6a3dfb8b5da150f290ce1e5b418e166aec5 Author: Lars Wendler <polynomial-c@gentoo.org> Date: Mon Sep 5 16:31:40 2016 app-editors/joe: Revbump to fix linking against sys-libs/ncurses[tinfo] Also get rid of remaining QA issues as pointed out by Soap__ again. This hopefully fixes bug #579172 as well. Package-Manager: portage-2.3.0 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> Please let us know if =app-editors/joe-4.3-r1 fixes your issues.
The new ebuild fails to compile very early: * Messages for package app-editors/joe-4.3-r1: * Failed Running aclocal ! * * Include in your bugreport the contents of: * * /tmp/portage/app-editors/joe-4.3-r1/temp/aclocal.out * ERROR: app-editors/joe-4.3-r1::gentoo failed (prepare phase): * Failed Running aclocal ! * * Call stack: * ebuild.sh, line 133: Called src_prepare * environment, line 1684: Called eautoreconf * environment, line 795: Called eaclocal * environment, line 589: Called autotools_run_tool '--at-m4flags' 'aclocal' * environment, line 548: Called die * The specific snippet of code: * die "Failed Running $1 !"; * * If you need support, post the output of `emerge --info '=app-editors/joe-4.3-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-editors/joe-4.3-r1::gentoo'`. * The complete build log is located at '/tmp/portage/app-editors/joe-4.3-r1/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-editors/joe-4.3-r1/temp/environment'. * Working directory: '/tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3/rc' * S: '/tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3' Log filet output: * Package: app-editors/joe-4.3-r1 * Repository: gentoo * Maintainer: amynka@gentoo.org emacs@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU xterm * FEATURES: installsources preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking joe-4.3.tar.gz to /tmp/portage/app-editors/joe-4.3-r1/work >>> Source unpacked in /tmp/portage/app-editors/joe-4.3-r1/work >>> Preparing source in /tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3 ... * Applying joe-4.3-tinfo.patch ... [ ok ] * Running eautoreconf in '/tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3/rc' ... grep: configure.??: No such file or directory grep: configure.??: No such file or directory grep: configure.??: No such file or directory grep: configure.??: No such file or directory grep: configure.??: No such file or directory grep: configure.??: No such file or directory * Running aclocal ... [ !! ] * Failed Running aclocal ! * * Include in your bugreport the contents of: * * /tmp/portage/app-editors/joe-4.3-r1/temp/aclocal.out * ERROR: app-editors/joe-4.3-r1::gentoo failed (prepare phase): * Failed Running aclocal ! * * Call stack: * ebuild.sh, line 133: Called src_prepare * environment, line 1684: Called eautoreconf * environment, line 795: Called eaclocal * environment, line 589: Called autotools_run_tool '--at-m4flags' 'aclocal' * environment, line 548: Called die * The specific snippet of code: * die "Failed Running $1 !"; * * If you need support, post the output of `emerge --info '=app-editors/joe-4.3-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-editors/joe-4.3-r1::gentoo'`. * The complete build log is located at '/tmp/portage/app-editors/joe-4.3-r1/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/app-editors/joe-4.3-r1/temp/environment'. * Working directory: '/tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3/rc' * S: '/tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3' ~
chrome ~ # cat /tmp/portage/app-editors/joe-4.3-r1/temp/aclocal.out ***** aclocal ***** ***** PWD: /tmp/portage/app-editors/joe-4.3-r1/work/joe-4.3/rc ***** aclocal aclocal-1.15: error: 'configure.ac' is required
Thanks again for the feedback. Should be fixed now. I didn't test with USE="xterm" which caused this bug to appear. Please try again and let us know if this is finally fixed for you.
joe works again as expected. No corrupted terminal. Bug can be closed. Thanks!