Bug#838269: licensecheck: FTBFS in testing (failing tests)

Santiago Vila sanvila at debian.org
Mon Sep 19 10:02:31 UTC 2016


Package: src:licensecheck
Version: 3.0.24-1
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
CDBS WARNING:  copyright-check disabled - licensecheck is missing.
test -x debian/rules
mkdir -p "."

Scanning upstream source for new/changed copyright notices...

set -e; LC_ALL=C.UTF-8 perl -Ilib bin/licensecheck --check '.*' --recursive --copyright --deb-fmt --ignore '^(debian/(changelog|copyright(|_hints|_newhints)))$' --lines 0 * | /usr/lib/cdbs/licensecheck2dep5 > debian/copyright_newhints
60 combinations of copyright and licensing found.
WARNING: 			New or changed notices discovered:

Copyright: -format/1.0/
  2016, Jonas Smedegaard.
  allow anyone who receives a copy of the Modified Version …
Copyright: Copyright (C) 2009 by Moritz Lenz and the SVG::Plot contributors (see file /
Copyright: Miodrag Milanovic
Copyright: 1994-2012, Lua.org, PUC-Rio"
  1994-2012, Lua.org, PUC-Rio.
Copyright: 2001, 2012, David Turner, Robert Wilhelm, and Werner Lemberg.
  2007-2008, Adam D. Barratt
  2012, Francesco Poli
  2016, Jonas Smedegaard
Copyright: -check =
  -perl (>=0.003)
  2016, Jonas Smedegaard <dr at jones.dk>
Copyright: s ) or "*No copyright*" )
  s = uniq rs_keysort {$_} split /^/, $copyright;
  s and $opt->copyright;
  s/licenses; set to 0 to parse the whole file (and ignore --tail)',
Copyright: -like laws that apply to other kinds of
  2007, Free Software Foundation, Inc. <http:fsf.org/>
  <year> <name of author>
  able work licensed under this
  are not
  disclaimer" for the program, if necessary.
  ed material outside their relationship with you.
  if you do
  permission, other than the making of an
  permission.
  treaty adopted on 20 December 1996, or
  2007-2008, Adam D. Barratt
  2012, Francesco Poli
  2016, Jonas Smedegaard
  s = copyright_optimistic( clean_cruft($cleaned_content) );
  s = copyright_optimistic( clean_cruft($cleaned_tail) );
  s and $license eq 'UNKNOWN' ) {
Copyright: -delimiter, including comma by default.";
  John Doe".";
  and license extraction."@en;
  block.";
  blocks method.";
  file format.";
  for recent changes.";
  info.";
  information (for nroff files).";
  owner to mention "and others".";
  owner when … and owners are specified on 2 or more lines…
  owner with email like info at foo.com.";
  parsing from comment stripping and copyright serializing";
  s in a non-random order."^^dt:Change;
  sign and hyphen-minus.";
  sign unconditionally.";
  sign with option --deb-machine.";
  symbol with a hex escape so that the package builds using …
  ns…n};
Files: Changes
Copyright: -delimiter, including comma by default.
  blocks method.
  file format.
  for recent changes.
  parsing from comment stripping and
  serializing
  sign and
  sign unconditionally.
  sign with option --deb-machine.
Files: debian/control
Copyright: -perl (>=0.003),
Files: MANIFEST
Copyright: CREDITS
Files: SIGNATURE
Copyright: SHA1 e8673b9754c9d267cb2d35ea91540aaf24e30ac5 CREDITS

To fix the situation please do the following:
  1) Examine debian/copyright_* and referenced files
  2) Update debian/copyright as needed
  3) Replace debian/copyright_hints with debian/copyright_newhints
