From unknown Sun Jun 22 11:36:46 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#52310 <52310@debbugs.gnu.org> To: bug#52310 <52310@debbugs.gnu.org> Subject: Status: [PATCH] Updated vlang to version 0.2 Reply-To: bug#52310 <52310@debbugs.gnu.org> Date: Sun, 22 Jun 2025 18:36:46 +0000 retitle 52310 [PATCH] Updated vlang to version 0.2 reassign 52310 guix-patches submitter 52310 "(unmatched-parenthesis" severity 52310 normal tag 52310 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 05 13:08:15 2021 Received: (at submit) by debbugs.gnu.org; 5 Dec 2021 18:08:15 +0000 Received: from localhost ([127.0.0.1]:59284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtvvq-0000Uo-OP for submit@debbugs.gnu.org; Sun, 05 Dec 2021 13:08:15 -0500 Received: from lists.gnu.org ([209.51.188.17]:45902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mttED-0002i2-Rl for submit@debbugs.gnu.org; Sun, 05 Dec 2021 10:15:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mttED-0001iO-ME for guix-patches@gnu.org; Sun, 05 Dec 2021 10:15:01 -0500 Received: from knopi.disroot.org ([178.21.23.139]:37486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mttEB-0001yI-5R for guix-patches@gnu.org; Sun, 05 Dec 2021 10:15:01 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 1C0558C20E; Sun, 5 Dec 2021 16:14:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YBykckH66Wvf; Sun, 5 Dec 2021 16:14:54 +0100 (CET) From: "(unmatched-parenthesis" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1638717294; bh=q51nVeowuGlo79vx4y61zzfW3cSDGJHzmBX+I2DpDJI=; h=From:To:Cc:Subject:Date; b=DQoGWmrPcqPlTd2648rW62YvXFH4Pe+naF2fBPdAsWrdGg8sCaLb8IIyAInl+9IUs 8egtKWVp8JRTTh21EMvYoxFPfhXWM6P8RZrCDrQySGb+JV6h/CD/DGXjHSsIwYx7tr kx51Y3OV2mwdd3OVyfMz5HBHnr/Cxbw2Yko243RBf1gFXHGQ39wXZ9mtcqmnZtqb6J FnTRm2x6+fhAChaCwICrfmlUSkIfMvIN/j57u3H4MH84E7ZBy28YljEjuKckv6xi6F xlf8oEGcIsDr0OYvbkwU4Dxujn1ni+MJ4UlXIm58WIwwctJFq6sifVhj0UKfmFy0PV tnRt1Hw6eu5kw== To: guix-patches@gnu.org Subject: [PATCH] Updated vlang to version 0.2 Date: Sun, 5 Dec 2021 15:14:34 +0000 Message-Id: <20211205151434.5446-1-paren@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: "\(unmatched-parenthesis" 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 (--) This patch updates the V compiler/transpiler to version 0.2.4. It also fixes the `v help` command, which was broken with Guix's V 0.1 package because `v help` tries to look in `$PATH_TO_V_EXECUTABLE/cmd/v/help` for help .txt files, which were not present because Guix copies the `v` executable into `$V_STORE_LOCATION/bin` but does not copy the help directory. --- gnu/packages/vlang.scm | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/gnu/packages/vlang.scm b/gnu/packages/vlang.scm index def858da17..32909d34ca 100644 --- a/gnu/packages/vlang.scm +++ b/gnu/packages/vlang.scm @@ -23,6 +23,7 @@ (define-module (gnu packages vlang) #:use-module (gnu packages node) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages xorg) #:use-module (guix build-system gnu) #:use-module (guix git-download) @@ -33,7 +34,7 @@ (define-module (gnu packages vlang) (define-public vlang (package (name "vlang") - (version "0.1.29") + (version "0.2.4") (source (origin (method git-fetch) @@ -42,7 +43,7 @@ (define-public vlang (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1rqi7cah5nq8aggrib9xvdpfjxq20li91svv0w9yny6nn1ag7snx")))) + (base32 "17wmjxssmg6kd4j8i6pgib452zzwvkyi3n1znd1jj3xkf2l92fw8")))) (build-system gnu-build-system) (arguments `(#:make-flags @@ -53,26 +54,30 @@ (define-public vlang "GITFASTCLONE=mkdir -p" "TCCREPO=" "VCREPO=" + (string-append "VFLAGS=-cc " ,(cc-for-target)) "VERBOSE=1") #:phases (modify-phases %standard-phases (delete 'configure) + (add-before 'build 'change-home + (lambda _ + (setenv "HOME" "/tmp") + #t)) (add-before 'build 'patch-makefile (lambda _ (substitute* "Makefile" - (("rm -rf") "true") - (("v self") (string-append "v -cc " ,(cc-for-target) " cmd/v"))) + (("--branch thirdparty-unknown-unknown") "") + (("rm -rf") "true")) #t)) (add-before 'check 'delete-failing-tests ;; XXX As always, these should eventually be fixed and run. (lambda _ (for-each delete-file - '("vlib/v/gen/x64/tests/x64_test.v" + '("vlib/os/notify/notify_test.v" + "vlib/v/doc/doc_private_fn_test.v" + "vlib/v/live/live_test.v" "vlib/v/tests/repl/repl_test.v" - "vlib/v/tests/valgrind/valgrind_test.v" - "vlib/v/tests/valgrind/strings_and_arrays.vv" - "vlib/v/tests/live_test.v" - "vlib/net/websocket/ws_test.v")) + "vlib/v/tests/valgrind/valgrind_test.v")) #t)) (replace 'check (lambda* (#:key tests? #:allow-other-keys) @@ -82,21 +87,23 @@ (define-public vlang (mkdir-p bin) (symlink gcc (string-append bin "/cc")) (setenv "PATH" (string-append bin ":" (getenv "PATH"))) - (invoke "./v" "test-fixed"))) + (invoke "./v" "test-self"))) #t)) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((bin (string-append (assoc-ref outputs "out") "/bin")) + (docs (string-append bin "/cmd/v/help")) (tools (string-append bin "/cmd/tools")) (thirdparty (string-append bin "/thirdparty")) (vlib (string-append bin "/vlib")) (vmod (string-append bin "/v.mod"))) (mkdir-p bin) (copy-file "./v" (string-append bin "/v")) - ;; v requires as of 0.1.27 that these other components are in the + ;; v requires as of 0.2.4 that these other components are in the ;; same directory. In a future release we may be able to move ;; these into other output folders. (copy-recursively "cmd/tools" tools) + (copy-recursively "cmd/v/help" docs) (copy-recursively "thirdparty" thirdparty) (copy-recursively "vlib" vlib) (copy-file "v.mod" vmod)) @@ -107,7 +114,7 @@ (define-public vlang `(("vc" ;; Versions are not consistently tagged, but the matching commit will ;; probably have ‘v0.x.y’ in the commit message. - ,(let ((vc-version "b01d0fcda4b55861baa4be82e307cca4834b1641")) + ,(let ((vc-version "5e876c1491db50b136499d3397b57b7c062040e5")) ;; v bootstraps from generated c source code from a dedicated ;; repository. It's readable, as generated source goes, and not at all ;; obfuscated, and it's about 15kb. The original source written in @@ -121,8 +128,8 @@ (define-public vlang (commit vc-version))) (file-name (git-file-name "vc" vc-version)) (sha256 - (base32 "052gp5q2k31r3lci3rx4k0vy0vjdjva64xvrbbihn8lgmw63lc9f"))))) - + (base32 "1gxdkgc7aqw5f0fhch1n6nhzgzvgb49p77idx1zj7wcp53lpx5ng"))))) + ("git" ,git-minimal) ;; For the tests. ("libx11" ,libx11) ("node" ,node) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 10 12:19:12 2021 Received: (at 52310) by debbugs.gnu.org; 10 Dec 2021 17:19:12 +0000 Received: from localhost ([127.0.0.1]:47837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvjY8-0006Fg-Df for submit@debbugs.gnu.org; Fri, 10 Dec 2021 12:19:12 -0500 Received: from knopi.disroot.org ([178.21.23.139]:44184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvjY6-0006FV-8w for 52310@debbugs.gnu.org; Fri, 10 Dec 2021 12:19:11 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EAE1D8FBC9; Fri, 10 Dec 2021 18:19:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id jVTW2q8QJKXN; Fri, 10 Dec 2021 18:19:07 +0100 (CET) From: "(unmatched-parenthesis" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1639156415; bh=wNzoATM7KxyeZ+BbiwLfhk1sHmvvTx3K8nArFBwCB0Y=; h=From:To:Cc:Subject:Date; b=hTSQ4SkPmFEeQGhzJhlJNnQoxi/Zoc3TZWrQSuqwflJIMP+frIZAaEazRGkewPZC4 9846CdJX9CB0kXbmcUXWIVwhrjc9NvM/3+iLCx+hduwkoy/TWPo6eKPW8z20AiuZ/K MnRO1mdbxvaSAwwEflcECDXzNxJ3mfAMRdSZ8g550TFBYcc5joqUVbHU2KDeCchbXA XhyqQtGgKLCJzO7wYAP/9mm3iDmCRWbB4vB94XvL78oq1S3r/bz8jJhD99qBdeT7MN Qf6bvh/W7soe9PSk9sRmMpECOw0wEgGx8k4gVG7YDxUklI4NVduzK7PUwk4rr5y9uM iW6vQOxSCG2Jg== To: 52310@debbugs.gnu.org Subject: [PATCH] Updated vlang to version 0.2 Date: Fri, 10 Dec 2021 17:13:25 +0000 Message-Id: <20211210171325.25863-1-paren@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52310 Cc: "\(unmatched-parenthesis" 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 (-) --- gnu/packages/vlang.scm | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/gnu/packages/vlang.scm b/gnu/packages/vlang.scm index def858da17..03bc18c240 100644 --- a/gnu/packages/vlang.scm +++ b/gnu/packages/vlang.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2020 Ryan Prior ;;; Copyright © 2020 Tobias Geerinckx-Rice ;;; Copyright © 2020 Efraim Flashner +;;; Copyright © 2021 (unmatched parenthesis ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ (define-module (gnu packages vlang) #:use-module (gnu packages node) #:use-module (gnu packages sqlite) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages xorg) #:use-module (guix build-system gnu) #:use-module (guix git-download) @@ -33,7 +35,7 @@ (define-module (gnu packages vlang) (define-public vlang (package (name "vlang") - (version "0.1.29") + (version "0.2.4") (source (origin (method git-fetch) @@ -42,7 +44,7 @@ (define-public vlang (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "1rqi7cah5nq8aggrib9xvdpfjxq20li91svv0w9yny6nn1ag7snx")))) + (base32 "17wmjxssmg6kd4j8i6pgib452zzwvkyi3n1znd1jj3xkf2l92fw8")))) (build-system gnu-build-system) (arguments `(#:make-flags @@ -53,26 +55,30 @@ (define-public vlang "GITFASTCLONE=mkdir -p" "TCCREPO=" "VCREPO=" + (string-append "VFLAGS=-cc " ,(cc-for-target)) "VERBOSE=1") #:phases (modify-phases %standard-phases (delete 'configure) + (add-before 'build 'change-home + (lambda _ + (setenv "HOME" "/tmp") + #t)) (add-before 'build 'patch-makefile (lambda _ (substitute* "Makefile" - (("rm -rf") "true") - (("v self") (string-append "v -cc " ,(cc-for-target) " cmd/v"))) + (("--branch thirdparty-unknown-unknown") "") + (("rm -rf") "true")) #t)) (add-before 'check 'delete-failing-tests ;; XXX As always, these should eventually be fixed and run. (lambda _ (for-each delete-file - '("vlib/v/gen/x64/tests/x64_test.v" + '("vlib/os/notify/notify_test.v" + "vlib/v/doc/doc_private_fn_test.v" + "vlib/v/live/live_test.v" "vlib/v/tests/repl/repl_test.v" - "vlib/v/tests/valgrind/valgrind_test.v" - "vlib/v/tests/valgrind/strings_and_arrays.vv" - "vlib/v/tests/live_test.v" - "vlib/net/websocket/ws_test.v")) + "vlib/v/tests/valgrind/valgrind_test.v")) #t)) (replace 'check (lambda* (#:key tests? #:allow-other-keys) @@ -82,21 +88,23 @@ (define-public vlang (mkdir-p bin) (symlink gcc (string-append bin "/cc")) (setenv "PATH" (string-append bin ":" (getenv "PATH"))) - (invoke "./v" "test-fixed"))) + (invoke "./v" "test-self"))) #t)) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((bin (string-append (assoc-ref outputs "out") "/bin")) + (docs (string-append bin "/cmd/v/help")) (tools (string-append bin "/cmd/tools")) (thirdparty (string-append bin "/thirdparty")) (vlib (string-append bin "/vlib")) (vmod (string-append bin "/v.mod"))) (mkdir-p bin) (copy-file "./v" (string-append bin "/v")) - ;; v requires as of 0.1.27 that these other components are in the + ;; v requires as of 0.2.4 that these other components are in the ;; same directory. In a future release we may be able to move ;; these into other output folders. (copy-recursively "cmd/tools" tools) + (copy-recursively "cmd/v/help" docs) (copy-recursively "thirdparty" thirdparty) (copy-recursively "vlib" vlib) (copy-file "v.mod" vmod)) @@ -107,7 +115,7 @@ (define-public vlang `(("vc" ;; Versions are not consistently tagged, but the matching commit will ;; probably have ‘v0.x.y’ in the commit message. - ,(let ((vc-version "b01d0fcda4b55861baa4be82e307cca4834b1641")) + ,(let ((vc-version "5e876c1491db50b136499d3397b57b7c062040e5")) ;; v bootstraps from generated c source code from a dedicated ;; repository. It's readable, as generated source goes, and not at all ;; obfuscated, and it's about 15kb. The original source written in @@ -121,8 +129,8 @@ (define-public vlang (commit vc-version))) (file-name (git-file-name "vc" vc-version)) (sha256 - (base32 "052gp5q2k31r3lci3rx4k0vy0vjdjva64xvrbbihn8lgmw63lc9f"))))) - + (base32 "1gxdkgc7aqw5f0fhch1n6nhzgzvgb49p77idx1zj7wcp53lpx5ng"))))) + ("git" ,git-minimal) ;; For the tests. ("libx11" ,libx11) ("node" ,node) -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 20 10:05:30 2021 Received: (at 52310-done) by debbugs.gnu.org; 20 Dec 2021 15:05:30 +0000 Received: from localhost ([127.0.0.1]:50999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzKEE-0000QE-Ju for submit@debbugs.gnu.org; Mon, 20 Dec 2021 10:05:30 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:41478) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzKE9-0000Px-LS for 52310-done@debbugs.gnu.org; Mon, 20 Dec 2021 10:05:28 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2C3A6309; Mon, 20 Dec 2021 16:05:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o-ElvrHZ1VF7; Mon, 20 Dec 2021 16:05:17 +0100 (CET) Received: from ribbon (unknown [193.50.110.211]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 4A8992A4; Mon, 20 Dec 2021 16:05:17 +0100 (CET) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "(unmatched-parenthesis" Subject: Re: bug#52310: [PATCH] Updated vlang to version 0.2 References: <20211205151434.5446-1-paren@disroot.org> <20211210171325.25863-1-paren@disroot.org> Date: Mon, 20 Dec 2021 16:05:16 +0100 In-Reply-To: <20211210171325.25863-1-paren@disroot.org> (paren@disroot.org's message of "Fri, 10 Dec 2021 17:13:25 +0000") Message-ID: <87zgoviafn.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / Authentication-Results: hera.aquilenet.fr; none X-Rspamd-Server: hera X-Rspamd-Queue-Id: 2C3A6309 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 52310-done Cc: 52310-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: -0.0 (/) Hi, "(unmatched-parenthesis" skribis: > --- > gnu/packages/vlang.scm | 36 ++++++++++++++++++++++-------------- > 1 file changed, 22 insertions(+), 14 deletions(-) I added a commit log and applied it. Thanks, Ludo=E2=80=99. From unknown Sun Jun 22 11:36:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 18 Jan 2022 12: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