[Pkg-pascal-devel] fpc postinst & windres

Abou Al Montacir abou.almontacir at sfr.fr
Wed Sep 24 19:07:48 UTC 2014


Hi All,

On Tue, 2014-09-23 at 22:05 +0200, Paul Gevers wrote:
> Hi all,
> 
> I am working on the Dutch translation for the fpc debconf questions and
> I am proposing the following changes:
> 
> - Move the string for "Select manually" to the templates, so that it can
> properly be translated. (Some translations already have it translated in
> the paragraph that mention it).
Yes makes sense

> - Don't code the string in the .config file  (it is currently DIFFERENT
> than the template thinks).
> 
> To achieve that, I propose the attached diff. Problem is, I am not 100%
> sure if ${VAR##bla} is understood in all shell implementations. Does
> anybody know?
Did you tested with dash? If that works then you can go as dash is
installed on any Debian system since wheezy.

> Also, it seems to me that the handling of the configuration file in
> fp-compiler.postinst is wrong. It changes the file unconditionally,
The user's changes are kept in the old version configuration file and
can always selected as the default alternative. So user's changes are
kept for the old compiler configuration. It may be hard that we try to
figure out what user changed and add them.
> while policy mandates that local changes should be honored. As debconf
> can not be trusted to store the latest manual changes to the
> configuration file, we need to process the file and tell debconf what
> the current value is. I haven't come up with a fix yet, but I remember
> there are tools (like ucf) that do these kind of things, so we (=I?)
> should investigate.
Maybe we can do easier.
If upgrading then don't touch configuration file, or try to apply the
diff between local and previous version to the new one.
If installing new compiler then write new file and let user choose his
old file with alternatives.

> Paul
> _______________________________________________
> Pkg-pascal-devel mailing list
> Pkg-pascal-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-pascal-devel




More information about the Pkg-pascal-devel mailing list