HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • ← Previous Ticket
  • Back to Query
  • Next Ticket →

Ticket #222 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

OptionalPackage should store data in B_USER_SETTINGS_DIRECTORY instead of $HOME

Reported by: siarzhuk Owned by: siarzhuk
Priority: normal Milestone: Haiku Optional Packages
Component: app-editors/vim Version:
Severity: normal Keywords:
Cc:

Description

[This is a mirror bug for  http://dev.haiku-os.org/ticket/4646]

Quote:


It seems as though some packages like BeZilla? and subversion have been patched to use B_USER_SETTINGS_DIRECTORY to store their configuration. Other packages like cvs, less, bash, vim, and others are still using $HOME to store things. It would be nice to clean these up and have it consistent.


Looks like we should use corresponding option during call of configure for package build.

Change History

comment:1 Changed 6 years ago by siarzhuk

  • Owner changed from scottmc to siarzhuk

comment:2 follow-up: ↓ 5 Changed 6 years ago by scottmc

I this this may also affect ssh, it create's a .ssh file in home instead of home/config/settings IIRC. Keep track of which ones you fix for this, as that might become examples of how to fix this for future ports.

comment:3 in reply to: ↑ description ; follow-up: ↓ 4 Changed 6 years ago by andreasf

Replying to siarzhuk:

Looks like we should use corresponding option during call of configure for package build.

Beware that that's not the same thing.

It can serve as an easy interim solution. But it does hide the real problem and would need to be tracked per Port.

comment:4 in reply to: ↑ 3 Changed 6 years ago by siarzhuk

Replying to andreasf:

Replying to siarzhuk:

Looks like we should use corresponding option during call of configure for package build.

Beware that that's not the same thing.

It can serve as an easy interim solution. But it does hide the real problem and would need to be tracked per Port.

I have checked some minutes ago - there are no such option for VIM configure script. So I have to dig into sources anyway. ;-)

comment:5 in reply to: ↑ 2 Changed 6 years ago by siarzhuk

Replying to scottmc:

I this this may also affect ssh, it create's a .ssh file in home instead of home/config/settings IIRC. Keep track of which ones you fix for this, as that might become examples of how to fix this for future ports.

Just to clarify: I have opened this ticket to split the task of fixing vim settings behavior because I maintain the VIM port for Haiku at the moment. I found such "generic" (meant for all ports) request in original ticket hard to handle. So just I got my part of the whole task. ;-)

Of course I'll share the changes required for correct settings support in vim under Haiku. But I'm afraid they will be specific and not usable for other applications. :-\ And as I have already note a comment above - vim configure script do not allow to change the default behavior of this functionality. So my way will be not so simple. :-|

comment:6 Changed 5 years ago by scottmc

  • Milestone set to Haiku Optional Packages

comment:7 Changed 5 years ago by siarzhuk

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r770

Following changes were made:

$HOME/.vimrc -> $BE_USER_SETTINGS/vim/vimrc
$HOME/.gvimrc -> $BE_USER_SETTINGS/vim/gvimrc
$HOME/.viminfo -> $BE_USER_SETTINGS/vim/viminfo

My part of work is done with it. If some other packages still trashing the $HOME directory with dot-files - please reopen this ticked and assign it to next "victim". ;-)

By the way: mentioned -r1a2 package must be build as gcc2 one or as gcc4?

comment:8 Changed 5 years ago by scottmc

for vim I think we want both a gcc2 and a gcc4 build.

Note: See TracTickets for help on using tickets.

Download in other formats:

  • Comma-delimited Text
  • Tab-delimited Text
  • RSS Feed

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/