[Reportbug-maint] Bug#497641: reportbug freezes when attempting to list bugs against certain packages

2008-09-03 Thread Mark Hobley
Package: reportbug
Version: 3.45
Severity: important


The reportbug tool in Debian Lenny is hanging the terminal when it 
attempts to list bugs against certain packages, as follows:

 reportbug 
*** Warning: unsupported locale setting
Please enter the name of the package in which you have found a problem, 
or type
'other' to report a more general problem.
 oroborus
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: us-ascii
Please change your locale if this is incorrect.

Using 'Mark Hobley [EMAIL PROTECTED]' as your from address.
Getting status for oroborus...
Checking for newer versions at packages.debian.org...
Will send report to Debian (per lsb_release).
Querying Debian BTS for reports on oroborus (source)...
3 bug reports found:

Outstanding bugs -- Normal bugs; Unclassified (1 bug)
  1) #463631 [n||] [oroborus] oroborus: Unmapped windows don't get 
MapNotify ev

Outstanding bugs -- Normal bugs; Will Not Fix (1 bug)
  2) #218218 [n|รข

 ^
 |
 -- It has now frozen.

The tail end of a system trace relating to this reveals:

write(2,   1) #463631 [n||] [oroborus] oro..., 80) = 80
write(2, \n..., 1)= 1
write(2, Outstanding bugs -- Normal bugs; ..., 54) = 54
write(2,   2) #218218 [n|\342\230\271|] [oroborus] ..., 80) = 80
write(2, \n..., 1)= 1
write(2, Outstanding bugs -- Minor bugs; U..., 53) = 53
write(2,   3) #179189 [m|R|] [oroborus] cu..., 80) = 80
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
ioctl(0, TIOCGWINSZ, {ws_row=24, ws_col=80, ws_xpixel=484, 
ws_ypixel=316}) = 0
ioctl(0, TIOCSWINSZ, {ws_row=24, ws_col=80, ws_xpixel=484, 
ws_ypixel=316}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo 
}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig -icanon -echo 
}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig -icanon -echo 
}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGWINCH, {0xb7aa3c40, [], SA_RESTART}, {SIG_DFL}, 8) = 0
write(1, (1-3/3) Is the bug you found list..., 61) = 61
select(1, [0], NULL, NULL, NULL

Regards,

Mark.

-- Package-specific info:
** Environment settings:
INTERFACE=text

** /home/mark/.reportbugrc:
reportbug_version 3.31
mode standard
ui text
email [EMAIL PROTECTED]
no-cc
header X-Debbugs-CC: [EMAIL PROTECTED]
smtphost bugs.debian.org

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-486
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=locale: Cannot set 
LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages reportbug depends on:
ii  apt   0.7.14+b1  Advanced front-end for dpkg
ii  python2.5.2-2An interactive high-level object-o
ii  python-central0.6.8  register and build utility for Pyt

reportbug recommends no packages.

Versions of packages reportbug suggests:
ii  debconf-utils 1.5.23 debconf utilities
pn  debsums   none (no description available)
pn  dlocate   none (no description available)
ii  file  4.25-1 Determines file type using magic
ii  gnupg 1.4.9-3GNU privacy guard - a free PGP rep
ii  nbsmtp [mail-transport-agent] 1.00-4 Simple MTA to send your mails to a
pn  python-urwid  none (no description available)

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = en_GB.UTF-8
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory



___
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/reportbug-maint


Re: [Reportbug-maint] Reportbug - adding a GTK UI

2008-09-03 Thread Luca Bruno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 2 Sep 2008 07:44:00 +0200
Sandro Tosi [EMAIL PROTECTED] wrote:

 Merged (at r643): thanks for this contribution!
 
 There is a little problem you might want to fix (as I didn't managed
 yet to debug):
 
 $ reportbug --ui gtk2 -O --debug reportbug
 Traceback (most recent call last):
   File /usr/bin/reportbug, line 1832, in module
 main()
   File /usr/bin/reportbug, line 855, in main
 return iface.user_interface()
   File /usr/bin/reportbug, line 1570, in user_interface
 listcc += ui.get_multiline('Enter any additional addresses this
 report should be sent to; press ENTER after each address.')
 AttributeError: 'module' object has no attribute 'get_multiline'
 
 right after the subject insertion and click on Forward.
 

Fixed in patch 0001.

0002 patch:
Uses a list instead of an editor for CC addresses, which is less error prone.
We can yet specify the mode to get_multiline and use the list for  ADVANCED 
users and the editor for = ADVANCED users,
or if you don't like it just drop the patch.

0003 patch:
small but important bug fixes

- -- 
http://syx.googlecode.com - Smalltalk YX
http://lethalman.blogspot.com - Thoughts about computer technologies
http://www.ammazzatecitutti.org - Ammazzateci tutti
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki+fpAACgkQw9Qj+8Kak3GYYQCfaj1bl+VzSlTrY4vA8GfCZ0Y7
NJAAn3gUdH/rWtilefePj+28gJy61FSV
=/2QJ
-END PGP SIGNATURE-
From 4b29f5e57853235fefb8127c0cbecb175ca031b2 Mon Sep 17 00:00:00 2001
From: Luca Bruno [EMAIL PROTECTED]
Date: Wed, 3 Sep 2008 13:02:30 +0200
Subject: [PATCH] fixed GetMultilinePage implementation and added to the forwarded list

---
 debian/changelog|1 +
 reportbug/ui/gtk2_ui.py |   69 +++---
 2 files changed, 41 insertions(+), 29 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 19bde53..d37ea1f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,7 @@ reportbug (3.99.0) UNRELEASED; urgency=low
 [ Luca Bruno ]
 - reportbug/ui/gtk2_ui.py
   + GTK+ interface
+  + fixed GetMultilinePage implementation and added to the forwarded list
 
 [ Sandro Tosi ]
 - debian/control
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 0f307f1..3d412b2 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -469,7 +469,7 @@ class Page (ReportbugConnector):
 def validate (self, *args, **kwargs):
 value = self.get_value ()
 if self.is_valid (value):
-self.assistant.application.set_next_value (value)
+self.application.set_next_value (value)
 self.set_page_complete (True)
 else:
 self.set_page_complete (False)
@@ -503,6 +503,42 @@ class GetStringPage (Page):
 self.label.set_text (prompt)
 self.entry.grab_focus ()
 
+class GetMultilinePage (Page):
+def create_widget (self):
+vbox = gtk.VBox (spacing=12)
+self.label = gtk.Label ()
+vbox.pack_start (self.label, expand=False)
+
+view = gtk.TextView ()
+self.buffer = view.get_buffer ()
+scrolled = create_scrollable (view)
+vbox.pack_start (scrolled)
+return vbox
+
+def connect_signals (self):
+self.buffer.connect ('changed', self.validate)
+
+def is_valid (self, value):
+if self.empty_ok:
+return True
+else:
+return bool (value)
+
+def get_value (self):
+text = self.buffer.get_text (self.buffer.get_start_iter (), self.buffer.get_end_iter ())
+lines = text.split ('\n')
+# Remove the trailing empty line at the end
+if len (lines)  0 and not lines[-1].strip ():
+del lines[-1]
+return text.split ('\n')
+
+def execute (self, prompt, empty_ok=True):
+# The result must be iterable for reportbug even if it's empty and not modified
+self.empty_ok = empty_ok
+self.label.set_text (prompt)
+self.buffer.set_text ()
+self.buffer.emit ('changed')
+
 class TreePage (Page):
 value_column = None
 
@@ -738,32 +774,6 @@ class FinalMessagePage (LongMessagePage):
 LongMessagePage.execute (self, *args, **kwargs)
 self.set_page_title (Thanks for your report)
 
-class GetMultilinePage (Page):
-default_complete = True
-
-def create_widget (self):
-vbox = gtk.VBox (spacing=12)
-self.label = gtk.Label ()
-vbox.pack_start (self.label, expand=False)
-
-view = gtk.TextView ()
-self.buffer = view.get_buffer ()
-scrolled = create_scrollable (view)
-vbox.pack_start (scrolled)
-return vbox
-
-def is_valid (self, value):
-return True
-
-def connect_signals (self):
-self.buffer.connect ('changed', self.validate)
-
-def get_value (self):
-return self.buffer.get_text (self.buffer.get_start_iter 

Re: [Reportbug-maint] Reportbug - adding a GTK UI

2008-09-03 Thread Luca Bruno
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 3 Sep 2008 14:09:52 +0200
Luca Bruno [EMAIL PROTECTED] wrote:

 Fixed in patch 0001.
 
 0002 patch:
 Uses a list instead of an editor for CC addresses, which is less error prone.
 We can yet specify the mode to get_multiline and use the list for  ADVANCED 
 users and the editor for = ADVANCED users,
 or if you don't like it just drop the patch.
 
 0003 patch:
 small but important bug fixes
 

0001: should be applied because it fixes some bugs
0002: when listing bugs, you can now filter the results

- -- 
http://syx.googlecode.com - Smalltalk YX
http://lethalman.blogspot.com - Thoughts about computer technologies
http://www.ammazzatecitutti.org - Ammazzateci tutti
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAki+9MUACgkQw9Qj+8Kak3FFiwCeK4TaJkRe+GjKa+pELSkKSoaw
DdYAnjyGiH5x7vI7AOu5k9O6q1JcAOQF
=bbA8
-END PGP SIGNATURE-
From 498e772cb8268b46f509f29bf19effab42115ce6 Mon Sep 17 00:00:00 2001
From: Luca Bruno [EMAIL PROTECTED]
Date: Wed, 3 Sep 2008 20:58:51 +0200
Subject: [PATCH] gtk2: fixed SyncReturn and increase Page.next_page_num when really switching the assistant page

---
 debian/changelog|1 +
 reportbug/ui/gtk2_ui.py |   14 +-
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 475ca37..799d4d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -40,6 +40,7 @@ reportbug (3.99.0) UNRELEASED; urgency=low
   + added GetListPage to improve the get_multiline wrapper
   + fixed return value for default entries in select_options wrapper
   + fixed long_message layout
+  + fixed SyncReturn and increase Page.next_page_num when really switching the assistant page
 
 [ Sandro Tosi ]
 - debian/control
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 6eaee17..1e3113a 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -421,7 +421,7 @@ application = ReportbugApplication ()
 
 class SyncReturn (RuntimeError):
 def __init__ (self, result):
-RuntimeError.__init__ (result)
+RuntimeError.__init__ (self, result)
 self.result = result
 
 class ReportbugConnector (object):
@@ -450,7 +450,6 @@ class Page (ReportbugConnector):
 self.widget.set_border_width (6)
 self.widget.show_all ()
 self.page_num = Page.next_page_num
-Page.next_page_num += 1
 
 def execute_operation (self, *args, **kwargs):
 self.switch_in ()
@@ -473,6 +472,7 @@ class Page (ReportbugConnector):
 
 # The user will see this as next page
 def switch_in (self):
+Page.next_page_num += 1
 self.assistant.insert_page (self.widget, self.page_num)
 self.set_page_complete (self.default_complete)
 self.set_page_type (self.page_type)
@@ -735,7 +735,6 @@ class HandleBTSQueryPage (TreePage):
 
 self.application.run_once_in_main_thread (self.assistant.set_progress_label, progress_label)
 
-result = None
 try:
 (count, sectitle, hierarchy) = debianbts.get_reports (
 package, bts, mirrors=mirrors, version=version,
@@ -767,10 +766,7 @@ class HandleBTSQueryPage (TreePage):
 error_dialog ('No record of this package found.')
 raise NoPackage
 
-if result and result  0:
-raise NoReport
-
-raise SyncReturn (result)
+raise SyncReturn (None)
 
 def create_widget (self):
 vbox = gtk.VBox (spacing=12)
@@ -1057,11 +1053,11 @@ class ReportbugAssistant (gtk.Assistant):
 # We insert pages between the intro and the progress, so that we give the user the feedback
 # that the applications is still running when he presses the Forward button
 self.showing_page = IntroPage (self)
-self.progress_page = ProgressPage (self)
-Page.next_page_num = 1
 self.showing_page.switch_in ()
+self.progress_page = ProgressPage (self)
 self.progress_page.switch_in ()
 self.set_current_page (0)
+Page.next_page_num = 1
 
 assistant = ReportbugAssistant (application)
 
-- 
1.5.6.5

From 5f7a7c6252862082969354b83f30191db8176cef Mon Sep 17 00:00:00 2001
From: Luca Bruno [EMAIL PROTECTED]
Date: Wed, 3 Sep 2008 22:31:28 +0200
Subject: [PATCH] gtk2: filter the list of bugs

---
 debian/changelog|1 +
 reportbug/ui/gtk2_ui.py |   76 +++
 2 files changed, 64 insertions(+), 13 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 799d4d1..2cda463 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -41,6 +41,7 @@ reportbug (3.99.0) UNRELEASED; urgency=low
   + fixed return value for default entries in select_options wrapper
   + fixed long_message layout
   + fixed SyncReturn and increase Page.next_page_num when really switching the assistant page
+  + filter the list of bugs
 
 [ Sandro 

[Reportbug-maint] Bug#384287: VIA dient zur Behandlung bei E-problemen ..

2008-09-03 Thread Domingo Whitlock
relate to others and
 http://tiecorrect.com  often is sacrificed who've faced the successful 
children. Above all Head First Design Patterns one day a week. ___
Reportbug-maint mailing list
Reportbug-maint@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/reportbug-maint