Bug#1067316: gnucash-docs: FTBFS: Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-17-openjdk-amd64/lib/libfontmanager.so: libharfbuzz.so.0: cannot open shared object file:

2024-04-20 Thread Vincent Lefevre
[Not reassigning yet to openjdk-17-jre-headless, as the change
was done on purpose, but Cc-ing the OpenJDK Team.]

Hi,

Since no-one looked at this issue in a month and gnucash-docs
has now been removed from testing...

On 2024-03-20 22:03:18 +0100, Lucas Nussbaum wrote:
[...]
> > Exception in thread "main" java.lang.UnsatisfiedLinkError: 
> > /usr/lib/jvm/java-17-openjdk-amd64/lib/libfontmanager.so: libharfbuzz.so.0: 
> > cannot open shared object file: No such file or directory
[...]

Indeed, on my machine

qaa:~> ldd /usr/lib/jvm/java-17-openjdk-amd64/lib/libfontmanager.so | grep 
libharfbuzz
libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 
(0x7fe984534000)

where /usr/lib/jvm/java-17-openjdk-amd64/lib/libfontmanager.so
comes from openjdk-17-jre-headless, but the build log shows
that libharfbuzz0b is not installed, while being recommended by
openjdk-17-jre-headless. However, I would say that even though
libharfbuzz.so.0 is used by a particular library, this should
be a "Depends:", not a "Recommends:". In any case, I think
that gnucash-docs is not supposed to know the libfontmanager.so
internals, i.e. this cannot be a bug in gnucash-docs.

But also

qaa:~> ldd /usr/lib/jvm/java-17-openjdk-amd64/lib/libfontmanager.so | grep 
freetype
libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 
(0x7f835ed1d000)

while libfreetype6 is also only recommended.

openjdk-17 (17.0.10+7-3) unstable; urgency=medium
[...]
  * Make the dependencies for libfontmanager.so and libjsound.so
recommendations in jre-headless, and dependencies in jre.
[...]
 -- Matthias Klose   Mon, 11 Mar 2024 16:08:33 +0100

which was done in commit

https://salsa.debian.org/openjdk-team/openjdk/-/commit/6f0e4b17a1ff58aaf32da9be9abcf0224c481885

But why?

A warning has been added in

https://salsa.debian.org/openjdk-team/openjdk/-/commit/8010273018af3ada65de8901735ab60bb0dd5c0e

but this is the kind of things that building systems will ignore.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#1067316: gnucash-docs: FTBFS: Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-17-openjdk-amd64/lib/libfontmanager.so: libharfbuzz.so.0: cannot open shared object file:

2024-03-20 Thread Lucas Nussbaum
Source: gnucash-docs
Version: 5.5-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240319 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[5]: Entering directory '/<>/build'
> [  0%] Generating gnucash-guide.fo
> cd /<>/build/zh/guide && /usr/bin/cmake -E make_directory 
> /<>/build/share/doc//zh
> cd /<>/build/zh/guide && /usr/bin/xsltproc --path 
> /<>/docbook --xinclude --nonet -o 
> /<>/build/zh/guide/gnucash-guide.fo --stringparam 
> fop1.extensions 1 --stringparam variablelist.as.blocks 1 --stringparam 
> glosslist.as.blocks 1 /<>/zh/guide/../xsl/zh-fo.xsl 
> /<>/zh/guide/index.docbook
> Making portrait pages on USletter paper (8.5inx11in)
> [  3%] Generating ../../share/doc/zh/gnucash-guide.pdf
> cd /<>/build/zh/guide && /usr/bin/fop -l zh -c 
> /<>/build/zh/guide/fop.xconf -fo 
> /<>/build/zh/guide/gnucash-guide.fo -pdf 
> /<>/build/share/doc//zh/gnucash-guide.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [warning] /usr/bin/fop: Unable to locate serializer in /usr/share/java
> [warning] /usr/bin/fop: Unable to locate xalan2 in /usr/share/java
> [warning] /usr/bin/fop: Unable to locate xercesImpl in /usr/share/java
> [WARN] FOUserAgent - Font "Symbol,normal,700" not found. Substituting with 
> "Symbol,normal,400".
> [WARN] FOUserAgent - Font "ZapfDingbats,normal,700" not found. Substituting 
> with "ZapfDingbats,normal,400".
> [WARN] FOUserAgent - Hyphenation pattern not found. URI: zh.
> [INFO] FOUserAgent - Rendered page #1.
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 14384 millipoints. (See position 
> 18:448)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 15080 millipoints. (See position 
> 28:235)
> [INFO] TTFFile - This is a TrueType collection file with 4 fonts
> [INFO] TTFFile - Containing the following fonts: 
> [INFO] TTFFile - AR PL UKai CN <-- selected
> [INFO] TTFFile - AR PL UKai HK
> [INFO] TTFFile - AR PL UKai TW
> [INFO] TTFFile - AR PL UKai TW MBE
> [INFO] FOUserAgent - Rendered page #2.
> [INFO] FOUserAgent - Rendered page #3.
> [INFO] FOUserAgent - Rendered page #4.
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 98:462)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 100:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 102:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 104:299)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 105:241)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 106:241)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 107:303)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 108:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 109:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 112:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 113:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 122:462)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 126:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 127:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See position 
> 128:237)
> [WARN] FOUserAgent - The contents of fo:block line 1 exceed the available 
> area in the inline-progression direction by 2000 millipoints. (See