Bug#808464: suddenly being asked for interactive keyboard configuration

2015-12-20 Thread Holger Levsen
package: debconf,keyboard-configuration
severity: serious
x-debbugs-cc: reproducible-bui...@lists.alioth.debian.org

Hi,

first of all: I'm at lost where this really comes from, as this happened the 
first time on December 16th (and since then I saw and aborted it daily) and 
neither debconf nor keyboard-configuration have been uploaded since them. I 
see this in two jenkins jobs which have been unchanged since months:

https://jenkins.debian.net/view/reproducible/job/reproducible_setup_schroot_unstable_diffoscope_amd64_jenkins
https://jenkins.debian.net/view/reproducible/job/reproducible_setup_schroot_unstable_diffoscope_amd64_profitbricks3/

Which do "apt-get install -y --install-recommends diffoscope" in sid, which 
now fails like this: 

...
Setting up keyboard-configuration (1.134) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell 
buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Configuring keyboard-configuration
--

Please select the layout matching the keyboard for this machine.

  1. English (US)
  2. English (US) - Cherokee
  3. English (US) - English (Colemak)
  4. English (US) - English (Dvorak alternative international no dead keys)
  5. English (US) - English (Dvorak)
  6. English (US) - English (Dvorak, international with dead keys)
  7. English (US) - English (Macintosh)
  8. English (US) - English (US, alternative international)
  9. English (US) - English (US, international with dead keys)
  10. English (US) - English (US, with euro on 5)
  11. English (US) - English (Workman)
  12. English (US) - English (Workman, international with dead keys)
  13. English (US) - English (classic Dvorak)
  14. English (US) - English (international AltGr dead keys)
  15. English (US) - English (left handed Dvorak)
  16. English (US) - English (programmer Dvorak)
  17. English (US) - English (right handed Dvorak)
  18. English (US) - English (the divide/multiply keys toggle the layout)
  19. English (US) - Russian (US, phonetic)
  20. English (US) - Serbo-Croatian (US)
  21. Other


and then it hangs forever. We discussed this on #debian-qa:

 so why do we see this in sid now: 
https://jenkins.debian.net/view/reproducible/job/reproducible_setup_schroot_unstable_diffoscope_amd64_profitbricks3/71/console
 
(scroll down)
 could be something to do with some of the debconf frontends being 
uninstallable but I can't really see why that would make it interactive
 is it using DEBIAN_FRONTEND=noninteractive ?
 ntyni: yes. the jenkins code used here hasnt changed at all. 
 h01ger: I'm guessing DEBIAN_FRONTEND=noninteractive never took effect 
for some reason and the Dialog frontend is now falling back to a different 
frontend (Readline) that tries harder to ask its questions even without a real 
terminal/stdin
 hm
 h01ger: I wouldn't expect those messages about Dialog and Readline 
frontends at all if DEBIAN_FRONTEND=noninteractive was in effect
* h01ger nods
 h01ger: but I'm not 100% positive on that
 
https://jenkins.debian.net/job/reproducible_setup_schroot_unstable_diffoscope_amd64_jenkins/lastBuild/console
 
weirly enough has a different frontend it seems

any ideas anyone?


cheers,
Holger


signature.asc
Description: This is a digitally signed message part.


Bug#808464: suddenly being asked for interactive keyboard configuration

2015-12-20 Thread gregor herrmann
On Sun, 20 Dec 2015 12:27:11 +0100, Holger Levsen wrote:

> Which do "apt-get install -y --install-recommends diffoscope" in sid, which 
> now fails like this: 
> 
> ...
> Setting up keyboard-configuration (1.134) ...
> debconf: unable to initialize frontend: Dialog
> debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell 
> buffer, or without a controlling terminal.)
> debconf: falling back to frontend: Readline
> Configuring keyboard-configuration
> --
[..]
 
>  is it using DEBIAN_FRONTEND=noninteractive ?
>  ntyni: yes. the jenkins code used here hasnt changed at all. 
>  h01ger: I'm guessing DEBIAN_FRONTEND=noninteractive never took effect 
> for some reason and the Dialog frontend is now falling back to a different 
> frontend (Readline) that tries harder to ask its questions even without a 
> real 
> terminal/stdin
>  hm
>  h01ger: I wouldn't expect those messages about Dialog and Readline 
> frontends at all if DEBIAN_FRONTEND=noninteractive was in effect
> * h01ger nods
>  h01ger: but I'm not 100% positive on that
>  
> https://jenkins.debian.net/job/reproducible_setup_schroot_unstable_diffoscope_amd64_jenkins/lastBuild/console
>  
> weirly enough has a different frontend it seems

Quick test:
- cowbuilder sid amd64 chroot
- a) DEBIAN_FRONTEND=noninteractive, b) unset DEBIAN_FRONTEND
- apt-get install -y --install-recommends diffoscope

In case a) I get no questions, as expected; in case b) I also get

Setting up keyboard-configuration (1.134) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
Configuring keyboard-configuration
--


This looks like DEBIAN_FRONTEND=noninteractive is working as
expected; which doesn't answer what's happening in your
jenkins/reproduucible job :/

Hm, a tiny difference is "Dialog frontend will not work" vs. "No
usable dialog-like program is installed". But still, the whole
question should be skipped with DEBIAN_FRONTEND=noninteractive.

Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Leonard Cohen: Nancy


signature.asc
Description: Digital Signature