Bugzilla – Bug 13731
[integrated to 0.11-rc] ncurses wipes /usr/share/terminfo/r
Last modified: 2007-06-15 17:18:28 UTC
After installing rxvt-unicode, I have the following additional file: /usr/share/terminfo/r/rxvt-unicode After ncurses installs (say during a rebuild), that file is now gone and I receive the following error when runny most commands (clear, sorcery, etc.) in an urxvt terminal: WARNING: terminal is not fully functional or 'rxvt-unicode': unknown terminal type. Would a PRE_INSTALL/FINAL setup that backs up and restores /usr/share/terminfo/r/rxvt-unicode if it exists be the correct solution, or try and fix ncurses?
if it deletes everything in /usr/share/terminfo then some other terminals may have a similar problem. So perhaps we should backup everything in there not owned by ncurses (scry says also eterm, screen, smgl-fhs and iterm use the dir). This backup solution is probably easier and less volatile than sediting a makefile. But this is just an uninvolved guess.
I don't really like backup-and-restore hacks in spells. Fixing ncurses not to delete random data during install sounds the saner solution to me. Another clean solution would be triggering a rxvt-unicode cast, but that's somewhat overkill for getting a missing file back.
in ncurses/INSTALL: ############################################################################ # CAVEAT EMPTOR: `install.data' run as root will NUKE any existing # # terminfo database. If you have any custom or unusual entries SAVE them # # before you install ncurses. I have a file called terminfo.custom for # # this purpose. Don't forget to run tic on the file once you're done. # ############################################################################
it is actually uninstall.data that nukes it. It should be safe to exclude, since the delete happens in INSTALL and the spell was already gone before. Working on it ...
fixed in test 0.12 with 550998dd74d75e9700fa546b825324c80ef0c716
integrated
Closing, now fixed in the stable-0.11 tarball.