From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GIBBMOga/mb/ywAAe85BDQ:P1 (envelope-from ) for ; Thu, 03 Oct 2024 04:17:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GIBBMOga/mb/ywAAe85BDQ (envelope-from ) for ; Thu, 03 Oct 2024 06:17:44 +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=OK3MXVVF; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=dhTTmP5F; 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=1727929064; a=rsa-sha256; cv=none; b=o+SSxXLzgY/R0wTP84HZeQHXDONIuL28jMrnHA84H1SKL8od9qMMS/wOuizF5jj55eohYf SLrsqYtk9+aHW87VsY52403fcDKgciFMDxmTZCorGtNKVc5wPdPKOF+LR/v7vtodCW9BjZ MJK6F0F2HM+sXaw7h+dsnbV26omf2Zl75WJIG8izpN05YtUAcoDkrXBUlwuXw09TmxhpzV NM3uPbjCD4WpsigGd1rI1GbT+xkIprSlpNQg/YnBgcOaTsZdT9dlxfwJs5Xw8JSrirWGrO e4XlrTVhPzT/sIVjs76pfsnZbDO9V/IcwidPgf2PTcHNEi2e8qpPCzpD9woJdA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=OK3MXVVF; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=dhTTmP5F; 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=1727929064; 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=Vk/vFxDGuA0PkyBqLMnVlqGSsv54XlV++839zqeRKBk=; b=k6cqhaNQHXR0fKqPtjuUltco4oZNchbgWRjGkq6TZL9D1nvqE7hSzeT6UXbqHdJk47gcpw lArEl2iy0IIUz1ZO7yU1NMBvQUDL0AUnUc0O+O4+cOArM37DnGDFrJEYatrcDlNtsf39iJ DrJQxFfCyxeZ8xEwy6sWYE2frOx8/UP8++IUi5xTwt+vijdamdjSMKe/1z/Lbuom+G6v79 5l2ks/VHZrIWlcrNbk7MaHMZeIyZxGf3oS5V70lHMeXjIICCu36gYTAZX8Sq9QI1xhwAO6 ME14KznDvclo7B02Hvl/I7EuDIII7PfOH8+GrRI52i3tClpmHHtmViJG5qeudA== 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 36E008F227 for ; Thu, 03 Oct 2024 06:17:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swDHM-0002TK-Pw; Thu, 03 Oct 2024 00:17:28 -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 1swDHK-0002Sj-LL for guix-patches@gnu.org; Thu, 03 Oct 2024 00:17:26 -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 1swDHI-0004Qz-Hy for guix-patches@gnu.org; Thu, 03 Oct 2024 00:17:26 -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=Vk/vFxDGuA0PkyBqLMnVlqGSsv54XlV++839zqeRKBk=; b=OK3MXVVFP6rj36zfRnWxKrRnqudczMBJNpOlAXe3BUBMaJxGRJiQ3CUruipgk12O25jWb19HNx3muULCzmN1ilh8E/oRZIDKYAHzzBsiu3eNUQ/Gs8OyTA/1gCB1TZwV384t7LaH4wEnax+eCQ7tZ4qNJZdfc8JUDFyWSpmPp2TS6OA+ZgImsdPQn+fp0MRPN4FhPbHFpAdjwVJTDOQIoRxdprWrYb0C2eElUkvfnn6v94AD6LioDqEZdR3CsWE+gLE1C5Ped3h10Lin6DaxRNX0jLugvUM7i8OmKAXUJOhUyJziNgvR+ReXvFCUF05Y1LvymoWas5krRNHfv+TSgg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1swDHI-0007ts-VY; Thu, 03 Oct 2024 00:17:25 -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:22 +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.172792891127928 (code B ref 72925); Thu, 03 Oct 2024 04:17:22 +0000 Received: (at 72925) by debbugs.gnu.org; 3 Oct 2024 04:15:11 +0000 Received: from localhost ([127.0.0.1]:59610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1swDF5-0007EO-Q6 for submit@debbugs.gnu.org; Thu, 03 Oct 2024 00:15:11 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:47276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw5xL-0007JB-2B for 72925@debbugs.gnu.org; Wed, 02 Oct 2024 16:28:19 -0400 Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-20b7eb9e81eso1945055ad.2 for <72925@debbugs.gnu.org>; Wed, 02 Oct 2024 13:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727900832; x=1728505632; 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=Vk/vFxDGuA0PkyBqLMnVlqGSsv54XlV++839zqeRKBk=; b=dhTTmP5FbEwYhceM9qZdH8kaHUl4HD0no6GQnfTZzboyvm1CELxIdCFlM5TruO44T9 PBcRoojCkXaGKnZMIRFzuOeAdSkTY8Uxb5qw5DfwNBaoZVzgzDC5pVwz0uvxSspWn3tv 8dtgFGeYy5Fhz6fPyLdnVxUVTaXcvBY+l5rErFaFSH4wjpnq1BtAm7lg3XG+JPbgrP4h givmtlfo6mD8oucYGtZve2Hk4vEeDwwdXLI1X3ei+LEc1Z+IZmGn8r/4Hf8BnMgYPjst C1F4T39DdWsEC8fGbwvGKRD35E+QJH6v1MnMZf0+PYhtWtpp7o8fM78hDbBGH9cN8JEw Ky+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727900832; x=1728505632; 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=Vk/vFxDGuA0PkyBqLMnVlqGSsv54XlV++839zqeRKBk=; b=rjs5iKWI4/Zy294sr+OtVNLVh6mJNh6Swv0wc0jTtR6L1KL+RqYDFAqikyfSowYodl 31B4DMf8A0nfbGHnw2zixE0e2Putp7wCanQFMXNCXPSG01MypqnQT/74i37gLGdARe2Z 3prPjCJ6VoubUE/SDhxphjzTZC1dYI5BqJZR8ytCnmEj5e9jMKofaIJMxyungH6c5yEV w5odzMH/tJrEhQ9HBQrZOlUcyAwYVdumqd9yYJ241o/xGTlb6TevikgQQKyam1D2TQ3J C1mJchI2B/xQS7/0MwXVFw8Z8QOwVVsuFduB80rdI7Vkp+Tk2TxMrUhcZudmodNxXKt/ V23w== X-Gm-Message-State: AOJu0Yx6vD+NEe7XUuaYuCCBU9jNPflxD3UgglM1W+p7FTF8ZBWSXNXI YxA5o6SHzQOzTQfM8QRHEIm4b+hfVUocWzlnOJ7Ra8IL8Nfw5Moz2GdYQCcH+e9BvI5VunCwcaW xEy8BdPSV79Ev+UR0RVlHHlLlm9U= X-Google-Smtp-Source: AGHT+IH+NQjnfKVlr6get5MPq9gnCfdzCV/7FE+2TqVfSXPzEE5OMDa/c+jnwiFU4tMlLSqR/K8jVUTJtJmB6HEVg2s= X-Received: by 2002:a17:90b:4a52:b0:2d8:abdf:2ca9 with SMTP id 98e67ed59e1d1-2e184531e52mr5442829a91.3.1727900831955; Wed, 02 Oct 2024 13:27:11 -0700 (PDT) MIME-Version: 1.0 References: <4e623d9571ff648ae1d1c6ffb8f9d73c421a5c10.1727683810.git.omar.bassam88@gmail.com> <87plok7kkn.fsf@gmail.com> <8734lev012.fsf@gmail.com> <875xqanty2.fsf@gmail.com> In-Reply-To: <875xqanty2.fsf@gmail.com> From: Omar Bassam Date: Wed, 2 Oct 2024 23:27:00 +0300 Message-ID: Content-Type: multipart/alternative; boundary="0000000000004bc1950623844389" 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -0.47 X-Spam-Score: -0.47 X-Migadu-Queue-Id: 36E008F227 X-Migadu-Scanner: mx12.migadu.com X-TUID: IE+nZ5Qlq3gn --0000000000004bc1950623844389 Content-Type: text/plain; charset="UTF-8" On Wed, 2 Oct 2024 at 23:14, 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. > > 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). > This is where jgart suggestion would be really helpful. I am personally working on a project https://lisp-spectrum.org/ where I try to document all the struggles that I had with the Lisp ecosystem and try to make it more accessible to new users. (Any contributions are welcomed of course). > > > 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? > No, this is not really a Janet or JPM issue but rather the fact that you are overriding the gcc compiler with a symlinked binary instead of the absolute path. I faced this issue as well with LD_LIBRARY_PATH where you have to use "readlink" to point it to the absolute path of the "lib" folder in your guix profile. > -- > Suhail > --0000000000004bc1950623844389 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, 2 Oct 2024 at 23:14, Suhail S= ingh <suhailsingh247@gmail.c= om> wrote:
omar.bassam88@gmail.com> writes:

