From unknown Sat Jun 21 03:11:51 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#29700 <29700@debbugs.gnu.org> To: bug#29700 <29700@debbugs.gnu.org> Subject: Status: Java packages need to retain references Reply-To: bug#29700 <29700@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:11:51 +0000 retitle 29700 Java packages need to retain references reassign 29700 guix submitter 29700 Ricardo Wurmus severity 29700 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 13 17:48:50 2017 Received: (at submit) by debbugs.gnu.org; 13 Dec 2017 22:48:50 +0000 Received: from localhost ([127.0.0.1]:60939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePFpZ-0002JC-PH for submit@debbugs.gnu.org; Wed, 13 Dec 2017 17:48:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54123) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePFpW-0002Iv-Jh for submit@debbugs.gnu.org; Wed, 13 Dec 2017 17:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePFpQ-0003a9-FL for submit@debbugs.gnu.org; Wed, 13 Dec 2017 17:48:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ePFpQ-0003a0-Bj for submit@debbugs.gnu.org; Wed, 13 Dec 2017 17:48:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePFpP-0004qd-3B for bug-guix@gnu.org; Wed, 13 Dec 2017 17:48:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePFpK-0003WO-VR for bug-guix@gnu.org; Wed, 13 Dec 2017 17:48:39 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21089) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ePFpK-0003W0-Oy for bug-guix@gnu.org; Wed, 13 Dec 2017 17:48:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513205307; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=1172; bh=x5/ksrCPC/K6e94/DsT/IMj2A+S9mlG01M6iUTWtnKM=; b=IjyjHcnfMZvPVNBSgYmk+QetUY+uqqb08k8OJ1w7jpuOksQUzPzSkcCYjFdxCuXn 4sP7EOGtfAgYEWJkrqGnffr29LqBMX2uep3qicoNt9aaRuVARQacm8NgCYjNcswMKBv XPRJiuKkqV0z9OKnij3akmU08z9oaF8bTJjq6Kmc= Received: from localhost (port-92-200-38-217.dynamic.qsc.de [92.200.38.217]) by mx.zohomail.com with SMTPS id 151320530694813.875251404882192; Wed, 13 Dec 2017 14:48:26 -0800 (PST) User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus To: bug-guix@gnu.org Subject: Java packages need to retain references X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 13 Dec 2017 23:48:24 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87tvwuutvr.fsf@elephly.net> X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -4.0 (----) I installed the =E2=80=9Caxoloti-patcher=E2=80=9D package today after =E2= =80=9Cguix gc=E2=80=9D and noticed that not all dependencies are available at runtime. Upon running the =E2=80=9CAxoloti=E2=80=9D command I got this error: Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: = Can't load library: /gnu/store/nrx5nmwynmsl7aqxdpgwpsm8ff9b0h4d-libusb4java= -0-1.396d642a5/lib/libusb4java.so The store item does not exist. The problem here is that jar archives are compressed and thus any references they contain are thus hidden from the scanner. I don=E2=80=99t know if it is feasible to disable compression for jar files= , or if we should install a =E2=80=9C.guix-dependencies=E2=80=9D file that conta= ins plain text references. I=E2=80=99ll investigate disabling compression first. Looks like we can do= this in the strip-jar-timestamps phase where we use =E2=80=9Czip=E2=80=9D to rep= ack the jar. Adding =E2=80=9C-0=E2=80=9D to the arguments should be enough to make this = work. I=E2=80=99ll send a patch soon. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 13 18:56:52 2017 Received: (at 29700) by debbugs.gnu.org; 13 Dec 2017 23:56:52 +0000 Received: from localhost ([127.0.0.1]:32770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePGtQ-0005xe-1R for submit@debbugs.gnu.org; Wed, 13 Dec 2017 18:56:52 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePGtN-0005xU-91 for 29700@debbugs.gnu.org; Wed, 13 Dec 2017 18:56:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513206581; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Cc:Subject:Date:Message-Id; l=1067; bh=H8UCSIEiF3MQl/gxgQTX7shRReALsRHoGbezzwCgZto=; b=dGOgbtKWoQHIdbnHYCWndXzwCq432LKJCMVyQpFVGqdfr2QRqYFi6o6o3XVgmhYk 7t0m+ZLyoe8cvCXHLcRSN4MGotS/eMa+abn+kboS+Ope49rrNBMO4/2BKe2d8DSJLnF RNTwZB9D0p4FTBPyWWTLEFa4l8I0sT/VOZaXsDKA= Received: from localhost (port-92-200-38-217.dynamic.qsc.de [92.200.38.217]) by mx.zohomail.com with SMTPS id 1513206581290412.5278219590049; Wed, 13 Dec 2017 15:09:41 -0800 (PST) From: Ricardo Wurmus To: 29700@debbugs.gnu.org Subject: [PATCH] guix: ant-build-system: Do not compress jars. Date: Thu, 14 Dec 2017 00:09:31 +0100 Message-Id: <20171213230931.13735-1-rekado@elephly.net> X-Mailer: git-send-email 2.15.0 X-ZohoMailClient: External X-ZohoMail: Z_26063301 SPT_1 Z_26062608 SPT_0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29700 Cc: Ricardo Wurmus 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: 0.0 (/) Fixes . * guix/build/ant-build-system.scm (strip-jar-timestamps): Do not compress jar when repacking. --- guix/build/ant-build-system.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/guix/build/ant-build-system.scm b/guix/build/ant-build-system.scm index a440daf05..6ce813a00 100644 --- a/guix/build/ant-build-system.scm +++ b/guix/build/ant-build-system.scm @@ -197,9 +197,12 @@ repack them. This is necessary to ensure that archives are reproducible." ;; first. (with-directory-excursion dir (let* ((files (find-files "." ".*" #:directories? #t)) + ;; To ensure that the reference scanner can detect all + ;; store references in the jars we disable compression + ;; with the "-0" option. (command (if (file-exists? manifest) - `("zip" "-X" ,jar ,manifest ,@files) - `("zip" "-X" ,jar ,@files)))) + `("zip" "-0" "-X" ,jar ,manifest ,@files) + `("zip" "-0" "-X" ,jar ,@files)))) (unless (zero? (apply system* command)) (error "'zip' failed")))) (utime jar 0 0) -- 2.15.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 14 03:24:03 2017 Received: (at 29700) by debbugs.gnu.org; 14 Dec 2017 08:24:03 +0000 Received: from localhost ([127.0.0.1]:32962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePOoF-0002Yv-0w for submit@debbugs.gnu.org; Thu, 14 Dec 2017 03:24:03 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:56196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePOoC-0002YQ-9s for 29700@debbugs.gnu.org; Thu, 14 Dec 2017 03:24:01 -0500 Received: from localhost (77.118.215.68.wireless.dyn.drei.com [77.118.215.68]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 35B941CA062F; Thu, 14 Dec 2017 09:23:57 +0100 (CET) Date: Thu, 14 Dec 2017 09:23:54 +0100 From: Danny Milosavljevic To: Ricardo Wurmus Subject: Re: bug#29700: [PATCH] guix: ant-build-system: Do not compress jars. Message-ID: <20171214092354.416f5d1e@scratchpost.org> In-Reply-To: <20171213230931.13735-1-rekado@elephly.net> References: <87tvwuutvr.fsf@elephly.net> <20171213230931.13735-1-rekado@elephly.net> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LGTM! [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 2.5 BODY_SINGLE_WORD Message body is only one word (no spaces) X-Debbugs-Envelope-To: 29700 Cc: 29700@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: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LGTM! [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.128.8 listed in list.dnswl.org] 2.5 BODY_SINGLE_WORD Message body is only one word (no spaces) LGTM! From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 14 17:23:16 2017 Received: (at 29700) by debbugs.gnu.org; 14 Dec 2017 22:23:16 +0000 Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePbuO-0007Wk-0G for submit@debbugs.gnu.org; Thu, 14 Dec 2017 17:23:16 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePbuL-0007Wb-MB for 29700@debbugs.gnu.org; Thu, 14 Dec 2017 17:23:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513290143; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=328; bh=2lijeJh3UykJZ2hMDZOH/q3kKE/c072odsIOd74/m8g=; b=RB/gFvzOQ9n8gpTpFghgCkuB9GxDGajELIvHNmMYoF5KioOt9S9L+lNnQtZ/y58A GRPbwNaDUlvXujoz1kiFn24R1lWisliBaAo37ZQopOBB62j8uCLDZpDC5ZflbHNVzSi cwC0jWj3r7HkgxEUe7q8cwDqDiXvFx0FnUl8jsPg= Received: from localhost (port-92-200-3-167.dynamic.qsc.de [92.200.3.167]) by mx.zohomail.com with SMTPS id 151329014391668.39589479174901; Thu, 14 Dec 2017 14:22:23 -0800 (PST) References: <87vahauutr.fsf@fhain.coderdojo.berlin> User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus To: =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#29700: Java packages need to retain references In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 14 Dec 2017 23:22:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87o9n1uezm.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29700 Cc: 29700@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: 0.0 (/) G=C3=A1bor Boskovits writes: > Would it be enough if we added the uncompressed manifest? > Is there any drawback to that? I will test that. I=E2=80=99m not sure if the manifest is really sufficien= t. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 14 17:24:39 2017 Received: (at control) by debbugs.gnu.org; 14 Dec 2017 22:24:39 +0000 Received: from localhost ([127.0.0.1]:34254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePbvj-0007Yn-9w for submit@debbugs.gnu.org; Thu, 14 Dec 2017 17:24:39 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePbvi-0007Yg-0f for control@debbugs.gnu.org; Thu, 14 Dec 2017 17:24:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513290241; s=zoho; d=elephly.net; i=rekado@elephly.net; h=Date:To:From:Subject; l=19; bh=WJCU/MASMpdf+9aoSd7UrdHH0tCOGPiwvOAmRMJhyvk=; b=a+vshxLJgPVDQvcWY8wQx6199OpJdbL1w4OE3vqVPhAAUw8xw8yg3G3jajAOtnHR K8LOIRji8Zj/oCp2UfQNb1eBgzkRUMukQu35RsIBxJKdCkCADCHHUR8UCmqZCKoG1HB 4CarsgbokIr7JD9nrfSlFz2r/fA8+iIaNkJPbXKA= Received: from localhost (port-92-200-3-167.dynamic.qsc.de [92.200.3.167]) by mx.zohomail.com with SMTPS id 1513290241210153.95372258989994; Thu, 14 Dec 2017 14:24:01 -0800 (PST) Date: Thu, 14 Dec 2017 23:23:58 +0100 To: control@debbugs.gnu.org From: Ricardo Wurmus Subject: control message for bug #29705 X-ZohoMailClient: External X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control 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" Message-Id: X-Spam-Score: 0.0 (/) merge 29705 29700 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 14 18:46:07 2017 Received: (at 29700-done) by debbugs.gnu.org; 14 Dec 2017 23:46:07 +0000 Received: from localhost ([127.0.0.1]:34299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePdCZ-0004op-9E for submit@debbugs.gnu.org; Thu, 14 Dec 2017 18:46:07 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePdCU-0004oH-RX for 29700-done@debbugs.gnu.org; Thu, 14 Dec 2017 18:46:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513292366; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:Subject:to:cc:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=1133; bh=wxT+N0XHaaEJ4kQzSt4+eDnIKHUWFHRLdFX/x4Jid54=; b=X4B9Go3ErBxK688RxNPFcVg8n3rm1pmtvHHN4aeijwa+VDUfi7D5jUlautTKFgPq uEC0Xsb3LtW/mKUsOUVHkhd9oS+KFZ+ssiY3177BvhSooPaevnoxQktaAjbAMygDd3w IFccmierP/0zRcQOAC3YiQVAZhvmiOJTD6IIhIIM= Received: from localhost (port-92-200-3-167.dynamic.qsc.de [92.200.3.167]) by mx.zohomail.com with SMTPS id 151329236616828.2451745196106; Thu, 14 Dec 2017 14:59:26 -0800 (PST) References: <87tvwuutvr.fsf@elephly.net> User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus Subject: Re: bug#29700: Java packages need to retain references to: =?utf-8?Q?G=C3=A1bor?= Boskovits In-reply-to: <87tvwuutvr.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 14 Dec 2017 23:59:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87mv2kvrud.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29700-done Cc: 29700-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: 0.0 (/) Hi G=C3=A1bor, The manifest file would not be sufficient. Take the example of =E2=80=9Cjava-usb4java=E2=80=9D. It provides a file =E2=80=9Cshare/java/us= b4java.jar=E2=80=9D, which contains this manifest: --8<---------------cut here---------------start------------->8--- Manifest-Version: 1.0 Created-By: 1.7.0_161 (Oracle Corporation) --8<---------------cut here---------------end--------------->8--- When you open the Loader.class file that is included in the archive you will notice that it contains this string: /gnu/store/iwjqaqr98daqbgwswqi5fi4w891bqh7d-libusb4java-0-1.396d642a5/l= ib/libusb4java.so This reference is currently dropped because it cannot be detected in a compressed archive. The reference is not contained in the manifest, and at build time we could only guess which references should be added to the manifest. Unless we extend the reference scanner to deal with compressed files I think that disabling compression in jars is the best approach. I=E2=80=99ll push this to master. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 15 01:44:45 2017 Received: (at 29700-done) by debbugs.gnu.org; 15 Dec 2017 06:44:46 +0000 Received: from localhost ([127.0.0.1]:34485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePjjh-0007PF-Gu for submit@debbugs.gnu.org; Fri, 15 Dec 2017 01:44:45 -0500 Received: from mail-it0-f54.google.com ([209.85.214.54]:41814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePjjf-0007P2-H6 for 29700-done@debbugs.gnu.org; Fri, 15 Dec 2017 01:44:43 -0500 Received: by mail-it0-f54.google.com with SMTP id x28so17261746ita.0 for <29700-done@debbugs.gnu.org>; Thu, 14 Dec 2017 22:44:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=RZAdBcKIHXJhkY4XbaTPmecYwqEZXHZ2C0x/O5SlhcU=; b=oyZbLgRiCp9DaeCq8JJ7xN78EbYaXC4UHUMlsmat7Fz8l7W3xadi+1ZWjiR0wUJADT pzEUUIU8PnqOIQ7f78ggf79QTDCk0uUcVjC4YNWbeY0rlUonx5fzzpT+ogOAProyshBy FfwHkiGkGkaLExkfoTBirwvFy+WBCfo2usxC1jCvMWyhuNAq+csK8O2aKFrisQnHMZX5 JoF31WTbWtRdop61AiLoguIZ7OwW1ryT8z8ZFgfC7EWRwufllRKSHmz5gnpLOjmYAVLi UwGHlItNOxv4ghZRbeUsBex5an4NlkkhcyS+Iso7fbO70RP3r3g/QFqVKyQmJs2ArzTu ouQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=RZAdBcKIHXJhkY4XbaTPmecYwqEZXHZ2C0x/O5SlhcU=; b=HY0KF6awv0gtdsv46Ecn40opLQ8U3b+tvQFbkvA/ipYaubBbMcTAGXq8tZnxdKGlcV VqfTrGJBiKWl5Fzol/YteKuv34gEo0T6P+ctIRaaV08Q8yInn5zBK02rC9ojp8sPIiUe YhuaZ0QhldTqgg4LZGlCEtWx9Uhq9fbdFvWarKZaY2PJ9yxSqE0pCMhFYNTV0d6U6Zqj I4NleUlXtMFRt2DPYgYsrYciLg4oBsTfoQLYxe0kruCP0ACgCJQMMjyWBCQglFXv1iBm Vjh6Bk1GDXu9n2WfKrLenFBsqKriDRBq1GrPtpRw+9h0fz3rFExdk5fTG4YcDgb5enE6 OlnQ== X-Gm-Message-State: AKGB3mLtC/FUXlR5Z10ZQmSdJ3tstvjAw5bOl5dcYBRAv3dpvj9fa5jN E6I4EfMRHJPxMnySKq+0tRxKxjtAd1oiZVWZ7A== X-Google-Smtp-Source: ACJfBoumvwucNLMV+oWjPU2c2CPgXzq+EHMfC0/v6ZOMj8vzt3e3442zbUZgUW6p+DcgZBp2zGC07w30PbcGNbjtJ5Y= X-Received: by 10.36.44.197 with SMTP id i188mr7125380iti.40.1513320277811; Thu, 14 Dec 2017 22:44:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.36.209 with HTTP; Thu, 14 Dec 2017 22:44:36 -0800 (PST) In-Reply-To: <87mv2kvrud.fsf@elephly.net> References: <87tvwuutvr.fsf@elephly.net> <87mv2kvrud.fsf@elephly.net> From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Date: Fri, 15 Dec 2017 07:44:36 +0100 Message-ID: Subject: Re: bug#29700: Java packages need to retain references To: Ricardo Wurmus Content-Type: multipart/alternative; boundary="001a1143d330972cb705605b5512" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 29700-done Cc: 29700-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: -0.7 (/) --001a1143d330972cb705605b5512 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Do we know the impact of disabling compression? I don't think it is really a big problem. You are right with this, I'm still a bit stuck in another mindset, where we usually know, that we have only one version of a package... If we later decide that compression is desired we can still go with a text file with references. Anyway, do you think that extending the reference scanner would be a good idea? 2017-12-14 23:59 GMT+01:00 Ricardo Wurmus : > Hi G=C3=A1bor, > > The manifest file would not be sufficient. Take the example of > =E2=80=9Cjava-usb4java=E2=80=9D. It provides a file =E2=80=9Cshare/java/= usb4java.jar=E2=80=9D, which > contains this manifest: > > --8<---------------cut here---------------start------------->8--- > Manifest-Version: 1.0 > Created-By: 1.7.0_161 (Oracle Corporation) > > --8<---------------cut here---------------end--------------->8--- > > When you open the Loader.class file that is included in the archive you > will notice that it contains this string: > > /gnu/store/iwjqaqr98daqbgwswqi5fi4w891bqh7d-libusb4java-0-1.396d642a5= / > lib/libusb4java.so > > This reference is currently dropped because it cannot be detected in a > compressed archive. The reference is not contained in the manifest, and > at build time we could only guess which references should be added to > the manifest. > > Unless we extend the reference scanner to deal with compressed files I > think that disabling compression in jars is the best approach. > > I=E2=80=99ll push this to master. > > -- > Ricardo > > GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > https://elephly.net > > > --001a1143d330972cb705605b5512 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Do we know the impact of disabling compression?
I don&= #39;t think it is really a big problem.
You are right with this, = I'm still a bit stuck in another mindset, where we usually know, that w= e have only one version of a package...
If we later decide that c= ompression is desired we can still go with a text file with references.
Anyway, do you think that extending the reference scanner would be a= good idea?


