From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 yGO5Bt0a/mbQUwEAe85BDQ:P1 (envelope-from ) for ; Thu, 03 Oct 2024 04:17:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id yGO5Bt0a/mbQUwEAe85BDQ (envelope-from ) for ; Thu, 03 Oct 2024 06:17:33 +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=hgom5cAS; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NGveGHej; 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=1727929053; a=rsa-sha256; cv=none; b=hr/vTrC/k9qBmxCYrPveqBU50TPOV1gQdmipVxfyCKdiMgF70dTUhwXiUBWW4AAj0atlIu CgLHz37zKM9BSyGU3V3jO4T+/znaJivpV00FcPCNLtOBCyj2yon5oNNdLac9ISqBtwehH7 0mOjHZzOYOManGqVBCjyDb+Ygxz65RMeuGMC0rZXK/jnhqCfO49Wgp0BDeKDb9N0DWQ7tn aTN8XYOtwgjpZR+lYp5WnUQcrIWg20w+TEN68Tm+PXMHRVJQgJpm+Zq7Q8o07obroIHZoz poAbvPrZ+3bZH1KSuLju7es7UVPKaQfPBjP7qXlCrkG59JAtiL4nh8hpCRxCeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hgom5cAS; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=NGveGHej; 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=1727929053; 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=OlMWo/Af0hkuhdhtecNPGO4W+boFJvP/3zR4scNFR6Y=; b=i2bnT68C6HwZMjhG9IAdXr9Pgc9zgpeYExma/TCsENTAqVPITenCrjpZRNhGLDG/h8MlZl WIDQg0YvuKsh2A0in31ImeDOtZasdATRUxMWw7mAs3N1P47Sccx9kHy/JoQMhnDRL+yx6n FNdrGVSXv36acUjB2ZeUO2gHdxHvc1vorkLwp9aFK/TOPxg9n09W1/g8wcVYkUo5xdxlm5 EqzU2jqksXYATBY1lqMSAivrLV3Z2cnyCbaElTTF9ZI30rUh0Qsq/f+bCtqze3++YqAu1H JXSqEUDjCFvuGFBYXMHBGlvSQepdJZ3at3N71xLdaSGB4ARtRRtIlMe27371aA== 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 C03A179DDD for ; Thu, 03 Oct 2024 06:17:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swDH2-0002Qt-GY; Thu, 03 Oct 2024 00:17:08 -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 1swDGy-0002Q8-FN for guix-patches@gnu.org; Thu, 03 Oct 2024 00:17:04 -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 1swDGx-0004JC-F1 for guix-patches@gnu.org; Thu, 03 Oct 2024 00:17:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=OlMWo/Af0hkuhdhtecNPGO4W+boFJvP/3zR4scNFR6Y=; b=hgom5cASh/OFa48CQCda1Ga503SFWtEJeIilVqUvui+JiNjc0S7gMgbZRCQ5qUUMtzQw1mIZrhFj726luG1Y0KjBuFR5M36JIxIHYcjM1I7LWs9oA1k3fIGxwqy0s4n22MOpbjOEASWhFoYactxtkXpt7zVXY2/yNozrXINOYlVbOJQKVhxaeOAvj2LP4AwZzaHRigCKtMa5kNegASB+IHJJmWkL5Iq6wbnSMLy04lgOSC8MvqlbwVAIRCrNPKVaCimXahzEyB951p+gNSZ+LCO8+s9TgS/2j+YyT8+bN368ocSAscjOsx1o+4zpzZ5mhfDPek34ii8odN8sdpRjUw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swDGw-0007mT-VQ; Thu, 03 Oct 2024 00:17:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v3] adding jpm package Resent-From: Omar Bassam Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, "Suhail Singh" Resent-Date: Thu, 03 Oct 2024 04:17:00 +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: Suhail Singh Cc: Sharlatan Hellseher , 72925@debbugs.gnu.org, Munyoki Kilyungi , Katherine Cox-Buday , Guillaume Le Vaillant , jgart Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.172792890827805 (code B ref 72925); Thu, 03 Oct 2024 04:17:00 +0000 Received: (at 72925) by debbugs.gnu.org; 3 Oct 2024 04:15:08 +0000 Received: from localhost ([127.0.0.1]:59608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swDF4-0007DZ-1K for submit@debbugs.gnu.org; Thu, 03 Oct 2024 00:15:07 -0400 Received: from mail-pl1-f172.google.com ([209.85.214.172]:45176) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw4ne-0002mr-5c for 72925@debbugs.gnu.org; Wed, 02 Oct 2024 15:14:14 -0400 Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-20bb39d97d1so794945ad.2 for <72925@debbugs.gnu.org>; Wed, 02 Oct 2024 12:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727896387; x=1728501187; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OlMWo/Af0hkuhdhtecNPGO4W+boFJvP/3zR4scNFR6Y=; b=NGveGHejPoX6w23wPpRnIOFdd/UctNrw0bx52jpESNGyI+rNDwFgs5NLJ22JKt8Mu7 h5Cw1ANkWDBxBOmVrVRye9qmiRLVeMrbcziQ1Q3C8ei8L1t2dg0ZKhmHsCtcNS+nhkMZ oY4ekUXEgG1Ammn5beGUtfCt/gNfJGCd4j2j3ZOtD6WZtYSGLRq+6122oTdxImTk/CZd HyV/UhRPGSMIaTfeQksd1Nho7C1dhL8aK2zOyT27g+vCL1Ro/0xADcwpmcCn+uX1Z2Nn 9NixdQ8O2CUM2+LfLv3K7lFH/gSY9jNwVLB/tSPDHyfWaP7Jv/VaqTHTecgi3J0hdvln bvVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727896387; x=1728501187; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OlMWo/Af0hkuhdhtecNPGO4W+boFJvP/3zR4scNFR6Y=; b=sLxQXBwTrOl+EVv7Z1qpVdTa9Ll4sn1rO5Fm2GMGJEvmWCxYscrGEiTFXbje5ULQ1Q 1VgrO+0pECpKl1GZICT3CRuUd70+he64QZwvTNta3tzxtpH8KLmwtKD7160cl31UIwWO 4vLLXqS91u9DoSglsphl0c3SBDLUqvJi3Aa6Q2fDrp8PgyrEhHkEmotDWoqW+SI8LXZW hV80J6IENUTB1k2mpzXbVNNKiZwDYjsbSl5w97/C2EJpmif8DtAHNMbPypdfoYczKvjF tGVSk7NtFQERWh7XUdoBntIlnH5Ux6+5hJz4x5B/0SUAch/ftBw4b2EPdWz0hLHYEv+T s3Xw== X-Gm-Message-State: AOJu0YyeavM0kIRsVGvyfxkYoZ5tB8gFkt3d+KDf5xV+VxHeIEw/QzHT 7g9yJOQ3M2dgr+NGEcgYTUI/3afn+cqcLMWRUiSLR59kEWh+l+684ZTjyV7FmXvP/IA6K4l5BLI 5VveII1TVMtcM+Nxc5Xly3tlpCPA= X-Google-Smtp-Source: AGHT+IGAVM+TqCUwBJQykNd1K0P8DBycSUVoT/9I17uXAKSYTNcGLkd1ysdjpfsVapSrL3krD9FL3Cxb7w2pAuFBpIw= X-Received: by 2002:a17:903:5cc:b0:20b:5b1a:209 with SMTP id d9443c01a7336-20bc59a3948mr39024115ad.9.1727896387443; Wed, 02 Oct 2024 12:13:07 -0700 (PDT) MIME-Version: 1.0 References: <4e623d9571ff648ae1d1c6ffb8f9d73c421a5c10.1727683810.git.omar.bassam88@gmail.com> <87plok7kkn.fsf@gmail.com> <8734lev012.fsf@gmail.com> In-Reply-To: <8734lev012.fsf@gmail.com> From: Omar Bassam Date: Wed, 2 Oct 2024 22:12:56 +0300 Message-ID: Content-Type: multipart/alternative; boundary="00000000000061ea720623833ad9" X-Mailman-Approved-At: Thu, 03 Oct 2024 00:15:02 -0400 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: C03A179DDD X-Migadu-Scanner: mx10.migadu.com X-TUID: feWMjlb7x+Eg --00000000000061ea720623833ad9 Content-Type: text/plain; charset="UTF-8" Hi Suhail, Sorry if some of my instructions were not clear before. I'll try to explain in more detail. On Wed, 2 Oct 2024 at 21:21, Suhail Singh wrote: > 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. This is a common Nix/Guix issue that I struggled a lot to understand at the beginning. 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. > > 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? Yes, this does work for me without any other dependencies. I am using guix on ubuntu with guix shell. It should create a "jpm_tree" folder in the directory where you invoked the command from. Alternatively you can set the "JANET_TREE" environment variable before invoking the command. For example: JANET_TREE=~/.jpm jpm install sh Also, note that janet is a lisp that compiles to C. So, if the library you are trying to install has other dependencies, you'll need to have those available in your profile/shell. > > Maybe in the future we can add a "janet-build-system" that will allow us > to > > add janet packages to the guix repository. > > That would be helpful. > Yes, indeed. I don't have much experience about that yet. But I plan to do so in the future. > -- > Suhail > --00000000000061ea720623833ad9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Suhail,

= Sorry if some of my instructions were not clear before. I'll try to exp= lain in more detail.

On Wed, 2 Oct 2024 at 21:21, Suhail Singh <= ;suhailsingh247@gmail.com&g= t; wrote:
Omar B= assam <omar= .bassam88@gmail.com> writes:

> This is expected as the jpm install command is meant to install janet<= br> > packages globally which would be impure.

It would help for this to be noted in some manner.=C2=A0 Be it in the
description or as comments in the package description.
=C2=A0
I don't think this needs to be said because all packa= ge managers installed via guix have this issue.
This is a co= mmon Nix/Guix issue that I struggled a lot to understand at the beginning. =
Also, there is no one way to solve this because jpm gives yo= u the freedom to install packages on a user level
or on a project= only level.
=C2=A0
> 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)?=C2=A0 If so, could you=
please confirm the set of dependencies you have installed in the guix
profile for the above to work?=C2=A0 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?
Yes, this does work for me without= any other dependencies. I am using guix on ubuntu with guix shell.=C2=A0
It should create a "jpm_tree" folder in the directory wh= ere you invoked the command from.
Alternatively you can set the &= quot;JANET_TREE" environment variable before invoking the command. For= example:
JANET_TREE=3D~/.jpm jpm install sh

=
Also, note that janet is a lisp that compiles to C. So, if the library= you are trying to install has other dependencies,=C2=A0
you'= ll need to have those available in your profile/shell.

=C2=A0
> Maybe in the future we can add a "janet-build-system" that w= ill allow us to
> add janet packages to the guix repository.

That would be helpful.
Yes, indeed. I don't have m= uch experience about that yet. But I plan to do so in the future.
--
Suhail
--00000000000061ea720623833ad9--