>> > This is expected as the jpm install command is meant to insta= ll janet
>> > 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.
>
> I don't think this needs to be said because all package managers i= nstalled
> 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).

This is where jgart suggestion would be r= eally helpful. I am personally working on a project
https://lisp-spectrum.org/ where I try to doc= ument all the struggles that I had with the Lisp ecosystem
and tr= y to make it more accessible to new users. (Any contributions are welcomed = of course).
=C2=A0

> Also, there is no one way to solve this because jpm gives you the free= dom
> 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, yo= u 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 g= uix
>> 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?

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 t= he
following error:

#+begin_example
=C2=A0 error: ( "cc"
=C2=A0 =C2=A0 "-std=3Dc99"
=C2=A0 =C2=A0 "-I/gnu/store/rdlvs1p09brkk961lj3vncifb4xlsmm5-janet-1.3= 6.0/include/janet"
=C2=A0 =C2=A0 "-I/tmp/review-72925/jpm_tree/lib"
=C2=A0 =C2=A0 "-O2"
=C2=A0 =C2=A0 "-o"
=C2=A0 =C2=A0 "build/_jmod_posix_spawn.so"
=C2=A0 =C2=A0 "build/posix-spawn.o"
=C2=A0 =C2=A0 "-shared"
=C2=A0 =C2=A0 "-pthread"): No such file or directory
=C2=A0 error: build fail
=C2=A0 =C2=A0 in pdag [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1.= 0/lib/janet/jpm/dagbuild.janet] (tail call) on line 79, column 23
=C2=A0 =C2=A0 in with-dyns [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm= -1.1.0/lib/janet/jpm/pm.janet] on line 236, column 9
=C2=A0 =C2=A0 in defer [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1= .0/lib/janet/jpm/pm.janet] on line 221, column 5
=C2=A0 =C2=A0 in bundle-install [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq= 6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 219, column 3
=C2=A0 =C2=A0 in with-dyns [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm= -1.1.0/lib/janet/jpm/pm.janet] on line 234, column 13
=C2=A0 =C2=A0 in defer [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1.1= .0/lib/janet/jpm/pm.janet] on line 221, column 5
=C2=A0 =C2=A0 in bundle-install [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq= 6-jpm-1.1.0/lib/janet/jpm/pm.janet] on line 219, column 3
=C2=A0 =C2=A0 in install [/gnu/store/ffmis4y6rld42biqx5lq4nvsjp0bqiq6-jpm-1= .1.0/lib/janet/jpm/commands.janet] (tail call) on line 190, column 20
=C2=A0 =C2=A0 in run-main [boot.janet] on line 4432, column 16
=C2=A0 =C2=A0 in cli-main [boot.janet] on line 4613, column 17
#+end_example

When running "jpm --cc=3Dgcc --local install sh" I get the same e= rror.

I was finally able to get it to succeed by having cc symlink to gcc and
adding the directory containing the symlink to PATH.=C2=A0 So I believe tha= t
the package definition you've submitted is correct.=C2=A0 However, I= 9;m
wondering what (if anything) needs to be done about the issue I
encountered.

Specifically, it's unclear why passing "-cc=3Dgcc" didn't= work (nor did
setting "CC=3Dgcc", but perhaps JPM ignores the latter?).=C2=A0 I= s this an
upstream bug?=C2=A0 Were my expectations misplaced?=C2=A0 Should the JPM pa= ckage
in Guix provide "cc" as well?

No, this is not really a Janet or JPM issue but rather the fact that you a= re overriding the gcc compiler with a symlinked binary
instead of= the absolute path. I faced this issue as well with LD_LIBRARY_PATH where y= ou have to use "readlink" to point it
to the absol= ute path of the "lib" folder in your guix profile.
= =C2=A0
--
Suhail
--0000000000004bc1950623844389--