JDK-8215381 : Investigate if current implementation of --license-file is correct for Debian packages
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-13
  • Updated: 2019-09-23
  • Resolved: 2019-08-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
internalFixed
Related Reports
Relates :  
Relates :  
Description
While working on JDK-8214495 to verify if license file is working correctly I was not able to figure out how to read or how license file should be displayed to end user. I can see that we creating copyright file for Debian package, but I cannot see any license when installing package via Software Manager on Ubuntu or using command line command dpkg. Also, I was not able to find any references on system to license text provided.
Comments
webrev: http://cr.openjdk.java.net/~asemenyuk/8215381/webrev.00
19-08-2019

Debian copyright file can contain a bunch of fields that we don't have command line options for. We also can't set them to defaults that would work for all users. I suggest we introduce --linux-deb-copyright option that will allow users to specify their own copyright file. In the default copyright file provided by jpackage we can just insert "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/" to make it compliant with the spec as this is the only mandatory field. So the default copyright file would look like: --- Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: * Copyright: APPLICATION_COPYRIGHT License: APPLICATION_LICENSE_TEXT --- Should be sufficient for most users. If somebody would like more customization, they should provide their own copyright file using --linux-deb-copyright option
18-08-2019

We can hold on with --linux-deb-copyright option. But this would be really a minor change to the JEP anyways.
16-08-2019