From unknown Sat Jun 21 12:11:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63257 <63257@debbugs.gnu.org> To: bug#63257 <63257@debbugs.gnu.org> Subject: Status: Android port: unable to build using javac 20.0.1 on Arch Linux Reply-To: bug#63257 <63257@debbugs.gnu.org> Date: Sat, 21 Jun 2025 19:11:19 +0000 retitle 63257 Android port: unable to build using javac 20.0.1 on Arch Linux reassign 63257 emacs submitter 63257 Simon Pugnet severity 63257 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 05:22:41 2023 Received: (at submit) by debbugs.gnu.org; 4 May 2023 09:22:41 +0000 Received: from localhost ([127.0.0.1]:48562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puVAe-0002TY-EL for submit@debbugs.gnu.org; Thu, 04 May 2023 05:22:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:45488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puVAb-0002TP-6Y for submit@debbugs.gnu.org; Thu, 04 May 2023 05:22:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puVAa-0007T7-NX for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:22:36 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1puVAX-0007bY-Sx for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 05:22:36 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QBpHb2XV8z9sxN; Thu, 4 May 2023 11:22:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polaris64.net; s=MBO0001; t=1683192139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=SR3xqRDtV0mynkJ7IycPorFxOXhDqzLLWToTaNEQ5Gk=; b=WnNVPUH6fropV9j81yD6coVIXoNsGG2GQSHMhb2P5vtJ+VOMXz0E72W1uo+h+KVqXB4Vn+ PkE80fj6YlwiyBQ80cMq0+H3eom5p2sOJdvCk9YUcmOiewjpcoyrIw2T2ZUBexxbdnhVmx vmMcATN8nn7belfQ3iK860CkhVeOXpChynZdbaH1F1Ak7Itf192mWadAw3IGiAbxI9XoTs M9dA8devCQRlOY4XgDVyl4SrLvM3YHodx5INq/T19wTnGhWH2/6qCDwb1Ixy+nL2Zs1U2s 4/yUoYikzV5kKOFuDa8Zq3ZEGHeV3KuRRJ3o/NeRyq1C0eTk8E5OAIVOKSKVhA== From: Simon Pugnet To: bug-gnu-emacs@gnu.org Subject: Android port: unable to build using javac 20.0.1 on Arch Linux Date: Thu, 04 May 2023 10:10:52 +0100 Message-ID: <87sfcco3hy.fsf@polaris64.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=80.241.56.172; envelope-from=simon@polaris64.net; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Po Lu 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: -2.3 (--) --=-=-= Content-Type: text/plain; format=flowed I have been building the Android port from source regularly and after a recent Arch Linux package update I am no longer able to configure the build. The JDK package I currently have installed is: extra/jdk-openjdk 20.0.1.u9-3 When running configure I get: - [...] checking whether the Java compiler works... no configure: error: The Java compiler does not work, or you did not specify a valid path to android.jar. See config.log for more details. make: *** [Makefile:586: config.status] Error 1 Checking config.log shows: - [...] configure:7603: checking whether the Java compiler works warning: [options] bootstrap class path not set in conjunction with -source 7 error: Source option 7 is no longer supported. Use 8 or later. error: Target option 7 is no longer supported. Use 8 or later. configure:7634: result: no configure:7638: error: The Java compiler does not work, or you did not specify a valid path to android.jar. See config.log for more details. [...] When I run javac I see the following: - [...] --source , -source Provide source compatibility with the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 [...] --target , -target Generate class files suitable for the specified Java SE release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 [...] I can see a few lines in configure.ac which are like this: - ("$JAVAC" -classpath "$with_android" -target 1.7 -source 1.7 conftest.java \ So I'm assuming the error comes from this version of javac not supporting -target/-source 1.7. I hope that provides enough information, please let me know if you'd like me to test anything else. Kind regards, -- Simon Pugnet https://www.polaris64.net/ PGP key fingerprint: 3BF7 85DE 162C 00C8 FB4D A6FD BA13 59A8 2C0B 3EF9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCAAyFiEEO/eF3hYsAMj7Tab9uhNZqCwLPvkFAmRTeUkUHHNpbW9uQHBv bGFyaXM2NC5uZXQACgkQuhNZqCwLPvmv4Q//XrVoKc8/OnXjA6bZUzog07eS8wfi ZKV2NhQVlFYLyuhcpO69DjJEH1XHZHCq04ZX2FQ2+WM0xvjyN7+mf/ApZMbnbIYr F6FyeS35ovQdvSjq1CtwQBCXbMYGmCZo2YDpr+6pgua+28Rk7xkb1pQBhZR1UNga uvF7HFO9eeJ60HN6Wd2UOs5Z0zwXMuCJcG4/rfDcFgSzqt21tP+GZutgHU6uM/Wq C9+xqcdY/oOegYtuqjpqCqS7NvACc3cDRFM90Zh1AQ0vvBQBRMRzhrLq1FRVF9p0 q3PhHIZurEpynsA4APvDYeOKknm/tRYUgf4FMoylZJmdNop3POIqdGpXpNy7IWFM Tp9TRU+Rp1sI+koqSId6fMaEHR1IH1oHH/NDcI7vyOxZUdXShZFUOasjLkzEQTSg V9c6Olq/bpY1v3TuD8MaN2lkUpGPSDolYG7mnz4+l9vm/eZ3/5Ehwwtj49jCu1AJ 4PBqgh1T+R9w35fgAIL3QzjCUQCe4TTwcRzSYygD+8bMIYKEGCxUx7Ww0onPn0xv T7EvfR+Kobufc8CHe16hwWDGAIft/EcAX6fSZQrn/PLzsQdtJg72AkE+vqWIv1NG UB4LjhbMzA8wpn4pWRRMSOuJ89BYZTGbYvOPwVkVj7cDWaXK7PrluGIyKqBTvZFX tE9ZmspjwuDxvyE= =VxkZ -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 08:05:03 2023 Received: (at submit) by debbugs.gnu.org; 4 May 2023 12:05:03 +0000 Received: from localhost ([127.0.0.1]:48755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puXhm-0001Qq-Om for submit@debbugs.gnu.org; Thu, 04 May 2023 08:05:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:41436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puXhi-0001QI-Bw for submit@debbugs.gnu.org; Thu, 04 May 2023 08:05:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puXhh-0001AN-Qn for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 08:04:57 -0400 Received: from sonic305-21.consmr.mail.ne1.yahoo.com ([66.163.185.147]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1puXhg-0000aa-2x for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 08:04:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683201892; bh=iySNp2+2W+AmlPx9KhLgLmxDehZ8Kr/PNyvpxUGxvZk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ierwRyplo40x4E2f9eyVrozp0aRUGx3bLTCtXYSJA/Tr2R0PF5GBd5Se+ytACFKhOvmgK1olE/m3ZxinB+KnenxVvPbnY4KBroF37I2vfklbYLZFvhR/IJpbObwyYfNebs0bdEOzt2NbAKSsIyeqV0c6WrB30dHCdSipDiqssxBSgQrtJQOofP0fDya1TBRKIOEiPy5Z4BWkAZ8cI67K2Q6QGtdJ35NAbdsY9BEFaMCW5CJX6xk/f/24FtvwziA2IMaViET4yNS8dstfW8eIQ8Ih3VB9ehETzFllv0kaYEjLGd+ncy4Ypc3WFcPu6qnDFesCgqMzOyL6il7s/gBenA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1683201892; bh=FYWqtad7lYHo/Q1ZNmTwO6zS37fCz50tGLb6JWk/ds8=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=TVd0yrJpdgmJBH9tsvVGj378HIoB1d6BAwoTm7ur/bM3DXgzm2/xGsEq06pbeR78xtdj9nTNzmULON3uhYPCqYQ0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Xr.IRpfN0t4EPyIkUw6.DzVUiqAfNfE.TIE0VYw5tWlRSLOur7AI23BJ2kr1k8jTC1ZsdOOGn j59MYKlGMAvZDVIpSZ0dL_25gewc3SbIqP.X7dXECwkODQGWvtSPOV4hwp3z9GHuzB1DwRR6HwLH eky5XTAn7ASZfkPW0mihUxhSg2vV7.CXleIzzk1QFO_G.eCXOgO353GBY7zOUgtBcbaN9R516T5p JS7oYNkP15hfsURWYX0rC2aET1XtNLggak7FaFk7XbOzK2DtBUUJoLysahaBnR4EkcG9u_UiiIUd abaENOWrdfRjkNaXdVW80s9ZdpBAzjI5Q1A3VML5aUPIjHn.7EZSPUJUpsE0aKOJklKEdzA4AQlU Bqc_5zikhbRRgKQ3peM08ABvnbRGvrw-- X-Sonic-MF: X-Sonic-ID: 882eccae-8eb1-4506-9c00-62828500b6f6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Thu, 4 May 2023 12:04:52 +0000 Received: by hermes--production-sg3-6d6fb994f6-7thcs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ec84d77fd86f568906f22ad1eea3221b; Thu, 04 May 2023 12:04:48 +0000 (UTC) From: Po Lu To: Simon Pugnet Subject: Re: Android port: unable to build using javac 20.0.1 on Arch Linux In-Reply-To: <87sfcco3hy.fsf@polaris64.net> (Simon Pugnet's message of "Thu, 04 May 2023 10:10:52 +0100") References: <87sfcco3hy.fsf@polaris64.net> Date: Thu, 04 May 2023 20:04:43 +0800 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Mailer: WebService/1.1.21417 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Content-Length: 2257 Received-SPF: pass client-ip=66.163.185.147; envelope-from=luangruo@yahoo.com; helo=sonic305-21.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@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: -1.6 (-) Simon Pugnet writes: > I have been building the Android port from source regularly and after > a recent Arch Linux package update I am no longer able to configure > the build. > > The JDK package I currently have installed is: extra/jdk-openjdk > 20.0.1.u9-3 > > When running configure I get: - > > [...] > checking whether the Java compiler works... no > configure: error: The Java compiler does not work, or you did not > specify > a valid path to android.jar. See config.log for more details. > make: *** [Makefile:586: config.status] Error 1 > > Checking config.log shows: - > > [...] > configure:7603: checking whether the Java compiler works > warning: [options] bootstrap class path not set in conjunction with > -source 7 > error: Source option 7 is no longer supported. Use 8 or later. > error: Target option 7 is no longer supported. Use 8 or later. > configure:7634: result: no > configure:7638: error: The Java compiler does not work, or you did > not specify > a valid path to android.jar. See config.log for more details. > [...] > > When I run javac I see the following: - > > [...] > --source , -source > Provide source compatibility with the specified Java SE > release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, > 17, 18, 19, 20 > [...] > --target , -target > Generate class files suitable for the specified Java SE > release. Supported releases: 8, 9, 10, 11, 12, 13, 14, 15, 16, > 17, 18, 19, 20 > [...] > > I can see a few lines in configure.ac which are like this: - > > ("$JAVAC" -classpath "$with_android" -target 1.7 -source 1.7 > conftest.java \ > > So I'm assuming the error comes from this version of javac not > supporting -target/-source 1.7. > > I hope that provides enough information, please let me know if you'd > like me to test anything else. > > Kind regards, Unfortunately, you do need support for such an option, as otherwise the generated code will not run on API levels below 26. I'd recommend the OpenJDK 11.x release, which will be supported for a significant amount of time. I will fix configure to specifically detect this situation and print a clearer error message. From debbugs-submit-bounces@debbugs.gnu.org Thu May 04 08:32:29 2023 Received: (at submit) by debbugs.gnu.org; 4 May 2023 12:32:29 +0000 Received: from localhost ([127.0.0.1]:48762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puY8L-00025v-Fb for submit@debbugs.gnu.org; Thu, 04 May 2023 08:32:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:47548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puY8G-00025k-R1 for submit@debbugs.gnu.org; Thu, 04 May 2023 08:32:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1puY7e-0006Jq-4i for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 08:31:48 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1puY6o-0003bQ-R8 for bug-gnu-emacs@gnu.org; Thu, 04 May 2023 08:30:57 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QBtT55tz7z9sW9; Thu, 4 May 2023 14:30:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polaris64.net; s=MBO0001; t=1683203449; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+wnTIUorUC0KumUxKTzKm3689vXI826zIEZTYv0BjFk=; b=wkpRJAsKQGE++tlMY9bNHVsf0XCuniCXLs/wGXctrgbIvrHXD8ENgMjqTAoh/+OMxjtlbu rMhzEn/OuEFWpQ4922TCcIPiPE8b2/FYgRCoZEhaUKuUY3m6q3bF8ax/ct9FqBZlu6eScF FvTg61KzOstshOGserLFH4zRQjV3Hmo5rA5w+N9LAL+/kwri2GlkEG8QVTOET48uR+4LwW wmVfXFjwGeoC/GQLbcuT+ChMDT2rOm6zpW0GAM8hk1OzUNl2mAyjepfQvyJFn65zagH6kv MYYKz01HSz2VGmonWwjBWfi0ePDoheMX0bPLkpYX9FA+N1PEuzvVZ+LIb+QQ+w== References: <87sfcco3hy.fsf@polaris64.net> From: Simon Pugnet To: Po Lu Subject: Re: Android port: unable to build using javac 20.0.1 on Arch Linux Date: Thu, 04 May 2023 13:23:09 +0100 In-reply-to: Message-ID: <87fs8cnurr.fsf@polaris64.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2001:67c:2050:0:465::202; envelope-from=simon@polaris64.net; helo=mout-p-202.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@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: -2.3 (--) --=-=-= Content-Type: text/plain; format=flowed Po Lu writes: > Simon Pugnet writes: > >> I have been building the Android port from source regularly and >> after >> a recent Arch Linux package update I am no longer able to configure >> the build. >> >> The JDK package I currently have installed is: extra/jdk-openjdk >> 20.0.1.u9-3 > > Unfortunately, you do need support for such an option, as otherwise > the > generated code will not run on API levels below 26. I'd recommend > the > OpenJDK 11.x release, which will be supported for a significant > amount > of time. > > I will fix configure to specifically detect this situation and print > a > clearer error message. Thank you for your quick reply, and for your work on this port! I can confirm that using OpenJDK 11.x (11.0.19 in this case) as you suggested works fine. In case anybody else encounters this problem, here is what I needed to do in Arch Linux: - 1. Install "jdk11-openjdk" 2. Run: archlinux-java set java-11-openjdk Kind regards, -- Simon Pugnet https://www.polaris64.net/ PGP key fingerprint: 3BF7 85DE 162C 00C8 FB4D A6FD BA13 59A8 2C0B 3EF9 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCAAyFiEEO/eF3hYsAMj7Tab9uhNZqCwLPvkFAmRTpXgUHHNpbW9uQHBv bGFyaXM2NC5uZXQACgkQuhNZqCwLPvkxRhAAm4g9sm29DYdvi6SU7tvWRpJOIP58 vZy1byhYv8kRg1D362Yz227cA3hJqcUN9uooppzKzlOU4ZBM/YJSLyBfMrJ+O/Mf t7Ibo2B8Mjxi5HsgPaUw2nnMdyR3vTzjfl95m6AOP3EADz2UyqPFRueCOX2xMCab DJGNCdcNdAuDJL6EhkTU4t2gQZow4lkzRf1SKDomo0R3c2aLUTnEG/pxEIi2evDu iu952Et325vfCgC8x3FBTAHvVE9szO3tJpdlY/p4/pbGu29vOqXV+qyI7/Rm2bD0 /IwCaXK7lHlNjiNHx5WGer6PEHhwIMGTY7ojAUkrmYVY//eKPu86qvN2HIbqLmql A6Q0J/gQIIOdZEBNwABAFINAFLTqbdcJCk5dxkCGgr0BuqXieFmidKfax8OMcoZJ LTFr83QivqAxUh28iZ17V5QeZxk/aAvC9Rjkzvto+I+jYQ8VZ6zMGAfldU6dJI6g htLvVrkGYnM+S5MLf08fl8TjPa6lyradHI+L8PJywksy+aNyPzJ10+9jzH4B1ed3 GQbiWXZvLl6ieZiBeKz3ISvXXr47iCx/441LCzowe9zG1DdCGsk09gScN3VSMRmK aPR1+O+8dgnc8+scTXpyrJmxuYAJFRx88aDwolZU1kyme5djeStwO+HMeMP0dUUv i63K7CKmFs3n0+g= =2Uky -----END PGP SIGNATURE----- --=-=-=--