Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#987611: git-buildpackage: gbp-dch appears to lock up if EMAIL & DEBEMAIL are unset

569 views
Skip to first unread message

Philip Hands

unread,
Apr 26, 2021, 9:40:03 AM4/26/21
to
Package: git-buildpackage
Version: 0.9.22
Severity: normal

Dear Maintainer,

If one runs gbp dch when the environment variables EMAIL & DEBEMAIL are both upset, then
'gbp dch' appears to hang indefinitely.

The reason for this would seem to be this change introduced in devscripts:

> devscripts (2.21.1) unstable; urgency=medium
>
> ...
> * debchange:
> + Warn when DEBEMAIL and EMAIL are not set. Closes: #977809
> ...
>
> -- Mattia Rizzolo <mat...@debian.org> Tue, 16 Feb 2021 17:45:53 +0100

if 'dch' is run when those environment variables are unset, it issues a warning:

> dch warning: neither DEBEMAIL nor EMAIL environment variable is set
> dch warning: building email address from username and mailname
> dch: Did you see those 2 warnings? Press RETURN to continue...

and then waits for the user to hit return.

When being run under gbp, the user does not see the prompt, so has no hint that
they should hit return (although if they do, it works).

That being the case, gbp should probably either issue a warning itself, or allow
the 'dch' warning through to the user.

Cheers, Phil.

Andrea Zagli

unread,
Apr 30, 2021, 2:40:04 AM4/30/21
to
same here

(and thanks for solving my problem)

Jean Honlet

unread,
Sep 30, 2021, 2:40:04 AM9/30/21
to
For anyone coming to this page.

Having the same problem that gbp-dch hand for an unknown reason (for me), I had to make a

gbp dch ... < /dev/null

to avoid dch to ask for user input.

Hope to help.

Guido Günther

unread,
Sep 30, 2021, 10:40:03 AM9/30/21
to
tag 987611 pending
thanks

Date: Thu Sep 30 16:06:39 2021 +0200
Author: Guido Günther <a...@sigxcpu.org>
Commit ID: 82750c05dbdd627fa6b6c208f0fef30f6e574639
Commit URL: https://git.sigxcpu.org/cgit/git-buildpackage//commit/?id=82750c05dbdd627fa6b6c208f0fef30f6e574639
Patch URL: https://git.sigxcpu.org/cgit/git-buildpackage//patch/?id=82750c05dbdd627fa6b6c208f0fef30f6e574639

dch: Require EMAIL or DEBEMAIL to be set

The alternative would be to set a dummy address in case of
--git-author but that again can use $EMAIL so just fail if
both are unset.

Closes: #987611


0 new messages