<div>Oh dear. What happens when you just "Build test" on the git checkout?  Sounds like path issues. I can try applying the Deb patches and try to reproduce.  Unfortunately I am a Deb packaging newbie. </div><div><br></div><div>Lincoln</div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote"><div>On Mon, Jan 16, 2017 at 3:01 PM gregor herrmann <<a href="mailto:gregoa@debian.org">gregoa@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 16 Jan 2017 16:45:52 +0100, Andreas Tille wrote:<br class="gmail_msg"><br><br class="gmail_msg"><br>> > If you want to use the same list of tests to skip during build, you<br class="gmail_msg"><br>> > can do something like<br class="gmail_msg"><br>> > <a href="https://sources.debian.net/src/libipc-sharelite-perl/0.17-4/debian/rules" rel="noreferrer" class="gmail_msg" target="_blank">https://sources.debian.net/src/libipc-sharelite-perl/0.17-4/debian/rules</a><br class="gmail_msg"><br>> Ahhh, OK.  I wrongly assumed that would be some magic since in the<br class="gmail_msg"><br>> bioperl case it worked without this extra means.<br class="gmail_msg"><br><br class="gmail_msg"><br>The magic there worked because it was only needed for autopkgtest and<br class="gmail_msg"><br>not at build time :)<br class="gmail_msg"><br><br class="gmail_msg"><br>> > I migt be able to try a build later today.<br class="gmail_msg"><br>><br class="gmail_msg"><br>> After safely landing in Berlin (from Debian Med sprint in Bukarest) I<br class="gmail_msg"><br>> tried with your hints and the only remaining issue seems to be:<br class="gmail_msg"><br>><br class="gmail_msg"><br>> t/00.compile.t          (Wstat: 3840 Tests: 90 Failed: 15)<br class="gmail_msg"><br>>   Failed tests:  1, 3, 5, 7, 10, 15, 17-18, 29, 31, 33, 35<br class="gmail_msg"><br>>                 41, 45, 47<br class="gmail_msg"><br>>   Non-zero exit status: 15<br class="gmail_msg"><br><br class="gmail_msg"><br>Lucky you :)<br class="gmail_msg"><br>When I try to build the package from git, I get:<br class="gmail_msg"><br><br class="gmail_msg"><br>Test Summary Report<br class="gmail_msg"><br>-------------------<br class="gmail_msg"><br>t/00.compile.t          (Wstat: 3840 Tests: 90 Failed: 15)<br class="gmail_msg"><br>  Failed tests:  1, 3, 5, 7, 10, 15, 17-18, 29, 31, 33, 35<br class="gmail_msg"><br>                41, 45, 47<br class="gmail_msg"><br>  Non-zero exit status: 15<br class="gmail_msg"><br>t/02.rearchitecture.t   (Wstat: 65280 Tests: 0 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 90 tests but ran 0.<br class="gmail_msg"><br>t/03.render.t           (Wstat: 65280 Tests: 0 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 150 tests but ran 0.<br class="gmail_msg"><br>t/04.remoteserver.t     (Wstat: 65280 Tests: 0 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 43 tests but ran 0.<br class="gmail_msg"><br>t/05.deferredrendering.t (Wstat: 65280 Tests: 0 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 19 tests but ran 0.<br class="gmail_msg"><br>t/06.featuresearch.t    (Wstat: 65280 Tests: 0 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 26 tests but ran 0.<br class="gmail_msg"><br>t/07.karyotype.t        (Wstat: 65280 Tests: 0 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 3 tests but ran 0.<br class="gmail_msg"><br>Files=10, Tests=103,  5 wallclock secs ( 0.03 usr  0.03 sys +  4.19 cusr  0.36 csys =  4.61 CPU)<br class="gmail_msg"><br>Result: FAIL<br class="gmail_msg"><br>Failed 7/10 test programs. 15/103 subtests failed.<br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br>Ah, found it:<br class="gmail_msg"><br><br class="gmail_msg"><br>#   Failed test 'cgi-bin/das compiled ok'<br class="gmail_msg"><br>#   at t/00.compile.t line 47.<br class="gmail_msg"><br># stdout:<br class="gmail_msg"><br># stderr: Backslash found where operator expected at /build/gbrowse-2.56+dfsg/blib/lib/Bio/Graphics/Browser2/DataSource.pm line 963, near "$ENV\"<br class="gmail_msg"><br>#       (Missing operator before \?)<br class="gmail_msg"><br># Backslash found where operator expected at /build/gbrowse-2.56+dfsg/blib/lib/Bio/Graphics/Browser2/DataSource.pm line 963, near "$1\"<br class="gmail_msg"><br>#       (Missing operator before \?)<br class="gmail_msg"><br># Variable "$semantic_label" is not imported at /build/gbrowse-2.56+dfsg/blib/lib/Bio/Graphics/Browser2/DataSource.pm line 984, <DATA> line 192.<br class="gmail_msg"><br>#       (Did you mean &semantic_label instead?)<br class="gmail_msg"><br># syntax error at /build/gbrowse-2.56+dfsg/blib/lib/Bio/Graphics/Browser2/DataSource.pm line 963, near "$ENV\"<br class="gmail_msg"><br># syntax error at /build/gbrowse-2.56+dfsg/blib/lib/Bio/Graphics/Browser2/DataSource.pm line 963, near "''}"<br class="gmail_msg"><br><br class="gmail_msg"><br>This seems to come from debian/patches/fix_perl_deprecation.<br class="gmail_msg"><br><br class="gmail_msg"><br>*a bit later*<br class="gmail_msg"><br><br class="gmail_msg"><br>Yes, this patch is wrong now and can be dropped, as the original<br class="gmail_msg"><br>issue was fixed in the 2.56 release. (Attached)<br class="gmail_msg"><br><br class="gmail_msg"><br>This brings me to:<br class="gmail_msg"><br><br class="gmail_msg"><br>Test Summary Report<br class="gmail_msg"><br>-------------------<br class="gmail_msg"><br>t/03.render.t           (Wstat: 65280 Tests: 41 Failed: 0)<br class="gmail_msg"><br>  Non-zero exit status: 255<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 150 tests but ran 41.<br class="gmail_msg"><br>t/04.remoteserver.t     (Wstat: 0 Tests: 41 Failed: 4)<br class="gmail_msg"><br>  Failed tests:  11, 23, 35, 39<br class="gmail_msg"><br>  Parse errors: Bad plan.  You planned 43 tests but ran 41.<br class="gmail_msg"><br>t/05.deferredrendering.t (Wstat: 0 Tests: 19 Failed: 2)<br class="gmail_msg"><br>  Failed tests:  5, 14<br class="gmail_msg"><br><br class="gmail_msg"><br>So t/00.compile.t just works. But I still have other issues.<br class="gmail_msg"><br><br class="gmail_msg"><br>Seems they all fail with something like<br class="gmail_msg"><br>"Can't locate testdata/conf/../../../conf/plugins/Aligner.pm in @INC ..."<br class="gmail_msg"><br>which is quite weird path ... -- But it's fine, so we probably have a<br class="gmail_msg"><br>". removed from @INC" problem here somewhere.<br class="gmail_msg"><br><br class="gmail_msg"><br>I guess that's it:<br class="gmail_msg"><br><br class="gmail_msg"><br>lib/Bio/Graphics/Browser2/PluginSet.pm<br class="gmail_msg"><br><br class="gmail_msg"><br>    my $class = "Bio\:\:Graphics\:\:Browser2\:\:Plugin\:\:$plugin";<br class="gmail_msg"><br>    for my $search_path (@search_path) {<br class="gmail_msg"><br>      my $plugin_with_path = "$search_path/$<a href="http://plugin.pm" rel="noreferrer" class="gmail_msg" target="_blank">plugin.pm</a>";<br class="gmail_msg"><br>      if (eval {require $plugin_with_path}) {<br class="gmail_msg"><br><br class="gmail_msg"><br>Ok, changing this to "./$plugin_with_path" gets rid of this error but<br class="gmail_msg"><br>later we still get something similar:<br class="gmail_msg"><br><br class="gmail_msg"><br># prove --blib --verbose t/05.deferredrendering.t<br class="gmail_msg"><br>t/05.deferredrendering.t ..<br class="gmail_msg"><br>1..19<br class="gmail_msg"><br>ok 1<br class="gmail_msg"><br>ok 2<br class="gmail_msg"><br>ok 3<br class="gmail_msg"><br>RenderPanels error:<br class="gmail_msg"><br>------------- EXCEPTION -------------<br class="gmail_msg"><br>MSG: The requested glyph class, ``span'' is not available: Attempt to reload Bio/Graphics/Glyph/<a href="http://span.pm" rel="noreferrer" class="gmail_msg" target="_blank">span.pm</a> aborted.<br class="gmail_msg"><br>Compilation failed in require at (eval 181) line 2, <> line 45.<br class="gmail_msg"><br><br class="gmail_msg"><br>STACK Bio::Graphics::Glyph::Factory::make_glyph /usr/share/perl5/Bio/Graphics/Glyph/Factory.pm:342<br class="gmail_msg"><br>STACK Bio::Graphics::Glyph::add_feature /usr/share/perl5/Bio/Graphics/Glyph.pm:424<br class="gmail_msg"><br>STACK Bio::Graphics::Browser2::RenderPanels::add_features_to_track /build/gbrowse-2.56+dfsg/t/../lib/Bio/Graphics/Browser2/RenderPanels.pm:1869<br class="gmail_msg"><br>STACK (eval) /build/gbrowse-2.56+dfsg/t/../lib/Bio/Graphics/Browser2/RenderPanels.pm:1597<br class="gmail_msg"><br>STACK Bio::Graphics::Browser2::RenderPanels::run_local_requests /build/gbrowse-2.56+dfsg/t/../lib/Bio/Graphics/Browser2/RenderPanels.pm:1551<br class="gmail_msg"><br>STACK Bio::Graphics::Browser2::RenderPanels::request_panels /build/gbrowse-2.56+dfsg/t/../lib/Bio/Graphics/Browser2/RenderPanels.pm:185<br class="gmail_msg"><br>STACK Bio::Graphics::Browser2::Render::render_deferred /build/gbrowse-2.56+dfsg/t/../lib/Bio/Graphics/Browser2/Render.pm:3608<br class="gmail_msg"><br>STACK toplevel t/05.deferredrendering.t:102<br class="gmail_msg"><br>-------------------------------------<br class="gmail_msg"><br><br class="gmail_msg"><br>ok 4<br class="gmail_msg"><br>not ok 5<br class="gmail_msg"><br># Test 5 got: 'ERROR' (t/05.deferredrendering.t at line 124)<br class="gmail_msg"><br>#   Expected: 'AVAILABLE'<br class="gmail_msg"><br>ok 6<br class="gmail_msg"><br>ok 7<br class="gmail_msg"><br>ok 8<br class="gmail_msg"><br>ok 9<br class="gmail_msg"><br>ok 10<br class="gmail_msg"><br>ok 11<br class="gmail_msg"><br>ok 12<br class="gmail_msg"><br>ok 13<br class="gmail_msg"><br>not ok 14<br class="gmail_msg"><br># Test 14 got: 'ERROR AVAILABLE AVAILABLE AVAILABLE AVAILABLE' (t/05.deferredrendering.t at line 130)<br class="gmail_msg"><br>#    Expected: 'AVAILABLE AVAILABLE AVAILABLE AVAILABLE AVAILABLE'<br class="gmail_msg"><br>ok 15<br class="gmail_msg"><br>ok 16<br class="gmail_msg"><br>ok 17<br class="gmail_msg"><br>ok 18<br class="gmail_msg"><br>ok 19<br class="gmail_msg"><br>Failed 2/19 subtests<br class="gmail_msg"><br><br class="gmail_msg"><br>Test Summary Report<br class="gmail_msg"><br>-------------------<br class="gmail_msg"><br>t/05.deferredrendering.t (Wstat: 0 Tests: 19 Failed: 2)<br class="gmail_msg"><br>  Failed tests:  5, 14<br class="gmail_msg"><br>Files=1, Tests=19, 10 wallclock secs ( 0.04 usr  0.00 sys +  0.95 cusr  0.16 csys =  1.15 CPU)<br class="gmail_msg"><br>Result: FAIL<br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br>And I'm not sure where this comes from, category "cwd removed from<br class="gmail_msg"><br>@INC). I think this is a question for Lincoln (added back in cc).<br class="gmail_msg"><br><br class="gmail_msg"><br>> I wonder how these numbers relate to the tests inside the test file and<br class="gmail_msg"><br>> what might be the recommended procedure:  Patching single tests (those<br class="gmail_msg"><br>> 1, 3, 5, ...) or the wimpy way to exclude the whole file.  May be there<br class="gmail_msg"><br>> is some hint how these tests might pass but I personally have no idea.<br class="gmail_msg"><br><br class="gmail_msg"><br>Depends if you see them during the build or in autopkgtests. During<br class="gmail_msg"><br>build the test should succeed (which it does now); during autopkgtest<br class="gmail_msg"><br>they might fail because they need something from the source tree<br class="gmail_msg"><br>which is not present in the temporary test directory (and from a<br class="gmail_msg"><br>quick look at t/00.compile.t this assumption is quite realistic). In<br class="gmail_msg"><br>that case you can either try to patch t/00.compile.t (to tell it<br class="gmail_msg"><br>about the right paths) or simply ignore the test as (at least that's<br class="gmail_msg"><br>my impression), since the syntax happens in autopkgtest-pkg-perl's<br class="gmail_msg"><br>syntax.t anyway.<br class="gmail_msg"><br><br class="gmail_msg"><br>Let's see.<br class="gmail_msg"><br><br class="gmail_msg"><br>Ok, one change in d/rules to build the package (attached). And then I<br class="gmail_msg"><br>can't test the autopkgtest run because it somehow explodes. *sigh*<br class="gmail_msg"><br><br class="gmail_msg"><br>Ok, -d helps:<br class="gmail_msg"><br><br class="gmail_msg"><br>pmerror:/tmp/apt-dpkg-install-i5hiWj/102-gbrowse.deb:42.1125:trying to overwrite '/usr/share/man/man3/Bio::DB::SeqFeature::Store::LoadHelper.3pm.gz', which is also in package libbio-perl-perl 1.7.1-2<br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br><br class="gmail_msg"><br>Cheers,<br class="gmail_msg"><br>gregor<br class="gmail_msg"><br><br class="gmail_msg"><br>--<br class="gmail_msg"><br> .''`.  <a href="https://info.comodo.priv.at/" rel="noreferrer" class="gmail_msg" target="_blank">https://info.comodo.priv.at/</a> - Debian Developer <a href="https://www.debian.org" rel="noreferrer" class="gmail_msg" target="_blank">https://www.debian.org</a><br class="gmail_msg"><br> : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06<br class="gmail_msg"><br> `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe<br class="gmail_msg"><br>   `-   NP: Michael Penn: Trampoline<br class="gmail_msg"><br></blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">Written on my cell phone. Anything that seems odd is the fault of auto-correct. </div>