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

[debian-devel:11657] Re: about debconf (Re: Re: Upload: mnews 1.22PL1 )



佐野@浜松です。

In <20000217130813F.xlj06203@xxxxxxxxxxxxxxxxxxxx>,
 at Thu, 17 Feb 2000 13:10:58 +0900,
 on [debian-devel:11655] about debconf (Re:  Re: Upload: mnews 1.22PL1 ),
  Taketoshi Sano <kgh12351@xxxxxxxxxxx> さん writes:

>   > でもこうなってしまうんですよ。(whiptail 削除で)
>   > 
>   > debconf: failed to initialize Dialog frontend
>   > debconf: falling back to Text frontend

すみません、早とちりしてました。

# だれかさんを信用し過ぎたというか。

 ii  debconf        0.2.80.7       Debian configuration management system

の環境で /usr/lib/perl5/Debian/DebConf/FrontEnd/Dialog.pm を見ると

  | =head1 DESCRIPTION
  | 
  | This FrontEnd is for a user interface based on dialog, whiptail, or gdialog.
  | It will use whichever is available, but prefers to use whiptail if available.
  | It handles all the messy communication with thse programs.
  | 
  | It currently uses only whiptail of gdialog, because dialog lacks --defaultno.

(snip)

  |         # Autodetect if whiptail or dialog is available and set magic numbers.
  |         if (-x "/usr/bin/whiptail" && ! defined $ENV{FORCE_DIALOG} &&
  |             ! defined $ENV{FORCE_GDIALOG}) {
  |                 $self->{program}='whiptail';
  |                 $self->{borderwidth}=5;
  |                 $self->{borderheight}=6;
  |                 $self->{spacer}=1;
  |                 $self->{titlespacer}=10;
  |                 $self->{columnspacer}=3;
  |         }
  |         # Only use dialog if FORCE_DIALOG is on. This is here only until
  |         # dialog stops looping forever (!) when run from debconf.
  |         elsif (-x "/usr/bin/dialog" && defined $ENV{FORCE_DIALOG}) {
  |                 $self->{program}='dialog';
  |                 $self->{borderwidth}=7;
  |                 $self->{borderheight}=6;
  |                 $self->{spacer}=4;
  |                 $self->{titlespacer}=4;
  |                 $self->{columnspacer}=2;
  |         }
  | # Disabled until it supports --passwordbox
  | #       elsif (-x "/usr/bin/gdialog") {
  | #               $self->{program}='gdialog';
  | #               $self->{borderwidth}=5;
  | #               $self->{borderheight}=6;
  | #               $self->{spacer}=1;
  | #               $self->{titlespacer}=10;
  | #               $self->{columnspacer}=0;
  | #       }
  |         else {

とあるので、export FORCE_DIALOG; しておかないと dialog は
使われない仕様になってますね。

# まだ他にも見つかってない debconf の bug があって dialog だと
# うまく動かないということなのかも。

とりあえず whiptail を入れておいたほうがいいんじゃないでしょうか ?

# 私的にはこの時期に debconf にはあまり触りたくないですが。
# なんか爆弾を抱えてるみたい。

--
     # (わたしのおうちは浜松市、「夜のお菓子」で有名さ。)
    <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (佐野 武俊)