From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YPBvFzyPAmfb7AAA62LTzQ:P1 (envelope-from ) for ; Sun, 06 Oct 2024 13:23:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id YPBvFzyPAmfb7AAA62LTzQ (envelope-from ) for ; Sun, 06 Oct 2024 15:23:08 +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=M+8bMugt; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IWiNJzoT; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728220988; 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=PsNn8ybx4aYeWDByJ9KajsfUROBvu4hRPzeKiQfbVmY=; b=SKUoEMbxfTOOUg10QFPZ48iiXyCuF/hZexkFl92LzleqOwNjg9xhOCPePpndeTk8NS+QY6 4pDWc8t44/JnTSM/E4YHRF5VPbjpte2E6lT4OPfIcNeFYbd/uRprE63EaynOtyPeR6eO+3 zVkJb6IYQ9sdpjgPYTQZpCfRVJyKkHQv3vxZfVb5fp8xYF6UAhc20tchnEe5YtTFD7phXs 2lTRnp0IaRtwmxb8/R3tw7fcmum3ybEW7xCToKKkyCiXFzyfon3krG+BkaOMRXPOgdZfnA Bx1x0dVE6A3ffYQfNlg89K8V6ZUGzWagz9GHLyuBpUK/zQkoV12I9lb/lynSyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728220988; a=rsa-sha256; cv=none; b=iHpUhhpc1K5DEZcMbmquI6QPCfP1ApAsMeiKXQD1K7ryQ+wayQjISzg5DCS1J9VwPRzjQ4 t15j7gQfypKkKM2nx58ASfIB4FL5si9FgNTGjPX8A3dEBUQo1qvePejN5gUDV1+Ka3+sKO KZHRsWW1TKPk3vhFafVG9YzNOGznNRL+KAwMxrc8P9ME9YWY4uvnIBA2jyvoeoc0nadSQJ FnVf74CP3SmtnowcXsgZPLiAwuhJ0emYePMHJgXVHNNJX7VwjT25ICMV+TiFiXyxB0/+s9 I62zVkySOKI5AagK5vPUL8/lhZ1NG7QbUzLUS3n6pjMYtbilXLIfUK3pgBXR5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=M+8bMugt; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IWiNJzoT; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) 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 E7514573BA for ; Sun, 06 Oct 2024 15:23:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxRDu-0004AT-2T; Sun, 06 Oct 2024 09:22:58 -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 1sxRDs-0004AC-Jq for guix-patches@gnu.org; Sun, 06 Oct 2024 09:22:56 -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 1sxRDs-0003k5-Be for guix-patches@gnu.org; Sun, 06 Oct 2024 09:22:56 -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=PsNn8ybx4aYeWDByJ9KajsfUROBvu4hRPzeKiQfbVmY=; b=M+8bMugtPt8FNRsdA4bURCn+TRXk4PJ/4cIuXdNjr0dGr6QMK3aasTa+Lr718RawVIcEANlA7lb+T4lYWG23j25GbEfibx9yIzWpKLjaXXjwRwHxFPgerIlXrU/q3gEspBgBpGKnzY0LFXw7o1IYgEOoaFMSjqwrofe9snQIXbwNRF1ShOsi3mZNVOi2v/qXTefMnlpQZai0ZSN59tZmdQCuXDatBIzCfw8uY95DHIbXk/g5ox4SI/nMG4or84O7Up4gteTZfm6yMu3X7VUT+oMUh4M7X7f84zO3Pq+uaKeO1aka0zGSe3JEWXoWlfJQXvXdDjArBtpcBGo2VeH4ZA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxRDy-0000DD-0Z; Sun, 06 Oct 2024 09:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72925] [PATCH v10] gnu: Add jpm. Resent-From: Omar Bassam Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org, "Suhail Singh" Resent-Date: Sun, 06 Oct 2024 13:23:01 +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: 72925@debbugs.gnu.org, Omar Bassam Received: via spool by 72925-submit@debbugs.gnu.org id=B72925.1728220939755 (code B ref 72925); Sun, 06 Oct 2024 13:23:01 +0000 Received: (at 72925) by debbugs.gnu.org; 6 Oct 2024 13:22:19 +0000 Received: from localhost ([127.0.0.1]:40429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxRDG-0000C6-Gs for submit@debbugs.gnu.org; Sun, 06 Oct 2024 09:22:19 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:57508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxRDC-0000Bx-U9 for 72925@debbugs.gnu.org; Sun, 06 Oct 2024 09:22:16 -0400 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a99543ab209so15710966b.2 for <72925@debbugs.gnu.org>; Sun, 06 Oct 2024 06:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728220868; x=1728825668; darn=debbugs.gnu.org; h=content-transfer-encoding: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=PsNn8ybx4aYeWDByJ9KajsfUROBvu4hRPzeKiQfbVmY=; b=IWiNJzoTUnfVrj6493NHUfbrLu2RXbBktijOIQiC6phEN1ZCNbjlMpHJHxWw/cqZlF mzwyw+TlS1vzs1W/hwG3E7pov05nimRXQt8MvewEqARfsowdTcxtZsmvi1Yv7fxarE7E AlqXYFZaCSXDiRKPqG8/tPa0dU5vMdoEMgz1S9OZDfoTejYICNXIlv8oP0RrqAVKZkwr +wICqHgD9luNvilBYTEvIYWIGr05xYtRzumXNsICSxFfMg7LYK2+S32Gh1HUFxvtPf9N 7hILWNoL778Q9gwF0THQjIml6d7faLB7oGpJ/HW5xVY1Epy/L5ZA24a4Di+RhBH/cD81 2S2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728220868; x=1728825668; h=content-transfer-encoding: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=PsNn8ybx4aYeWDByJ9KajsfUROBvu4hRPzeKiQfbVmY=; b=j0AAk9auSgtmPtn8b6GuyOaFwRuBm9WvktdZ3C7xhPvDoew5d+x0Fkm0I+E1toxNTY Gk425+wEa3GThMI9bup9gs7YmSWbXK2Zzy+TwiPxu7waZ3WR4Ws5JaLw60+BGhTCDjq/ tdmIQkqTjD0qEiberwzyZ21GQYh8DExFqGk6PWUsi85dW8vCpHR8WgUCGBbSJvPuK4QD AfSe2XJy5Hw61ZMAsCJVAcIgz+nSbNaqM4J6+GfFpb4FBOB3PNC5ifF2jqnTTpXCzd4q QHF6VGWiV6E9ObLKv8Hd4TRc4k33Evi6oC0qFadJJFWGW83HQgB186uzYavKJ2YxnYu0 WSIA== X-Gm-Message-State: AOJu0YyQXlSvDv9I9koIzwri9ozz51u6mKuF4ryvLQIciVHjVvNEV63a xbRu4Sivi0Z4Lfg5a4fTonrLfkk4vWZCkjvslFD8YHQX8NYLh0s2 X-Google-Smtp-Source: AGHT+IGoZFV0Q8FnUV+oKvJsKtLfwbOCOATqNSB1scRxKus8G+ycby/cyWfWdzAbyrxPSeqiCsSfrg== X-Received: by 2002:a17:906:da88:b0:a86:b85d:9470 with SMTP id a640c23a62f3a-a991c077d6fmr1007237466b.59.1728220867748; Sun, 06 Oct 2024 06:21:07 -0700 (PDT) Received: from omar-Latitude-5540 ([46.232.152.32]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a993f13620dsm186470366b.215.2024.10.06.06.21.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Oct 2024 06:21:07 -0700 (PDT) From: Omar Bassam X-Google-Original-From: Omar Bassam In-Reply-To: <6e198e7dc1f64bea3a2b1498fb69e597e4d03360.1728148557.git.suhail@bayesians.ca> (Suhail Singh's message of "Sat, 05 Oct 2024 13:21:24 -0400") References: <6e198e7dc1f64bea3a2b1498fb69e597e4d03360.1728148557.git.suhail@bayesians.ca> Date: Sun, 06 Oct 2024 16:21:05 +0300 Message-ID: <87o73xgyf2.fsf@omar-Latitude-5540.mail-host-address-is-not-set> User-Agent: Gnus/5.13 (Gnus v5.13) 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: 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.31 X-Spam-Score: -0.31 X-Migadu-Queue-Id: E7514573BA X-Migadu-Scanner: mx13.migadu.com X-TUID: 6AVoWUW4KUCa Thank you Suhail for helping me out wiht this patch. I have some questions about v10 patch about some parts that I don't fully understand. > * gnu/packages/lisp.scm (jpm): New variable. > > Change-Id: I730ef2f5c874c5142a580a42af76180e95d93ccd > Signed-off-by: Suhail > --- > gnu/packages/lisp.scm | 77 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 77 insertions(+) > > diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm > index 6c16d8ab71..48cf9dffab 100644 > --- a/gnu/packages/lisp.scm > +++ b/gnu/packages/lisp.scm > @@ -29,6 +29,7 @@ > ;;; Copyright =C2=A9 2024 Andreas Enge > ;;; Copyright =C2=A9 2024 bigbug > ;;; Copyright =C2=A9 2024 Ashish SHUKLA > +;;; Copyright =C2=A9 2024 Omar Bassam > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -62,6 +63,7 @@ (define-module (gnu packages lisp) > #:use-module (guix build-system gnu) > #:use-module (guix build-system haskell) > #:use-module (guix build-system trivial) > + #:use-module ((guix search-paths) #:select ($SSL_CERT_DIR $SSL_CERT_FI= LE)) > #:use-module (gnu packages admin) > #:use-module (gnu packages algebra) > #:use-module (gnu packages autotools) > @@ -69,6 +71,7 @@ (define-module (gnu packages lisp) > #:use-module (gnu packages bash) > #:use-module (gnu packages bdw-gc) > #:use-module (gnu packages boost) > + #:use-module (gnu packages certs) If we don't need nss-verts, do we still need this line? > #:use-module (gnu packages check) > #:use-module (gnu packages compression) > #:use-module (gnu packages crypto) > @@ -917,6 +920,80 @@ (define-public janet > assembler, PEG) is less than 1MB.") > (license license:expat))) >=20=20 > +(define-public jpm > + (package > + (name "jpm") > + (version "1.1.0") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/janet-lang/jpm") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "05rdxigmiy7vf93s16a8n2029lq33073jccz1rjl4iisxj6piw4l"))= )) > + (build-system copy-build-system) > + (arguments > + (list > + #:phases #~(modify-phases %standard-phases > + (add-after 'unpack 'fix-paths > + (lambda* (#:key inputs #:allow-other-keys) > + (substitute* "configs/linux_config.janet" > + (("/usr/local") > + #$output) > + (("\"cc\"") > + (string-append "\"" > + #$gcc "/bin/gcc" "\"")) > + (("\"c\\+\\+\"") > + (string-append "\"" > + #$gcc "/bin/g++" "\"")) > + (("\"git\"") > + (string-append "\"" > + #$git "/bin/git" "\"")) > + (("\"curl\"") > + (string-append "\"" > + #$curl "/bin/curl" "\""))) > + (substitute* "jpm/shutil.janet" > + (("cp") > + (string-append #$coreutils "/bin/cp"))) > + (setenv "PREFIX" > + #$output))) > + (replace 'install > + (lambda _ > + (for-each (lambda (dir) > + (mkdir-p (string-append #$output "/" = dir))) > + '("lib/janet/jpm" "share/man/man1")) > + (invoke "janet" "bootstrap.janet" > + "configs/linux_config.janet") > + (wrap-program (string-append #$output "/bin/jpm") > + `("JANET_HEADERPATH" ":" =3D > + (,(string-append #$janet "/include/janet"))) > + `("JANET_LIBPATH" ":" =3D > + (,(string-append #$janet "/lib"))))))))) > + (inputs (list bash-minimal)) > + (propagated-inputs (list janet > + ;; Lazily resolve the gcc-toolchain to avoi= d a > + ;; circular dependency. > + (module-ref (resolve-interface '(gnu packag= es > + commenceme= nt)) > + 'gcc-toolchain))) Since we no longer need gcc-toolchain and we are just using gcc directly, should we remove this module-ref expression and just add gcc as a= propagated input? > + ;; NOTE: Below ensures that the user provides the CA certificates th= ey > + ;; desire (as opposed to bundling `nss-certs' in propagated-inputs, = which > + ;; isn't recommended) and when they do, that they are respected. Why isn't bundling nss-certs recommended? > + ;; > + ;; FIXME: It's unclear why `search-paths', instead of > + ;; `native-search-paths', doesn't work. What are the difference between search-paths and native-search-paths. And were you able to run the "jpm install" command without nss-certs. Because, for me I was unable to do so. When I added back the nss-certs in propagated-inputs, it worked fine. > + (native-search-paths > + (list $SSL_CERT_DIR $SSL_CERT_FILE)) > + (home-page "https://janet-lang.org/") > + (synopsis "Janet Project Manager for the Janet programming language") > + (description > + "@code{jpm} is the Janet Project Manager tool. It is a build > +tool and its main uses are installing dependencies, compiling C/C++ to n= ative > +libraries, and other management tasks for Janet projects.") > + (license license:expat))) > + > (define-public lisp-repl-core-dumper > (package > (name "lisp-repl-core-dumper") > > base-commit: 73ec844389e91cb0f5a2647070516fc8d19d8730 Sorry I had to send this message twice. This is the first time sending from gnus in emacs and I didn't know the difference between a "reply" and a "wide-reply" BRs, Omar