From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SGJ7IBuq/WaEcgAAqHPOHw:P1 (envelope-from ) for ; Wed, 02 Oct 2024 20:16:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SGJ7IBuq/WaEcgAAqHPOHw (envelope-from ) for ; Wed, 02 Oct 2024 22:16:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=j5j9O59L; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ZzZ7nHob; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727900187; a=rsa-sha256; cv=none; b=gVf2Nsmmk+OJ9kCx8r5RjcXCn1cBayScRa8G3x55CocmCxxTdqaVoJFKUn3E8YGyi6pw0e WnmNQQGK83fAzCFCCqLfx0f34PTeB4rdnF7xrv7p08tQvpIaAl/HMNkU4pLN7k4kDLtVRo DWsUt/Sh1Jstm/CYNvsjEcQZydPcNzaiQOj8f/0+CTjzZtn/D5IE3wbzaDlIn0sYvydfeh cK52HrtCty4CpjBtWNXf/1AyTnJ/MUDVa6ynBMhoglqPB/V6Gp2Ja2haqFq8ya6gsintsC GbES6SITTnGdfbkDhbewewWTgDKL85peo8RYP73Dn+9DVRtlAeiDNeqEVR0vaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=j5j9O59L; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ZzZ7nHob; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727900187; 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=iwxL2u6MroNuH/bK2neTq74tD4utEuKD+ddiWdCEKqQ=; b=UjHpfxB5UxKkhqa6mHRxFLpNU8vq2/iH3ki4MqsmcC3luEmYmQ6zUjm1eBaVtWqApzmzfe S5AWyVLRp527YrdCkzIwmWe1/1flvGYyof/6sY5QmbJQY/YpFb+O1zOZ7VhyfgcZLxgu1X EZOGYJVRnBrPTj14VcjLwHXOFvQYr9PhHM1nnv3lWt+Qdrz8g/8kGa/YyIxALuYT8mBr5N CCkyEHTAHSf1t3ROhHTx80JM13rqfIrHvA4vCkDruB1wwqeTIcAJNYjUiiymzhIXIm3G3N LY+Qj9TmrxzY0fxV67DqRePLlfereTHlaCEuEUloZmYMK3nh7x6G2aJO4XhYjA== 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 394538182E for ; Wed, 02 Oct 2024 22:16:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw5lT-0000jB-CG; Wed, 02 Oct 2024 16:16:03 -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 1sw5lR-0000j1-Sn for guix-patches@gnu.org; Wed, 02 Oct 2024 16:16:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sw5lR-0001TP-EN for guix-patches@gnu.org; Wed, 02 Oct 2024 16:16:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=iwxL2u6MroNuH/bK2neTq74tD4utEuKD+ddiWdCEKqQ=; b=j5j9O59LqZ3NHoh4Ur5jCTRAQ4RfLfcu/YOfurRRR6XzoQ9UG9/f48zPNiB97A8A77FpafBvhjrukHLi6TQTQQiRZRh1LzRha13P8W5T8SM9j7oG0aVox7xKnxczBEiz0No/f3UUJdh7DUr7sDHU3NRxllCE1poOa2RExfPf3xuW9nuSBgejR2ilG5zIktDpitO2ZgAsn912Vu2eWnhmQb0T4YOme395hg7SC8riyDRUGldCypr8GH55j8HpP4BnGLJZT93Uati9KUAh/HEtj5H/q3O6VMTqyjbJFU2pe274W4VVcQc7oT6RZ1NTSzgO9u65v5sjU5lvFli0JQbQTg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sw5lS-0006gT-2D; Wed, 02 Oct 2024 16:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v3] adding jpm package Resent-From: Suhail Singh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, "Suhail Singh" Resent-Date: Wed, 02 Oct 2024 20:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72925 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: Omar Bassam Cc: Sharlatan Hellseher , 72925@debbugs.gnu.org, Munyoki Kilyungi , Katherine Cox-Buday , Guillaume Le Vaillant , jgart , Suhail Singh Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.172790013725652 (code B ref 72925); Wed, 02 Oct 2024 20:16:02 +0000 Received: (at 72925) by debbugs.gnu.org; 2 Oct 2024 20:15:37 +0000 Received: from localhost ([127.0.0.1]:59345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw5l3-0006ff-8j for submit@debbugs.gnu.org; Wed, 02 Oct 2024 16:15:37 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:49164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw5l0-0006fW-Su for 72925@debbugs.gnu.org; Wed, 02 Oct 2024 16:15:35 -0400 Received: by mail-yb1-f193.google.com with SMTP id 3f1490d57ef6-e25e4023cafso181033276.2 for <72925@debbugs.gnu.org>; Wed, 02 Oct 2024 13:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727900073; x=1728504873; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=iwxL2u6MroNuH/bK2neTq74tD4utEuKD+ddiWdCEKqQ=; b=ZzZ7nHobDBVpB7OIU92tRTI8gnhm7lkG5VL8ExwCoY5bZRYow0U08mubbk0ZxbnryR 51+lScElNQ9IghfcnsCBoNTs431YdLnZJKzlplkqJLx+2dYesZkyZxInUhuw7KEfjtVw R9sZK4sCEsmTwaYiZqYAfJ65D2Q5rcBs+wfiaVtiyYbLc21hiuubs2J+La1Fgk8MpELy xXE+w1wDX5jLyTcxOesqPxCy02IoS6gPc/bB7h4DFbBNtfhgqjaotSDI08k7h7MuCLUX wuu0F4r9MvxiXEYTr/Z8m3HapN+Z9iIVHWvDh5gX7UcbuthPruvKVgiMbSEIFd4RodXo lrCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727900073; x=1728504873; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iwxL2u6MroNuH/bK2neTq74tD4utEuKD+ddiWdCEKqQ=; b=RWcTU3ev16I/587xkNUyw0S9O/esfq1PRV7mga3sJ7L/beOuppWZ5El6uiuLKYjptz gvbEdrUspzvI1cbXUbnnPanOjBkwJbdacoSsR3vaxyJ9Bye4Fo7DB75SlVGsc3ltiDnQ KMVfBUuowAPIoKB8rqTGd7M+g1Opx9SDgKA+f9rjjzGz5tsqOZcOB3Dj+D+TSJDgNxrL /RjMDdCupc+w+Y49Y3wlaraypP1y1yCLDbE1dI2RC/c17bOUJ9SLD8oSf5qLD34aVYLF BdTA8vQKHtQN2vHEQVE1eglGdA4bsiI3y8xuKQjru2ZMpj4Ce5N9dY13Cs07MHuX3DzV l+Vg== X-Forwarded-Encrypted: i=1; AJvYcCU5HKT6FzWnG4ViAJvFO1Wku9bSvTvphwcIBCleR85F6JBpxbYgonsbw3aBKdgo3bUEmuFdwA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy/OrSU7mYKaFQaTPkUgIecdjQBGZWm/eWAbPRnGew6UeVr2H4t zgrVeHc/9VZIs6avuE/+y4DhMm7PsVFoX4hfEuf/l6OXmebfFSsl X-Google-Smtp-Source: AGHT+IENvI1yZnCf3Qfd64ujpObnyL9xKp94pP2aIJTVclxEnUgi6lDn7pFh7AimqKAfNdfTYQpS6Q== X-Received: by 2002:a05:6902:1009:b0:e1d:c175:5efd with SMTP id 3f1490d57ef6-e263843ad97mr3443079276.50.1727900073103; Wed, 02 Oct 2024 13:14:33 -0700 (PDT) Received: from gnus (bras-base-mtrlpq0776w-grc-23-65-94-70-53.dsl.bell.ca. [65.94.70.53]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45c9f2b6d3fsm59788501cf.28.2024.10.02.13.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 13:14:32 -0700 (PDT) From: Suhail Singh In-Reply-To: (Omar Bassam's message of "Wed, 2 Oct 2024 22:12:56 +0300") References: <4e623d9571ff648ae1d1c6ffb8f9d73c421a5c10.1727683810.git.omar.bassam88@gmail.com> <87plok7kkn.fsf@gmail.com> <8734lev012.fsf@gmail.com> Date: Wed, 02 Oct 2024 16:14:29 -0400 Message-ID: <875xqanty2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.24 X-Spam-Score: 0.24 X-Migadu-Queue-Id: 394538182E X-Migadu-Scanner: mx10.migadu.com X-TUID: 1zrKIVLH7UZY Omar Bassam writes: >> > This is expected as the jpm install command is meant to install janet >> > packages globally which would be impure. >> >> It would help for this to be noted in some manner. Be it in the >> description or as comments in the package description. > > I don't think this needs to be said because all package managers installed > via guix have this issue. For me, someone familiar with Guix, but unfamiliar with Janet and JPM defaults, it wasn't obvious that I needed to add "-l" to the invocation. I don't believe such a message is necessary, but it would be helpful to some (those individuals who aren't familiar with both JPM and Guix). > Also, there is no one way to solve this because jpm gives you the freedom > to install packages on a user level > or on a project only level. The fact that JPM doesn't install packages at a user level by default was not something I knew previously. >> > To install janet packages to your local project directory, you need to >> add >> > the "-l" flag as follows: >> > jpm install -l sh >> >> Does this work for you (for jpm installed via guix)? If so, could you >> please confirm the set of dependencies you have installed in the guix >> profile for the above to work? If not, could you provide an example >> invocation that I could test out which would allow me to install a janet >> dependency in a local directory? > > Do you still get the same error? No, a different one. > Yes, this does work for me without any other dependencies. I am using guix > on ubuntu with guix shell. I am running guix-shell (--pure) with the following dependencies installed: - janet - gcc-toolchain gcc-toolchain:static - openssl - git - jpm - bash coreutils - curl nss-certs With the above, when running "jpm --local install sh" I observe the following error: #+begin_example error: ( "cc" "-std=c99" "-I/gnu/store/rdlvs1p09brkk961lj3vncifb4xlsmm5-janet-1.36.0/include/janet" "-I/tmp/review-72925/jpm_tree/lib" "-O2" "-o" "build/_jmod_posix_spawn.so" "build/posix-spawn.o" "-shared" "-pthread"): No such file or directory error: build fail in pdag [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/dagbuild.janet] (tail call) on line 79, column 23 in with-dyns [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 236, column 9 in defer [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 221, column 5 in bundle-install [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 219, column 3 in with-dyns [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 234, column 13 in defer [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 221, column 5 in bundle-install [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 219, column 3 in install [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.0/lib/janet/jpm/commands.janet] (tail call) on line 190, column 20 in run-main [boot.janet] on line 4432, column 16 in cli-main [boot.janet] on line 4613, column 17 #+end_example When running "jpm --cc=gcc --local install sh" I get the same error. I was finally able to get it to succeed by having cc symlink to gcc and adding the directory containing the symlink to PATH. So I believe that the package definition you've submitted is correct. However, I'm wondering what (if anything) needs to be done about the issue I encountered. Specifically, it's unclear why passing "-cc=gcc" didn't work (nor did setting "CC=gcc", but perhaps JPM ignores the latter?). Is this an upstream bug? Were my expectations misplaced? Should the JPM package in Guix provide "cc" as well? -- Suhail