JDK-8213941 : Debian linux problems in JavaPackager
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: internal
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_debian_3.0
  • CPU: x86_64
  • Submitted: 2018-11-15
  • Updated: 2019-08-20
  • Resolved: 2019-08-17
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
Cloners :  
Description
These problems were reported against the packager that Johan Vos backported for OpenJDK 11.
We need to determine if same problems occur in jpackager and  if so fix them.

1) The control file for debian package does not set correct description

--name test
--description This is a Test Application

/tmp/jdk.packager607148779833718376/linux/control
Package: test
Description: test

The RPM gets it correctly
Summary     : test
Description :
This is a Test Application


2)
Category is not set on either DEB or RPM
  --category
          Category or group of the application.
--category "Some/Category/Application"
Group: Unspecified
Section: unknown

3)
The jpackager command line should have the flag --release in addition to
--version. The only way to set a different release than "1" is to supply a
custom spec file for RPM and control file for DEB.
package/linux/test.spec
Version: 1.0.0
Release: RC1
package/linux/control
Version: 1.0.0-RC1
Comments
Review: http://cr.openjdk.java.net/~asemenyuk/8213941/webrev.00
16-08-2019

Item (1) is not reproducible with the recent jpackage. Package description is set properly
15-08-2019

Release value applies to DEB and RPM packages so I think --linux-app-release is more accurate. Created JDK-8229138 to track work on --linux-app-release option
05-08-2019

Items (1) and (2) can be addressed without CLI change. item (3) would require adding cli option "--app-release <value>" or "--linux-app-release <value>" and should probably be filed as a separate enhancement.
05-08-2019