[Pkg-giraffe-discuss] oustanding autopkgtset issues for kopanocore 8.6.90
Guido Günther
agx at sigxcpu.org
Sun Nov 18 12:10:28 GMT 2018
Hi,
On Sun, Nov 18, 2018 at 11:19:40AM +0100, Carsten Schoenert wrote:
> Am 18.11.18 um 10:04 schrieb Guido Günther:
> >> Package dh-php 0.34 has migrated to testing on 2018-11-10. But I don't
> >> see any related change here were that version change should treat this
> >> problem. The build issue is now also alive with the previous version of
> >> dh-php as I tested out. So I would blame debhelper [1] finally.
> >> My experience and knowledge with Perl is almost zero and also testing
> >> out debhelper down to version 11.5 hasn't "fixed" the problem. A quick
> >> look at the mentioned lines [1] in the log show that these lines haven't
> >> changed since ages. Right now I don't know there I else can take a look
> >> before opening an issue. :/
> >
> > basename() is used all over the place so I'd try to find the caller
> > e.g. using
> >
> > https://stackoverflow.com/questions/229009/how-can-i-get-a-call-stack-listing-in-perl
>
> please mind a blind person is trying to do Perl debugging ... :)
>
> So if I see it correctly there is a missing argument on the call of
> basename and because of this all magic after that is failing.
>
> > dh_php -O--builddirectory=debian/build
> > given basename $0: /usr/bin/dh_php
> > Trace begun at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 779
> > Debian::Debhelper::Dh_Lib::basename(undef) called at /usr/bin/dh_php line 279
> > Use of uninitialized value $fn in concatenation (.) or string at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 782.
> > string $fn:
> > Use of uninitialized value $fn in substitution (s///) at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 784.
> > Use of uninitialized value $fn in substitution (s///) at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 785.
> > Trace begun at /usr/bin/dh_php line 281
> > given basename $0: /usr/bin/dh_php
> > Trace begun at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 779
> > Debian::Debhelper::Dh_Lib::basename('/usr/bin/dh_php') called at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 764
> > Debian::Debhelper::Dh_Lib::error('module: "" needs .so or .ini suffix') called at /usr/bin/dh_php line 284
> > string $fn: /usr/bin/dh_php
This looks confusing (I would not expect dh_php here). Check the loop in
dh_php starting at line 242. It iterates over the packages. You can
print the package name being processed there.
-- Guido
> > dh_php: module: "" needs .so or .ini suffix
> > make: *** [debian/rules:51: binary] Error 255
>
>
> I've added the following lines (marked by '<-') to Dh_Lib.pm:
>
> > # Returns the basename of the argument passed to it.
> > sub basename {
> > print "given basename \$0: $0\n"; <-
> > use Devel::StackTrace; <-
> > my $trace = Devel::StackTrace->new; <-
> > print $trace->as_string; <-
> > my $fn=shift;
> > print "string \$fn: $fn\n"; <-
> >
> > $fn=~s/\/$//g; # ignore trailing slashes
> > $fn=~s:^.*/(.*?)$:$1:;
> > return $fn;
> > }
>
> But I'm still not able to see why it's not working.
More information about the Pkg-giraffe-discuss
mailing list