-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenJ9 should not include man pages for non-existent tools #8732
Comments
@lumpfish @andrew-m-leonard can you pls take a look. |
@keithc-ca - please can you confirm that for the current openj9 version the executables which are not provided (and therefore the man pages which should be removed from the openjdk-openj9 build) are jinfo and jstatd.
|
Note OpenJ9 has an independent impl of these utilities so the docs may not match. |
Does openj9 provide its own man page (.1) files for its implementation? |
The answer varies by jdk version:
|
Our implementation should match or the utility should have a different name. |
No. Seems a good idea though to add these in the future. In particular for the OpenJ9 specific utilities.
That is incompatible with the OpenJ9 strategy. The utilities were recently added to OpenJ9 in order to be somewhat compatible with the Hotspot versions, so users won't have to change in order to use OpenJ9. However the OpenJ9 versions are subsets, and don't work the same in all cases. I'll find the man pages and read them to see if I spot any problems, and update here. |
|
Looking at jdk11. In summary we should remove the man pages for these utilities until such time as the OpenJ9 commands are completely compatible (probably never), or OpenJ9 creates man pages for the OpenJ9 utilities. jcmd - refers to jps - contains a jstack - refers to jstat - generally not compatible, OpenJ9 only supports |
I had been working on this; jdk8 and jdk11 were straight-forward and I have opened pull requests:
When I got to jdknext, I discovered that things are different: the man pages are associated with their respective modules and so the filtering needs to be sprinkled through those modules, but I didn't immediately see the necessary make hooks to enable that. |
Seems likely jdk14 won't be fixed for the 0.20 release, moving this forward. |
With the above changes to jdk14 and jdknext, I think the only remaining unwanted man page is |
@keithc-ca can this be closed, or do you want to wait for the upstream change to occur? |
As we don't expect any more changes will be required specifically for openj9, I think it's reasonable to close this. |
A user was concerned [1] about warnings when installing OpenJ9 on Ubuntu 18.04 via a PPA [2], for example:
OpenJ9 images should not include man pages for commands that are not provided.
[1] https://stackoverflow.com/questions/56678788/i-got-missing-executeable-files-after-installing-openjdk-openj9-in-ubuntu-18-04
[2] https://launchpad.net/~rpardini/+archive/ubuntu/adoptopenjdk
The text was updated successfully, but these errors were encountered: