tag 604234 +patch
thanks

2011/1/1 James R. Van Zandt <j...@comcast.net>:
>
> I cannot reproduce your failure. I can install emacspeak-ss with no
> problem on my system.
>
> I have not worked with pbuilder before.  However, I tried
>
>  apt-get install cowbuilder
>  cowbuilder --create
>  cowbuilder --login
>  apt-get install emacspeak-ss
>
> and it installed fine.

Hi, Jim,

Note that this is not a problem only in chroots. This wil fail in the
pre-configure stage everytime 'non-interactive' debconf frontend is
used. The clue to reproduce this problem is that both emacspeak and
emacspeak-ss are installed together in the same apt run and both for
the first time, e.g.,

# DEBIAN_FRONTEND=noninteractive apt-get install emacspeak emacspeak-ss

I could finally look at this and seem to have an idea about what is
happening here. The problem is that shared/emacspeak/port defaults to
'none' in emacspeak, but has no default entry for emacspeak-ss. Thus,
when emacspeak-ss template is parsed (after emacspeak one) in the apt
pre-configuration stage, its value overrides that of emacspeak, and
default becomes empty.

In non-interactive mode, since that is not an allowed value, an error
message is displayed and previous debconf prompt is shown again, new
error and infinite loop starting, causing hang, see my previous
message for more details.

I'd expect that attached untested patch should do the work. I was
preparing it for a possible NMU, but now that you are online I am
leaving it at your consideration. Do not know if there are other
similar problems hidden.

Cheers,

-- 
Agustin
diff -u emacspeak-ss-1.12.1/debian/templates emacspeak-ss-1.12.1/debian/templates
--- emacspeak-ss-1.12.1/debian/templates
+++ emacspeak-ss-1.12.1/debian/templates
@@ -31,6 +31,7 @@
 Type: string
 #flag:comment:3
 # Translators, please do not translate "none"
+Default: none
 _Description: Hardware port of the speech generation device:
  If a hardware device is used to generate speech, please enter the
  Unix device file associated with it, such as '/dev/ttyS0' or
diff -u emacspeak-ss-1.12.1/debian/changelog emacspeak-ss-1.12.1/debian/changelog
--- emacspeak-ss-1.12.1/debian/changelog
+++ emacspeak-ss-1.12.1/debian/changelog
@@ -1,3 +1,10 @@
+emacspeak-ss (1.12.1-1.1) unstable; urgency=low
+
+  * Non maintainer upload.
+  * Use a sane default for shared/emacspeak/port template (Closes: #604234).
+
+ -- Agustin Martin Domingo <agmar...@debian.org>  Sat, 01 Jan 2011 04:06:07 +0100
+
 emacspeak-ss (1.12.1-1) unstable; urgency=low
 
   * New upstream release: fix bashism in script testit (thanks to Raphael

Reply via email to