Bug#863513: [Reportbug-maint] Bug#863513: Bug#863513: Bug#863513: reportbug: No GUI; only '--ui=text'

2017-05-28 Thread Sandro Tosi
On Sun, May 28, 2017 at 4:06 PM, Nis Martensen  wrote:
> On Sat, 27 May 2017 22:32:49 -0400 Sandro Tosi  wrote:
>> do you know of a way to create a menu entry only if the needed
>> dependencies are installed?
>
> One could put the desktop file (and possibly the code for the GTK UI)
> into a separate package, which would depend on the required libraries.
> Attaching a first draft patch.

thanks (as always) for the patch! I'm still uncertain on the future of
the GTK+ UI: currently there is no one that willing to properly
maintain that UI; probably we should just split it into a separate
binary *and* source package and fine a way to provide UIs as plugin,
installable in a dir reportbug can scan and eventually enable them

> Not something for stretch, though.

hehe indeed


-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



Bug#863513: [Reportbug-maint] Bug#863513: Bug#863513: reportbug: No GUI; only '--ui=text'

2017-05-28 Thread Nis Martensen
On Sat, 27 May 2017 22:32:49 -0400 Sandro Tosi  wrote:
> do you know of a way to create a menu entry only if the needed
> dependencies are installed?

One could put the desktop file (and possibly the code for the GTK UI)
into a separate package, which would depend on the required libraries.
Attaching a first draft patch.

Not something for stretch, though.
>From 14fc7be72a49b704fa3f2cbff275a546fbcd0878 Mon Sep 17 00:00:00 2001
From: Nis Martensen 
Date: Sun, 14 May 2017 21:32:43 +0200
Subject: [PATCH 7/9] split off the GTK ui into a separate package

 - debian/control: create new package "reportbug-gui"
 - adjust depends/recommends/suggests as needed
 - move the .desktop file into the GUI package
---
 debian/control | 29 -
 debian/rules   |  2 +-
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 44eb97c..31d224d 100644
--- a/debian/control
+++ b/debian/control
@@ -13,7 +13,7 @@ Homepage: http://alioth.debian.org/projects/reportbug/
 Package: reportbug
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}, apt, python3-reportbug (= ${source:Version})
-Suggests: postfix | exim4 | mail-transport-agent, gnupg | pgp, debconf-utils (>> 1.1.0), debsums (>= 2.0.47), file (>> 1.30), dlocate, python3-urwid, python3-gi, python3-gi-cairo, gir1.2-gtk-3.0, gir1.2-vte-2.91, python3-gtkspellcheck, xdg-utils, emacs23-bin-common | emacs24-bin-common, claws-mail (>= 3.8.0)
+Suggests: postfix | exim4 | mail-transport-agent, gnupg | pgp, debconf-utils (>> 1.1.0), debsums (>= 2.0.47), file (>> 1.30), dlocate, python3-urwid, emacs23-bin-common | emacs24-bin-common
 Description: reports bugs in the Debian distribution
  reportbug is a tool designed to make the reporting of bugs in Debian
  and derived distributions relatively painless.  Its features include:
@@ -32,6 +32,9 @@ Description: reports bugs in the Debian distribution
  .
  This package also includes the "querybts" script for browsing the
  Debian bug tracking system.
+ .
+ This package only includes a text interface. Please install the
+ "reportbug-gui" package for a graphical user interface.
 
 Package: python3-reportbug
 Section: python
@@ -46,3 +49,27 @@ Description: Python modules for interacting with bug tracking systems
  tools that want to interact with the Debian bug tracking system.
  .
  To actually report a bug, install the reportbug package.
