From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 YBtBL+WmTmMrUAEAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 15:15:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cDOCL+WmTmMhlgAA9RJhRA (envelope-from ) for ; Tue, 18 Oct 2022 15:15:17 +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 5F1813A837 for ; Tue, 18 Oct 2022 15:15:17 +0200 (CEST) Received: from localhost ([::1]:43920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okmR8-0003j3-Uo for larch@yhetil.org; Tue, 18 Oct 2022 09:15:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okmQw-0003gd-1V for bug-guix@gnu.org; Tue, 18 Oct 2022 09:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okmQv-0001xY-P6 for bug-guix@gnu.org; Tue, 18 Oct 2022 09:15:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okmQv-0003u5-JN for bug-guix@gnu.org; Tue, 18 Oct 2022 09:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#58591: Java packages do not appear to keep a reference to their inputs Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 18 Oct 2022 13:15:01 +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: Liliana Marie Prikler Cc: Julien Lepiller , 58591@debbugs.gnu.org Received: via spool by 58591-submit@debbugs.gnu.org id=B58591.166609885414929 (code B ref 58591); Tue, 18 Oct 2022 13:15:01 +0000 Received: (at 58591) by debbugs.gnu.org; 18 Oct 2022 13:14:14 +0000 Received: from localhost ([127.0.0.1]:51569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okmQ9-0003sj-OV for submit@debbugs.gnu.org; Tue, 18 Oct 2022 09:14:14 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:39773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okmQ7-0003sV-U6 for 58591@debbugs.gnu.org; Tue, 18 Oct 2022 09:14:12 -0400 Received: by mail-qk1-f176.google.com with SMTP id a5so8544187qkl.6 for <58591@debbugs.gnu.org>; Tue, 18 Oct 2022 06:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=C4jjJ5/OuwjV1FWcYmXtwCt++/0eT8gOo3MJ+hXCQrE=; b=aEtfrTWQoOqIWXX94py8m9SKzV4wZQ9BsuNKID1M3F+WD2E5ME08fpbT3VsWwXKe2d f7KdOJe2yfUPi4+bWYGaj5sorft0/83Zb6G1w+y0Mmb7T2GQpIk9oSvDULURjOB4lQBx Ak23gBf86cJTe6YuxEt1dwdk1MXaAVtDyenAjnrFPO8oBpyy7W8WHksta1/OyYkGt3zV gnTU8rhx/UMHwPLrZlyGbXdMV7VAXjjp2AaOwSAGOUGUir70PdI0yU0Pic0qKlwzBt2R aUQPbldEJngqoYkPf8p7O6fudmFLZzhfkoQYNZasGVy3CEbzG404eboUdk77iFW99FDF Vp0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=C4jjJ5/OuwjV1FWcYmXtwCt++/0eT8gOo3MJ+hXCQrE=; b=dGrwmaMTKzlJw3LzK+LNn/kobDNcHdS6pFLiRyLL4keU0r9rRgWJI6aLgjdnXHpy+P xKT+2PvKGzF/uiP6+vWfUnSn0c73WS9h0lhnC2ztSvNu3N0IYglrExkBQl2aGZnwBE2f +0+pYILKYkMml/vY1cDe8oSjI1oyJcfPabSzaIkwQuORDQXh+Cp2C7MxqoALg6xt0fLg UJPo/jvbcZDbjABjS1m9De8y8hGXRMq9nmia+XqRwNI9wu9OsouLPXEdgavysNtlJV8v p8yGnmh1P1MlpnxL7N6atWYkgIMqZn5ESWiHy76b/2Pka1WKziR7FWTPvU0fOhp8SV3G nWuw== X-Gm-Message-State: ACrzQf2+gC41h4olaHhtC6yAf0ngJrqZs9xgDJIPq6DVhCZrLG5tvwTE FVOaOkFENLJMCtKw9PcoPuoWgVJukdQ= X-Google-Smtp-Source: AMsMyM5RwkfLj1+x56u0XJxOM/3Jn8vRc6rWUZ0XTbIIRipchTag9ijhSOdGPuh3Bwsq0Cqw94xELw== X-Received: by 2002:a05:620a:2218:b0:6ee:1e01:b189 with SMTP id m24-20020a05620a221800b006ee1e01b189mr1749140qkh.478.1666098845625; Tue, 18 Oct 2022 06:14:05 -0700 (PDT) Received: from hurd (dsl-154-51.b2b2c.ca. [66.158.154.51]) by smtp.gmail.com with ESMTPSA id j12-20020a05620a288c00b006b640efe6dasm2391548qkp.132.2022.10.18.06.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 06:14:05 -0700 (PDT) From: Maxim Cournoyer References: <87v8oixits.fsf@gmail.com> <025A8B84-E6C6-43EC-AAF6-CC93DC2F2BAC@lepiller.eu> <87edv5yhlp.fsf@gmail.com> <0e0a5d5dd55ae78f2eda4e390517d6b5e0325b83.camel@ist.tugraz.at> Date: Tue, 18 Oct 2022 09:14:03 -0400 In-Reply-To: <0e0a5d5dd55ae78f2eda4e390517d6b5e0325b83.camel@ist.tugraz.at> (Liliana Marie Prikler's message of "Tue, 18 Oct 2022 09:36:44 +0200") Message-ID: <87y1tdw9yc.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1666098917; 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=C4jjJ5/OuwjV1FWcYmXtwCt++/0eT8gOo3MJ+hXCQrE=; b=LoxP8R3Zzyg5pdZe17nhdlqCHravbJOC2ZIvuIcLM+FjD+EB3saR0X7laRIFOBMlsNMchh 9SQy5CTyJBkmFPR2aZb6uGrwYhuqitIHR0xeQHUF0FsmhSR4rPAU5wb49eQZler+VV6AEl Z+gQ6kM5eahg8IAggDN8vABbABCTRLsBBc//Y5p6G5w/BPMxdYrzEcU7+OpZTOmiVMBM1X OXwwuuvm4Xg8Yckb7sm70dcu2t/OMfGVy5a1DBXw5X+pXrrObnFpeLOXKmyoZb03a9GVcN a+PJ2jmcuy45GGmoW1ToTjM0OOrqDm/wH4Z/CzQfMwT9o6M7VvQtoHJ+bK445Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666098917; a=rsa-sha256; cv=none; b=t7ydRATWLDzEibnBSF3jANHMG15bzf7k8Fy7gno5QxyBk/2jl8Fu7Xdy7LO4VU0ktYkIbH xg9qKG4JdOSlj8Mcpxm4q7wzPYWvK8mi6+fPnwsEeJs3eLwFFGNB3sWV7z1tYhcXkBE+SR 28zQq8HzvKhgI9kD9ItlGmmEYo50ggKKjoTxIFJHZguMMPqMvlgxWTogG9z3JIVrBoRQDK 1En35ZblwXNSja9BLTm2nVSi8WMAF9FnbE2eh8ChEeGhhZUh1rOoeU3kckeUzlx7kTgkpt K9FRB6QqHFbJfNSUTKOKsOKC5KiSuBx0lx9vpaDYkNLlI+sV7hcC84fvCgwMrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aEtfrTWQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 6.08 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=aEtfrTWQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (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: 5F1813A837 X-Spam-Score: 6.08 X-Migadu-Scanner: scn1.migadu.com X-TUID: /eaGVnMwYEnw Hello, Liliana Marie Prikler writes: > Am Montag, dem 17.10.2022 um 22:45 -0400 schrieb Maxim Cournoyer: >> Hi Julien, >>=20 >> Julien Lepiller writes: >>=20 >> > You're right, java package don't retain references to there input, >> > that's why we propagate required dependencies (mh=E2=80=A6 sometimes).= I >> > don't >> > know how they could reference dependencies directly. >>=20 >> Could we, along with installing Java classes as directories instead >> of .jar archive files [0] at a more specific prefix, define a search >> path specification that'd set CLASSPATH?=C2=A0 Currently I don't see >> anything setting CLASSPATH outside of the build systems, so even if >> we propagate Java things, I don't see how it'd find them in a >> profile. > I'd recommend writing an xml file like=20 > > > > > ...=20 > =C2=A0 > > > to a well-known location. Then we could reuse those files in ant- > build-system. A nice read is [0], which mentions the existence of a 'Class-Path' main attribute that can go in the manifest file. If using unpacked jars works the same as .jars (which are just zip files) for Java, then we could not only have dependency correctly referenced and loaded via 'Class-Path', but also the grafting mechanism would work, since the paths would appear in clear (not obfuscated due to zip compression). Our current usage of JarIndex doesn't suite the bill it was intended for; this is a performance trick to index all the .jars of a .jar pack; it'll only list its dependencies if they are packed in the same jar, which is not what we do or want as a distribution. [0] https://docs.oracle.com/en/java/javase/19/docs/specs/jar/jar.html --=20 Thanks, Maxim