When app-editors/nvi-1.81.5-r5 is built against sys-libs/db-4.3.29-r2, nvi has
problems reading long lines within files. I ran across this when editing
/etc/make.conf. nvi warned about not being able to read the long USE="blah
blah,etc." line, but my first keystroke was too quick and I didn't see the
warning until later when reproducing the issue. I was able to skip past the
unreadable line, edit the part I want and then save. Well, nvi truncated
everything after the example line:
#USE="X gtk gnome -alsa"
Effectively wiping out the /etc/make.conf! Luckily I'm a good boy so I had a
backup from which to restore /etc/make.conf.
Revering to sys-libs/db-4.2.52-p4-r2, removing sys-libs/db-4.3* and rebuilding
nvi restores normal functionality. I have reproduced this problem on (5) x86
machines.
emerge --info from one of them:
Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6-hardenednossp, glibc-2.3.6-r5,
2.6.18-hardened-r6-2007032701 i686)
=================================================================
System uname: 2.6.18-hardened-r6-2007032701 i686 Pentium II (Deschutes)
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 12 Apr 2007 17:50:01 +0000
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -fomit-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium2 -O2 -fomit-frame-pointer -fno-ident -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict userfetch userpriv
usersandbox"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress
--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="a52 aalib acc acl adns apache2 apm audiofile avi bash-completion bcmath
berkdb bluetooth bzip2 cairo calendar caps cdb cdr cracklib crypt cscope ctype
cups curl curlwrappers dba dbm dbus dbx dedicated dio dvd dvdr dvdread encode
ethereal exif expat fastcgi ffmpeg flac flatfile foomaticdb fortran ftp gcj gd
gdbm geoip ggi gif ginac gmp gnutls gpm gps guile hal hardened howl iconv
ieee1394 imap imlib ipv6 javascript jikes jpeg lapack ldap lesstif libcaca
libg++ libgda libwww lm_sensors mad maildir mailwrapper matroska mbox mcal mcve
memlimit mhash midi mikmod mime mmap mmx mng mozilla mp3 mpeg mpi msession
mssql mysql mysqli ncurses netboot netcdf nis nls nptl nptlonly offensive ofx
ogg openal pam pcntl pcre pdf perl php pic png portaudio posix ppds python
radius readline recode samba sasl session sharedext sharedmem shorten simplexml
slang slp sndfile snmp soap sockets socks5 speex spell spl sqlite ssl svga
sysvipc szip tcl tcpd theora threads tidy tiff tokenizer truetype unicode usb
vhosts vorbis wddx wifi win32codecs wmf x86 xface xml xmlrpc xorg xsl yaz zlib"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route
share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" USERLAND="GNU"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Reproducible: Always
Steps to Reproduce:
1. emerge sys-libs/db-4.3*
2. rebuild app-editors/nvi
Actual Results:
very bad awful things
Expected Results:
editing files makes Gordon happy