touch debian/stamp-copyright-check
touch debian/stamp-upstream-cruft
cd . && /usr/bin/perl -I. Makefile.PL NOECHO= INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for App::Licensecheck
Writing MYMETA.yml and MYMETA.json
/usr/bin/make -C . OPTIMIZE="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include" LDDLFLAGS="-Wl,-z,relro -shared -L/usr/local/lib -fstack-protector-strong" all
make[1]: Entering directory '/<<PKGBUILDDIR>>'
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/lib/App
chmod 755 blib/lib/App
touch blib/lib/App/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/arch
chmod 755 blib/arch
touch blib/arch/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/lib/auto/App/Licensecheck
chmod 755 blib/lib/auto/App/Licensecheck
touch blib/lib/auto/App/Licensecheck/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/arch/auto/App/Licensecheck
chmod 755 blib/arch/auto/App/Licensecheck
touch blib/arch/auto/App/Licensecheck/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/bin
chmod 755 blib/bin
touch blib/bin/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/script
chmod 755 blib/script
touch blib/script/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/man1
chmod 755 blib/man1
touch blib/man1/.exists
"/usr/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/man3
chmod 755 blib/man3
touch blib/man3/.exists
true
true
"/usr/bin/perl" -MExtUtils::Install -e 'pm_to_blib({@ARGV}, '\''blib/lib/auto'\'', q[], '\''755'\'')' -- \
  lib/App/Licensecheck.pm blib/lib/App/Licensecheck.pm 
cp lib/App/Licensecheck.pm blib/lib/App/Licensecheck.pm
touch pm_to_blib
true
true
true
true
rm -f blib/script/licensecheck
cp bin/licensecheck blib/script/licensecheck
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/licensecheck
chmod 755 blib/script/licensecheck
true
"/usr/bin/perl" "-MExtUtils::Command::MM" -e pod2man "--" --section=1p --perm_rw=644 -u \
  bin/licensecheck blib/man1/licensecheck.1p 
Manifying 1 pod document
"/usr/bin/perl" "-MExtUtils::Command::MM" -e pod2man "--" --section=3pm --perm_rw=644 -u \
  lib/App/Licensecheck.pm blib/man3/App::Licensecheck.3pm 
Manifying 1 pod document
true
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
touch debian/stamp-makefile-build
/usr/bin/make -C . OPTIMIZE="-g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include" LDDLFLAGS="-Wl,-z,relro -shared -L/usr/local/lib -fstack-protector-strong" test TEST_VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
true
true
true
true
true
true
true
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
    
    #   Failed test 'stdout matches'
    #   at t/devscripts.t line 18.
    # The output
    #   t/devscripts/info-at-eof.h	UNKNOWN	1994-2012 Lua.org, PUC-Rio"
    # does not match
    #   t/devscripts/info-at-eof.h	(?^:MIT/X11 \(BSD like\)	1994-2012 Lua.org, PUC-Rio.*)
    # Looks like you failed 1 test of 3.

#   Failed test 'Info at end'
#   at t/devscripts.t line 95.
# Looks like you failed 1 test of 10.
t/devscripts.t ........ 
1..10
    # Subtest: MultiLine declaration
    ok 1 - bsd-regents.c
    ok 2 - stdout matches
    ok 3 - stderr matches
    ok 4 - texinfo.tex
    ok 5 - stdout matches
    ok 6 - stderr matches
    ok 7 - multi-line-copyright.c # TODO regression: multi-line multi-statements not yet supported by String::Copyright
    not ok 8 - stdout matches # TODO regression: multi-line multi-statements not yet supported by String::Copyright
    
    #   Failed (TODO) test 'stdout matches'
    #   at t/devscripts.t line 18.
    # The output
    #   t/devscripts/multi-line-copyright.c	Public domain GPL (v3)	2000 Keith Packard, member of The XFree86 Project, Inc.
    # does not match
    #   t/devscripts/multi-line-copyright.c	(?^:Public domain GPL \(v3\)	2008 Aaron Plattner, NVIDIA Corporation / 2005 Lars Knoll & Zack Rusin, Trolltech / 2000 Keith Packard, member of The XFree86 Project, Inc.?)
    ok 9 - stderr matches # TODO regression: multi-line multi-statements not yet supported by String::Copyright
    1..9
