Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-12-20 Thread Frans Pop
On Tuesday 03 October 2006 07:16, Christian Perrier wrote:
 While testing D-I with the install of the desktop task in French
 language, I have noticed that there are several successive prompts for
 dictionaries settings:
[...]
 It seems that each time a new dictionary is added (by tasksel
 settings), the user is then prompted at high priority.
[...]
 Is there something we can do about this...hopefully *before* Etch ?

JFYI

This issue was finally traced to a bug in dpkg-preconfigure in the debconf 
package. Joey has just fixed it and uploaded a new version of debconf, so 
hopefully we will now be rid of this issue.

See #401876 for the gory details.

As there originally was a combination of issues and the cause was hidden 
very deeply and the issue was not always reproducible, it's been a real 
pain and slow going to trace this.
Thanks very much to the people who have contributed to tracing and solving 
the issue and especially to Agustin for his patience and help.

Cheers,
FJP


pgplF74QE7f2Q.pgp
Description: PGP signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-12-04 Thread Agustin Martin
On Sat, Dec 02, 2006 at 09:39:50PM +0100, Frans Pop wrote:

 Attached a partial log of an installation session. Note that no questions 
 were actually asked. I cannot seem to reproduce that behavior.
 However, I still get British as default even though the locale is en_US 
 (in d-i language was English and country Netherlands (NL)).
 
 I notice that during the first bit of configuration iamerican is not 
 mentioned at all.
 Could it be that you need to strip the postfix for the charset?
 In our experience you need to strip everything after both . and @.

Thanks for pointing out this, you are right. Only @.* is currently stripped.
For that reason, 'british' is selected because 'en_AU' is found first as a
possibility for 'en', so iamerican is not tried. Exact match failed before
because of the dot+charset.

Fixed dictionaries-common package (0.70.10) uploaded to sid this morning
with medium urgency.

 Question
 Am I correct that you now look first at the locale and only then at 
 language and country from the installer?

Yes, LANG is looked first if /etc/default/locale is there.

 Hope this helps. I can provide a full log if you want it.

No need for that (I hope), thanks for the feedback.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-12-02 Thread Frans Pop
Hi again Agustin,

On Friday 24 November 2006 19:47, Agustin Martin wrote:
 Uploaded a new dictionaries-common package that will provide a bit more
 info when configuring dicts: debconf question, question priority and
 old and new debconf choices for question.

Thanks for that.
Attached a partial log of an installation session. Note that no questions 
were actually asked. I cannot seem to reproduce that behavior.
However, I still get British as default even though the locale is en_US 
(in d-i language was English and country Netherlands (NL)).

I notice that during the first bit of configuration iamerican is not 
mentioned at all.
Could it be that you need to strip the postfix for the charset?
In our experience you need to strip everything after both . and @.

Question
Am I correct that you now look first at the locale and only then at 
language and country from the installer?

Hope this helps. I can provide a full log if you want it.

Cheers,
FJP

