[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Policy et variables d'environnements globales



Quoting Christian Perrier (Christian.Perrier@onera.fr):

> Quelle est la solution "policy-correct", à votre avis?

RTFM, monsieur bubulle :

(Debian policy)

10.9 Environment variables
A program must not depend on environment variables to get reasonable defaults.
(That's because these environment variables would have to be set in a system-wide configuration file like /etc/profile, which is not supported by all
shells.)

If a program usually depends on environment variables for its configuration,
the program should be changed to fall back to a reasonable default
configuration if these environment variables are not present.  If this cannot
be done easily (e.g., if the source code of a non-free program is not
available), the program must be replaced by a small `wrapper' shell script
which sets the environment variables if they are not already defined, and calls
the original program.

Donc :

1) regarder dans les sources si on peut mettre des défauts raisonnables
2) faire un wrapper sinon

Le 1), je veux bien, mais ça suppose qu'on soit compétent dans le langage
de développement du programme. Or ce n'est pas parce qu'on le package qu'on
l'est...:-)


-- 
Christian Perrier
ONERA/Département Réseau et Informatique Scientifique
+33 (0) 1 4673 4438 - +33 (0) 6 1016 9480
PGP/GnuPG Key ID 30C9348A (DSS)



Reply to: