Package: git-email
Version: 1:2.17.0-1
Severity: normal

Dear Maintainer,

According to the Debian changelog entry for 1:2.17.0-1

  * debian/rules: add NO_USE_CPAN_FALLBACKS=1 to OPTS to avoid
    installing bundled copies of perl modules.
  * debian/control: Build-Depends: libmailtools-perl, liberror-perl;
    git-email: Depends: libmailtools-perl for Mail::Address.

git-email no longer bundles Mail::Address but depends on
libmailtools-perl for it instead. Indeed it is no longer included,
but the control file still lists libmailtools-perl in the Recommends:
entry, not the Depends: entry. This results in the following error
message on systems that don't install recommended packages by default:

    BUG: The 'Mail::Address' module is not here, but NO_PERL_CPAN_FALLBACKS
    was set!

    Git needs this Perl module from the CPAN, and will by default ship
    with a copy of it. This Git was built with NO_PERL_CPAN_FALLBACKS,
    meaning that whoever built it promised to provide this module.

    You're seeing this error because they broke that promise, and we can't
    load our fallback version, since we were asked not to install it.

    If you're seeing this error and didn't package Git yourself the
    package you're using is broken, or your system is broken. This error
    won't appear if Git is built without NO_PERL_CPAN_FALLBACKS (instead
    we'll use our fallback version of the module). at
    /usr/share/perl5/Git/ line 76.
    BEGIN failed--compilation aborted at
    /usr/share/perl5/Git/LoadCPAN/Mail/ line 8.
    Compilation failed in require at /usr/lib/git-core/git-send-email line
    BEGIN failed--compilation aborted at /usr/lib/git-core/git-send-email
    line 36.

It seems the change for the second bullet point was missed or not
checked in. git-email in unstable still only recommends
libmailtools-perl [1].

I suggest double checking the control file for the package, and
uploading a revision fixing it.


P.S. The system information below shows that I have libmailtools-perl
installed. I installed it manually.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, armel, i386

Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=zh_TW.Big5, LC_CTYPE=zh_TW.Big5 (charmap=BIG5), 
LANGUAGE=zh_TW.Big5 (charmap=BIG5)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages git-email depends on:
ii  git  1:2.17.0-1

Versions of packages git-email recommends:
pn  libauthen-sasl-perl    <none>
pn  libemail-valid-perl    <none>
ii  libio-socket-ssl-perl  2.056-1
ii  libmailtools-perl      2.18-1
ii  libnet-smtp-ssl-perl   1.04-1
ii  perl                   5.26.1-6

Versions of packages git-email suggests:
pn  git-doc  <none>

-- no debconf information

Reply via email to