Nov 29 20:38:36 in-target: Preconfiguring packages ...
Nov 29 20:38:37 in-target: Non-existant langkey en_US.UTF-8
Nov 29 20:38:37 in-target: Non-existant langkey en_US.UTF-8:1
Nov 29 20:38:37 in-target: Non-existant langkey en
Nov 29 20:38:37 in-target: Non-existant langkey en:1
Nov 29 20:38:37 in-target: Trying langkey en_AU
Nov 29 20:38:37 in-target:  Trying package ibritish
Nov 29 20:38:37 in-target: * Guessed [d-i]-(ispell,en,US.UTF-8)
Nov 29 20:38:37 in-target:   dictionaries-common/default-ispell: errorcode: 0; priority: medium
Nov 29 20:38:37 in-target:   Old:[unset] -- New:[british (British English)]
Nov 29 20:38:37 in-target: Not tried: bg, ca, cs, da, de, de:1, de_CH, en_CA, en_CA:1, en_GB, en_US, en_US:1, eo, es, fi, fo, fr, ga, gd, gl, gv, hu, it, lt, nb, nl, nn, pl, pt, pt_BR, ru, sv, tl, uk
Nov 29 20:38:37 in-target: ---
Nov 29 20:38:37 in-target: Non-existant langkey en_US.UTF-8
Nov 29 20:38:37 in-target: Non-existant langkey en_US.UTF-8:1
Nov 29 20:38:37 in-target: Non-existant langkey en
Nov 29 20:38:37 in-target: Non-existant langkey en:1
Nov 29 20:38:37 in-target: Trying langkey en_AU
Nov 29 20:38:37 in-target:  Trying package wbritish
Nov 29 20:38:37 in-target:  Trying package wbritish-large
Nov 29 20:38:37 in-target:  Trying package wbritish-medium
Nov 29 20:38:37 in-target:  Trying package wbritish-small
Nov 29 20:38:37 in-target:  Trying package wbritish-gut
Nov 29 20:38:37 in-target: Trying langkey en_CA
Nov 29 20:38:37 in-target:  Trying package wcanadian
Nov 29 20:38:37 in-target:  Trying package wcanadian-large
Nov 29 20:38:37 in-target:  Trying package wcanadian-medium
Nov 29 20:38:37 in-target:  Trying package wcanadian-small
Nov 29 20:38:37 in-target:  Trying package wcanadian-gut
Nov 29 20:38:37 in-target: Trying langkey en_CA:1
Nov 29 20:38:37 in-target:  Trying package wamerican
Nov 29 20:38:37 in-target: * Guessed [d-i]-(wordlist,en,US.UTF-8)
Nov 29 20:38:37 in-target:   dictionaries-common/default-wordlist: errorcode: 0; priority: medium
Nov 29 20:38:37 in-target:   Old:[unset] -- New:[american (American English)]
Nov 29 20:38:37 in-target: Not tried: bg, ca, cs, da, de, de:1, de_CH, en_GB, en_US, en_US:1, eo, es, fi, fo, fr, ga, gd, gl, gv, hu, it, lt, nb, nl, nn, pl, pt, pt_BR, ru, sv, tl, uk
Nov 29 20:38:37 in-target: ---
Nov 29 20:38:37 in-target: ** dictionaries-common: ispell, medium, dictionaries-common/default-ispell
Nov 29 20:38:37 in-target: new:[american (American English), british (British English)]
Nov 29 20:38:37 in-target: old:[]
Nov 29 20:38:37 debconf: Obsolete command TITLE Dictionaries-common: Ispell dictionary called
Nov 29 20:38:37 in-target: ** dictionaries-common: wordlist, medium, dictionaries-common/default-wordlist
Nov 29 20:38:37 in-target: new:[american (American English)]
Nov 29 20:38:37 in-target: old:[]
[...]
Nov 29 20:39:32 in-target: Setting up dictionaries-common (0.70.9) ...
Nov 29 20:39:32 in-target: ** dictionaries-common: ispell, critical, dictionaries-common/default-ispell
Nov 29 20:39:32 in-target: new:[american (American English), british (British English)]
Nov 29 20:39:32 in-target: old:[american (American English), british (British English)]
Nov 29 20:39:32 in-target: ** dictionaries-common: wordlist, critical, dictionaries-common/default-wordlist
Nov 29 20:39:32 in-target: new:[american (American English)]
Nov 29 20:39:32 in-target: old:[american (American English)]
[...]
Nov 29 20:40:09 in-target: Setting up wamerican (6-2) ...
Nov 29 20:40:09 in-target: ** dictionaries-common: wordlist, critical, dictionaries-common/default-wordlist
Nov 29 20:40:09 in-target: new:[american (American English)]
Nov 29 20:40:09 in-target: old:[american (American English)]
[...]
Nov 29 20:40:10 in-target: Setting up ispell (3.1.20.0-4.3) ...
Nov 29 20:40:10 in-target: Setting up ibritish (3.1.20.0-4.3) ...
Nov 29 20:40:11 in-target: ** dictionaries-common: ispell, critical, dictionaries-common/default-ispell
Nov 29 20:40:11 in-target: new:[american (American English), british (British English)]
Nov 29 

Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-11-24 Thread Agustin Martin
On Thu, Nov 23, 2006 at 07:56:28PM +0100, Agustin Martin wrote:
 On Thu, Nov 23, 2006 at 06:37:01PM +0100, Frans Pop wrote:
  Can you provide us with a version of the relevant package(s) (probably 
  only dictionaries-common) that dump some debugging output somewhere 
  (stderr will work)?
  I feel we are going around in circles on this issue and having a version 
  for testing that _shows_ what is happening would probably allow us to do 
  some real tracing instead of speculating.
 
 Current dictionaries-common package already provides info to STDERR during
 the first installation (and preconfiguration) if envvar
 
 DICT_COMMON_DEBUG
 
 is set. It is however only about the process of default dict selection, but
 if no preconfiguration is happenning, that info will not be shown. No info
 is currently shown for individual dicts install, but I can try adding some
 details about old and new choices if needed.

Uploaded a new dictionaries-common package that will provide a bit more info
when configuring dicts: debconf question, question priority and old and new
debconf choices for question.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-11-24 Thread Agustin Martin
Christian Perrier wrote
 I wrote
 How do you manage to install both at the same time?
 
 triggerred by tasksel as it seems

strange,

