GNU bug report logs - #53840
The current bitlbee-discord@0.4.3 does not work with glib@2.70.2

Previous Next

Package: guix;

Reported by: Adam Maleszka <adam_maleszka <at> aol.com>

Date: Mon, 7 Feb 2022 09:17:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53840 in the body.
You can then email your comments to 53840 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#53840; Package guix. (Mon, 07 Feb 2022 09:17:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adam Maleszka <adam_maleszka <at> aol.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 07 Feb 2022 09:17:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Adam Maleszka <adam_maleszka <at> aol.com>
To: bug-guix <at> gnu.org
Subject: The current bitlbee-discord <at> 0.4.3 does not work with glib <at> 2.70.2
Date: Mon, 07 Feb 2022 09:44:27 +0100
[Message part 1 (text/plain, inline)]
I'm trying to configure bitlbee-discord in order to write on Discord
using ERC in Emacs. Unfortunately, every time I open connection to
Discord, this error is thrown:

discord - Login error: Failed to switch to websocket mode

Actually, it is a well-known issue caused by breaking changes in the new
version of glib (2.70.X):
https://github.com/sm00th/bitlbee-discord/issues/226 A fix is introduced
with commit 607f9887ca85f246e970778e3d40aa5c346365a7:
https://github.com/sm00th/bitlbee-discord/commit/607f9887ca85f246e970778e3d40aa5c346365a7
However, the commit is far newer than the 0.4.3 tag, thus
bitlbee-discord <at> 0.4.3 is unusable with glib <at> 2.70.2.

I see three solutions.

* The first solution --- upgrade bitlbee-discord

This solution involves upgrading bitlbee-discord to the specified
commit. I don't think it will make the package more unstable, especially
after this post:
https://github.com/sm00th/bitlbee-discord/issues/118#issuecomment-606856620

However, it would be good to stick to convention and only introduce
"stable" release versions.

* The second solution --- requesting a new release

That said, I think it would be a good idea to request a new release
from the author, particularly as glib <at> 2.70.X is becoming more common.

However, there is no certainty that the new release would be stable,
though.

* The third solution --- patching current release

Last but not least, what about writing a patch for the current release?
The mentioned commit does not seem complicated. I think it is the best
solution, because it gives us more control while preserving the
stability of the release. However, it is always extra work.

Which solution do you think is the best?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53840; Package guix. (Mon, 07 Feb 2022 10:04:01 GMT) Full text and rfc822 format available.

Message #8 received at 53840 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at>
To: Adam Maleszka <adam_maleszka <at> aol.com>, 53840 <at> debbugs.gnu.org
Subject: Re: The current bitlbee-discord <at> 0.4.3 does not work with glib <at> 2.70.2
Date: Mon, 07 Feb 2022 11:03:46 +0100
Hi,

Am Montag, dem 07.02.2022 um 09:44 +0100 schrieb Adam Maleszka:
> I'm trying to configure bitlbee-discord in order to write on Discord
> using ERC in Emacs. Unfortunately, every time I open connection to
> Discord, this error is thrown:
> 
> [...]
> I see three solutions.

> * The third solution --- patching current release
> 
> Last but not least, what about writing a patch for the current release?
> The mentioned commit does not seem complicated. I think it is the best
> solution, because it gives us more control while preserving the
> stability of the release. However, it is always extra work.
If the patch applies cleanly on 0.4.3, this is to be preferred.

> * The second solution --- requesting a new release
> 
> That said, I think it would be a good idea to request a new release
> from the author, particularly as glib <at> 2.70.X is becoming more common.
> 
> However, there is no certainty that the new release would be stable,
> though.
Upstreams decide what they consider stable enough to tag as release.  I
don't think pinging them would be too bad, considering they have a
history of tagging patch releases :)

> * The first solution --- upgrade bitlbee-discord
> 
> This solution involves upgrading bitlbee-discord to the specified
> commit. I don't think it will make the package more unstable,
> especially after this post:
> https://github.com/sm00th/bitlbee-discord/issues/118#issuecomment-606856620
> 
> However, it would be good to stick to convention and only introduce
> "stable" release versions.
If all else fails, this would count as an "exceptional case" to use
commit versioning -- see `info "(guix)Version Numbers"' for more
context.  Don't forget to clearly explain the reason for the commit you
picked in a comment preceding the let-binding, i.e. as in

(define bitlbee-discord
  ;; We use this commit, because ...
  (let ((commit "deadbeef")
        (revision "1"))
    (package 
       ...
       (version (git-version "0.4.3" revision commit))
       ...)))

Of course, instead of deadbeef, use the full commit hash.

Cheers




Information forwarded to bug-guix <at> gnu.org:
bug#53840; Package guix. (Mon, 07 Feb 2022 14:56:01 GMT) Full text and rfc822 format available.

Message #11 received at 53840 <at> debbugs.gnu.org (full text, mbox):

From: Adam Maleszka <adam_maleszka <at> aol.com>
To: 53840 <at> debbugs.gnu.org
Subject: The current bitlbee-discord <at> 0.4.3 does not work with glib <at> 2.70.2
Date: Mon, 07 Feb 2022 15:40:59 +0100
[Message part 1 (text/plain, inline)]
Referenced commit is only 6 commits behind, and there aren't any
breaking changes. Therefore, for testing purposes, I wrote a custom
bitlbee-discord package definition to publish on my channel after
reporting this bug. Since then, I have been chatting with my colleagues
all the time. In other words, connection works smoothly, no errors are
thrown.

In my opinion, there is no need to write additional patches. I will
submit modified version to guix patches.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 10 Feb 2022 22:29:02 GMT) Full text and rfc822 format available.

Notification sent to Adam Maleszka <adam_maleszka <at> aol.com>:
bug acknowledged by developer. (Thu, 10 Feb 2022 22:29:02 GMT) Full text and rfc822 format available.

Message #16 received at 53840-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Adam Maleszka <adam_maleszka <at> aol.com>
Cc: 53840-done <at> debbugs.gnu.org, 53850-done <at> debbugs.gnu.org
Subject: Re: bug#53850: [PATCH] gnu: bitlbee-discord: Update to 0.4.3-1.607f988
Date: Thu, 10 Feb 2022 23:28:06 +0100
Hi,

Adam Maleszka <adam_maleszka <at> aol.com> skribis:

> From b307d3e8bccbef9436502b10192960441f684687 Mon Sep 17 00:00:00 2001
> From: Adam Maleszka <adam_maleszka <at> aol.com>
> Date: Mon, 7 Feb 2022 16:47:56 +0100
> Subject: [PATCH] gnu: bitlbee-discord: Update to 0.4.3-1.607f988
>
> ---
>  gnu/packages/messaging.scm | 85 +++++++++++++++++++++-----------------
>  1 file changed, 48 insertions(+), 37 deletions(-)

I added a commit log and applied it.

Thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Mar 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 158 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.