ok 1 - MultiLine declaration
    # Subtest: Duplicated copyright
    ok 1 - duplicated-copyright.rb
    ok 2 - stdout matches
    ok 3 - stderr matches
    1..3
ok 2 - Duplicated copyright
    # Subtest: Dual
    ok 1 - dual.c
    ok 2 - stdout matches
    ok 3 - stderr matches
    1..3
ok 3 - Dual
    # Subtest: Machine
    ok 1 - beerware.cpp
    ok 2 - stdout matches
    ok 3 - stderr matches
    ok 4 - lgpl-2.1.h
    ok 5 - stdout matches
    ok 6 - stderr matches
    ok 7 - gpl-2
    ok 8 - stdout matches
    ok 9 - stderr matches
    1..9
ok 4 - Machine
    # Subtest: Fortran comments
    ok 1 - bsd.f
    ok 2 - stdout matches
    ok 3 - stderr matches
    1..3
ok 5 - Fortran comments
    # Subtest: Comments detection
    ok 1 - comments-detection.h
    ok 2 - stdout matches
    ok 3 - stderr matches
    ok 4 - comments-detection.txt
    ok 5 - stdout matches
    ok 6 - stderr matches
    1..6
ok 6 - Comments detection
    # Subtest: False positives
    ok 1 - false-positives
    ok 2 - stdout matches
    ok 3 - stderr matches
    1..3
ok 7 - False positives
    # Subtest: Regexp killer
    ok 1 - regexp-killer.c
    ok 2 - stdout matches
    ok 3 - stderr matches
    1..3
ok 8 - Regexp killer
    # Subtest: Encoding
    ok 1 - copr-iso8859.h
    ok 2 - stdout matches
    ok 3 - stderr matches
    ok 4 - copr-utf8.h
    ok 5 - stdout matches
    ok 6 - stderr matches
    ok 7 - copr-iso8859.h
    ok 8 - stdout matches
    ok 9 - stderr matches
    1..9
ok 9 - Encoding
    # Subtest: Info at end
    ok 1 - info-at-eof.h
    not ok 2 - stdout matches
    ok 3 - stderr matches
    1..3
not ok 10 - Info at end
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests 
t/license.t ........... 
1..28
    # Subtest: AFL-3.0
        # Subtest: Parse corpus
        ok 1 - Corpus file academic.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 1 - AFL-3.0
    # Subtest: Apache-2.0
        # Subtest: Parse corpus
        ok 1 - Corpus file duplicated-copyright.rb
        1..1
    ok 1 - Parse corpus
    1..1
ok 2 - Apache-2.0
    # Subtest: Artistic-2.0
        # Subtest: Parse corpus
        ok 1 - Corpus file artistic-2-0-modules.pm
        ok 2 - Corpus file artistic-2-0.txt
        1..2
    ok 1 - Parse corpus
    1..1
ok 3 - Artistic-2.0
    # Subtest: Beerware
        # Subtest: Parse corpus
        ok 1 - Corpus file beerware.cpp
        1..1
    ok 1 - Parse corpus
    1..1
ok 4 - Beerware
    # Subtest: BSD
        # Subtest: Parse corpus
        ok 1 - Corpus file bsd-1-clause-1.c
        1..1
    ok 1 - Parse corpus
    1..1
ok 5 - BSD
    # Subtest: BSD-2-clause
        # Subtest: Parse corpus
        ok 1 - Corpus file bsd.f
        1..1
    ok 1 - Parse corpus
    1..1
ok 6 - BSD-2-clause
    # Subtest: BSD-3-clause
        # Subtest: Parse corpus
        ok 1 - Corpus file bsd-3-clause.cpp
        ok 2 - Corpus file bsd-3-clause-authorsany.c
        ok 3 - Corpus file mame-style.c
        ok 4 - Corpus file bsd-regents.c
        1..4
    ok 1 - Parse corpus
    1..1
