From: aecepoglu <aecepoglu@fastmail.fm>
To: 69023@debbugs.gnu.org
Cc: aecepoglu <aecepoglu@fastmail.fm>
Subject: [bug#69023] [PATCH 5/5] gnu: bqn: Update cbqn.
Date: Sat, 10 Feb 2024 23:28:11 +0000 [thread overview]
Message-ID: <49846553277b9a80f952daf89c4059ddfa5a0d49.1707607099.git.aecepoglu@fastmail.fm> (raw)
In-Reply-To: <cover.1707607099.git.aecepoglu@fastmail.fm>
* gnu/packages/bqn.scm (cbqn): Update cbqn.
Update version.
Override 'generate-bytecode to rely on cbqn-bootstrap instead of dbqn.
Change-Id: I1660d218960e7395f4c10983d840e3fa4b451d14
---
gnu/packages/bqn.scm | 37 ++++++++++++++++++++-----------------
1 file changed, 20 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm
index 6d3ec43a0f..66c70a8516 100644
--- a/gnu/packages/bqn.scm
+++ b/gnu/packages/bqn.scm
@@ -209,9 +209,16 @@ (define-public cbqn
(list #:tests?)
(package-arguments cbqn-bootstrap))
((#:make-flags flags #~(list))
- #~(cons* "shared-o3" "o3" #$flags))
+ #~(append #$flags '("shared-o3" "o3")))
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
+ (replace 'generate-bytecode
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir-p (string-append "./build/bytecodeLocal/gen"))
+ (system (string-append #+cbqn-bootstrap
+ "/bin/bqn ./build/genRuntime "
+ #+bqn-sources " ./build/bytecodeLocal")))))
(replace 'check
(lambda* (#:key inputs tests? #:allow-other-keys)
(when tests?
@@ -219,25 +226,21 @@ (define-public cbqn
#+bqn-sources
"/test/this.bqn\""))
(map (lambda (x)
- (system (string-append "./BQN ./test/" x
- ".bqn")))
+ (system (string-append "./BQN ./test/" x ".bqn")))
'("cmp" "equal" "copy" "random"))
(system "make -C test/ffi"))))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((bin (string-append (assoc-ref outputs "out")
- "/bin"))
- (lib (string-append (assoc-ref outputs "lib")
- "/lib"))
- (include (string-append (assoc-ref outputs "lib")
- "/include")))
- (mkdir-p bin)
- (rename-file "BQN" "bqn")
- (install-file "bqn" bin)
- (install-file "libcbqn.so" lib)
- (install-file "include/bqnffi.h" include))))))))
- (native-inputs (list dbqn
+ (add-after 'install 'install-lib-stuff
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((lib (string-append (assoc-ref outputs "lib")
+ "/lib"))
+ (include (string-append (assoc-ref outputs "lib")
+ "/include")))
+ (install-file "libcbqn.so" lib)
+ (install-file "include/bqnffi.h" include))))))))
+ (native-inputs (list cbqn-bootstrap
+ singeli
bqn-sources
libffi))
+ (inputs (list libffi))
(properties
`((tunable? . #t)))))
--
2.43.0
next prev parent reply other threads:[~2024-02-10 23:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-10 23:23 [bug#69023] [PATCH 0/5] gnu: package: Update cbqn aecepoglu
2024-02-10 23:28 ` [bug#69023] [PATCH 1/5] gnu: bqn: Add singeli aecepoglu
2024-04-19 18:44 ` Liliana Marie Prikler
2024-02-10 23:28 ` [bug#69023] [PATCH 2/5] gnu: bqn: Update dbqn aecepoglu
2024-04-19 18:44 ` Liliana Marie Prikler
2024-02-10 23:28 ` [bug#69023] [PATCH 3/5] gnu: bqn: Update bqn-sources aecepoglu
2024-02-10 23:28 ` [bug#69023] [PATCH 4/5] gnu: bqn: Update cbqn-bootstrap aecepoglu
2024-02-10 23:28 ` aecepoglu [this message]
2024-03-31 4:22 ` [bug#69023] [PATCH 5/5] gnu: bqn: Update cbqn aecepoglu
2024-04-19 18:47 ` Liliana Marie Prikler
[not found] ` <handler.69023.B.17076072547491.ack@debbugs.gnu.org>
2024-04-14 8:26 ` [bug#69023] Acknowledgement ([PATCH 0/5] gnu: package: Update cbqn.) aecepoglu
2024-04-14 8:47 ` aecepoglu
2024-04-30 0:50 ` [bug#69023] [PATCH v2 0/5] gnu: bqn: Update cbqn aecepoglu
2024-04-30 0:50 ` [bug#69023] [PATCH v2 1/5] gnu: bqn: Add singeli aecepoglu
2024-04-30 0:50 ` [bug#69023] [PATCH v2 2/5] gnu: bqn: Update dbqn aecepoglu
2024-04-30 5:55 ` Liliana Marie Prikler
2024-04-30 0:50 ` [bug#69023] [PATCH v2 3/5] gnu: bqn: Update bqn-sources aecepoglu
2024-04-30 0:50 ` [bug#69023] [PATCH v2 4/5] gnu: bqn: Update cbqn-bootstrap aecepoglu
2024-04-30 0:50 ` [bug#69023] [PATCH v2 5/5] gnu: bqn: Update cbqn aecepoglu
2024-04-30 4:55 ` [bug#69023] [PATCH v2 0/5] " Liliana Marie Prikler
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=49846553277b9a80f952daf89c4059ddfa5a0d49.1707607099.git.aecepoglu@fastmail.fm \
--to=aecepoglu@fastmail.fm \
--cc=69023@debbugs.gnu.org \
/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).