Subject: Reportbug BTS

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