ok 7 - BSD-3-clause
    # Subtest: BSL
        # Subtest: Parse corpus
        ok 1 - Corpus file boost.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 8 - BSL
    # Subtest: EPL-1.0
        # Subtest: Parse corpus
        ok 1 - Corpus file epl.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 9 - EPL-1.0
    # Subtest: LGPL
        # Subtest: Parse corpus
        ok 1 - Corpus file lgpl-no-version.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 10 - LGPL
    # Subtest: LGPL-2.1
        # Subtest: Parse corpus
        ok 1 - Corpus file lgpl-2.1.c
        ok 2 - Corpus file lgpl-2.1.h
        ok 3 - Corpus file lgpl-by-dist-zilla.pl
        ok 4 - Corpus file lgpl-big-blue.h
        1..4
    ok 1 - Parse corpus
    1..1
ok 11 - LGPL-2.1
    # Subtest: LGPL-2.1 or LGPL-3
        # Subtest: Parse corpus
        ok 1 - Corpus file lgpl-digia.c
        1..1
    ok 1 - Parse corpus
    1..1
ok 12 - LGPL-2.1 or LGPL-3
    # Subtest: LGPL-2.1+
        # Subtest: Parse corpus
        ok 1 - Corpus file comments-detection.txt
        1..1
    ok 1 - Parse corpus
    1..1
ok 13 - LGPL-2.1+
    # Subtest: LGPL-2
        # Subtest: Parse corpus
        ok 1 - Corpus file lgpl-2.s
        1..1
    ok 1 - Parse corpus
    1..1
ok 14 - LGPL-2
    # Subtest: LGPL-3+
        # Subtest: Parse corpus
        ok 1 - Corpus file lgpl-3+.h
        ok 2 - Corpus file lgpl-variation.c
        1..2
    ok 1 - Parse corpus
    1..1
ok 15 - LGPL-3+
    # Subtest: LLGPL
        # Subtest: Parse corpus
        ok 1 - Corpus file llgpl.lisp
        1..1
    ok 1 - Parse corpus
    1..1
ok 16 - LLGPL
    # Subtest: GPL
        # Subtest: Parse corpus
        ok 1 - Corpus file gpl-no-version.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 17 - GPL
    # Subtest: GPL-1+
        # Subtest: Parse corpus
        ok 1 - Corpus file gpl-1
        1..1
    ok 1 - Parse corpus
    1..1
ok 18 - GPL-1+
    # Subtest: GPL-2
        # Subtest: Parse corpus
        ok 1 - Corpus file gpl-2
        ok 2 - Corpus file bug-559429
        ok 3 - Corpus file gpl-2-comma.sh
        ok 4 - Corpus file gpl-2-incorrect-address
        ok 5 - Corpus file copr-iso8859.h
        1..5
    ok 1 - Parse corpus
    1..1
ok 19 - GPL-2
    # Subtest: GPL-2+
        # Subtest: Parse corpus
        ok 1 - Corpus file gpl-2+
        ok 2 - Corpus file gpl-2+.scm
        ok 3 - Corpus file copr-utf8.h
        1..3
    ok 1 - Parse corpus
    1..1
ok 20 - GPL-2+
    # Subtest: GPL-3
        # Subtest: Parse corpus
        ok 1 - Corpus file gpl-3.sh
        ok 2 - Corpus file gpl-3-only.c
        1..2
    ok 1 - Parse corpus
    1..1
ok 21 - GPL-3
    # Subtest: GPL-3+
        # Subtest: Parse corpus
        ok 1 - Corpus file gpl-3+
        ok 2 - Corpus file gpl-3+-with-rem-comment.xml
        ok 3 - Corpus file gpl-variation.c
        ok 4 - Corpus file gpl-3+.el
        ok 5 - Corpus file comments-detection.h
        1..5
    ok 1 - Parse corpus
    1..1
