Subject: bug#656: reportbug: Adding check for debian imported packages

From: Alexandros Prekates <[email-masked]>
Date: Sun, 16 Jan 2022 15:33:09 +0000

Package: reportbug
Version: 7.10.3+devuan1
Severity: normal

Dear Maintainer,

 i think it would be more user friendly :-)  reportbug to check if a package is
unforked , because now the sender must crosscheck for if the package s(he)
reports for is unforked and imported from debian and then
to launch reportbug with --bts debian

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

** /home/chomwitt/.reportbugrc:
reportbug_version "7.10.3+devuan1"
mode standard
ui gtk
email "[email-masked]"
smtphost "posteo.de"
smtpuser "[email-masked]"
smtptls

-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 4 (chimaera)
Release:	4
Codename:	n/a
Architecture: x86_64

Kernel: Linux 5.10.0-7-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: runit (via /run/runit.stopit)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                2.2.4+devuan1
ii  python3            3.9.2-3
ii  python3-reportbug  7.10.3+devuan1
ii  sensible-utils     0.0.14

reportbug recommends no packages.

Versions of packages reportbug suggests:
ii  claws-mail                                 3.17.8-1+b1
pn  debconf-utils                              <none>
pn  debsums                                    <none>
pn  dlocate                                    <none>
ii  emacs-bin-common                           1:27.1+1-3.1
ii  exim4-daemon-light [mail-transport-agent]  4.94.2-6
ii  file                                       1:5.39-3
ii  gnupg                                      2.2.27-2
pn  python3-urwid                              <none>
ii  reportbug-gtk                              7.10.3+devuan1
ii  xdg-utils                                  1.1.3-4.1

Versions of packages python3-reportbug depends on:
ii  apt                2.2.4+devuan1
ii  file               1:5.39-3
ii  python3            3.9.2-3
ii  python3-apt        2.2.1
ii  python3-debian     0.1.39
ii  python3-debianbts  3.1.0
ii  python3-requests   2.25.1+dfsg-2
ii  sensible-utils     0.0.14

python3-reportbug suggests no packages.

-- no debconf information

---

From: Mark Hindley <[email-masked]>
Date: Sun, 16 Jan 2022 16:03:00 +0000

Alexandros,

> to launch reportbug with --bts debian

Yes, A am aware that this is desirable and it is in hand. Although it is not
quite as straightforward as it may appear to be sure to avoid spamming the wrong
BTS.

I hope to have it implemented in daedalus.

Mark

---

From: Mark Hindley <[email-masked]>
Date: Mon, 21 Feb 2022 11:38:37 +0000

Hi,

I have a patch proposal for reportbug that offers to send reports on unforked
packages to Debian's BTS.

The default choice remains as Devuan.

For packages with 'Origin: Devuan' or 'devuan' in the version, Devuan's BTS is
used without question.

What do you think?

Thanks

Mark
From 328cf9e47dfb735b1035fe1a12aaae1ed1cfee53 Mon Sep 17 00:00:00 2001
From: Mark Hindley <[email-masked]>
Date: Mon, 21 Feb 2022 11:19:29 +0000
Subject: [PATCH] Offer to send bugs in unforked packages directly to Debian.

Closes: #656
---
 bin/reportbug | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/bin/reportbug b/bin/reportbug
index d5e395d..6456112 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -1721,10 +1721,21 @@ class UI(object):
                 ewrite("Unknown origin %s; will send to %s.\n", origin, submitto)
             else:
                 ewrite("Unknown origin %s; will send to %s.\n", origin, bts)
+        elif 'devuan' in pkgversion:
+            bts='devuan'
+            ewrite("Devuan package version found; will send to %s.\n", bts)
         elif reportinfo:
             rtype, submitto = reportinfo
             ewrite("Will use %s protocol talking to %s.\n", rtype, submitto)
             dontquery = True
+        elif ui.yes_no('%s (%s) appears to be an unforked Devuan package.\n'
+                       'Send directly to Debian\'s BTS' % (package, pkgversion),
+                       'Send report to Debian BTS',
+                       'Sent report to Devuan BTS',
+                       # Default to no for the moment
+                       False):
+            bts='debian'
+            ewrite("Reporting bug in unforked Devuan package to %s.\n", bts)
         else:
             lsbr = subprocess.getoutput('lsb_release -si 2>/dev/null')
             if lsbr:
-- 
2.20.1

---

From: Ralph Ronnquist <[email-masked]>
Date: Mon, 21 Feb 2022 23:44:32 +1100

