proposal: standardized PREFIX handling

Jasper Huijsmans jasper at lunar-linux.org
Wed Mar 24 14:46:40 GMT 2004


On Wed, Mar 24, 2004 at 01:30:04PM +0100, Auke Kok wrote:
> Jasper Huijsmans wrote:
> 
> >We could have a dialog in lunar to set group locations:
> >
> > Leave empty for default
> >
> > GNOME [/usr             ] 
> > KDE   [/opt/lunar/kde   ]
> > XFCE  [/opt/lunar/xfce  ]
> > GAMES [/usr/games/      ]
> >
> 
> that would assume we declare the following _PREFIX's as defaults:
> 
> GNOME_PREFIX
>  KDE_PREFIX
> XFCE_PREFIX
> GAMES_PREFIX
> 
> they will go in /etc/lunar/config as they are system-wide defaults. the 
> local/config will override them of course.
> 
> question: do we want to declare these globally? this sounds bad to me 
> because a CORE CODE upgrade could mess up your _PREFIX's. I'd rather see 
> the following lines in a DETAILS file:
> 
>  MODULE_PREFIX=${GNOME_PREFIX:-$DEFAULT_PREFIX}
> 
> or for non-standard prefix'ed module:
> 
>  MODULE_PREFIX=${KDE_PREFIX:-/opt/lunar/kde}
> 
> this way a MOONBASE upgrade will change the prefixes, and the core code 
> stays the same!
> 

Ok, I agree.

> having a prefix-dialog box seems overactive, we already have 'lunar set' 
> right now, I just added it last week. With a good manual page it's all 
> you really need.
> 
> question: do we want to export PKG_CONFIG_PATH and relevant other 
> variables by *default* for all modules? it would be beneficial to do so, 
> since it reduces the stress on developers and module writers, but I can 
> imagine I'm overseeing something here.
> 

I don't think it can hurt and it can save us some trouble.

	Jasper



More information about the Lunar-dev mailing list