FS#20653 - [vi] default preserve directory

Attached to Project: Arch Linux
Opened by Mario Figueiredo (marfig) - Saturday, 28 August 2010, 23:23 GMT
Last edited by Stéphane Gaudreault (stephane) - Tuesday, 15 February 2011, 22:23 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Kieslich (tobias)
Architecture i686
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Vi default directory for preserved/recoverable buffers issued with :pre is set to /var/preserve. However this directory is not part of a normal Arch installation. Consequently the command fails.

Additional info:
* vi 050325-3

Steps to reproduce:
Assuming normal Arch installation, issue the command :pre from within vi.
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Tuesday, 15 February 2011, 22:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  vi-050325-4 in testing
Comment by Mario Figueiredo (marfig) - Saturday, 28 August 2010, 23:26 GMT
Severity is medium.
My apologies.
Comment by Stéphane Gaudreault (stephane) - Tuesday, 01 February 2011, 20:52 GMT
The /var/preserve directory is a legacy. Maybe we could use /var/lib/ex instead. According to the FHS this directory should be used for editor backup files and state.

@Tobias: This pkg is in the core rebuild list. If there is no objection, I will rebuild it with this change.
Comment by Stéphane Gaudreault (stephane) - Tuesday, 01 February 2011, 21:03 GMT
just realised that we use make PRESERVEDIR=/var/lib/ex, so I am rebuilding for this directory.
Comment by Stéphane Gaudreault (stephane) - Tuesday, 01 February 2011, 22:19 GMT
Here is a patch that should allows the :pre command to works with /var/lib/ex.

Loading...