From: Charles via Guix-patches via <guix-patches@gnu.org>
To: "59052@debbugs.gnu.org" <59052@debbugs.gnu.org>
Subject: [bug#59052] Add sbcl-triads:bin patch
Date: Wed, 14 Dec 2022 05:06:48 +0000 [thread overview]
Message-ID: <Gr00qpvxXaA26zR5ZQ3YKkF9wvOPvrEYi547mxtJPg74AF0EKowpOvLr02aH4y5ol9H-dc0v6NYdoVeMPi6Go1kSGdGDNRnzFTi1t4CTnjI=@proton.me> (raw)
In-Reply-To: <20221105144924.22898-1-jgart@dismail.de>
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
It seems like a :bin suffix is the usuall way. This also opens up the possibility of ecl-triads:bin, and even ccl-triads:bin, clasp-triads:bin, abcl-triads:bin.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-sbcl-triads-Add-bin-output.patch --]
[-- Type: text/x-patch; name=0001-gnu-sbcl-triads-Add-bin-output.patch, Size: 2440 bytes --]
From 3ac729c376dd25d4f7295d237d0f25e3abd63a5f Mon Sep 17 00:00:00 2001
From: Charles <charles.b.jackson@protonmail.com>
Date: Tue, 13 Dec 2022 22:56:23 -0600
Subject: [PATCH] gnu: sbcl-triads: Add bin output.
* gnu/packages/lisp-xyz.scm (sbcl-triads): Add phase to build and install
binary executable (build-binary).
* gnu/packages/lisp-xyz.scm (ecl-triads): Remove the build-binary phase
because this program has not been tested on ECL upstream.
---
gnu/packages/lisp-xyz.scm | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 364be8c7a5..fd1b9b82f4 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -26264,8 +26264,25 @@ (define-public sbcl-triads
(sha256
(base32 "146mwshynhdw82m2nxrcjvf1nk0z3fn6ywcd2vqxkly5qricc53w"))))
(build-system asdf-build-system/sbcl)
+ (outputs '("out" "bin"))
(arguments
- '(#:asd-systems '("charje.triads")))
+ '(#:asd-systems '("charje.triads")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'create-asdf-configuration 'build-binary
+ (lambda* (#:key outputs #:allow-other-keys)
+ (setenv "HOME" (getcwd))
+ (system*
+ "sbcl" "--eval" "(require :asdf)" "--eval"
+ (format
+ #f "~S"
+ `(progn
+ (require "charje.triads"
+ ,(string-append (getcwd) "/charje.triads.asd"))
+ (asdf:make "charje.triads"))))
+ (install-file
+ (string-append (getcwd) "/triads")
+ (string-append (assoc-ref outputs "bin") "/bin")))))))
(inputs
(list sbcl-cl-str
sbcl-serapeum
@@ -26282,7 +26299,15 @@ (define-public cl-triads
(sbcl-package->cl-source-package sbcl-triads))
(define-public ecl-triads
- (sbcl-package->ecl-package sbcl-triads))
+ (let ((ecl-package (sbcl-package->ecl-package sbcl-triads)))
+ (package
+ (inherit ecl-package)
+ (outputs '("out"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments ecl-package)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (delete 'build-binary))))))))
(define-public sbcl-closure-template
;; There are no releases since 2015.
--
2.38.1
next prev parent reply other threads:[~2022-12-14 5:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-05 14:49 [bug#59052] [PATCH] gnu: sbcl-triads: Install binary executable jgart via Guix-patches via
2022-11-05 19:02 ` Guillaume Le Vaillant
2022-11-05 19:15 ` Charles via Guix-patches via
2022-11-05 19:17 ` ( via Guix-patches via
2022-11-05 19:21 ` Charles via Guix-patches via
2022-11-06 17:24 ` jgart via Guix-patches via
2022-12-14 5:06 ` Charles via Guix-patches via [this message]
2022-12-19 13:25 ` bug#59052: Add sbcl-triads:bin patch Guillaume Le Vaillant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='Gr00qpvxXaA26zR5ZQ3YKkF9wvOPvrEYi547mxtJPg74AF0EKowpOvLr02aH4y5ol9H-dc0v6NYdoVeMPi6Go1kSGdGDNRnzFTi1t4CTnjI=@proton.me' \
--to=guix-patches@gnu.org \
--cc=59052@debbugs.gnu.org \
--cc=Charles.b.jackson@proton.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).