Debian Developers - Shell variable

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > May 2005 > Shell variable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Shell variable
Adrian Mastronardi

2005-05-27, 8:48 pm

Hi,
I'm creating a package for rnamotif. It has some force field data
files that as they are architecture independent I'm putting them into
/usr/share/rnamotif/enfdata.

I need to setup an shell variable:
ENFDATA=3D/usr/share/rnamotif/enfdata/
=20
How must I do it? Shall I setup it somewhere or ask end user to setup itsel=
f?
Debian policy 9.9 isn't clear enough for me

Thanks, Adrian.
sean finney

2005-05-27, 8:48 pm

hi,

On Sat, May 28, 2005 at 01:19:05AM +0100, Adrian Mastronardi wrote:
> I need to setup an shell variable:
> ENFDATA=/usr/share/rnamotif/enfdata/


according to debian policy, programs must not have to rely on the
existence of environment variables. what you should probably do is
hard-code into the applications that need this variable a default
location of /usr/share/rnamotif/enfdata/, and then allow the user to
override this value via the same environment variable.


sean

--

Nikita V. Youshchenko

2005-05-28, 2:48 am



> hi,
>
> On Sat, May 28, 2005 at 01:19:05AM +0100, Adrian Mastronardi wrote:
>
> according to debian policy, programs must not have to rely on the
> existence of environment variables. what you should probably do is
> hard-code into the applications that need this variable a default
> location of /usr/share/rnamotif/enfdata/, and then allow the user to
> override this value via the same environment variable.
>


Alternatively, you may install a wrapper that sources some configuration
file in /etc and then execs the main binary.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Wouter Verhelst

2005-05-28, 5:49 pm

On Fri, May 27, 2005 at 09:14:45PM -0400, sean finney wrote:
> hi,
>
> On Sat, May 28, 2005 at 01:19:05AM +0100, Adrian Mastronardi wrote:
>
> according to debian policy, programs must not have to rely on the
> existence of environment variables. what you should probably do is
> hard-code into the applications that need this variable a default
> location of /usr/share/rnamotif/enfdata/, and then allow the user to
> override this value via the same environment variable.


.... and if that isn't possible (e.g., you're packaging something which
will go into non-free), then you need to use a wrapper script.

--
The amount of time between slipping on the peel and landing on the
pavement is precisely one bananosecond


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com