-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
8301254: UNIX sun/font coding does not detect SuSE in openSUSE Leap distribution #12260
8301254: UNIX sun/font coding does not detect SuSE in openSUSE Leap distribution #12260
Conversation
👋 Welcome back alexsch! A progress list of the required criteria for merging this PR into |
@AlexanderScherbatiy The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
it is distribution not distributive. And I made a suggestion in the bug that what I'd prefer to see is that |
A table with ID and Name values for some docker images:
|
May be it has sense to add a property file which maps OS name used in fontconfig files to OS names from 'os-release` file.
|
I am not sure that would even be right. |
The proposal is to add one
It can be put to the same directory where JDK reads |
Mailing list message from Patrick Chen on client-libs-dev: anyone can unsubscribe or ban me ? spam Le mar. 31 janv. 2023 ? 10:21, Alexander Scherbatiy <alexsch at openjdk.org> a -------------- next part -------------- |
Could you review the updated fix?
The Some improvements can be added.
It could be a good idea to add logging for os name and version in
FcFontConfiguration: |
If I read the code right, what you have now is good enough. If the code really is duplicated 100% - just with different orders - then unifying seems like a good thing. More logging is also fine. A mapping file is something I'd leave until there's a demonstrated need for more than the suse family |
@AlexanderScherbatiy This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 432 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 15c76e4.
Your commit was automatically rebased without conflicts. |
@AlexanderScherbatiy Pushed as commit 15c76e4. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
JDK-8278549
UNIX sun/font coding misses SUSE distro detection on recent distro SUSE 15
adds SuSE detection by checking SLES os name property in/etc/os-release
file.opensuse/leap:15.4
docker defines os name property as"openSUSE Leap"
in/etc/os-release
file which is not recognized as SuSE.The issue is reproduced with Oracle jdk-19.0.2 with custom fontconfig.SuSE.properties file copied to jdk-19.0.2/lib directory.
The fix checks if os name property from
/etc/os-release
containsSUSE
substring.Steps to reproduce.
opensuse/leap:15.4
docker and install freetype and dejavu fonts (do not install fontconfig)Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12260/head:pull/12260
$ git checkout pull/12260
Update a local copy of the PR:
$ git checkout pull/12260
$ git pull https://git.openjdk.org/jdk pull/12260/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12260
View PR using the GUI difftool:
$ git pr show -t 12260
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12260.diff