Package: reportbug Version: 3.18 Severity: normal Hi,
Attempting to use reportbug in sid to report a minor dependency bug on the x-window-system-core metapackage fails with a crash as shown below. (In the meantime, that bug was reported by its original discoverer at #345681 without using reportbug.) [begin transcript] benjo (sid)[9]:~% reportbug x-window-system-core *** Welcome to reportbug. Use ? for help at prompts. *** Using '"Kevin B. McCarty" <[EMAIL PROTECTED]>' as your from address. Detected character set: UTF-8 Please change your locale if this is incorrect. Getting status for x-window-system-core... x-window-system-core is a dependency package. Which of the following packages isthe bug in? 1 xserver-xorg the X.Org X server 2 xlibmesa-dri Mesa 3D graphics library modules [X.Org] 3 xlibmesa-gl Mesa 3D graphics library [X.Org] Traceback (most recent call last): File "/usr/bin/reportbug", line 1740, in ? main() File "/usr/bin/reportbug", line 1038, in main 'Select one of these packages: ') File "/usr/share/reportbug/reportbug_ui_text.py", line 284, in menu starttext=('%*d %-*.*s ' % ( File "/usr/share/reportbug/reportbug_ui_text.py", line 63, in indent_wrap_text text = ' '.join(text.split()) AttributeError: 'NoneType' object has no attribute 'split' [end transcript] I'm guessing the problem is with the or'ed dependency of x-window-system-core upon xlibmesa-gl | libgl1-mesa-dri. Hacking /usr/bin/reportbug to print the value of the variable "opts" confirms these suspicions; the value is [('xserver-xorg', 'the X.Org X server'), ('xlibmesa-dri', 'Mesa 3D graphics library modules [X.Org]'), ('xlibmesa-gl', 'Mesa 3D graphics library [X.Org]'), ('libgl1-mesa-dri', None), ('libglu1-xorg', 'Mesa OpenGL utility library [X.Org]'), ('libglu1-mesa', None), ('xfonts-base', 'standard fonts for X'), ('xfonts-100dpi', '100 dpi fonts for X'), ('xfonts-75dpi', '75 dpi fonts for X'), ('xfonts-scalable', 'scalable fonts for X'), ('xbase-clients', 'miscellaneous X clients'), ('xutils', 'X Window System utility programs')] and I bet the value of None for libgl1-mesa-dri, which is not installed on my system, is what's causing the crash. By the way, the logic in reportbug to test for metapackages seems kind of fragile otherwise, too. Even with reportbug in mode "standard", it is willing to submit a bug against x-window-system-core if that package is not installed. When x-window-system is installed, I can also force reportbug to submit a bug against x-window-system-core by asking it to submit a bug on x-window-system (when that package is installed) and selecting x-window-system-core when it presents me with the list of dependencies of x-window-system. The latter possibility could be fixed by having reportbug check dependencies recursively for metapackages. Is there a way for packages to tell reportbug that they are metapackages other than filing a wishlist bug report to have them included in the list in the deppkgs variable in /usr/share/reportbug/debianbts.py ? -- Package-specific info: ** Environment settings: EDITOR="vim" DEBEMAIL="[EMAIL PROTECTED]" ** /home/kmccarty/.reportbugrc: reportbug_version "3.8" mode standard ui text realname "Kevin B. McCarty" email "[EMAIL PROTECTED]" -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.8-2-386 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages reportbug depends on: ii python2.3 2.3.5-9 An interactive high-level object-o Versions of packages reportbug recommends: pn python2.3-cjkcodecs | python2 <none> (no description available) -- no debconf information regards, -- Kevin B. McCarty <[EMAIL PROTECTED]> Physics Department WWW: http://www.princeton.edu/~kmccarty/ Princeton University GPG: public key ID 4F83C751 Princeton, NJ 08544 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]