From unknown Fri Jun 20 07:23:07 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#56993 <56993@debbugs.gnu.org> To: bug#56993 <56993@debbugs.gnu.org> Subject: Status: [PATCH v1 5/5] gnu: bqn: Add cbqn. Reply-To: bug#56993 <56993@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:23:07 +0000 retitle 56993 [PATCH v1 5/5] gnu: bqn: Add cbqn. reassign 56993 guix-patches submitter 56993 Christopher Rodriguez severity 56993 normal tag 56993 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 04 22:20:59 2022 Received: (at submit) by debbugs.gnu.org; 5 Aug 2022 02:20:59 +0000 Received: from localhost ([127.0.0.1]:55520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxP-0006Ld-0i for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:57178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJmxM-0006LG-2J for submit@debbugs.gnu.org; Thu, 04 Aug 2022 22:20:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJmxL-00014w-TU for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:36535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJmxJ-0007kn-Vu for guix-patches@gnu.org; Thu, 04 Aug 2022 22:20:55 -0400 Received: by mail-qk1-x72e.google.com with SMTP id w6so1010524qkf.3 for ; Thu, 04 Aug 2022 19:20:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=WffWN0cGEBFA/pTnXz7UclLUNoa/rItGqPkfzyY+514=; b=BbFIUVCcEauwO8aF/ALTQQihM/oEiVhC+JoQyrh8SFIux/u6iuLDsrTY7kpL+b3S4l TnY4ZdPRs5dC/oAJIUcWLq4CAqCUgR3ymPBsT1Fm1T+uHyxgnwXjSjRy0irUE/N2TIks IGXzIj00j7OH8RkKs6X+SWIRXwhfCODgDPxuErC6gb5NXaVCdebr7zkKsNIyYTRVa0xM 5Je7hbcTj9Ayrk6mdotelkev60Byy16MdAmRpdYKoUqI70G9aDJX/yOQBRpNct7mT/ft rpiX9yVrucJdtY0/m0NXMmQwXV6bYXyuTPcqm8Fz9LW7lFl4k5+18YWXVPeG+lPGDTYS IFYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=WffWN0cGEBFA/pTnXz7UclLUNoa/rItGqPkfzyY+514=; b=kA8kv0I3r87k/a6EJ4Te1jMyNAYPwXK2lD9h//7i71YSRFWSze8/QA1cFYd5LwGgOH lr5zr+7OQwSACnKADhaqksatTMfHdZmvcJ0HIc58rGsHSjVAW12XWV3WSAnTxXTe33Dr 2tQimM5VKybLWou5fbxy7UiJ3YZmJdIsA+Z/sl7s0y8pzhz336lbsYy2aBp6f88GOG+n gdoJ04Ne/gk5woF8wUTnaXFwZMTTEUMO+ksxAVaL+x1IGpO30tUZGIjMlqDaMKX95vRc LNun1FC4EUo2IMkySgdLXg01FdGXFlYdvXI5v9MA7RH0kuWsk5r2ribYV7iEFcxDxphP lBDQ== X-Gm-Message-State: ACgBeo1fSZMHCNdMrM5hzsJC03sRiZGEq5BNibe63vBD9pLXmV1eI9uN 43pk0N8pzvau/EBO3lelnboADHPvA2LNrQ== X-Google-Smtp-Source: AA6agR5kYjJpov5DNyGf8pb4HF0OSRI6Czy2mx8djix5Pj/R16pkjiO8drsnFsSP1G1kiGNjEkKQ1Q== X-Received: by 2002:a05:620a:4627:b0:6b8:fd66:77e6 with SMTP id br39-20020a05620a462700b006b8fd6677e6mr3499238qkb.764.1659666052825; Thu, 04 Aug 2022 19:20:52 -0700 (PDT) Received: from gmail.com ([2601:547:a00:7720::7bb0]) by smtp.gmail.com with ESMTPSA id v18-20020a05620a0f1200b006b60f5f53ccsm2061606qkl.25.2022.08.04.19.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:20:52 -0700 (PDT) From: Christopher Rodriguez To: guix-patches@gnu.org Subject: [PATCH v1 5/5] gnu: bqn: Add cbqn. Date: Thu, 4 Aug 2022 22:20:23 -0400 Message-Id: <20220805022023.5044-5-yewscion@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220805022023.5044-1-yewscion@gmail.com> References: <20220805022023.5044-1-yewscion@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72e; envelope-from=yewscion@gmail.com; helo=mail-qk1-x72e.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.3 (-) X-Debbugs-Envelope-To: submit Cc: Christopher Rodriguez 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.3 (--) --- gnu/packages/bqn.scm | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm index 3616067d87..cebf3acd13 100644 --- a/gnu/packages/bqn.scm +++ b/gnu/packages/bqn.scm @@ -206,3 +206,55 @@ (define singeli-bootstrap there are no plans to target GPUs.") (home-page "https://github.com/mlochbaum/Singeli") (license license:isc)))) +(define-public cbqn + (package + (inherit cbqn-bootstrap) + (name "cbqn") + (outputs '("out" "lib")) + (arguments + (list #:make-flags '(list "shared-o3" "o3n-singeli") + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'link-singeli + (lambda* (#:key inputs #:allow-other-keys) + (symlink (string-append #$(this-package-input + "singeli-bootstrap") + "/share/singeli") + "Singeli"))) + (add-before 'build 'generate-bytecode + (lambda* (#:key inputs #:allow-other-keys) + (system (string-append #$(this-package-native-input + "dbqn") + "/bin/dbqn ./genRuntime " + #$(this-package-input + "bqn-bytecode-sources") + "/share/")))) + (replace 'check + (lambda* (#:key inputs tests? #:allow-other-keys) + (when tests? + (map (lambda (x) + (system (string-append "./test/" x ".sh " + #$(this-package-input + "bqn-bytecode-sources") + "/share/"))) + '("mainCfgs" "x86Cfgs" "moreCfgs")) + (map (lambda (x) + (system (string-append "./BQN ./test/" x + ".bqn"))) + '("cmp" "equal" "copy" "bitcpy" "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"))) + (mkdir-p bin) + (mkdir-p lib) + (chmod "BQN" 493) + (copy-recursively "BQN" + (string-append bin "/bqn")) + (install-file "libcbqn.so" lib))))))) + (inputs (list bqn-bytecode-sources libffi singeli-bootstrap)))) -- 2.37.1 From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 05 03:16:07 2022 Received: (at control) by debbugs.gnu.org; 5 Aug 2022 07:16:07 +0000 Received: from localhost ([127.0.0.1]:55983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrZ0-0001tz-7o for submit@debbugs.gnu.org; Fri, 05 Aug 2022 03:16:06 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:1071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJrYt-0001t8-LN; Fri, 05 Aug 2022 03:16:03 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4LzcMF4HWkz1LXt0; Fri, 5 Aug 2022 09:15:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4LzcMF4HWkz1LXt0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1659683754; bh=rnG4PBMsdlXDXd44cQmQDWSyFfJ5M8qELxKCMCO5DdM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=eFIj+cBNt7iqEuAuEs462PfNSPGo32JfFD+aAzPDw89OyjVEJzQA200QLMmyEuyzg Mdl3T3zQ8S78gbCjXdi8rDLWQIdAYTWf2DmjklBVmGUVL9D4SJjlqoFtKf2xoQxrLS vOYvs/LZnFH9+4oAigREJLhSSmiwm6zMKT4B2WME= Message-ID: <7742c07ce28494af40c74262277417e60fe6f500.camel@ist.tugraz.at> Subject: Re: [PATCH v2] gnu: bqn: Add bqn.scm and dbqn package. From: Liliana Marie Prikler To: Christopher Rodriguez , 56989@debbugs.gnu.org Date: Fri, 05 Aug 2022 09:15:52 +0200 In-Reply-To: <20220805054616.30620-1-yewscion@gmail.com> References: <20220805054616.30620-1-yewscion@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control Cc: control@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 (---) merge 56989 56990 56991 56992 56993 thanks Regarding the patch title, just one level of grouping is enough. That is, use "gnu: Add dbqn." Also, you're missing a ChangeLog, i.e. * gnu/packages/bqn.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Register it here. Note that the second change is lacking from your patch. Am Freitag, dem 05.08.2022 um 01:46 -0400 schrieb Christopher Rodriguez: > Thanks to some help from upstream and on IRC (thanks, dzaima and > lilyp!) I > was able to remove the non-determinism issue. Here's an updated > patch. > > --- >  gnu/packages/bqn.scm | 102 > +++++++++++++++++++++++++++++++++++++++++++ >  1 file changed, 102 insertions(+) >  create mode 100644 gnu/packages/bqn.scm > > diff --git a/gnu/packages/bqn.scm b/gnu/packages/bqn.scm > new file mode 100644 > index 0000000000..261f29ece5 > --- /dev/null > +++ b/gnu/packages/bqn.scm > @@ -0,0 +1,102 @@ > +(define-module (gnu packages bqn) > +  #:use-module ((guix licenses) #:prefix license:) > +  #:use-module (guix gexp) > +  #:use-module (guix packages) > +  #:use-module (guix download) > +  #:use-module (guix git-download) > +  #:use-module (guix build-system copy) > +  #:use-module (guix build-system gnu) > +  #:use-module (guix utils) > +  #:use-module (guix deprecation) > +  #:use-module (gnu packages) > +  #:use-module (gnu packages libffi) > +  #:use-module (gnu packages base) > +  #:use-module (gnu packages pkg-config) > +  #:use-module (gnu packages llvm) > +  #:use-module (gnu packages java) > +  #:use-module (gnu packages compression)) > +(define-public dbqn > +  (let* ((tag "0.2.1") > +         (revision "1") > +         (commit "0bbe096fc07d278b679a8479318f1722d096a03e") > +         (hash > "1kxzxz2hrd1871281s4rsi569qk314aqfmng9pkqn8gv9nqhmph0") > +         (version (git-version tag revision commit))) Don't let-bind tag, version and hash, use them inline. > +    (package > +      (name "dbqn") > +      (version version) > +      (source (origin > +                (method git-fetch) > +                (uri (git-reference > +                      (url "https://github.com/dzaima/BQN") > +                      (commit commit))) > +                (file-name (git-file-name name version)) Note that version will be bound here even if you use the version field to do so. > +                (sha256 > +                 (base32 > +                  hash)))) > +      (outputs '("out")) > +      (build-system gnu-build-system) > +      (arguments > +       (list #:tests? #f ;While there is a "test" directory, there > is no > +             ;; mechanism to run the tests other than to feed the > files into the > +             ;; binary and check for an error. This is outside the > scope of a > +             ;; packaging workflow, and would need to be fixed > upstream > +             ;; instead. Issue Reported: > https://github.com/dzaima/BQN/issues/12 > +             ;; Maintainer says many of the tests fail, and so they > will remain off > +             ;; until this is sorted out. You could do (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (for-each (lambda (known-good-test) (invoke my-glorious-bin known-good-test)) known-good-tests)))) FSVO my-glorious-bin and known-good-tests. > +             #:imported-modules `(,@%gnu-build-system-modules (guix > build > +                                                                    > syscalls) > +                                  (guix build ant-build-system)) > +             #:modules `((guix build gnu-build-system) > +                         ((guix build ant-build-system) > +                          #:prefix ant:) > +                         (guix build utils)) > +             #:phases #~(modify-phases %standard-phases > +                          (delete 'configure) > +                          (replace 'build > +                            (lambda* _ > +                              (invoke "./build"))) > +                          (add-after 'build 'strip-jar-timestamps > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (write %standard-phases))) > +                          (replace 'install > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (let* ((out (assoc-ref outputs "out")) > +                                     (dest-bin (string-append out > "/bin")) > +                                     (dest-jar (string-append out > +                                                              > "/share/java"))) > +                                (mkdir-p dest-bin) > +                                (mkdir-p dest-jar) > +                                (copy-recursively "BQN" > +                                                  (string-append > dest-bin > +                                                                 > "/dbqn")) > +                                (chmod (string-append dest-bin > "/dbqn") 493) > +                                (install-file "BQN.jar" dest-jar)))) > +                          (add-after 'install 'subjars > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (let* ((out (assoc-ref outputs "out")) > +                                     (dest-bin (string-append out > "/bin")) > +                                     (dest-jar (string-append out > +                                                              > "/share/java"))) > +                                (substitute* (string-append dest-bin > "/dbqn") > +                                  (("BQN.jar") > +                                   (string-append dest-jar > "/BQN.jar")))))) Could this be done in/before install? > +                          (add-after 'subjars 'reorder-jar-content > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (cdr (assoc 'reorder-jar- > content > +                                                 ant:%standard- > phases)) > +                                     #:outputs (list outputs)))) You can use #:rest args to bind args for apply. Also use assoc-ref rather than cdr + assoc. > +                          (add-after 'reorder-jar-content 'jar- > indices > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (cdr (assoc 'generate-jar- > indices > +                                                 ant:%standard- > phases)) > +                                     #:outputs (list outputs)))) > +                          (add-after 'jar-indices 'fix-jar- > timestamps > +                            (lambda* (#:key outputs #:allow-other- > keys) > +                              (apply (cdr (assoc 'reorder-jar- > content > +                                                 ant:%standard- > phases)) > +                                     #:outputs (list outputs))))))) > +      (native-inputs (list `(,openjdk17 "jdk") coreutils zip)) Is OpenJDK 17 required? > +      (synopsis "BQN implementation based on dzaima/APL") > +      (description "BQN implementation based on dzaima/APL.") > +      (home-page "https://github.com/dzaima/BQN") > +      (license license:expat)))) Cheers From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 17:10:56 2022 Received: (at 56993-done) by debbugs.gnu.org; 31 Aug 2022 21:10:57 +0000 Received: from localhost ([127.0.0.1]:40617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTUzA-0002OC-Fo for submit@debbugs.gnu.org; Wed, 31 Aug 2022 17:10:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTUz6-0002Ns-CO; Wed, 31 Aug 2022 17:10:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTUz1-0003ci-3i; Wed, 31 Aug 2022 17:10:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=lQOzTPMjn7oifxxErl3lXDGu8EkIKW7YHAfPU3n0mzE=; b=IiZ6TIVv+dvqul3HYTRA yHCbP1c8I8vjHyqCq7UcOFZW/vdWVV4XE+5lJcRA/bAvJifrOXaJADXp3PAOw0IFc6p9FMNFsYsBT InsWkMTivNmzCq9w6Fdfq9GSoIMlDkOdl3QS9h+qgyQXJ3t3mobh4to4sz4DKOolqDGeXjVzV1Dwh d8d66ViLs6kBBBJcQPnIXsvJbIgJaGzeWXfrIWICMCtXX3wg2g+JgbHZC4lW/0/DaE3yD881WGEbN FF8XsTacmuSLQQ95XndZrfi/95CHPgb9CQjDHE2pr2pUoSBUUUzsMs/smb5w59hpNSTcjPAy7Dz3i Fgddb72sj0aDOA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:56679 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTUz0-0005KK-Ix; Wed, 31 Aug 2022 17:10:46 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Rodriguez Subject: Re: bug#56993: [PATCH v1 5/5] gnu: bqn: Add cbqn. References: <20220805022023.5044-1-yewscion@gmail.com> <20220810172800.13189-1-yewscion@gmail.com> Date: Wed, 31 Aug 2022 23:10:44 +0200 In-Reply-To: <20220810172800.13189-1-yewscion@gmail.com> (Christopher Rodriguez's message of "Wed, 10 Aug 2022 13:27:56 -0400") Message-ID: <87a67k9l0r.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56993-done Cc: 56993-done@debbugs.gnu.org, 56989-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 (---) Hi Christopher, Christopher Rodriguez skribis: > * gnu/packages/bqn.scm: Create module. > * gnu/local.mk (GNU_SYSTEM_MODULES): Register module. I applied the whole series with minor changes: adding newlines in between definitions, tweaking descriptions, etc. Thanks! Ludo=E2=80=99. From unknown Fri Jun 20 07:23:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 29 Sep 2022 11:24:11 +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