From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YYCDO2sXGWC+EwAA0tVLHw (envelope-from ) for ; Tue, 02 Feb 2021 09:12:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gAkhN2sXGWCOHAAA1q6Kng (envelope-from ) for ; Tue, 02 Feb 2021 09:12:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9F5BD94053A for ; Tue, 2 Feb 2021 09:12:11 +0000 (UTC) Received: from localhost ([::1]:37092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6rjG-0006ND-Ky for larch@yhetil.org; Tue, 02 Feb 2021 04:12:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6rj8-0006L8-9Z for bug-guix@gnu.org; Tue, 02 Feb 2021 04:12:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50762) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6rj8-0002Ow-1l for bug-guix@gnu.org; Tue, 02 Feb 2021 04:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6rj7-00022o-TN for bug-guix@gnu.org; Tue, 02 Feb 2021 04:12:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#41177: Fontconfig issues in Java applications that use fonts Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 02 Feb 2021 09:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41177 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 41177-submit@debbugs.gnu.org id=B41177.16122571127844 (code B ref 41177); Tue, 02 Feb 2021 09:12:01 +0000 Received: (at 41177) by debbugs.gnu.org; 2 Feb 2021 09:11:52 +0000 Received: from localhost ([127.0.0.1]:34075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6riy-00022R-42 for submit@debbugs.gnu.org; Tue, 02 Feb 2021 04:11:52 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:60860 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6riw-00022H-2u for 41177@debbugs.gnu.org; Tue, 02 Feb 2021 04:11:51 -0500 Received: from alma-ubu.fritz.box (pd951fd16.dip0.t-ipconnect.de [217.81.253.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id B0E713F9BB; Tue, 2 Feb 2021 10:11:48 +0100 (CET) Date: Tue, 2 Feb 2021 10:11:46 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20210202101146.1e221a52@alma-ubu.fritz.box> In-Reply-To: <877doqnx4d.fsf@gnu.org> References: <1589126137.10294.0@terracrypt.net> <11250641-ee7a-94e8-d3c4-ebdabc1c5036@free.fr> <877doqnx4d.fsf@gnu.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/anFxxoqpcTs/g.6XTg2=Y8J"; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabien SK , 41177@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 9F5BD94053A X-Spam-Score: -4.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4no1mjhI5wR4 --Sig_/anFxxoqpcTs/g.6XTg2=Y8J Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 06 Jan 2021 12:05:54 +0100 Ludovic Court=C3=A8s wrote: > Hi, >=20 > Fabien SK skribis: >=20 > > Regarding Java, I think (but I'm not sure) that it's loaded by > > "libawt_xawt.so". In fontpath.c [1], there is a dlopen of > > libfontconfig. But if I do a "ldd" on the shared library itself, it > > looks like it does not depend on libfontconfig.so. > > [1] > > https://github.com/openjdk/jdk16/blob/37043b05576c8b81b43ac41a8f06de0d0= bbb3f5b/src/java.desktop/unix/native/common/awt/fontpath.c#L566 > > Also libfontconfig is not on its RUNPATH: =20 >=20 > Indeed, all the =E2=80=98openjdk=E2=80=99 packages have fontconfig has an= input, but > =E2=80=98guix size openjdk | grep fontconfig=E2=80=99 shows it=E2=80=99s = not there, meaning > that nothing actually linked against fontconfig. >=20 > Perhaps we should patch this =E2=80=98fontpath.c=E2=80=99, with =E2=80=98= substitute*=E2=80=99, so that > it refers to libfontconfig.so by its absolute file name? We do that for icedtea (i.e. OpenJDK until version 8), but not for OpenJDK. I applied the same trick for OpenJDK 9 and will no longer get the NullPointerException. Let me clean it up a bit and apply it to all later OpenJDKs as well (might be already done through inheritence, but let me check), then I will send out a patch. Bj=C3=B6rn --Sig_/anFxxoqpcTs/g.6XTg2=Y8J Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYBkXUwAKCRC/KGy2WT5f /SvIAJ4wc3LJ+QXm2Q839alqUR+L4dgFgACgifsxhvuksQqSrxdwPjAEvEhjYQU= =EkXe -----END PGP SIGNATURE----- --Sig_/anFxxoqpcTs/g.6XTg2=Y8J--