FS#11473 - Texlive-core/bin: pacman leaves files in /opt/texlive
Attached to Project:
Pacman
Opened by Xyne (Xyne) - Saturday, 13 September 2008, 14:24 GMT
Last edited by Dan McGee (toofishes) - Saturday, 06 March 2010, 14:59 GMT
Opened by Xyne (Xyne) - Saturday, 13 September 2008, 14:24 GMT
Last edited by Dan McGee (toofishes) - Saturday, 06 March 2010, 14:59 GMT
|
Details
Description:
The latest texlive-core pkg (texlive-core 2008.10429-1) now installs to /usr/ instead of /opt/. After installation, the only files under /opt/texlive are pacsave files and a log file. These should be removed /opt/texlive/ during this upgrade, moving any necessary files to the appropriate location while doing so. |
This task depends upon
Closed by Dan McGee (toofishes)
Saturday, 06 March 2010, 14:59 GMT
Reason for closing: Won't implement
Additional comments about closing: See comments; it just doesn't seem safe enough or common enough to potentially screw things up.
Saturday, 06 March 2010, 14:59 GMT
Reason for closing: Won't implement
Additional comments about closing: See comments; it just doesn't seem safe enough or common enough to potentially screw things up.
Sorry.
The texlive package should remove directories from old installations and should not generate pacsave files in directories to which it does not install. I'm not sure if this is a pacman issue or a texlive-core issue (a matter of perspective I suppose), but in either case no package completely handled by pacman should leave files anywhere outside the home directory when uninstalled.
If the hierarchy was left because the folders were not empty but the only thing in them were pacsave files, it's obviously a pacman issue. If pacman tried to remove them (or checked if they were empty), it should be easy to make it spit out a "tried to remove /path/to/whatever/ but the directory was not empty" warning.
Would it really be that hard then for it to check if the only file in the directory is a .pacsave file and to display a message without removing the .pacsave file and directory?
E.g. ===>Warning: /path/to/dir/ only contains .pacsave files
Also, just to clarify my tone, it's not "zomfg why can't joo do this!!!!1111", it's "hey, hidden clutter sucks, is there a better way to handle this?". I just don't like the idea that pacman forgets about files and folders that it's created. An alternative would be to keep track of pacsave files somewhere other than the log, but I don't know how much overhead that would lead to, so I leave that as a fleeting thought.
As soon as you start mucking with the normal process and deleting files you shouldn't, you are bound to mess up. I'd rather not royally screw someones system over.