$ dpkg-source -x tasksel_2.58.dsc  grep -R ifrench tasksel-2.58/*
dpkg-source: extracting tasksel in tasksel-2.58
dpkg-source: unpacking tasksel_2.58.tar.gz
tasksel-2.58/tasks/french: ifrench-gut

No trace of ifrench there.

 More things, I remember to have been prompted when apt-utils was not
 installed and so, no pre-configuration was possible or, when due to
 space limitation in the /var partition some sort of debconf database
 corruption happened.
 
 No way this can be a limitation in /var. This install was done in a
 6GB partition and I was only using one partition.

Another possibility that can be discarded. 

However, I still cannot reproduce the problem,

I carried out an installation in a 4000M qemu image, from
debian-testing-i386-binary-1.iso RC1 DVD image, single partition + swap,
french locales, even french keyboard, selecting

Environnment graphique ... (Desktop system)
Système standard   (Standard system)

and everything installed as expected with no questions at all from the
dictionaries-common side.

Furthermore, ifrench is not installed, only ifrench-gut, as expected from
the tasksel contents.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-11-23 Thread Christian Perrier
Quoting Christian Perrier ([EMAIL PROTECTED]):
 While testing D-I with the install of the desktop task in French
 language, I have noticed that there are several successive prompts for
 dictionaries settings:
 
 -first choose between American English and handle symlinks youself
 -then choose between American English, francais and handle symlinks 
 youself
 -then choose between francais, francais GUTenberg and handle symlinks 
 youself
 -then choose between ameriucan English, francais, francais GUTenberg 
 and handle symlinks youself
 -finally choose between american English, british, francais, francais 
 GUTenberg and handle symlinks youself


I just installed a fresh system today, with D-I RC1 businesscard. The
install was a testing install, choosing desktop system and standard
system.

The install was done in French with all default settings.

D-I *does not* use localization config.

And I still got prompted five times about dictionaries.

This problem will undoubtfully lead to very bad reviews of D-I by
French users if not solved.




signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-11-23 Thread Frans Pop
On Thursday 23 November 2006 18:05, Agustin Martin wrote:
 More things, I remember to have been prompted when apt-utils was not
 installed and so, no pre-configuration was possible or, when due to
 space limitation in the /var partition some sort of debconf database
 corruption happened.

 So, does the problem appear at the pre-configure or at the postinst
 stage? Do other questions appear at the pre-configure stage?

Can you provide us with a version of the relevant package(s) (probably 
only dictionaries-common) that dump some debugging output somewhere 
(stderr will work)?
I feel we are going around in circles on this issue and having a version 
for testing that _shows_ what is happening would probably allow us to do 
some real tracing instead of speculating.

Cheers,
FJP


pgprpobbahbh8.pgp
Description: PGP signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-11-23 Thread Christian Perrier
 How do you manage to install both at the same time?

triggerred by tasksel as it seems

 
 More things, I remember to have been prompted when apt-utils was not
 installed and so, no pre-configuration was possible or, when due to
 space limitation in the /var partition some sort of debconf database
 corruption happened.

No way this can be a limitation in /var. This install was done in a
6GB partition and I was only using one partition.




signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-11-23 Thread Agustin Martin
On Thu, Nov 23, 2006 at 06:37:01PM +0100, Frans Pop wrote:
 On Thursday 23 November 2006 18:05, Agustin Martin wrote:
  More things, I remember to have been prompted when apt-utils was not
  installed and so, no pre-configuration was possible or, when due to
  space limitation in the /var partition some sort of debconf database
  corruption happened.
 
  So, does the problem appear at the pre-configure or at the postinst
  stage? Do other questions appear at the pre-configure stage?
 
 Can you provide us with a version of the relevant package(s) (probably 
 only dictionaries-common) that dump some debugging output somewhere 
 (stderr will work)?
 I feel we are going around in circles on this issue and having a version 
 for testing that _shows_ what is happening would probably allow us to do 
 some real tracing instead of speculating.

Current dictionaries-common package already provides info to STDERR during
the first installation (and preconfiguration) if envvar

DICT_COMMON_DEBUG

is set. It is however only about the process of default dict selection, but
if no preconfiguration is happenning, that info will not be shown. No info
is currently shown for individual dicts install, but I can try adding some
details about old and new choices if needed.

Cheers,

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-17 Thread Christian Perrier
 More funnily, this was *not* happening a while ago during my tests of
 default installs in French.


And I have to mention that.it did not happen anymore 2 days ago
when I re-tested a full desktop install in French...

Really strange. 2 weeks after, I can't really see what was special in
the install I ranor what has changed in the meantime (the new
dictionaries-common uploaded yesterday, or today, does not count as I
was installing testing).

I propose to keep an eye opened on the issue but consider it as
solved.




signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-16 Thread Agustin Martin
On Sun, Oct 08, 2006 at 04:00:54PM +0200, Frans Pop wrote:
 In the case where the country does not help to make a decision, it would 
 be nice to also try to use the country part of the locale, which at that 
 time is available in (/target)/etc/default/locale:
LANG=en_US.UTF-8
 Is that feasible as a wishlist request?

I have just uploaded a new version that will look at the LANG envvar first
if /etc/default/locale is present. I have focused my testings in making sure
the logic works, but did not check the actual d-i code, although I suppose
LANG is set to the desired value as well as written to
(/target)/etc/default/locale. No alias substitution is attempted.
 
 What still confuses me is why I no longer see the questions being asked. I 
 _know_ that I would get them a lot and that I would first be asked only 
 en_GB and after that en_GB+en_US for ispell.

I do not think this is applicable to current d-i, but when testing upgrades
from woody, I once installed the new dict-common compliant packages in a
chroot with a bootstrapped woody system with no previous ispell/wordlist
stuff there, and I was prompted for each new installed dict/wordlist. But
for this bootstrapped woody system the reason was that apt-utils was not
included in the initial stuff, so preconfiguration was not possible. 

However, when I tried a d-i installation, things worked for me, so I do not
expect that to be the reason.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-11 Thread Christian Perrier
 Seems that some things might have changed in d-i. At some time
 (See #263402) I was told that debian-installer/language contains what's
 appropriate for the LANGUAGE variable, so things like
 
   de_DE:de_DE:de:en_GB:en
 
 were expected values, and I assumed that LANG was set after first entry
 there along with the encoding info, so I got info from that place. That
 way, I expected d-i/language to be something like
 
   debian-installer/language=en_US:en
 
 which should work, as well as things like in the de_DE:... above example.
 I do not know if this still how d-i works, or plain english is an exception
 where only en is written. What is d-i currently doing?

Hmmm, you're puzzling even me..:-)

From the current localechooser code, I'd say thet d-i/language still
contains the full list of possible values.

But Frans (and even I) told you the opposite so I actually don't know
anymore, frankly.


 
  Is that feasible as a wishlist request?
 
 Of course, if d-i does not set the info I expected in d-i/language and
 there is no simpler way to handle this. As a matter of fact
 /etc/default/locale gives the lang_country info I expected from
 d-i/language. When was /etc/default/locale introduced? If it is =sarge,
 things are simpler for me, do not have to check if we are upgrading
 from =woody.

This is post-sarge, yes.




signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-10 Thread Agustin Martin
On Sun, Oct 08, 2006 at 04:00:54PM +0200, Frans Pop wrote:
 I normally install in English, but with country selected as Netherlands. 
 As no en_NL locale exists, this results in an en_US locale and the system 
 is completely set up for English.
 
 However, that does mean that I have:
 debian-installer/language=en
 debian-installer/country=NL
 (And not country=US...)
 
 If I _do_ select US, I do indeed get iamerican as default after 
 installation.
 
 So the issue is not that the logic is wrong, the issue that it is 
 incomplete for my case: you cannot base the correct dictionary on 
 language + country only.
 In the case where the country does not help to make a decision, it would 
 be nice to also try to use the country part of the locale, which at that 
 time is available in (/target)/etc/default/locale:
LANG=en_US.UTF-8

Seems that some things might have changed in d-i. At some time
(See #263402) I was told that debian-installer/language contains what's
appropriate for the LANGUAGE variable, so things like

  de_DE:de_DE:de:en_GB:en

were expected values, and I assumed that LANG was set after first entry
there along with the encoding info, so I got info from that place. That
way, I expected d-i/language to be something like

  debian-installer/language=en_US:en

which should work, as well as things like in the de_DE:... above example.
I do not know if this still how d-i works, or plain english is an exception
where only en is written. What is d-i currently doing?

 Is that feasible as a wishlist request?

Of course, if d-i does not set the info I expected in d-i/language and
there is no simpler way to handle this. As a matter of fact
/etc/default/locale gives the lang_country info I expected from
d-i/language. When was /etc/default/locale introduced? If it is =sarge,
things are simpler for me, do not have to check if we are upgrading
from =woody.

 What still confuses me is why I no longer see the questions being asked. I 
 _know_ that I would get them a lot and that I would first be asked only 
 en_GB and after that en_GB+en_US for ispell.
 Maybe that has to do with the fact that (either or both):
 - d-i (no longer?) propagates the priority set for the installation to
   the target system;
 - the default priority for debconf was changed from medium to high.
 
 I can come close by installing for en/NL and forcing debconf/priority to 
 medium for the chroot,

If an exact match is found priority is set to low so people looking for
full control see the question, but in case of a fallback like in your
setup it is set to medium, so what you found is the normal behavior.

 Anyway, I give up trying to reproduce that. If you could look at the 
 wishlist I formulated above, that would be really great and sorry for the 
 time this has cost everybody. At least we've now gotten a lot of 
 testing :-/

And this testing also suggested some possible improvements in
dictionaries-common code. I did not look at the .config code for some time.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-08 Thread Frans Pop
On Thursday 05 October 2006 18:06, Frans Pop wrote:
 On Thursday 05 October 2006 16:29, Agustin Martin wrote:
  But of course there is no such rationale if you are at the first
  installation along with dictionaries-common and your system is not
  broken.

 I've been meaning to provide more information (like logs from package
 installation) on this and a specific, reproducible test case, but have
 not found the time to do so.
 I'll try to do this and will send you the info when I do.

Looks like I've been an idiot.
I normally install in English, but with country selected as Netherlands. 
As no en_NL locale exists, this results in an en_US locale and the system 
is completely set up for English.

However, that does mean that I have:
debian-installer/language=en
debian-installer/country=NL
(And not country=US...)

If I _do_ select US, I do indeed get iamerican as default after 
installation.

So the issue is not that the logic is wrong, the issue that it is 
incomplete for my case: you cannot base the correct dictionary on 
language + country only.
In the case where the country does not help to make a decision, it would 
be nice to also try to use the country part of the locale, which at that 
time is available in (/target)/etc/default/locale:
   LANG=en_US.UTF-8
Is that feasible as a wishlist request?


What still confuses me is why I no longer see the questions being asked. I 
_know_ that I would get them a lot and that I would first be asked only 
en_GB and after that en_GB+en_US for ispell.
Maybe that has to do with the fact that (either or both):
- d-i (no longer?) propagates the priority set for the installation to
  the target system;
- the default priority for debconf was changed from medium to high.

I can come close by installing for en/NL and forcing debconf/priority to 
medium for the chroot, but then I get the question for both dicts at 
the beginning (config script) and not for each dict separately 
(postinst). And I am *200% sure* I used to get that, even until recently.

Anyway, I give up trying to reproduce that. If you could look at the 
wishlist I formulated above, that would be really great and sorry for the 
time this has cost everybody. At least we've now gotten a lot of 
testing :-/

Cheers and thanks for bearing with me/us,
FJP


pgpSBmPdhj3FI.pgp
Description: PGP signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-06 Thread Agustin Martin
On Thu, Oct 05, 2006 at 06:06:55PM +0200, Frans Pop wrote:
 I've been meaning to provide more information (like logs from package 
 installation) on this and a specific, reproducible test case, but have 
 not found the time to do so.
 I'll try to do this and will send you the info when I do.

Thanks,

 Have you tried doing an installation yourself and seeing what happens?

I also had no time. I could not even test removing all dicts stuff and
reinstalling until yesterday. I also currently have no spare box for that,
so I had to try with qemu, and dedicate most of today to learn how to use
qemu with debian-installer and prepare an appropiate system.

I first downloaded a network d-i image, and installed it. Since I could not
yet make network work in that image I had to leave it with just the basic
installation, what is OK (no dicts at all). I then fetched the full DVD
first iso and set it as CD source, and simply did

# apt-get install iamerican ibritish ispanish 

That installed

dictionaries-common 0.70.2
ispell  3.1.20.0-4.3
iamerican   3.1.20.0-4.3
ibritish3.1.20.0-4.3
ispanish1.9-6

with *no prompts at all*.

Done in a 2GB qemu volume, single partition + swap, being ~1.5GB free
after installation, with american settings,

debian-installer/language: en
debian-installer/country: US

After installation, these are the ispell symlinks values

/etc/dictionaries-common/default.aff  - /usr/lib/ispell/american.aff
/etc/dictionaries-common/default.hash - /usr/lib/ispell/american.hash

as expected. If I install later some wordlists I am prompted (just once)
as expected because dictionaries-common is already installed.

However, when installing all the above dicts from the same run at the
first installation, everything works as expected with no prompts at all
and all the symlinks are correctly set.

Not tried with tasksel. I have not much time these days, so that might not
be inmediate. If in the meantime you or Christian reproduce the problem,
please, do not remove /var/cache/apt contents before looking at the
available space, with special care about the /var partition.
 
  a) Does the problem you describe happens with wordlists too?
 
 _I_ have not seen it there, but that is probably because for en installs 
 _only_ the US wordlist is installed and not the GB one.

I think they should behave similarly, even when only a wordlist is installed
there are two options, it or manual, so the default must have been set
somewhere if there is no prompt.  

  b) Is localization-config in use or not?
 
 No, it is not. As I've said before l-c is currently _not used_ during 
 installations _at all_, not for dictionaries, not for anything else.

Fine, this is clear now.

  c) Does debian-installer still use debian-installer/{language,country}?
 
 Yes. And values for both are copied to the target system.
 debian-installer/language: en
 debian-installer/country: US

Thanks for the feedback. Will try to use tasksel and see if I can reproduce
the problem there.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-05 Thread Agustin Martin
On Wed, Oct 04, 2006 at 01:56:45PM -0400, Joey Hess wrote:
 Agustin Martin wrote:
  I suppose this also means that all packages not having special
  pre-dependencies are configured at the end. Otherwise if all ispell dicts 
  are
  configured and a reasonable default selected, if another dict is configured
  before the good option is unpacked, things will fail because postinst cannot
  set default ispell dict symlink. Same problem might appear with other shared
  questions.
 
 The debconf manual documents how to use config scripts for shared
 questions to ensure that only one is asked, which happens before any
 packages are installed. I don't know if dict currently uses this method
 although IIRC it used to.

It does use it,

After forcing purge of ispell dicts, wordlists and dictionaries-common
support, and reinstalling again with a large number of ispell dicts and
wordlists from a single run,

The following NEW packages will be installed:
  dictionaries-common dictionaries-common-dev iamerican ibrazilian ibritish
  ibulgarian icatalan idutch iesperanto ifaroese ifinnish ifrench-gut
  igalician-minimos iitalian ingerman inorwegian ipolish irussian ispanish
  ispell iswiss itagalog spell wamerican wamerican-large wbritish wfaroese
  wgalician-minimos wspanish

I am prompted just once for ispell dicts and once for wordlists, as
expected. Not at all new prompts for every new package.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-05 Thread Agustin Martin
On Tue, Oct 03, 2006 at 06:03:48PM +0200, Christian Perrier wrote:
 
 Frans reports that he has seen this for a pretty long time for English
 installs, indeed.

~ 6 months, not full sarge lifetime, and he also mentions that the problem
cannot be reproduced at will.

 Anyway, is there still a rationale for the dictionaries question to be
 *high* priority ? After all, the default is *always* a sensible 
 default so it should certainly deserve to be downgraded to a medium
 priority question. It will harm default installs way less than now.

Yes, there is that rationale when you are installing individual dicts.

But of course there is no such rationale if you are at the first
installation along with dictionaries-common and your system is not broken.

Note that current dictionaries-common.config code should *not* leave the
question as 'critical' for a normal install. This will only happen in
special setups (e.g., upgrading from woody with old alternatives set to
manual). For other setups priority will be set to 'low' if there is an
exact match or to 'medium' if a fallback was used.

There are some things I would like to know,

a) Does the problem you describe happens with wordlists too? Code is
   similar the the ispell dicts one. The only difference was that
   localization-config interfered with the ispell dict code while not with
   wordlist. In Frans example, wamerican+dictionaries-common should have
   triggered a debconf prompt if dictionaries-common code were not working.

b) Is localization-config in use or not? From Frans first mail I assumed
   that localization-config was not in use for ispell dicts. I had my doubts
   since I saw no mention in localization-config changelog. However from
   Frans last mail seemed that localization-config was not in use at all.
   What is the current status of localization-config w.r.t default ispell
   dict selection? Also, if first menu were a localization-config problem
   you should have seen an error message (with 'high' priority) before
   that menu.

c) Does debian-installer still use debian-installer/{language,country}?
   dictionaries-common.config relies on them. However, if they are no longer
   used, that would only lead to a single question for ispell dicts and a
   single question for wordlists, not to a question for every installed
   dict/wordlist. 

   I am testing some modifications so if no old alternative symlinks are
   present and debian-installer/{language,country} are not available, try
   selections after LANG, LC_MESSAGES and LC_ALL values. I am testing that
   in my system where base-config is not installed and so I previously got a
   single question for ispell dicts and a single question for wordlists,
   after purging all ispell/wordlists stuff and proceeding as described
   in my reply to Joey.

   For this experimental package, Using a LANG value having not exact match
   to dicts/wordlists and following the described procedure, I see no
   default ispell/wordlist debconf question for = high priority threshold,
   and the default is reasonably set.

d) Is the problem reproducible?
   I now remember a 'debconf question asked on every upgrade' bug,
   (See #335612), due to debconf database corruption, presumably related to
   a nearly full /var partition. If you reproduce the problem, please look
   at the debconf database entries for the different dicts and
   dictionaries-comon questions, and report if there is something strange.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-05 Thread Frans Pop
On Thursday 05 October 2006 16:29, Agustin Martin wrote:
 But of course there is no such rationale if you are at the first
 installation along with dictionaries-common and your system is not
 broken.

I've been meaning to provide more information (like logs from package 
installation) on this and a specific, reproducible test case, but have 
not found the time to do so.
I'll try to do this and will send you the info when I do.

Have you tried doing an installation yourself and seeing what happens?

 a) Does the problem you describe happens with wordlists too?

_I_ have not seen it there, but that is probably because for en installs 
_only_ the US wordlist is installed and not the GB one.

 b) Is localization-config in use or not?

No, it is not. As I've said before l-c is currently _not used_ during 
installations _at all_, not for dictionaries, not for anything else.

 c) Does debian-installer still use debian-installer/{language,country}?

Yes. And values for both are copied to the target system.
debian-installer/language: en
debian-installer/country: US


pgpMMK02FuBzn.pgp
Description: PGP signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-05 Thread Christian Perrier

 a) Does the problem you describe happens with wordlists too? Code is
similar the the ispell dicts one. The only difference was that
localization-config interfered with the ispell dict code while not with
wordlist. In Frans example, wamerican+dictionaries-common should have
triggered a debconf prompt if dictionaries-common code were not working.

Dunno if that happens with wordlists. It happens when the
desktop+french+french-desktop tasks are selected (directly or
indirectly, as language tasks are selected because of the choice of
French during the install). Add to this the ackages installed on a
standard system.

These tasks install:

french:

doc-linux-fr-text
 doc-debian-fr
 ifrench-gut
 wfrench
 myspell-fr-gut
 aspell-fr

french-desktop:

 xfonts-intl-european
 kde-i18n-fr
 openoffice.org-l10n-fr
 openoffice.org-help-fr
 firefox-locale-fr

The standard task installs ibritish and iamerican as well. Not
sure if wbritish and wamerican are installed, though.

 b) Is localization-config in use or not? From Frans first mail I assumed
that localization-config was not in use for ispell dicts. I had my doubts
since I saw no mention in localization-config changelog. However from
Frans last mail seemed that localization-config was not in use at all.
What is the current status of localization-config w.r.t default ispell
dict selection? Also, if first menu were a localization-config problem
you should have seen an error message (with 'high' priority) before
that menu.

localization-config is not used

 
 c) Does debian-installer still use debian-installer/{language,country}?
dictionaries-common.config relies on them. However, if they are no longer
used, that would only lead to a single question for ispell dicts and a
single question for wordlists, not to a question for every installed
dict/wordlist. 

yes, it does.

 d) Is the problem reproducible?
I now remember a 'debconf question asked on every upgrade' bug,
(See #335612), due to debconf database corruption, presumably related to
a nearly full /var partition. If you reproduce the problem, please look
at the debconf database entries for the different dicts and
dictionaries-comon questions, and report if there is something strange.


Of coursen it is reproducible. It happens on every desktop install in
French..:-)




signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-04 Thread Joey Hess
Agustin Martin wrote:
 I suppose this also means that all packages not having special
 pre-dependencies are configured at the end. Otherwise if all ispell dicts are
 configured and a reasonable default selected, if another dict is configured
 before the good option is unpacked, things will fail because postinst cannot
 set default ispell dict symlink. Same problem might appear with other shared
 questions.

The debconf manual documents how to use config scripts for shared
questions to ensure that only one is asked, which happens before any
packages are installed. I don't know if dict currently uses this method
although IIRC it used to.

-- 
see shy jo


signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-03 Thread Frans Pop
On Tuesday 03 October 2006 07:16, Christian Perrier wrote:
 While testing D-I with the install of the desktop task in French
 language, I have noticed that there are several successive prompts for
 dictionaries settings:

 -first choose between American English and handle symlinks youself
 -then choose between American English, francais and handle symlinks
 youself
 -then choose between francais, francais GUTenberg and handle
 symlinks youself
 -then choose between ameriucan English, francais, francais
 GUTenberg and handle symlinks youself
 -finally  choose between american English, british, francais,
 francais GUTenberg and handle symlinks youself

I have been seeing the same for a _long_ time now even with a basic 
English installation. I reported this in my mail to d-i18n [1].

Note that this has nothing to do with localization-config as that is 
currently _not used_ during installations.

[1] http://lists.debian.org/debian-i18n/2006/09/msg00234.html


pgp2oN0fnrwIo.pgp
Description: PGP signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-03 Thread Agustin Martin
On Tue, Oct 03, 2006 at 07:16:36AM +0200, Christian Perrier wrote:
 While testing D-I with the install of the desktop task in French
 language, I have noticed that there are several successive prompts for
 dictionaries settings:
 
 -first choose between American English and handle symlinks youself

This first one has a different origin. At this time localization-config
decided that default is french, but french is not (yet) to be installed,
only American, so when configuring dictionaries-common ispell symlink
cannot be set and an error is triggered, offering the really installed
options.

 -then choose between American English, francais and handle symlinks 
 youself
 -then choose between francais, francais GUTenberg and handle symlinks 
 youself
 -then choose between ameriucan English, francais, francais GUTenberg 
 and handle symlinks youself
 -finally choose between american English, british, francais, francais 
 GUTenberg and handle symlinks youself
 
 It seems that each time a new dictionary is added (by tasksel
 settings), the user is then prompted at high priority.

Seems that lang tasks are processed as independent processes, not merged
into a global install (along with dictionaries-comon, if required), and that
is the reason for the multiple calls. This should not happen if all desired
ispell dicts (or wordlists) are installed simultaneously along with
dictionaries-common. By the way, are wordlists not installed, showing
similar behavior?

 This makes the default install a real pain, unfortunately, and this
 sounds really strange.
 
 More funnily, this was *not* happening a while ago during my tests of
 default installs in French.

May be because tasks were installed in other way at that time, and french
dict was present for the first global dicts installation along with
dictionaries-common. dictionaries-common code is mostly the same than in
sarge,

# apt-get install ibritish ifrench ifrench-gut

should prompt just once if they are not installed. BTW, ifrench and
ifrench-gut conflict, is strange to see francais, francais GUTenberg as
options. May be there is a bad relationship there.

 Is there something we can do about this...hopefully *before* Etch ?

How are lang tasks handled in current d-i?

 I suggest keeping the CC list in answers, unless Agustin explicitely
 says that [EMAIL PROTECTED] really reaches him (@p.d.o
 addresses need X-PTS-Approved headers, IIRC).

IIRC, as maintainer I should receive [EMAIL PROTECTED], as well
as Rafael and Rene from their PTS suscription. However, I do not know if
it needs special headers.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-03 Thread Agustin Martin
On Tue, Oct 03, 2006 at 03:54:34PM +0200, Frans Pop wrote:
 On Tuesday 03 October 2006 07:16, Christian Perrier wrote:
  While testing D-I with the install of the desktop task in French
  language, I have noticed that there are several successive prompts for
  dictionaries settings:
 
  -first choose between American English and handle symlinks youself
  -then choose between American English, francais and handle symlinks
  youself
  -then choose between francais, francais GUTenberg and handle
  symlinks youself
  -then choose between ameriucan English, francais, francais
  GUTenberg and handle symlinks youself
  -finally  choose between american English, british, francais,
  francais GUTenberg and handle symlinks youself
 
 I have been seeing the same for a _long_ time now even with a basic 
 English installation. I reported this in my mail to d-i18n [1].

Surprisingly I can only understand the above if

a) localization-config is initially used for ispell dicts default value
   pre-seeding or dictionaries-common is installed first without any
   ispell dict. 
b) lang tasks are installed each after the previous one is fully installed

There is still something that completely puzzles me. Does none of the above
tasks install a wordlist? If so, problem should be exactly the same.

More surprises, my reply was sent this morning, but has not yet reached the
list archive. I suppose it is some bottleneck on the way, but just in case,
I am bcc'ing you. Sorry for the duplicates. Will resend my reply if tomorrow
is not there.

 Note that this has nothing to do with localization-config as that is 
 currently _not used_ during installations.

Sorry, I understood that localization-config was not being used for ispell
dicts selection, not that it was not used at all. If is not used things
are different, ... but I can understand your description better if it is
used :-(.

 [1] http://lists.debian.org/debian-i18n/2006/09/msg00234.html

I did not reply to you directly because I supposed you read debian-i18n,
just to the list

http://lists.debian.org/debian-i18n/2006/09/msg00238.html

Does d-i still uses debian-installer/{language,country}? dictionaries-common
code relies on them. Also, when is dictionaries-common installed in d-i? It
should be pulled by ispell-dicts or wordlists, not installed first.

-- 
Agustin [Not subscribed to debian-boot]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-03 Thread Christian Perrier
  It seems that each time a new dictionary is added (by tasksel
  settings), the user is then prompted at high priority.
 
 Seems that lang tasks are processed as independent processes, not merged
 into a global install (along with dictionaries-comon, if required), and that
 is the reason for the multiple calls. This should not happen if all desired
 ispell dicts (or wordlists) are installed simultaneously along with
 dictionaries-common. By the way, are wordlists not installed, showing
 similar behavior?

Joey, that might be the reason. Any input on this ?
(CC'ed just to get attention)

  More funnily, this was *not* happening a while ago during my tests of
  default installs in French.
 
 May be because tasks were installed in other way at that time, and french
 dict was present for the first global dicts installation along with
 dictionaries-common. dictionaries-common code is mostly the same than in
 sarge,

Frans reports that he has seen this for a pretty long time for English
installs, indeed.


  Is there something we can do about this...hopefully *before* Etch ?
 
 How are lang tasks handled in current d-i?


Let's get Joey's input about this.

Anyway, is there still a rationale for the dictionaries question to be
*high* priority ? After all, the default is *always* a sensible
default so it should certainly deserve to be downgraded to a medium
priority question. It will harm default installs way less than now.




signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-03 Thread Joey Hess
Agustin Martin wrote:
 Seems that lang tasks are processed as independent processes, not merged
 into a global install (along with dictionaries-comon, if required), and that
 is the reason for the multiple calls.

tasksel installs all selected tasks with a single aptitude run. Of
course, aptitude may choose to call dpkg multiple times to install
everything but everything should at least be preconfigured
in one pass already.

 May be because tasks were installed in other way at that time, and french
 dict was present for the first global dicts installation along with
 dictionaries-common. dictionaries-common code is mostly the same than in
 sarge,

This has not changed in tasksel in a very long time.

-- 
see shy jo


signature.asc
Description: Digital signature


Re: Dictionaries-common prompts users FIVE times during a default French desktop install

2006-10-03 Thread Agustin Martin
On Tue, Oct 03, 2006 at 01:56:48PM -0400, Joey Hess wrote:
 Agustin Martin wrote:
  Seems that lang tasks are processed as independent processes, not merged
  into a global install (along with dictionaries-comon, if required), and that
  is the reason for the multiple calls.
 
 tasksel installs all selected tasks with a single aptitude run. Of
 course, aptitude may choose to call dpkg multiple times to install
 everything but everything should at least be preconfigured
 in one pass already.

This is the behavior I expected.

I suppose this also means that all packages not having special
pre-dependencies are configured at the end. Otherwise if all ispell dicts are
configured and a reasonable default selected, if another dict is configured
before the good option is unpacked, things will fail because postinst cannot
set default ispell dict symlink. Same problem might appear with other shared
questions.

  May be because tasks were installed in other way at that time, and french
  dict was present for the first global dicts installation along with
  dictionaries-common. dictionaries-common code is mostly the same than in
  sarge,
 
 This has not changed in tasksel in a very long time.

Thanks for the feedback, Joey. Unfortunately things behaving as I expected
means I have no idea about what is happening.

-- 
Agustin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]