2017-12-14 23:59 GMT+01:00 Ricardo Wurmus <rekado@el= ephly.net>:
Hi G=C3=A1bor,<= br>
The manifest file would not be sufficient.=C2=A0 Take the example of
=E2=80=9Cjava-usb4java=E2=80=9D.=C2=A0 It provides a file =E2=80=9Cshare/ja= va/usb4java.jar=E2=80=9D, which
contains this manifest:

--8<---------------cut here---------------start------------->8--= -
Manifest-Version: 1.0
Created-By: 1.7.0_161 (Oracle Corporation)

--8<---------------cut here---------------end--------------->8--= -

When you open the Loader.class file that is included in the archive you
will notice that it contains this string:

=C2=A0 =C2=A0 /gnu/store/iwjqaqr98daqbgwswqi5fi4w891bqh7d-libusb4= java-0-1.396d642a5/lib/libusb4java.so

This reference is currently dropped because it cannot be detected in a
compressed archive.=C2=A0 The reference is not contained in the manifest, a= nd
at build time we could only guess which references should be added to
the manifest.

Unless we extend the reference scanner to deal with compressed files I
think that disabling compression in jars is the best approach.

I=E2=80=99ll push this to master.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6=C2=A0 2150 197A 5888 235F ACAC
https:= //elephly.net



