FS#68875 - [jenkins] Add fontconfig as (opt) dep

Attached to Project: Community Packages
Opened by Marius Kleber (MK13) - Sunday, 06 December 2020, 23:18 GMT
Last edited by Robin Candau (Antiz) - Tuesday, 18 July 2023, 17:20 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Filipe Laíns (FFY00)
Robin Candau (Antiz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
Jenkins fails to start with exception:
java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
at sun.font.SunFontManager$2.run(SunFontManager.java:431)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at java.awt.Font.getFont2D(Font.java:491)
at java.awt.Font.getFamily(Font.java:1220)
at java.awt.Font.getFamily_NoClientCode(Font.java:1194)
at java.awt.Font.getFamily(Font.java:1186)
at java.awt.Font.toString(Font.java:1683)
at hudson.util.ChartUtil.<clinit>(ChartUtil.java:260)
at hudson.WebAppMain.contextInitialized(WebAppMain.java:248)

Googling led to the hint to install fonctconfig, which indeed helped. So I propose to add it at least as optional dependency of the package.

Additional info:
* package version(s) 2.269-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
This task depends upon

Closed by  Robin Candau (Antiz)
Tuesday, 18 July 2023, 17:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in v2.415-3 https://gitlab.archlinux.org/archlinux/p ackaging/packages/jenkins/-/commit/363ff bdba9b1186f8ec42e129cf09eaa7e5e1a97
Comment by Toolybird (Toolybird) - Saturday, 01 April 2023, 00:17 GMT
Dupe  FS#71402 
Comment by Robin Candau (Antiz) - Tuesday, 18 July 2023, 17:19 GMT
I confirm this. I added 'fontconfig' as a dependency in v2.415-3 (currently in testing): https://gitlab.archlinux.org/archlinux/packaging/packages/jenkins/-/commit/363ffbdba9b1186f8ec42e129cf09eaa7e5e1a97

Loading...