proposal: standardized PREFIX handling

Auke Kok sofar at lunar-linux.org
Wed Mar 24 13:30:04 GMT 2004


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!

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.

sofar


/me just linned a few modules with MODULE_PREFIX=/somewhere/else =^D


More information about the Lunar-dev mailing list