--001a1143d330972cb705605b5512-- From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 15 02:50:10 2017 Received: (at 29700-done) by debbugs.gnu.org; 15 Dec 2017 07:50:10 +0000 Received: from localhost ([127.0.0.1]:34514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePkl0-0000Xc-8z for submit@debbugs.gnu.org; Fri, 15 Dec 2017 02:50:10 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePkkw-0000XS-Io for 29700-done@debbugs.gnu.org; Fri, 15 Dec 2017 02:50:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1513324184; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=915; bh=po73uXxEdLnr98atzGjNLaE9/+2lCw7NQFvuPgI1BJc=; b=K2SQW2zMeLzQMpwxnZMjhKSxfspTjvoEkdpEP7kk8K8Tx/tM8XkRFlEJpVOi2L6A Z6I8BfikNKxGhbeFwUPxMFMQHNtRYMMdL3W2Ov43tlPhBbPVmbexby+SR1T0l1YDZAh xIbFpHM3Eg5MSyx2s5AlG/Jb5qTwiTEvcYRCwcvs= Received: from localhost (port-92-200-15-23.dynamic.qsc.de [92.200.15.23]) by mx.zohomail.com with SMTPS id 1513324184531649.690027158637; Thu, 14 Dec 2017 23:49:44 -0800 (PST) References: <87tvwuutvr.fsf@elephly.net> <87mv2kvrud.fsf@elephly.net> User-agent: mu4e 0.9.18; emacs 25.3.1 From: Ricardo Wurmus To: =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: bug#29700: Java packages need to retain references In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 15 Dec 2017 08:49:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87k1xov3aj.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 29700-done Cc: 29700-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: 0.0 (/) Hi G=C3=A1bor, > If we later decide that compression is desired we can still go with a tex= t > file with references. This wouldn=E2=80=99t always be feasible, because it would require *manual* reference tracking. The packager would need to know what references need to be retained and then ensure that they are part of that text file. > Anyway, do you think that extending the reference scanner would be a good > idea? We had the same problem with gzipped R files and zipped Python things. For the R files a more advanced reference scanner would not work, because the files just include a gzipped section; it=E2=80=99s not the whol= e file that=E2=80=99s simply gzipped. Detecting sections is too hard. But for Python and Jars it might just be enough. [PS: please don=E2=80=99t top-post.] -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 15 09:55:09 2017 Received: (at 29700) by debbugs.gnu.org; 15 Dec 2017 14:55:09 +0000 Received: from localhost ([127.0.0.1]:34925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePrOH-00065X-Ey for submit@debbugs.gnu.org; Fri, 15 Dec 2017 09:55:09 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:55520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePrOE-00064X-Vk for 29700@debbugs.gnu.org; Fri, 15 Dec 2017 09:55:07 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 3A3B61048D; Fri, 15 Dec 2017 15:55:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ddeMb7ftRP7V; Fri, 15 Dec 2017 15:55:08 +0100 (CET) Received: from ribbon (unknown [193.50.110.249]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 40B641048C; Fri, 15 Dec 2017 15:55:08 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Ricardo Wurmus Subject: Re: bug#29700: Java packages need to retain references References: <87tvwuutvr.fsf@elephly.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 25 Frimaire an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 15 Dec 2017 15:55:04 +0100 In-Reply-To: <87tvwuutvr.fsf@elephly.net> (Ricardo Wurmus's message of "Wed, 13 Dec 2017 23:48:24 +0100") Message-ID: <87lgi4ghx3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 29700 Cc: 29700@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: 1.0 (+) Ricardo Wurmus skribis: > I installed the =E2=80=9Caxoloti-patcher=E2=80=9D package today after =E2= =80=9Cguix gc=E2=80=9D and > noticed that not all dependencies are available at runtime. Upon > running the =E2=80=9CAxoloti=E2=80=9D command I got this error: > > Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError= : Can't load library: /gnu/store/nrx5nmwynmsl7aqxdpgwpsm8ff9b0h4d-libusb4ja= va-0-1.396d642a5/lib/libusb4java.so > > The store item does not exist. > > The problem here is that jar archives are compressed and thus any > references they contain are thus hidden from the scanner. > > I don=E2=80=99t know if it is feasible to disable compression for jar fil= es, or > if we should install a =E2=80=9C.guix-dependencies=E2=80=9D file that con= tains plain > text references. Disabling compression was the right choice because that also allows grafts to work correctly. Ludo=E2=80=99. From unknown Sat Jun 21 03:11:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 Jan 2018 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator