Bug#856532: Error: Can't locate object method "get_user"
gregor herrmann
gregoa at debian.org
Thu Mar 2 21:22:01 UTC 2017
Control: tag -1 + confirmed
Control: tag -1 - upstream
# we are upstream :)
On Thu, 02 Mar 2017 14:10:19 +0930, David Nebauer wrote:
> When trying to build Dn::Role using dh-make-perl with the following
> command:
>
> dh-make-perl Dn-Role-v0.1
>
> the following error occurred:
>
> -------------------------------------
>
> == dh-make-perl 0.93 ==
> Trying /PATH/TO/MODULE/DISTRIBUTION/Dn-Role-v0.1/../Dn-Role-v0.1.tar .gz... found!
> Using META.json
> Found: Dn-Role 0.1 (libdn-role-perl arch=all)
> Can't locate object method "get_user" via package "DhMakePerl::Command::make" at /usr/share/perl5/DhMakePerl/Command/Packaging.pm line 130.
>
> -------------------------------------
>
> Line 130 from Packaging.pm is:
>
> $email = $self->get_user . '@' . $mailh;
>
> I looked for method 'get_user' in the DhMakePerl package using:
>
> grep -R get_user /usr/share/perl5/DhMakePerl/*
>
> and
>
> grep -R get_user /usr/share/perl5/DhMakePerl.pm
>
> but the only match was line 130 of Packaging.pm where the method is
> called.
Ouch. This is really ugly; thanks for your bug report!
Carnë, this seems to be a side effect of
23b15bd799ee7e7f9394119a98bdef510424be3d.
Could you take a look please? (I'm not sure what the best fix would
be that fits your refactoring.)
David, as a workaround you can set the environment variables DEBEMAIL
or EMAIL to your preferred email address for packaging to skip this
code path.
Cheers,
gregor
--
.''`. https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Funny van Dannen: Tombolamusikant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170302/59ca6cee/attachment.sig>
More information about the pkg-perl-maintainers
mailing list