#513967 licensecheck: options: detect buried license by default (--tail or --lines=0)

Package:
licensecheck
Source:
licensecheck
Submitter:
Jeffrey Ratcliffe
Date:
2023-05-15 13:39:06 UTC
Severity:
wishlist
Tags:
Blocked By:
Bug Title
960695

  4

licensecheck: add usage option, to covermore than current "only look for source code"

wishlist stable testing unstable about 1 year ago

#513967#5
Date:
2009-02-02 20:50:52 UTC
From:
To:
the title says it all ;)
#513967#10
Date:
2009-02-02 21:45:48 UTC
From:
To:
severity 513967 wishlist
thanks

Well, not quite. :-)

For example, it doesn't tell us where we can find a copy of the files
(neither apt-cache search nor rmadison yielded any results); a sample of
the text would have been ideal. After a little searching, I'm assuming
that the software in question is
http://ocropus.googlecode.com/files/ocropus-0.2.tar.gz, which I'm now
downloading.

Since licensecheck doesn't claim to be able to detect every possible
license, I'm downgrading this to wishlist.

Regards,

Adam

#513967#17
Date:
2009-02-02 22:24:50 UTC
From:
To:
[...]

After looking in to this some more, there turned out to be two separate
issues. Firstly, a slightly embarrassing error in a regular expression
meant that the default list of files to check didn't include .h files;
I've fixed that in SVN.

The second is that although ext/lua/lua.h does contain an MIT/X11 style
license statement, it begins at line 362 of the file. By default,
licensecheck only checks the first 60 lines of each file; this is
overrideable using --lines on the command line, or by setting
LICENSECHECK_PARSELINES in the configuration files.

One of my co-maintainers may disagree, but I'm not convinced that
licensecheck should, by default, be reading all the way through each
file in order to try and find a license statement.

Regards,

Adam

#513967#30
Date:
2018-04-12 07:54:11 UTC
From:
To:
How about licensecheck detects pattern "See Copyright Notice at the
end of this file" and goes LICENSECHECK_PARSELINES from the end to
look for a license.

#513967#35
Date:
2018-04-12 14:56:59 UTC
From:
To:
Excerpts from Vasyl Vavrychuk's message of april 12, 2018 9:54 am:

Heh - that's a clever idea.

I worry it might be too clever, though: It would complicate processing
by needing to backtrack and rescan based on output of scanning.  Not
very complicated but I would prefer to keep processing logic simple if
possible.

Also, is it really needed? codesearch.debian.org has only ~100 hits for
that pattern, and I believe licensecheck already by default checks at
the end too.

Could you perhaps point at some real live examples where you believe
this kind of mechanism would be useful?


Thanks,

 - Jonas

#513967#40
Date:
2018-04-12 21:01:54 UTC
From:
To:
licensecheck seems not checking at the end by default because for
https://raw.githubusercontent.com/lua/lua/master/lua.h I get

licensecheck lua.h
lua.h: UNKNOWN

Maybe described feature is needed for reporter of this bug. Also if we
want to have fully automated way to licensecheck of all Debian
packages than we need it.

#513967#45
Date:
2018-04-12 21:26:53 UTC
From:
To:
Excerpts from Vasyl Vavrychuk's message of april 12, 2018 11:01 pm:

Oh.  Looks like the --tail option is broken. :-/

I normally use --lines 0 (and testsuite is incomplete), so didn't notice
this myself.

It is (slower but) more reliable to use "--lines 0".


 - Jonas

#513967#54
Date:
2020-05-15 14:49:45 UTC
From:
To:
I believe the issue originally reported is addressed when licensecheck
can "switch profile", including a one where default for option --lines
is 0.

Bug#960695 tracks the implementation of that general mechanism.

 - Jonas

#513967#65
Date:
2023-05-12 14:37:05 UTC
From:
To:
Good morning,

 Attached please find your PDF account statement and invoice as of 05/11/2023. Please notice you have a past due balance  for invoice IN0099203.

 Please provide payment as soon as possible.




 Best Regards,
 Shawneen Chisholm
 Accounts Receivable Coordinator

 UNITED RENTALS, INC.
Branch L02 BONNYVILLE
4920 56TH AVE
BONNYVILLE AB T9N 2N8 CA
780-826-7610


 CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s). This may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message, please alert the sender immediately by reply email and then delete this message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited

#513967#70
Date:
2023-05-12 14:36:46 UTC
From:
To:
Good morning,

 Attached please find your PDF account statement and invoice as of 05/11/2023. Please notice you have a past due balance  for invoice IN0099203.

 Please provide payment as soon as possible.




 Best Regards,
 Shawneen Chisholm
 Accounts Receivable Coordinator

 UNITED RENTALS, INC.
Branch L02 BONNYVILLE
4920 56TH AVE
BONNYVILLE AB T9N 2N8 CA
780-826-7610


 CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s). This may contain confidential and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message, please alert the sender immediately by reply email and then delete this message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited