Browse Source

Declare fontconfig and a font for the packages that render text

pull/16341/head
Viacheslav Klimov 2 months ago
parent
commit
20249ec8f4
Failed to extract signature
  1. 1
      application/pom.xml
  2. 10
      packaging/java/build.gradle
  3. 3
      pom.xml
  4. 1
      report/pom.xml

1
application/pom.xml

@ -30,6 +30,7 @@
<pkg.name>thingsboard</pkg.name> <pkg.name>thingsboard</pkg.name>
<pkg.win.dist>${project.build.directory}/windows</pkg.win.dist> <pkg.win.dist>${project.build.directory}/windows</pkg.win.dist>
<pkg.copyInstallScripts>true</pkg.copyInstallScripts> <pkg.copyInstallScripts>true</pkg.copyInstallScripts>
<pkg.requiresFonts>true</pkg.requiresFonts>
<pkg.implementationTitle>ThingsBoard</pkg.implementationTitle> <pkg.implementationTitle>ThingsBoard</pkg.implementationTitle>
<pkg.mainClass>org.thingsboard.server.ThingsboardServerApplication</pkg.mainClass> <pkg.mainClass>org.thingsboard.server.ThingsboardServerApplication</pkg.mainClass>
</properties> </properties>

10
packaging/java/build.gradle

@ -106,6 +106,10 @@ buildRpm {
// RPM boolean expression syntax, since .or() chaining is for DEB only // RPM boolean expression syntax, since .or() chaining is for DEB only
requires("(java-25 or java-25-headless or jre-25 or jre-25-headless)") requires("(java-25 or java-25-headless or jre-25 or jre-25-headless)")
requires("shadow-utils", "", Flags.SCRIPT_PRE) requires("shadow-utils", "", Flags.SCRIPT_PRE)
if ("${pkgRequiresFonts}".equalsIgnoreCase("true")) {
requires("fontconfig")
requires("dejavu-sans-fonts")
}
from("${buildDir}/conf") { from("${buildDir}/conf") {
include "${pkgName}.conf" include "${pkgName}.conf"
@ -150,6 +154,12 @@ buildDeb {
requires("openjdk-25-jre").or("java25-runtime").or("oracle-java25-installer").or("openjdk-25-jre-headless") requires("openjdk-25-jre").or("java25-runtime").or("oracle-java25-installer").or("openjdk-25-jre-headless")
preDepends("adduser") preDepends("adduser")
if ("${pkgRequiresFonts}".equalsIgnoreCase("true")) {
requires("fontconfig")
requires("fonts-dejavu-core")
// Debian and Ubuntu OpenJDK builds load the system HarfBuzz for text layout but only recommend it
requires("libharfbuzz0b")
}
from("${buildDir}/conf") { from("${buildDir}/conf") {
include "${pkgName}.conf" include "${pkgName}.conf"

3
pom.xml

@ -58,6 +58,8 @@
module depends on the ZIP artifact, so this flag can be toggled freely without module depends on the ZIP artifact, so this flag can be toggled freely without
breaking downstream modules. --> breaking downstream modules. -->
<pkg.skip.zip>false</pkg.skip.zip> <pkg.skip.zip>false</pkg.skip.zip>
<!-- Set to true in services that render text with AWT (SVG previews, reports): the JDK needs fontconfig and a font. -->
<pkg.requiresFonts>false</pkg.requiresFonts>
<pkg.user>thingsboard</pkg.user> <pkg.user>thingsboard</pkg.user>
<pkg.implementationTitle>${project.name}</pkg.implementationTitle> <pkg.implementationTitle>${project.name}</pkg.implementationTitle>
<pkg.unixLogFolder>/var/log/${pkg.name}</pkg.unixLogFolder> <pkg.unixLogFolder>/var/log/${pkg.name}</pkg.unixLogFolder>
@ -628,6 +630,7 @@
<arg>-PpkgUser=${pkg.user}</arg> <arg>-PpkgUser=${pkg.user}</arg>
<arg>-PpkgInstallFolder=${pkg.installFolder}</arg> <arg>-PpkgInstallFolder=${pkg.installFolder}</arg>
<arg>-PpkgCopyInstallScripts=${pkg.copyInstallScripts}</arg> <arg>-PpkgCopyInstallScripts=${pkg.copyInstallScripts}</arg>
<arg>-PpkgRequiresFonts=${pkg.requiresFonts}</arg>
<arg>-PpkgLogFolder=${pkg.unixLogFolder}</arg> <arg>-PpkgLogFolder=${pkg.unixLogFolder}</arg>
<arg>-PskipDeb=${pkg.skip.deb}</arg> <arg>-PskipDeb=${pkg.skip.deb}</arg>
<arg>-PskipRpm=${pkg.skip.rpm}</arg> <arg>-PskipRpm=${pkg.skip.rpm}</arg>

1
report/pom.xml

@ -27,6 +27,7 @@
<pkg.name>tb-report</pkg.name> <pkg.name>tb-report</pkg.name>
<pkg.win.dist>${project.build.directory}/windows</pkg.win.dist> <pkg.win.dist>${project.build.directory}/windows</pkg.win.dist>
<pkg.copyInstallScripts>true</pkg.copyInstallScripts> <pkg.copyInstallScripts>true</pkg.copyInstallScripts>
<pkg.requiresFonts>true</pkg.requiresFonts>
<pkg.implementationTitle>ThingsBoard Report Service</pkg.implementationTitle> <pkg.implementationTitle>ThingsBoard Report Service</pkg.implementationTitle>
<pkg.mainClass>org.thingsboard.server.report.ThingsboardReportApplication</pkg.mainClass> <pkg.mainClass>org.thingsboard.server.report.ThingsboardReportApplication</pkg.mainClass>
</properties> </properties>

Loading…
Cancel
Save