From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 14 08:50:09 2024 Received: (at submit) by debbugs.gnu.org; 14 Aug 2024 12:50:09 +0000 Received: from localhost ([127.0.0.1]:46459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seDS5-0003Ft-DV for submit@debbugs.gnu.org; Wed, 14 Aug 2024 08:50:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:40750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seDS2-0003Fk-Fl for submit@debbugs.gnu.org; Wed, 14 Aug 2024 08:50:07 -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 1seDRT-0000Vb-3z for guix-patches@gnu.org; Wed, 14 Aug 2024 08:49:31 -0400 Received: from anamika.lostca.se ([65.21.75.227]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1seDRP-0004mc-5H for guix-patches@gnu.org; Wed, 14 Aug 2024 08:49:29 -0400 Received: from localhost.localdomain (poincare.inet6.in [IPv6:2a0a:4cc0:1:12d4::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: abbe) by anamika.lostca.se (Postfix) with ESMTPSA id 9D330223A6; Wed, 14 Aug 2024 12:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; t=1723639764; h=from:from: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; bh=kijoNRDpniv5te+OwZCr79CieyEYKueedpN9uay62DU=; b=P0tinR5Nk+gELjh2CCSCndcRMdnqY4qhM/sGnnxmdiB+D+Fk6DjpOeOX44AIb7eWmpk4CB tfGN+zgZHOZyO1Y8k/qu4nRdO8cYCDPqc8RGgnjqWHCppQ0DwOGFJTJiWqX0nYbH2jr5Bz gHBGK/SRsFkyiQehLqiVeYy01h0dS48= From: ashish.is@lostca.se To: guix-patches@gnu.org Subject: [PATCH] gnu: Add clasp. Date: Wed, 14 Aug 2024 12:46:18 +0000 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-Debbugs-Cc: Guillaume Le Vaillant , Katherine Cox-Buday , Munyoki Kilyungi , Sharlatan Hellseher , jgart Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=65.21.75.227; envelope-from=ashish.is@lostca.se; helo=anamika.lostca.se X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Ashish SHUKLA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) From: Ashish SHUKLA * gnu/packages/lisp.scm (clasp-cl): New variable. Change-Id: I1d1dbc358c0e05577d3d535600c2f9863ad29fad --- Hi, This patch adds Clasp Common Lisp implementation[0] to Guix. Most of it is inspired/based off the work in nixpkgs[1]. References: [0] https://clasp-developers.github.io/ [1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/clasp/default.nix Thanks! gnu/packages/lisp.scm | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 97f7dd357b..b41a66e4a9 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -28,6 +28,7 @@ ;;; Copyright © 2023 Andrew Kravchuk ;;; Copyright © 2024 Andreas Enge ;;; Copyright © 2024 bigbug +;;; Copyright © 2024 Ashish SHUKLA ;;; ;;; This file is part of GNU Guix. ;;; @@ -367,6 +368,77 @@ (define-public ccl interface.") (license license:asl2.0))) +(define-public clasp-cl + (package + (name "clasp") + (version "2.6.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/clasp-developers/clasp/releases/download/" + version "/clasp-" version ".tar.gz")) + (sha256 (base32 "10jjhcid6qp64gx29iyy5rqqijwy8hrvx66f0xabdj8w3007ky39")))) + (build-system gnu-build-system) + (inputs (list boost fmt gmp libelf libunwind clang-15 llvm-15 + `(,gcc "lib"))) + (native-inputs (list sbcl ninja pkg-config binutils-gold)) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'unpack 'patch-koga + (lambda* _ + (call-with-port (open-file "src/koga/units.lisp" "a") + (lambda (p) + (display "(defmethod configure-unit (c (u (eql :git))))\n" p))))) + (add-before 'configure 'set-configure-environment + (lambda* _ + (setenv "SOURCE_DATE_EPOCH" "1") + (setenv "ASDF_OUTPUT_TRANSLATIONS" + (string-append (getenv "PWD") + ":" + (getenv "PWD") + "/__fasls")))) + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (clang (assoc-ref inputs "clang")) + (ld-flags + (string-join + (apply append + (map (lambda (f) + (list "-L" f "-rpath" f)) + (string-split (getenv "LIBRARY_PATH") #\:))) + ","))) + (invoke "sbcl" + "--script" + "./koga" + "--skip-sync" + "--build-mode=bytecode-faso" + (string-append "--cc=" clang "/bin/clang") + (string-append "--cxx=" clang "/bin/clang++") + (string-append "--ldflags=-Wl," ld-flags) + "--reproducible-build" + "--package-path=/" + (string-append "--bin-path=" out "/bin") + (string-append "--lib-path=" out "/lib") + (string-append "--share-path=" out "/share"))))) + (replace 'build + (lambda* _ + (invoke "ninja" "-C" "build"))) + (replace 'install + (lambda* _ + (invoke "ninja" "-C" "build" "install")))))) + (home-page "https://clasp-developers.github.io/") + (synopsis "Common Lisp implementation based on LLVM and C++.") + (description "Clasp is a new Common Lisp implementation that seamlessly + interoperates with C++ libraries and programs using LLVM for compilation to + native code. This allows Clasp to take advantage of a vast array of + preexisting libraries and programs, such as out of the scientific computing + ecosystem. Embedding them in a Common Lisp environment allows you to make use + of rapid prototyping, incremental development, and other capabilities that + make it a powerful language.") + (license license:lgpl2.1))) + (define-public cl-asdf (package (name "cl-asdf") base-commit: ca5ff8aa8b50ac317003d76cc4ea2a621d5a3819 -- 2.46.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 15 08:24:59 2024 Received: (at 72621) by debbugs.gnu.org; 15 Aug 2024 12:24:59 +0000 Received: from localhost ([127.0.0.1]:48472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seZXG-0003cN-Dj for submit@debbugs.gnu.org; Thu, 15 Aug 2024 08:24:58 -0400 Received: from layka.disroot.org ([178.21.23.139]:52938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seYQF-0001ki-4v for 72621@debbugs.gnu.org; Thu, 15 Aug 2024 07:13:40 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8691D4127B for <72621@debbugs.gnu.org>; Thu, 15 Aug 2024 13:12:59 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qUEHSki-w_gR for <72621@debbugs.gnu.org>; Thu, 15 Aug 2024 13:12:58 +0200 (CEST) Message-ID: <434b0060-b39e-4704-861f-a8628ee1993c@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1723720378; bh=KQRYCxfoKfq/ciK3ZuHJMYqE6SkjR5wElUn4AiCxgtc=; h=Date:To:From:Subject; b=E3IDGBTANHTG8RxpvqpS7UvwxKhBYOW5hhnkd3zBjaG15kZtqg/Lqy9dOFveAtS11 JFzT6bKk288VwmYnaG+KNfEomJ6CnC2ROYMfJKlkqDiPWH9PFOOWW905yA+DR2amDA fC9Gb3+KCGoJ0F2pHGxRmu5T5UgOFD4Ul9jJXY5Zw2BoUlWYTiPEaYimEAddejur9z M0VZVzE6rG/G0FW0EpkvsrTz6xEZgUPW1kzWGquc5hZxT1n4BBf76uoiHr5+KPC9kt S1qlegnnhOmAvRlPvqBNWwDTHGzjo/0GXqyKfhNx6f+3WtNW615QP5n2hLOHNmNhYJ L2wQ/F2nAc9Rg== Date: Thu, 15 Aug 2024 14:12:58 +0300 MIME-Version: 1.0 Content-Language: en-US To: 72621@debbugs.gnu.org From: Aleksej Subject: [PATCH] gnu: Add clasp. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72621 X-Mailman-Approved-At: Thu, 15 Aug 2024 08:24:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi! I've applied your patch, and it seems to have some problems. 1) We already have the package with name "clasp", consider renaming it to something like "clasp-cl". 2) The license of clasp should be "lgpl2.1+", not "lgpl2.1". 3) After renaming run "guix lint" on the package, it has quite a lot of warnings. 4) I see you use gnu-build-system, and modify it a lot to use ninja. We have meson-build-system in GNU Guix, shouldn't it be used instead? Also I've looked at clasp git repo, they have package definition for GNU Guix, maybe you should check it out! -- Best regards, Lesik Edelweiss From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 15 08:29:47 2024 Received: (at 72621-done) by debbugs.gnu.org; 15 Aug 2024 12:29:48 +0000 Received: from localhost ([127.0.0.1]:48497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seZbv-0003mc-N0 for submit@debbugs.gnu.org; Thu, 15 Aug 2024 08:29:47 -0400 Received: from mout01.posteo.de ([185.67.36.65]:44707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seZbt-0003mP-IP for 72621-done@debbugs.gnu.org; Thu, 15 Aug 2024 08:29:46 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CBCD2240027 for <72621-done@debbugs.gnu.org>; Thu, 15 Aug 2024 14:29:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723724943; bh=UrbonPE+riRk/VIxpBmqJIcOr1DJPncqPxXUxfcACX8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=LvQ4oG+PK6JcL0we+OMefsfRqJ9I77V/px9JFFD2Vc3t6PSfoVciKCPqRI3XMpzdz pj2Ve3Cil0Qxl9HTO4K9LNCWwBuuwwrIiZyne4QTcnU0XZrM/hqdUwidiBQ/D9XH3Q QdKx3EZuWkXdvTdfx+6zCR9BmHwIpHmtW86Syj/SBLkrDf3wMcyLrLQyAtvdrhY6bS UxFTDsJwkGx/bUJmKRV42jFTjfvUwphK6gnEUy5XTkwF1AuZM2uZ1xEGhbTUN6u2Vp tVEU6zoXj0ezS+ccVgzoKOM+i0cU9Iy1Fq5T3/tUiNOrW5cZC2aKFYgMcccbkeKDL8 xrBC7/APQC71w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Wl4Db2Xg2z6tyH; Thu, 15 Aug 2024 14:29:03 +0200 (CEST) From: Guillaume Le Vaillant To: ashish.is@lostca.se Subject: Re: [bug#72621] [PATCH] gnu: Add clasp. In-Reply-To: (ashish is's message of "Wed, 14 Aug 2024 12:46:18 +0000") References: Date: Thu, 15 Aug 2024 12:29:02 +0000 Message-ID: <87bk1u7ywh.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72621-done Cc: 72621-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Patch applied as 1e2aca13eedc71b869e43525549080ba153e2887 with some minor modifications. And I renamed the package to "clasp-cl", as there is already a different "clasp" package in "potassco.scm". Thanks. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZr30jg8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j8SQAEAnIKsD8RGGgdhkNESDvsy9cNpmDrxrRErqEho xL27fiABAIIUCy5nf7FcXf04m9jqiwV0cSqZDno+VKPbXnrEMBNH =5/Ed -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 17 01:50:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 13 Sep 2024 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator