From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yMsNBEzHTmPx4QAAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 17:33:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sPghA0zHTmOlJAEAG6o9tA (envelope-from ) for ; Tue, 18 Oct 2022 17:33:32 +0200 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 943998FAD for ; Tue, 18 Oct 2022 17:33:31 +0200 (CEST) Received: from localhost ([::1]:43930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okoaw-0002wL-7x for larch@yhetil.org; Tue, 18 Oct 2022 11:33:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okoaV-0002tf-EC for bug-guix@gnu.org; Tue, 18 Oct 2022 11:33:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54733) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okoaV-0000YG-3n for bug-guix@gnu.org; Tue, 18 Oct 2022 11:33:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okoaU-00085u-Hk for bug-guix@gnu.org; Tue, 18 Oct 2022 11:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58591: Java packages do not appear to keep a reference to their inputs Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 18 Oct 2022 15:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58591 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer , Tobias Geerinckx-Rice Cc: liliana.prikler@ist.tugraz.at, 58591@debbugs.gnu.org Received: via spool by 58591-submit@debbugs.gnu.org id=B58591.166610716431088 (code B ref 58591); Tue, 18 Oct 2022 15:33:02 +0000 Received: (at 58591) by debbugs.gnu.org; 18 Oct 2022 15:32:44 +0000 Received: from localhost ([127.0.0.1]:53811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okoaB-00085M-SG for submit@debbugs.gnu.org; Tue, 18 Oct 2022 11:32:44 -0400 Received: from lepiller.eu ([89.234.186.109]:37960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okoa4-000854-KT for 58591@debbugs.gnu.org; Tue, 18 Oct 2022 11:32:42 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e124333d; Tue, 18 Oct 2022 15:32:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=otILP+AoAIXZ beT7Sj72Tdzz933benOWX7xzCY/ThzU=; b=HHxe+WfmYPXlmQIjDnv11SckWksa CtlSwFqHAVpcy5R98BTWGpbemmRXu3W90PQSS/3DXHh0VH8AFpo7dvielpxVuaG3 TahUewbZCeMCVyjG3xDCHg3FhfwdjEU9hQYEqhKg+twWY1AGLy51PIbvndgL++rR HEUkvMQNG8gwX+G11R6xtXEWNcA68wIT6gwZVyV/ZCd2G5aOr5BXZSG8TAXQoeck bDq++oV+Dd8TxzpVSk6Yaxs+zvY+6R53tGzjl9qB+RJmEAUaMt4gqIoObFVFq90x fTcISBKyV+SzKS77xju0xfF8joQnodlQlM6RzanQ1EmE7jFqg9WPml/e2w== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c8e626c0 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 18 Oct 2022 15:32:33 +0000 (UTC) Date: Tue, 18 Oct 2022 17:32:32 +0200 From: Julien Lepiller User-Agent: K-9 Mail for Android In-Reply-To: <87edv5w58e.fsf@gmail.com> References: <87v8oixits.fsf@gmail.com> <025A8B84-E6C6-43EC-AAF6-CC93DC2F2BAC@lepiller.eu> <87edv5yhlp.fsf@gmail.com> <0e0a5d5dd55ae78f2eda4e390517d6b5e0325b83.camel@ist.tugraz.at> <87y1tdw9yc.fsf@gmail.com> <87k04xcksv.fsf@nckx> <87ilkhw5cu.fsf@gmail.com> <87edv5w58e.fsf@gmail.com> Message-ID: <08A37CE8-730E-4FD8-96B5-64CC874BFA9B@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----FHR7Q35IJFHC6V3UD3MPIE1WZ4AN31 Content-Transfer-Encoding: 7bit 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666107211; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DjZEw8TkgRKhMdtm4rKOf4oGP1OdEbCkkQDb95VwxRs=; b=NOzW+npW7/U8kMkys9RHAD2kG9ayN+MVfursQ5ybsjJMK0VnEcIJWHqLevKaEfLNDM5BuX eU0oo3bRysSJMupeMW4WppYIJcqeNt97j+I8/ZbKgNe4fBBjq2xLuza9p3F8+BEW2+K46k PHP8SndMvSQ3ToqIZs6nBgdpletsNw0nwZ9/H6RCYfxQdwUs4gcEdGaQ9EPK4gMqJYMrZv 0SVEzw2vpB6ATpt08KkPJsYKWmxYrg+6y/UV4ShT/DDIXXjzAxEqaAswVCgSPTgLfAI+rn jWlB5XpIvoXl9zW8uNwS09yN1C2oaO9QmxzyoWw/M+BwUkwIQVFWJKxfSzIsMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666107211; a=rsa-sha256; cv=none; b=ns6QGJfCgrgjyxUtkaZUyIWy8knUVJBAHXEztNPSm1e/htnnqJ+hNcbSvxP9Myqmx90v6V rnWBj7+ZPcOrOPCo7P2zEfHBMQykMxPHkGDcbcxjJ8qTH7zLAcMZu36sElND+qwsm5uN/3 j54aWjnpkiweCfGu6mSSGsZRR5TArqS7nHhz7gxVN/ck17eFc4k052tYmIbqS3BMn81XPx +n1w371rgRQKFIBOr4xbHPZJ2HwDYRDN3ly2OfuSaK53xYyp9QG1kgd7Vf3zBDbAozdy3B bJAmeOPR1sbOOCHjw+7pKQ4lEt0VGRLsnKZahtLbeHL8+M8YywPuZePTW4bMkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=HHxe+Wfm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.78 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=HHxe+Wfm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 943998FAD X-Spam-Score: 7.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: iY+3L38SZjpn ------FHR7Q35IJFHC6V3UD3MPIE1WZ4AN31 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, replying to a few emails at once=2E The ant-build-system uses zip -0 to produce an uncompressed archive=2E By = default, jar produces a compressed one, so there's a repack phase for that: http://git=2Esavannah=2Enongnu=2Eorg/cgit/guix=2Egit/tree/guix/build/ant-= build-system=2Escm#n226 Embedding the classpath in the manifest is possible but would not have the= expected effect=2E That's because a line in the manifest cannot exceed 72 = bytes (see "line length" in https://docs=2Eoracle=2Ecom/javase/8/docs/techn= otes/guides/jar/jar=2Ehtml#Notes_on_Manifest_and_Signature_Files), so the c= lasspath will look like: Class-Path: =2E=2E/=2E=2E/=2E=2E/1234567891011 1213141516/share/java/foo=2Ejar Although java would read that fine, the grafter will not see it, nor be ab= le to graft foo in a meaningful manner: java would still use the ungrafted = version even if another file references foo=2E Le 18 octobre 2022 16:56:01 GMT+02:00, Maxim Cournoyer a =C3=A9crit=C2=A0: >Hello, > >Maxim Cournoyer writes: > >> Tobias Geerinckx-Rice writes: > >[=2E=2E=2E] > >>> Groan=2E Which package(s) compress =2Ejars? >> >> Oh, aren't they all? I hadn't realized =2Ejar compression was optional= =2E > >Actually, reading [0] again, it seems a JAR *is* a zip archive, so >cannot be either compressed or uncompressed=2E > >[0] https://docs=2Eoracle=2Ecom/en/java/javase/19/docs/specs/jar/jar=2Eh= tml > >--=20 >Thanks, >Maxim ------FHR7Q35IJFHC6V3UD3MPIE1WZ4AN31 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, replying to a few emails at once=2E

The= ant-build-system uses zip -0 to produce an uncompressed archive=2E By defa= ult, jar produces a compressed one, so there's a repack phase for that:
= http://git=2Esavannah=2Enongnu=2Eorg/cgi= t/guix=2Egit/tree/guix/build/ant-build-system=2Escm#n226

Embeddi= ng the classpath in the manifest is possible but would not have the expecte= d effect=2E That's because a line in the manifest cannot exceed 72 bytes (s= ee "line length" in http= s://docs=2Eoracle=2Ecom/javase/8/docs/technotes/guides/jar/jar=2Ehtml#Notes= _on_Manifest_and_Signature_Files), so the classpath will look like:
=
Class-Path: =2E=2E/=2E=2E/=2E=2E/1234567891011
1213141516/share/jav= a/foo=2Ejar

Although java would read that fine, the grafter will not= see it, nor be able to graft foo in a meaningful manner: java would still = use the ungrafted version even if another file references foo=2E

Le 18 octobre 2022 16:56:01 GMT+02:00, Maxim Courno= yer <maxim=2Ecournoyer@gmail=2Ecom> a =C3=A9crit=C2=A0:
Hello,

Maxim Cournoyer <maxim= =2Ecournoyer@gmail=2Ecom> writes:

Tobias Geerinckx-Rice <me@tobias=2Egr> writes:
<= /blockquote>
[=2E=2E=2E]

Groan=2E Which= package(s) compress =2Ejars?

Oh, aren't they all? I = hadn't realized =2Ejar compression was optional=2E

Actu= ally, reading [0] again, it seems a JAR *is* a zip archive, so
cannot be= either compressed or uncompressed=2E

[0] https://docs= =2Eoracle=2Ecom/en/java/javase/19/docs/specs/jar/jar=2Ehtml

--
Thanks,
Maxim
------FHR7Q35IJFHC6V3UD3MPIE1WZ4AN31--