On Mon, 21 Feb 2022 11:38:37 +0000
Mark Hindley <[email-masked]> wrote:

> Hi,
> 
> I have a patch proposal for reportbug that offers to send reports on
> unforked packages to Debian's BTS.
> 
> For packages with 'Origin: Devuan' or 'devuan' in the version,
> Devuan's BTS is used without question.
> 
> What do you think?

That sounds right, yes.

Ralph.

---

From: Boian Bonev <[email-masked]>
Date: Mon, 21 Feb 2022 17:46:58 +0200

Hi,

On Mon, 2022-02-21 at 11:38 +0000, Mark Hindley wrote:
> For packages with 'Origin: Devuan' or 'devuan' in the version, Devuan's BTS
> is used without question.
> 
> What do you think?

The good thing is that will save lots of time processing bugs against not
forked packages. :)

My only concern is how that would be accepted in Debian, because from what I
have seen in bug reports and discussions, Devuan is not well accepted, at least
from the hard systemd proponents... If people could set aside politics this
change is for the good of all

With best regards,
b.

---

From: Mark Hindley <[email-masked]>
Date: Mon, 21 Feb 2022 17:27:54 +0000

Control: tags -1 patch

Boian,

> change is for the good of all

Yes, I agree. Although the effect of the patch is just to offer the choice of
sending to Debian to the user. It doesn't force it and the default remains the
same: i.e. send to Devuan.  Also that choice has always been there with the
-B/--bts option anyway. So it really just makes it easier for the user to choose
and invites them to think about their choice (I hope!).

Best wishes

Mark

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Tue, 22 Feb 2022 17:42:09 +0000

This is an automatic notification regarding your bug report
which was filed against the reportbug package:

#656: reportbug: Adding check for debian imported packages

It has been closed by [email-masked].

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact [email-masked] by
replying to this email.

-- 
656: https://bugs.devuan.org/cgi/bugreport.cgi?bug=656
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: #656: fixed in src:reportbug version 11.4.0devuan2
From: [email-masked]
To: [email-masked]
Date: Tue, 22 Feb 2022 17:39:33 +0000

Version: 11.4.0devuan2

Source package reportbug (11.4.0devuan2) added to Devuan suite unstable.

This closes bug report 656.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Mon, 21 Feb 2022 11:22:39 +0000
Source: reportbug
Architecture: source
Version: 11.4.0devuan2
Distribution: unstable
Urgency: medium
Maintainer: Mark Hindley <[email-masked]>
Changed-By: Mark Hindley <[email-masked]>
Closes: 381 656
Changes:
 reportbug (11.4.0devuan2) unstable; urgency=medium
 .
   * Revert "Send to Devuan BTS by default (Closes: #381)." This change is
     no longer required now lsb_release returns the correct Distributor ID.
   * Offer to send bugs in unforked packages directly to Debian, but still
     default to Devuan. (Closes: #656)
Checksums-Sha1:
 2a27ef5d2064600ef027963a747165fe90737068 1523 reportbug_11.4.0devuan2.dsc
 b7c54b1c0a50db7e59d643153e3e34ec298356fb 206416 reportbug_11.4.0devuan2.tar.xz
 adbee16e246aa010529899790ecbb267eb74ed1d 5616 reportbug_11.4.0devuan2_source.buildinfo
Checksums-Sha256:
 f78aeafe86411c5ae2a9dab723063d287c5f403feaeefc7a93261674f2ee93a0 1523 reportbug_11.4.0devuan2.dsc
 6b4d1e4bc0330bd17762989a7f5d2afa788df43ea817c84b1495b26549723e74 206416 reportbug_11.4.0devuan2.tar.xz
 1052cd0015a5da30b5454e50044d59acd9106f03cbda716005531429adbfb754 5616 reportbug_11.4.0devuan2_source.buildinfo
Files:
 061f290ea505acee8baffc6b804b8711 1523 utils standard reportbug_11.4.0devuan2.dsc
 e8deda0f0179d68a9d461d8e82696ed0 206416 utils standard reportbug_11.4.0devuan2.tar.xz
 fcfc3dee5b6dcb137d336ecfc9274d27 5616 utils standard reportbug_11.4.0devuan2_source.buildinfo

Subject: reportbug: Adding check for debian imported packages
From: Alexandros Prekates <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Sun, 16 Jan 2022 15:33:09 +0000

Package: reportbug
Version: 7.10.3+devuan1
Severity: normal

Dear Maintainer,

-- System Information:
Distributor ID:	Devuan