Bug 13731 - [integrated to 0.11-rc] ncurses wipes /usr/share/terminfo/r
: [integrated to 0.11-rc] ncurses wipes /usr/share/terminfo/r
Status: CLOSED FIXED
Product: Codex
Classification: Unclassified
Component: libs
: stable grimoire
: All Linux
: P2 normal
Assigned To: Grimoire Bug List
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-20 10:34 UTC by Eric Sandall
Modified: 2007-06-15 17:18 UTC (History)
1 user (show)

See Also:
svn: fixed_in_lesser_branch+
gsherwood: integrate_to_stable‑rc_grimoire+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Sandall 2007-04-20 10:34:46 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?
Comment 1 Jaka Kranjc 2007-04-20 11:18:13 UTC
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.
Comment 2 Arwed v. Merkatz 2007-04-20 12:22:48 UTC
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.
Comment 3 Eric Sandall 2007-05-15 00:08:44 UTC
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.    #
  ############################################################################
Comment 4 Jaka Kranjc 2007-06-09 13:10:16 UTC
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 ...
Comment 5 Jaka Kranjc 2007-06-10 04:35:46 UTC
fixed in test 0.12 with
550998dd74d75e9700fa546b825324c80ef0c716
Comment 6 Jaka Kranjc 2007-06-10 05:15:10 UTC
integrated
Comment 7 Eric Sandall 2007-06-15 17:18:28 UTC
Closing, now fixed in the stable-0.11 tarball.