From unknown Sun Jun 22 04:06:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46451] [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Feb 2021 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46451@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.16130852584219 (code B ref -1); Thu, 11 Feb 2021 23:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2021 23:14:18 +0000 Received: from localhost ([127.0.0.1]:59522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALAA-00015z-Eh for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:14:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:40516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALA7-00015q-D1 for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:14:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lALA7-0000C3-8C for guix-patches@gnu.org; Thu, 11 Feb 2021 18:14:15 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:56848 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lALA5-0002zp-5S for guix-patches@gnu.org; Thu, 11 Feb 2021 18:14:15 -0500 Received: from alma-ubu.fritz.box (pd951f307.dip0.t-ipconnect.de [217.81.243.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 7D3B33FC05 for ; Fri, 12 Feb 2021 00:14:07 +0100 (CET) Date: Fri, 12 Feb 2021 00:14:05 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20210212001405.48cabc72@alma-ubu.fritz.box> 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_/f_Aey9eovVGi4oFa8AWwK+x"; protocol="application/pgp-signature" Received-SPF: none client-ip=83.151.27.109; envelope-from=bjoern.hoefling@bjoernhoefling.de; helo=bjoernhoefling.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --Sig_/f_Aey9eovVGi4oFa8AWwK+x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable These two patches fix a NullPointerException in the OpenJDK packages. The patches apply only to OpenJDK9 and OpenJDK11, but with inheritence all OpenJDKx with x\in[9..14] are covered. Here is the bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41177 In order to test it you can use the following Main.java: ~~~~~~ import java.awt.*; public class Main { public static void main(String[] args) { String fonts[] =3D GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableF= ontFamilyNames(); for ( int i =3D 0; i < fonts.length; i++ ) { System.out.println(fonts[i]); } } } ~~~~~~~~ Compile: javac Main.java Run: java -cp . Main It should print a list of the available fonts. Bj=C3=B6rn Bj=C3=B6rn H=C3=B6fling (2): gnu: openjdk@9 : Add phase to hardcode libraries. gnu: openjdk11: Add phase to hardcode libraries. gnu/packages/java.scm | 56 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) --=20 2.27.0 --Sig_/f_Aey9eovVGi4oFa8AWwK+x Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYCW6PQAKCRC/KGy2WT5f /YoYAJ4gxShHBii0rv4Am4RvLDwR2LlHQwCgqcAO28pJRrsYFPPhXY8Ap96sO+w= =hkhC -----END PGP SIGNATURE----- --Sig_/f_Aey9eovVGi4oFa8AWwK+x-- From unknown Sun Jun 22 04:06:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46451] [PATCH 1/2] gnu: openjdk@9 : Add phase to hardcode libraries. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Feb 2021 23:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46451@debbugs.gnu.org Received: via spool by 46451-submit@debbugs.gnu.org id=B46451.16130856254817 (code B ref 46451); Thu, 11 Feb 2021 23:21:01 +0000 Received: (at 46451) by debbugs.gnu.org; 11 Feb 2021 23:20:25 +0000 Received: from localhost ([127.0.0.1]:59537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALG0-0001FZ-4v for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:20:25 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:33530 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALFz-0001FR-48 for 46451@debbugs.gnu.org; Thu, 11 Feb 2021 18:20:19 -0500 Received: from alma-ubu.fritz.box (pd951f307.dip0.t-ipconnect.de [217.81.243.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 969853FC05 for <46451@debbugs.gnu.org>; Fri, 12 Feb 2021 00:20:17 +0100 (CET) Date: Fri, 12 Feb 2021 00:20:16 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20210212002016.18e0debe@alma-ubu.fritz.box> In-Reply-To: <20210212001405.48cabc72@alma-ubu.fritz.box> References: <20210212001405.48cabc72@alma-ubu.fritz.box> 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_/rvoZwt.B7hjVXSZy5eH8rPl"; protocol="application/pgp-signature" X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/rvoZwt.B7hjVXSZy5eH8rPl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable * gnu/packages/java.scm (openjdk9)[arguments]: Add patch-jni-libs phase. This fixes a NullPointerException related to using fontconfig reported by Jonathan Frederickson in . --- gnu/packages/java.scm | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index d6afb2e9d3..a63dad8755 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -10,7 +10,7 @@ ;;; Copyright =C2=A9 2018, 2019 G=C3=A1bor Boskovits ;;; Copyright =C2=A9 2018 Chris Marusich ;;; Copyright =C2=A9 2018, 2019, 2020 Efraim Flashner -;;; Copyright =C2=A9 2019, 2020 Bj=C3=B6rn H=C3=B6fling +;;; Copyright =C2=A9 2019, 2020, 2021 Bj=C3=B6rn H=C3=B6fling ;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright =C2=A9 2020 Raghav Gururajan ;;; Copyright =C2=A9 2020 Maxim Cournoyer @@ -1928,6 +1928,33 @@ new Date();")) (number->string (parallel= -job-count)))) '()) ,@make-flags)))) + (add-after 'unpack 'patch-jni-libs + ;; Hardcode dynamically loaded libraries. + (lambda _ + (let* ((library-path (search-path-as-string->list + (getenv "LIBRARY_PATH"))) + (find-library (lambda (name) + (search-path + library-path + (string-append "lib" name ".so"))))) + (for-each + (lambda (file) + (catch 'decoding-error + (lambda () + (substitute* file + (("VERSIONED_JNI_LIB_NAME\\(\"(.*)\", \"(.*)\"\\)" + _ name version) + (format #f "\"~a\"" (find-library name))) + (("JNI_LIB_NAME\\(\"(.*)\"\\)" _ name) + (format #f "\"~a\"" (find-library name))))) + (lambda _ + ;; Those are safe to skip. + (format (current-error-port) + "warning: failed to substitute: ~a~%" + file)))) + (find-files "." + "\\.c$|\\.h$")) + #t))) ;; Some of the libraries in the lib/ folder link to libjvm.so. ;; But that shared object is located in the server/ folder, so it ;; cannot be found. This phase creates a symbolic link in the --=20 2.27.0 --Sig_/rvoZwt.B7hjVXSZy5eH8rPl Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYCW7sAAKCRC/KGy2WT5f /aA2AJ434CePc5pnj48d+AqnrZm+lCLnagCdFHYGv0ItRV5u1Bux3/FIw+sr+Yg= =BMii -----END PGP SIGNATURE----- --Sig_/rvoZwt.B7hjVXSZy5eH8rPl-- From unknown Sun Jun 22 04:06:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46451] [PATCH 2/2] gnu: openjdk11: Add phase to hardcode libraries. Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Feb 2021 23:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46451@debbugs.gnu.org Received: via spool by 46451-submit@debbugs.gnu.org id=B46451.16130856564870 (code B ref 46451); Thu, 11 Feb 2021 23:21:02 +0000 Received: (at 46451) by debbugs.gnu.org; 11 Feb 2021 23:20:56 +0000 Received: from localhost ([127.0.0.1]:59540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALGa-0001GT-Eg for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:20:56 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:33532 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALGY-0001GF-Hm for 46451@debbugs.gnu.org; Thu, 11 Feb 2021 18:20:55 -0500 Received: from alma-ubu.fritz.box (pd951f307.dip0.t-ipconnect.de [217.81.243.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 0D86C3FC05 for <46451@debbugs.gnu.org>; Fri, 12 Feb 2021 00:20:54 +0100 (CET) Date: Fri, 12 Feb 2021 00:20:53 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20210212002053.30ef8ea9@alma-ubu.fritz.box> In-Reply-To: <20210212001405.48cabc72@alma-ubu.fritz.box> References: <20210212001405.48cabc72@alma-ubu.fritz.box> 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_/dT.q4ReDN5/=OWt9TEEF77O"; protocol="application/pgp-signature" X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/dT.q4ReDN5/=OWt9TEEF77O Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable * gnu/packages/java.scm (openjdk11)[arguments]: Add patch-jni-libs phase. This fixes a NullPointerException related to using fontconfig reported by Jonathan Frederickson in . --- gnu/packages/java.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index a63dad8755..85ca37d8b6 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -2139,6 +2139,33 @@ new Date();")) (substitute* "make/data/blacklistedcertsconverter/blacklisted= .certs.pem" (("^#!.*") "#! java BlacklistedCertsConverter SHA-256\n")) #t)) + (add-after 'unpack 'patch-jni-libs + ;; Hardcode dynamically loaded libraries. + (lambda _ + (let* ((library-path (search-path-as-string->list + (getenv "LIBRARY_PATH"))) + (find-library (lambda (name) + (search-path + library-path + (string-append "lib" name ".so"))))) + (for-each + (lambda (file) + (catch 'decoding-error + (lambda () + (substitute* file + (("VERSIONED_JNI_LIB_NAME\\(\"(.*)\", \"(.*)\"\\)" + _ name version) + (format #f "\"~a\"" (find-library name))) + (("JNI_LIB_NAME\\(\"(.*)\"\\)" _ name) + (format #f "\"~a\"" (find-library name))))) + (lambda _ + ;; Those are safe to skip. + (format (current-error-port) + "warning: failed to substitute: ~a~%" + file)))) + (find-files "." + "\\.c$|\\.h$")) + #t))) (add-before 'build 'write-source-revision-file (lambda _ (with-output-to-file ".src-rev" --=20 2.27.0 --Sig_/dT.q4ReDN5/=OWt9TEEF77O Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYCW71QAKCRC/KGy2WT5f /ZeGAJ9ATd+7ruqCzfyjrncpzqa9h6numQCgrZPcEYnmK2Mo7NQP7aQrJZOGIZE= =yzKg -----END PGP SIGNATURE----- --Sig_/dT.q4ReDN5/=OWt9TEEF77O-- From unknown Sun Jun 22 04:06:54 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#46451: closed (Re: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts) Message-ID: References: <7cfa2fd2c86b16bee0eeb5e9d9de658e895292ec.camel@student.tugraz.at> <20210212001405.48cabc72@alma-ubu.fritz.box> X-Gnu-PR-Message: they-closed 46451 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 46451@debbugs.gnu.org Date: Fri, 12 Feb 2021 10:53:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1613127183-12110-1" This is a multi-part message in MIME format... ------------=_1613127183-12110-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #46451: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 46451@debbugs.gnu.org. --=20 46451: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D46451 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1613127183-12110-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 46451-done) by debbugs.gnu.org; 12 Feb 2021 10:52:59 +0000 Received: from localhost ([127.0.0.1]:60014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAW4J-00038l-3d for submit@debbugs.gnu.org; Fri, 12 Feb 2021 05:52:59 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:53691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAW4F-00038U-Dx; Fri, 12 Feb 2021 05:52:57 -0500 Received: from nijino.local (217-149-165-242.nat.highway.telekom.at [217.149.165.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DcVhM3dsbz3y5Q; Fri, 12 Feb 2021 11:52:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1613127171; bh=Du3IhsYYxFYO8cZxde+IBa3Z9ioKBAfz/SnPMEWp+zI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=DEck3+yGPPZx7h+oB5yKgyyIDhQU4AiUzgCnFvy97VVIpCw3lewvhAg3TWRO/+UCE m58d3t+8arhF8tQqR3l+tV8P96ZNuQFAvof6AyW/iWTM/tCX5foIVRhYSKvmPSzWwh ENVjTJIvLQVUu00gK3p40tQEPOV7gL67wm5EPfG4= Message-ID: <7cfa2fd2c86b16bee0eeb5e9d9de658e895292ec.camel@student.tugraz.at> Subject: Re: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts From: Leo Prikler To: =?ISO-8859-1?Q?Bj=F6rn_H=F6fling?= Date: Fri, 12 Feb 2021 11:52:50 +0100 In-Reply-To: <20210212001405.48cabc72@alma-ubu.fritz.box> References: <20210212001405.48cabc72@alma-ubu.fritz.box> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46451-done Cc: 46451-done@debbugs.gnu.org, 41177-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Björn Am Freitag, den 12.02.2021, 00:14 +0100 schrieb Björn Höfling: > These two patches fix a NullPointerException in the OpenJDK packages. > > The patches apply only to OpenJDK9 and OpenJDK11, but with > inheritence > all OpenJDKx with x\in[9..14] are covered. > > Here is the bug report: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=41177 > > In order to test it you can use the following Main.java: > > ~~~~~~ > import java.awt.*; > > public class Main { > > public static void main(String[] args) > { > String fonts[] = > GraphicsEnvironment.getLocalGraphicsEnvironment().getAvai > lableFontFamilyNames(); > > for ( int i = 0; i < fonts.length; i++ ) > { > System.out.println(fonts[i]); > } > } > } > > ~~~~~~~~ > Compile: javac Main.java > Run: java -cp . Main > > It should print a list of the available fonts. Indeed, that it does. At least for 9 and 11, which I've invoked directly from their store paths. I've pushed your patches with small changes to the commit messages and followed up with an indentation fix. Regards, Leo ------------=_1613127183-12110-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Feb 2021 23:14:18 +0000 Received: from localhost ([127.0.0.1]:59522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALAA-00015z-Eh for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:14:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:40516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALA7-00015q-D1 for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:14:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lALA7-0000C3-8C for guix-patches@gnu.org; Thu, 11 Feb 2021 18:14:15 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:56848 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lALA5-0002zp-5S for guix-patches@gnu.org; Thu, 11 Feb 2021 18:14:15 -0500 Received: from alma-ubu.fritz.box (pd951f307.dip0.t-ipconnect.de [217.81.243.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 7D3B33FC05 for ; Fri, 12 Feb 2021 00:14:07 +0100 (CET) Date: Fri, 12 Feb 2021 00:14:05 +0100 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Subject: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Message-ID: <20210212001405.48cabc72@alma-ubu.fritz.box> 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_/f_Aey9eovVGi4oFa8AWwK+x"; protocol="application/pgp-signature" Received-SPF: none client-ip=83.151.27.109; envelope-from=bjoern.hoefling@bjoernhoefling.de; helo=bjoernhoefling.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --Sig_/f_Aey9eovVGi4oFa8AWwK+x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable These two patches fix a NullPointerException in the OpenJDK packages. The patches apply only to OpenJDK9 and OpenJDK11, but with inheritence all OpenJDKx with x\in[9..14] are covered. Here is the bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41177 In order to test it you can use the following Main.java: ~~~~~~ import java.awt.*; public class Main { public static void main(String[] args) { String fonts[] =3D GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableF= ontFamilyNames(); for ( int i =3D 0; i < fonts.length; i++ ) { System.out.println(fonts[i]); } } } ~~~~~~~~ Compile: javac Main.java Run: java -cp . Main It should print a list of the available fonts. Bj=C3=B6rn Bj=C3=B6rn H=C3=B6fling (2): gnu: openjdk@9 : Add phase to hardcode libraries. gnu: openjdk11: Add phase to hardcode libraries. gnu/packages/java.scm | 56 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) --=20 2.27.0 --Sig_/f_Aey9eovVGi4oFa8AWwK+x Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYCW6PQAKCRC/KGy2WT5f /YoYAJ4gxShHBii0rv4Am4RvLDwR2LlHQwCgqcAO28pJRrsYFPPhXY8Ap96sO+w= =hkhC -----END PGP SIGNATURE----- --Sig_/f_Aey9eovVGi4oFa8AWwK+x-- ------------=_1613127183-12110-1-- From unknown Sun Jun 22 04:06:54 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#46451] [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 12 Feb 2021 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Prikler Cc: 46451-done@debbugs.gnu.org, 41177-done@debbugs.gnu.org Received: via spool by 46451-done@debbugs.gnu.org id=D46451.16131599886937 (code D ref 46451); Fri, 12 Feb 2021 20:00:02 +0000 Received: (at 46451-done) by debbugs.gnu.org; 12 Feb 2021 19:59:48 +0000 Received: from localhost ([127.0.0.1]:33035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAebU-0001nj-Ev for submit@debbugs.gnu.org; Fri, 12 Feb 2021 14:59:48 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:33580 helo=bjoernhoefling.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAebS-0001nV-7C; Fri, 12 Feb 2021 14:59:47 -0500 Received: from alma-ubu (pd951fd2a.dip0.t-ipconnect.de [217.81.253.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 7E60F3F977; Fri, 12 Feb 2021 20:59:44 +0100 (CET) Date: Fri, 12 Feb 2021 20:59:39 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20210212205939.7499cadb@alma-ubu> In-Reply-To: <7cfa2fd2c86b16bee0eeb5e9d9de658e895292ec.camel@student.tugraz.at> References: <20210212001405.48cabc72@alma-ubu.fritz.box> <7cfa2fd2c86b16bee0eeb5e9d9de658e895292ec.camel@student.tugraz.at> 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_/FSa5rn57Op/O6daJjghxD1J"; protocol="application/pgp-signature" X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --Sig_/FSa5rn57Op/O6daJjghxD1J Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 12 Feb 2021 11:52:50 +0100 Leo Prikler wrote: > I've pushed your patches with small changes to the commit messages and > followed up with an indentation fix. Thanks!=20 Bj=C3=B6rn --Sig_/FSa5rn57Op/O6daJjghxD1J Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYCbeLAAKCRC/KGy2WT5f /fktAKCOAflKrfCOboAiCylI7Fopaq6+uACdF1RrWQ4LaICqj5//wWZwsHyKsts= =jXbW -----END PGP SIGNATURE----- --Sig_/FSa5rn57Op/O6daJjghxD1J--