Bug#762070: devscripts: [licensecheck] should check also javascript files by default

Dominique Dumont dod at debian.org
Wed Sep 17 18:26:18 UTC 2014


Package: devscripts
Version: 2.14.6
Severity: wishlist

Dear Maintainer,

For better or for worse, javascript is becoming a widely used language and
more debian package are about packaging javascript. Packaging javascript
requires an analysis of the javacript files to check their license and
copyright. 

Unfortunately, by default, licensecheck does not parse javascript files.
One has to use the -c option to check for licenses in copyright files.

This small patch add js in the default language list.

All the best

--- /usr/bin/licensecheck~      2014-08-05 16:40:16.000000000 +0200
+++ /usr/bin/licensecheck       2014-09-17 20:24:07.021840282 +0200
@@ -160,7 +160,7 @@
 $default_ignore_regex =~ s/^#.*$//mg;
 $default_ignore_regex =~ s/\n//sg;
 
-my $default_check_regex = '\.(c(c|pp|xx)?|h(h|pp|xx)?|f(77|90)?|go|p(l|m)|xs|sh|php|py(|x)|rb|java|vala|el|sc(i|e)|cs|pas|inc|dtd|xsl|mod|m|tex|mli?|(c|l)?hs)$';
+my $default_check_regex = '\.(c(c|pp|xx)?|h(h|pp|xx)?|f(77|90)?|go|p(l|m)|xs|sh|php|py(|x)|rb|js|java|vala|el|sc(i|e)|cs|pas|inc|dtd|xsl|mod|m|tex|mli?|(c|l)?hs)$';
 
 my $modified_conf_msg;


*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
DEBCHANGE_RELEASE_HEURISTIC=changelog
DEBSIGN_KEYID="49AB2B6C"
DEBUILD_LINTIAN=yes
DEBUILD_LINTIAN_OPTS="-i -I --show-overrides"
USCAN_DESTDIR=../tarballs
DEBRELEASE_DEBS_DIR=../build-area

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev     1.17.13
ii  libc6        2.19-11
ii  perl         5.20.0-6
ii  python3      3.4.1-1
pn  python3:any  <none>

Versions of packages devscripts recommends:
ii  at                          3.1.15-1
ii  curl                        7.38.0-1
ii  dctrl-tools                 2.23
ii  debian-keyring              2014.08.31
ii  dput-ng [dput]              1.8
ii  dupload                     2.7.0
ii  equivs                      2.0.9
ii  fakeroot                    1.20.1-1.1
ii  file                        1:5.19-2
ii  gnupg                       1.4.18-4
ii  libdistro-info-perl         0.13
ii  libencode-locale-perl       1.03-1
ii  libjson-perl                2.61-1
ii  liblwp-protocol-https-perl  6.06-2
ii  libparse-debcontrol-perl    2.005-4
ii  libsoap-lite-perl           1.11-1
ii  liburi-perl                 1.64-1
ii  libwww-perl                 6.08-1
ii  lintian                     2.5.27
ii  man-db                      2.6.7.1-1
ii  patch                       2.7.1-6
ii  patchutils                  0.3.3-1
ii  python3-debian              0.1.23
pn  python3-magic               <none>
ii  sensible-utils              0.0.9
ii  strace                      4.9-2
ii  unzip                       6.0-12
ii  wdiff                       1.2.2-1
ii  wget                        1.15-1+b1
ii  xz-utils                    5.1.1alpha+20120614-2

Versions of packages devscripts suggests:
ii  bsd-mailx [mailx]            8.1.2-0.20140825cvs-1
ii  build-essential              11.7
pn  cvs-buildpackage             <none>
pn  devscripts-el                <none>
pn  gnuplot                      <none>
ii  gpgv                         1.4.18-4
pn  libauthen-sasl-perl          <none>
ii  libfile-desktopentry-perl    0.07-1
ii  libnet-smtp-ssl-perl         1.01-3
ii  libterm-size-perl            0.207-1+b2
ii  libtimedate-perl             2.3000-2
ii  libyaml-syck-perl            1.27-2+b2
ii  mutt                         1.5.23-1.1
ii  openssh-client [ssh-client]  1:6.6p1-7
pn  svn-buildpackage             <none>
ii  w3m                          0.5.3-17

-- no debconf information



More information about the devscripts-devel mailing list