+
+Package: reportbug-gui
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}, apt, reportbug (= ${source:Version}), python3-reportbug (= ${source:Version}), python3-gi, python3-gi-cairo, gir1.2-gtk-3.0, gir1.2-vte-2.91
+Recommends: python3-gtkspellcheck, xdg-utils
+Suggests: claws-mail (>= 3.8.0)
+Description: reports bugs in the Debian distribution (GUI)
+ reportbug is a tool designed to make the reporting of bugs in Debian
+ and derived distributions relatively painless.  Its features include:
+ .
+  * Integration with mutt and mh/nmh mail readers.
+  * Access to outstanding bug reports to make it easier to identify
+whether problems have already been reported.
+  * Automatic checking for newer versions of packages.
+  * Optional automatic verification of integrity of packages via debsums.
+  * Support for following-up on outstanding reports.
+  * Optional PGP/GnuPG integration.
+ .
+ reportbug is designed to be used on systems with an installed mail
+ transport agent, like exim or sendmail; however, you can edit the
+ configuration file and send reports using any available mail server.
+ .
+ This package provides the graphical user interface (GUI) for desktop
+ systems.
diff --git a/debian/rules b/debian/rules
index 66335a8..4741864 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,7 +25,7 @@ override_dh_auto_install:
 	chmod 0755 $(CURDIR)/debian/reportbug/usr/bin/*
 	cp -p conf/reportbug.conf $(CURDIR)/debian/reportbug/etc
 
-	cp -p debian/desktop $(CURDIR)/debian/reportbug/usr/share/applications/reportbug.desktop
+	cp -p debian/desktop $(CURDIR)/debian/reportbug-gui/usr/share/applications/reportbug.desktop
 
 override_dh_installman:
 	dh_installman man/*
-- 
2.1.4



Bug#863513: [Reportbug-maint] Bug#863513: Bug#863513: reportbug: No GUI; only '--ui=text'

2017-05-27 Thread Sandro Tosi
On Sat, May 27, 2017 at 10:09 PM, Diego A. Casas Toro
 wrote:
> It means the gtk2 UI is supposed to be the default, and it doesn't make sense
> to create a menu entry for program that doesn’t start how it is supposed to.

do you know of a way to create a menu entry only if the needed
dependencies are installed? They are in Suggests, because *many*
reportbug users prefer the text UI and dont want their systems to be
cluttered by graphical libs.

> To conclude, GTK UI should be default for people using a DE in order to be
> user-friendly (maybe include it in the task-* packages). Or if the gtk2 UI is
> not supposed to be the default, the menu entry should not be created during
> install.

what's probably going to happen is the removal of the GTK UI: it is
unmaintained.

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



Bug#863513: [Reportbug-maint] Bug#863513: reportbug: No GUI; only '--ui=text'

2017-05-27 Thread Diego A. Casas Toro
On Saturday, May 27, 2017 7:33:56 PM -05 you wrote:
> On Sat, May 27, 2017 at 5:00 PM, Diego A. Casas Toro
> 
>  wrote:
> > I tried to start reportbug for the first time in KDE Plasma 5, but it did
> > not start.
> did you install the additional dependencies as specified by the
> documentation?
> 
> ```
> How to Use New GTK+ User Interface
> ==
> 
> If you tried to set the new GTK+ UI (named in reportbug as gtk2 ui)
> and it fails to start (falling back to text mode, hopefully), chances
> are that you are missing some of the packages listed as Suggests, in
> particular:
> 
> - python3-gi
> - python3-gi-cairo
> - gir1.2-gtk-3.0
> - gir1.2-vte-2.91
> - python3-gtkspellcheck
> 
> If after installing both of them still GTK+ UI doesn't show up, please
> file a report (in text ui :) ).
> ```
> 
> from /usr/share/doc/reportbug/README.Users.gz

I did not install the suggests of reportbug. After 2 years using GTK-based 
desktop environments (GNOME, Mate, Xfce), I thought the GTK UI was the 
“default” UI; I never had to install “additional dependencies” in those DEs.

I just installed python3-gi-cairo, gir1.2-vte-2.91 and python3-gtkspellcheck, 
and it works. Now the default UI is GTK.

So the bug is actually different: why does the reportbug package create a menu 
entry for the gtk2 UI if it's not the default UI?

This is the command of the '.desktop' file:

reportbug --exit-prompt --ui gtk2

It means the gtk2 UI is supposed to be the default, and it doesn't make sense 
to create a menu entry for program that doesn’t start how it is supposed to.

To conclude, GTK UI should be default for people using a DE in order to be 
user-friendly (maybe include it in the task-* packages). Or if the gtk2 UI is 
not supposed to be the default, the menu entry should not be created during 
install.

-- 
Diego A. Casas Toro
Est. de ingeniería civil
C. e.: daca...@uninorte.edu.co

-- 
*Este correo no representa opinión o consentimiento oficial de la 
Universidad del Norte, por lo que esta no adquiere ninguna responsabilidad 
por su contenido, salvo en el caso de funcionarios en ejercicio de 
atribuciones reglamentarias. Puede provenir de una cuenta ofrecida a 
funcionarios o estudiantes, como parte del ejercicio educativo, evento en 
el cual tanto el mensaje como sus anexos son estrictamente confidenciales. 
Ha sido analizado con software antivirus; no obstante, no se garantiza que 
sea seguro o no contenga errores o virus, por lo que la Universidad del 
Norte no se hace responsable de su transmisión.*



Bug#863513: [Reportbug-maint] Bug#863513: reportbug: No GUI; only '--ui=text'

2017-05-27 Thread Sandro Tosi
On Sat, May 27, 2017 at 5:00 PM, Diego A. Casas Toro
 wrote:
> I tried to start reportbug for the first time in KDE Plasma 5, but it did not 
> start.

did you install the additional dependencies as specified by the documentation?

```
How to Use New GTK+ User Interface
==

If you tried to set the new GTK+ UI (named in reportbug as gtk2 ui)
and it fails to start (falling back to text mode, hopefully), chances
are that you are missing some of the packages listed as Suggests, in
particular:

- python3-gi
- python3-gi-cairo
- gir1.2-gtk-3.0
- gir1.2-vte-2.91
- python3-gtkspellcheck

If after installing both of them still GTK+ UI doesn't show up, please
file a report (in text ui :) ).
```

from /usr/share/doc/reportbug/README.Users.gz

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



Bug#863513: reportbug: No GUI; only '--ui=text'

2017-05-27 Thread Diego A. Casas Toro
Package: reportbug
Version: 7.1.6
Severity: important

Dear Maintainer,

I tried to start reportbug for the first time in KDE Plasma 5, but it did not 
start. 
I thought it was a problem with the '.desktop' file asociated with the menu 
entry. 
Then I realized that reportbug was starting in the background, without gtk2 GUI.

I tried to start reportbug from Konsole using '--ui=gtk2', but it starts in 
text mode 
and shows 'Ignored bogus setting for --ui: gtk'. I don't understand why 
reportbug shows
"Ignored bogus setting" when the man entry says "Valid options are text, urwid, 
and gtk2".

I realized that the autocompletion give these options: "gnome newt text", but 
gnome 
and newt cause the same output: 'Ignored bogus setting for --ui'. The bug is 
the same 
with '--interface' and '-u'.

I updated and reinstalled reportbug, but I couldn't solve the problem. 
Actually, I'm 
reporting this bug from command line.

Even if the man entry is wrong, and gnome replaces gtk2 option, reportbug 
should start 
using GUI. So, to conclude, there are two problems: the man entry is incorrect, 
and the 
reportbug program has a missing GUI.


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

** /home/dact/.reportbugrc:
reportbug_version "7.1.6"
mode standard
ui text
email "daca...@uninorte.edu.co"
no-cc
header "X-Debbugs-CC: daca...@uninorte.edu.co"
smtphost reportbug.debian.org

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt1.4.4
ii  python3-reportbug  7.1.6
pn  python3:any

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail   
pn  debconf-utils
pn  debsums  
pn  dlocate  
pn  emacs23-bin-common | emacs24-bin-common  
ii  file 1:5.30-1
ii  gir1.2-gtk-3.0   3.22.11-1
pn  gir1.2-vte-2.91  
ii  gnupg2.1.18-6
pn  postfix | exim4 | mail-transport-agent   
ii  python3-gi   3.22.0-2
pn  python3-gi-cairo 
pn  python3-gtkspellcheck
pn  python3-urwid
ii  xdg-utils1.1.1-1

Versions of packages python3-reportbug depends on:
ii  apt1.4.4
ii  file   1:5.30-1
ii  python3-debian 0.1.30
ii  python3-debianbts  2.6.1
ii  python3-requests   2.12.4-1
pn  python3:any

python3-reportbug suggests no packages.

-- no debconf information