ok 22 - GPL-3+
    # Subtest: MPL-1.1
        # Subtest: Parse corpus
        ok 1 - Corpus file mpl-1.1.sh
        1..1
    ok 1 - Parse corpus
    1..1
ok 23 - MPL-1.1
    # Subtest: MPL-2.0
        # Subtest: Parse corpus
        ok 1 - Corpus file mpl-2.0.sh
        ok 2 - Corpus file mpl-2.0-comma.sh
        1..2
    ok 1 - Parse corpus
    1..1
ok 24 - MPL-2.0
    # Subtest: FTL
        # Subtest: Parse corpus
        ok 1 - Corpus file freetype.c
        1..1
    ok 1 - Parse corpus
    1..1
ok 25 - FTL
    # Subtest: CDDL
        # Subtest: Parse corpus
        ok 1 - Corpus file cddl.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 26 - CDDL
    # Subtest: ISC
        # Subtest: Parse corpus
        ok 1 - Corpus file libuv-isc.am
        1..1
    ok 1 - Parse corpus
    1..1
ok 27 - ISC
    # Subtest: Expat
        # Subtest: Parse corpus
        ok 1 - Corpus file info-at-eof.h
        1..1
    ok 1 - Parse corpus
    1..1
ok 28 - Expat
ok
# licensecheck failed to parse AGPL_3 as expected
# licensecheck failed to parse Apache_1_1 as expected
# licensecheck failed to parse Apache_2_0 as expected
# licensecheck failed to parse CC0_1_0 as expected
# licensecheck failed to parse GFDL_1_2 as expected
# licensecheck failed to parse GFDL_1_3 as expected
# licensecheck failed to parse GPL_1 as expected
# licensecheck failed to parse GPL_2 as expected
# licensecheck failed to parse GPL_3 as expected
# licensecheck failed to parse None as expected
# licensecheck failed to parse OpenSSL as expected
# licensecheck failed to parse Perl_5 as expected
# licensecheck failed to parse PostgreSQL as expected
# licensecheck failed to parse Sun as expected
t/Software-License.t .. 
1..29
ok 1 - Script bin/licensecheck runs
ok 2 - AGPL_3
ok 3 - Apache_1_1
ok 4 - Apache_2_0
ok 5 - Artistic_1_0
ok 6 - Artistic_2_0
ok 7 - BSD
ok 8 - CC0_1_0
ok 9 - FreeBSD
ok 10 - GFDL_1_2
ok 11 - GFDL_1_3
ok 12 - GPL_1
ok 13 - GPL_2
ok 14 - GPL_3
ok 15 - LGPL_2
ok 16 - LGPL_2_1
ok 17 - LGPL_3_0
ok 18 - MIT
ok 19 - Mozilla_1_0
ok 20 - Mozilla_1_1
ok 21 - Mozilla_2_0
ok 22 - None
ok 23 - OpenSSL
ok 24 - Perl_5
ok 25 - PostgreSQL
ok 26 - QPL_1_0
ok 27 - SSLeay
ok 28 - Sun
ok 29 - Zlib
ok

Test Summary Report
-------------------
t/devscripts.t      (Wstat: 256 Tests: 10 Failed: 1)
  Failed test:  10
  Non-zero exit status: 1
Files=3, Tests=67,  4 wallclock secs ( 0.06 usr  0.01 sys +  3.56 cusr  0.29 csys =  3.92 CPU)
Result: FAIL
Failed 1/3 test programs. 1/67 subtests failed.
Makefile:876: recipe for target 'test_dynamic' failed
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
/usr/share/cdbs/1/class/makefile.mk:113: recipe for target 'debian/stamp-makefile-check' failed
make: *** [debian/stamp-makefile-check] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Most of the build log is included above.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

Thanks.



More information about the pkg-perl-maintainers mailing list