Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nano errors FIXED!!!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Wed Mar 16, 2005 7:11 pm    Post subject: nano errors FIXED!!! Reply with quote

Help needed with nano!

I've been messing around with font stuff on my system and now I've got nano going bonkers. I tried to disable xfs, removed it from autoload and added -font-server to USE, thinking I'd see the effects of manually setting font scale and directories. I did an emerge -atvD --newuse world, Then a rebuild. I first noticed my nano problems after an emerge -atvuD world which failed on net-libs/linc-1.0.3. Most of the update had finished, so I manually emerged the last few packages. linc was listed as a depend for oooffice, but did some googling and looked like it's not really needed, so I just unmerged linc. Everything seemed to be working well until I rebooted the computer, then X wouldn't start, failing to find fixed font. I changed some font settings, to no avail, so I went to edit make.conf again and discovered nano was not working correctly. I rebooted into a stable linux and edited USE back for +font-server, added xfs back to startup, and also changed locales back to default. Then when I rebooted into my setup I emerged freetype again, did another --newuse world and another revdep-rebuild. That fixed X which seems to be working fine. But nano is still borked, from either CLI or GUI. Emerge -eatv nano does not help. I do not have a ~/.nanorc file or a /root/.nanorc. The /etc/nanorc file is beyound my ability to evaluate, but as far as I know has not been changed. I tried unmerge nano; then emerge nano && emerge -e system and revdep-rebuild, and still the same. So, I've like run out of ideas on where to look. Any suggestions would be much appreciated.

Here is an example of what a nano session looks like typing this at the keyboard:
Code:
# nano -w test.txt
test<crtl-o><return><crtl-x>
# cat test.txt


This is displayed during the text entry:

Code:
tget_translated_kbinput(): kbinput = 101, seq = 0, escapes = 0, ascii_digits = 0, retval = 101
                                   get_translated_kbinput(): kbinput = 116, seq = 0, escapes =get_kbinput(): kbinput = 101, meta_key = 0, func_key = 0
                         get_kbinput(): kbinputeget_translated_kbinput(): kbinput = 115, seq = 0, escapes = 0, ascii_digits = 0, retval = 115
                                      get_kbinput(): kbinput = 115, meta_key = 0, func_key = 0
                                                                                              sget_translated_kbinput(): kbinput = 116, seq = 0, escapes = 0, ascii_digits = 0, retval = 116
                                                                                     get_kbinput(): kbinput = 116, meta_key = 0, func_key = 0
                                      t


<then this is displayed after nano closes>
Code:
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
...... <note: a whole bunch of lines just like these were deleted for brevity>
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
parse_rcfile(): Read a comment
Main: set up windows
delete_node(): free'd a node, YAY!
delete_node(): free'd last node.
delete_opennode(): free'd last node.


This is displayed by cat:

Code:
# cat /home/daniel/test.txt
test


Note that the file was saved correctly. Now, this is impossible to use, because any key press generates similar code, and they can be anywhere, particularly when you press like an arrow key. So you can't tell where you are in the file, and the pars/node stuff is certainly unusual. It all looks like fragments of sorce code are being displayed?

Let me know if you'd like to see any other files posted here: Here is emerge --info:

Code:
daniel etc # emerge --info
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 16 2005, 01:05:44)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.mirrors.tds.net/gentoo http://gentoo.netnitco.net"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups curl cvs debug doc dvd emboss encode esd fam font-server foomaticdb fortran gdbm gif gimpprint gnome gpm gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls offensive oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb xml2 xmms xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY


Thanks in advance:


danny


Last edited by southerngentooman on Thu Mar 17, 2005 4:58 am; edited 1 time in total
Back to top
View user's profile Send private message
Timberwolves
n00b
n00b


Joined: 27 Dec 2004
Posts: 18
Location: Texas

PostPosted: Thu Mar 17, 2005 3:13 am    Post subject: Reply with quote

Does you /etc/nanorc contain any lines that don't start with a # if so please post them.
Back to top
View user's profile Send private message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Thu Mar 17, 2005 4:03 am    Post subject: Reply with quote

It did, but I have since copied nanorc from another partition which is all commented out. This didn't help.



thanxs,

danny
Back to top
View user's profile Send private message
southerngentooman
n00b
n00b


Joined: 26 Jan 2005
Posts: 35

PostPosted: Thu Mar 17, 2005 4:57 am    Post subject: nano errors FIXED!!! Reply with quote

Problem Solved!

Apparently, nano-1.3.5 borks out if you have the debug use flag set. It would seem the ebuild needs to set -DEBUG.

Anyway, I ran:
Code:

USE="-debug" emerge -atv nano


And it's working fine again.

danny
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum