[devscripts] branch master updated (30c25e6 -> cae7c5d)

Osamu Aoki osamu at debian.org
Sat Nov 28 23:20:34 UTC 2015


Hi,

This sanity check code in test/test_licensecheck_SL seems not just
testing licensecheck but also testing Software::License.  Naturally, any
bug in Software::License causes side effects ... build failure :-)

This test fails when this is built under the stable system while this is
built OK under the unstable system.... i.e., the backport needs some
patch to this test code or this code needs to adjust for the version of
libsoftware-license-perl.

Here is what happens under the stable backport.

 $ debuild
...
./test_licensecheck_SL
1..28
ok 1 - GPL_2
ok 2 - OpenSSL
# licensecheck failed to parse OpenSSL as expected
ok 3 - GFDL_1_2
# licensecheck failed to parse GFDL_1_2 as expected
ok 4 - GPL_3
ok 5 - Perl_5
# licensecheck failed to parse Perl_5 as expected
ok 6 - FreeBSD
ok 7 - MIT
ok 8 - Apache_2_0
ok 9 - Apache_1_1
# licensecheck failed to parse Apache_1_1 as expected
ok 10 - Mozilla_2_0
ok 11 - GPL_1
not ok 12 - BSD
#   Failed test 'BSD'
#   at ./test_licensecheck_SL line 67.
#          got: 'BSD (3 clause)'
#     expected: 'UNKNOWN'
ok 13 - Mozilla_1_0
# licensecheck failed to parse Mozilla_1_0 as expected
ok 14 - Mozilla_1_1
# licensecheck failed to parse Mozilla_1_1 as expected
ok 15 - CC0_1_0
# licensecheck failed to parse CC0_1_0 as expected
ok 16 - GFDL_1_3
# licensecheck failed to parse GFDL_1_3 as expected
ok 17 - Artistic_2_0
ok 18 - LGPL_3_0
ok 19 - LGPL_2
ok 20 - None
# licensecheck failed to parse None as expected
ok 21 - SSLeay
ok 22 - Sun
# licensecheck failed to parse Sun as expected
ok 23 - Zlib
ok 24 - QPL_1_0
ok 25 - PostgreSQL
# licensecheck failed to parse PostgreSQL as expected
ok 26 - AGPL_3
# licensecheck failed to parse AGPL_3 as expected
ok 27 - Artistic_1_0
ok 28 - LGPL_2_1
# Looks like you failed 1 test of 28.
Makefile:2: recipe for target 'test' failed
...

So build failure is caused by test for BSD which stable version of
libsoftware-license-perl returns "BSD (# clause)" while unstable one
"UNKNOWN".

As I see the unstable version of libsoftware-license-perl has new change:

libsoftware-license-perl (0.103010-4) unstable; urgency=medium

  * removed extraneous single dot from lgpl-* summaries
  * fix LGPL wording for lgpl-* summaries to fix lintian note
  * added bsd-3-clause short name
  * added bsd summary
  * refreshed patch short-name-fallback

 -- Dominique Dumont <dod at debian.org>  Wed, 22 Jul 2015 18:41:29 +0200

It will be nice if your test code is designed to adjust for any future
version difference of external code.

Osamu




More information about the devscripts-devel mailing list