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 cPBzDXyqTmPEZgAAbAwnHQ (envelope-from ) for ; Tue, 18 Oct 2022 15:30:36 +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 SOizDHyqTmPFSAAAG6o9tA (envelope-from ) for ; Tue, 18 Oct 2022 15:30:36 +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 B10493B1E0 for ; Tue, 18 Oct 2022 15:30:35 +0200 (CEST) Received: from localhost ([::1]:47850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1okmfy-0001bZ-Mw for larch@yhetil.org; Tue, 18 Oct 2022 09:30:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1okmfV-0001ag-6y for bug-guix@gnu.org; Tue, 18 Oct 2022 09:30:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1okmfT-0004ku-TW for bug-guix@gnu.org; Tue, 18 Oct 2022 09:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1okmfT-0004HL-Kz for bug-guix@gnu.org; Tue, 18 Oct 2022 09:30:03 -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:30:03 +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.166609980016404 (code B ref 58591); Tue, 18 Oct 2022 13:30:03 +0000 Received: (at 58591) by debbugs.gnu.org; 18 Oct 2022 13:30:00 +0000 Received: from localhost ([127.0.0.1]:51597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okmfQ-0004GV-2A for submit@debbugs.gnu.org; Tue, 18 Oct 2022 09:30:00 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]:36686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1okmfM-0004GE-B7 for 58591@debbugs.gnu.org; Tue, 18 Oct 2022 09:29:58 -0400 Received: by mail-qk1-f175.google.com with SMTP id f8so8585990qkg.3 for <58591@debbugs.gnu.org>; Tue, 18 Oct 2022 06:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=ldI59MFvRbzCR1S5kcVKD4rwVc5bbZufnsxPjuG0Uoo=; b=NQha/Czj1a4vLjRYwyCa3Mq3YmOETxYHBZ/aNo9o4NyaKMSumv3D3NMcBgAFY0mV98 bcBpYK2AYRSJaF8epfpsi+9+UP4H1O0uTxZINAZNkiqwKT1nGj8Ws+oFN9czkA8JYBAF 7Q1wClr4NfEpbhDuFTAgSxvnE11h/CX0YEdy9MCmnMEN3jKkfaFz37JDY53PwtLADEio SmNaIyazUzhp/UBdizAYL0ehG4txu6TrCr+pAqTc5DtRO8x92U4i8t/f1azfTv19ZWsT va4FI1hjIApcaZ0pNWDdU7romJPmyNpj5W9upmeu835zqk5E8GTFbRsDhpFa1t6L+uEd i6Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=ldI59MFvRbzCR1S5kcVKD4rwVc5bbZufnsxPjuG0Uoo=; b=im4bach+sEJmWud/OCrjerLnX/wcDgq0eMqngTAkUiK6gL16cSHbUq5Ca7gSIbT0PN zzXTcIIng2Ucma0NHog1aIBoo0SmuGuJkEIzFfGRK8k5AguNVDUWYZwW6ZTw/9rLf2lm GG7LT7ndko07DPFY02GHINXwY3JO5kEhdZ2VKU6Kbp+BgxKmpuFRWK8MZqC9nt+JV4Z+ Qf0KPJHnIcZX4b+59ALb73M+41Dsu2kfsQjEjy62fz/jmdQB4wqlXtM9liqsiZxYJi0A Mqp8v6X4hxtun57n1dRz8w3rrqx4Vkjaml7N3EBax1KsrjcDs+bd4/xpTSwp5WyRZQTD kVgg== X-Gm-Message-State: ACrzQf3Wptgv7dGOyoo44khc5tPDvDot1Q+kt9JXGLII81ND8Q9yzD21 JeoflY2vYpPBMRSZvQoIToqpq4zQzUA= X-Google-Smtp-Source: AMsMyM5Y89Ac12+xUzq3Is1Nxuon7RjpZDPdJB+zliAeVNBH608OYwHJ7bOGeHCLce/QESvEEEKNQA== X-Received: by 2002:a05:620a:404c:b0:6d9:9fa1:535e with SMTP id i12-20020a05620a404c00b006d99fa1535emr1840460qko.509.1666099790610; Tue, 18 Oct 2022 06:29:50 -0700 (PDT) Received: from hurd (dsl-154-51.b2b2c.ca. [66.158.154.51]) by smtp.gmail.com with ESMTPSA id l12-20020a05620a28cc00b006ecf030ef15sm2422961qkp.65.2022.10.18.06.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 06:29:50 -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> <87y1tdw9yc.fsf@gmail.com> Date: Tue, 18 Oct 2022 09:29:48 -0400 In-Reply-To: <87y1tdw9yc.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 18 Oct 2022 09:14:03 -0400") Message-ID: <87r0z5w983.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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=1666099836; 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: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=ldI59MFvRbzCR1S5kcVKD4rwVc5bbZufnsxPjuG0Uoo=; b=uZr0q0hTX338sgQcBrXQFE4rPouLDhWwUnLSMB/kBR/6i8fNsHSTjjx5aWq6kXbZkRqQ9S HkAwa10s3ScyXiFtT+JvUZpmlTDCksz6gxbXwKD9YOCAGTMO6TbPzmOIyG/nD6MLVkHrJG fwVfyztGMF8fBQ6+fQAGbhykAXjw5luOVxApXKhHqAmqvUdT1i3QR7+OgepL7Cuzkx9y4G y1wwz2MBJUwWE8ERx0svVhbGI9Kua7PWFNnZHVqYKZYCvfoen/hyYy5VQIepbMe70EXV1w pXt74esX7LmGmrIVggtSO3VkR1NvVVWVhkCI/Np7SQKIZ+NIXX+ozuMG9H3Mtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666099836; a=rsa-sha256; cv=none; b=hiDbuwq8YZloOB3IlyXMrBBZMBff78MVeyV5aeDVfj8eY44J5vxnZdstSAn0b3u4bWQ9DL Y/Huk7p+iF2sMh1Q48dA9w1IgD0c7/AwP2XmSq5ZnNZmPKY6tg9aE/Fl3iuqB7+mAV806F 8Q07PMob6ytkEvQegk1s9KwvnEenuqVXNWgGGDOrni+8uCTLfQyJtFZWzTevAArsfcs5Df jP7/uivP25az9SopaG3mUdGlS041Utz6P7WKYS6Q00RsHJFlWCJH6pyWKImybO9NGC7vrB asMwhp50z28vQmkWBi9jtNmYhyCdFSQUhNXdrjDZRlANxL15/goKy4LcYxMPfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="NQha/Czj"; 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: 5.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="NQha/Czj"; 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: B10493B1E0 X-Spam-Score: 5.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: ro01TE3PNXb+ Hi, Maxim Cournoyer writes: [...] > 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). Ugh, Class-Path only accepts relative path, not absolute paths: The location of the JAR file or directory represented by this entry is contained within the containing directory of the context JAR. Use of "../" to navigate to the parent directory is not permitted, except for the case when the context JAR is loaded from the file system. Perhaps we could patch Java so that it's loader is more adapted for our use case, or extend its manifest with a Guix-specific Guix-Class-Path section that'd allow for absolute paths. > [0] https://docs.oracle.com/en/java/javase/19/docs/specs/jar/jar.html -- Thanks, Maxim