From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 23:19:05 2020 Received: (at submit) by debbugs.gnu.org; 20 May 2020 03:19:05 +0000 Received: from localhost ([127.0.0.1]:51738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbFG3-0006oG-2f for submit@debbugs.gnu.org; Tue, 19 May 2020 23:19:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:49968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbFFn-0006nd-S3 for submit@debbugs.gnu.org; Tue, 19 May 2020 23:19:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbFFn-0000JZ-Ld for guix-patches@gnu.org; Tue, 19 May 2020 23:18:47 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:28380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbFFi-0003nl-7U for guix-patches@gnu.org; Tue, 19 May 2020 23:18:47 -0400 Date: Wed, 20 May 2020 03:18:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1589944717; bh=sJT27drCBjormDsaqBjB8Vjde67JNk77vrxhbcMaBnI=; h=Date:To:From:Reply-To:Subject:From; b=a0EUw3rKyMdB966MdabHsjinhFXaRUmipNzKyV7oEGtZasHpxTv8sL2PgeIE+tLry Ps/UjEbmh4Uz/kDrTrDOD+H8/RxiQyzom8xy3vgpocPvcoauelDPGcnTSXjf9IqGQj vaI+cZUFvxruXbrSReE1VPX8397+WvXzjSMQrMg0= To: guix-patches@gnu.org From: Ryan Prior Subject: [PATCH 0/1] Add v compiler Message-ID: <20200520031816.32692-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Received-SPF: pass client-ip=185.70.40.18; envelope-from=rprior@protonmail.com; helo=mail1.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/19 23:18:38 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: v is a systems programming language that's evolving rapidly right now. This patch contains a bootstrap package for the v compiler. Ryan Prior (1): gnu: Add v. gnu/local.mk | 1 + gnu/packages/vlang.scm | 116 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 gnu/packages/vlang.scm Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: protonmail.com] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (rprior[at]protonmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 T_SPF_HELO_TEMPERROR SPF: test of HELO record failed (temperror) 2.0 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit 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: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) v is a systems programming language that's evolving rapidly right now. This patch contains a bootstrap package for the v compiler. Ryan Prior (1): gnu: Add v. gnu/local.mk | 1 + gnu/packages/vlang.scm | 116 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 gnu/packages/vlang.scm --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Tue May 19 23:24:27 2020 Received: (at 41415) by debbugs.gnu.org; 20 May 2020 03:24:27 +0000 Received: from localhost ([127.0.0.1]:51743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbFL9-0006wa-M6 for submit@debbugs.gnu.org; Tue, 19 May 2020 23:24:27 -0400 Received: from mail-40131.protonmail.ch ([185.70.40.131]:11102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbFL5-0006wF-8F for 41415@debbugs.gnu.org; Tue, 19 May 2020 23:24:18 -0400 Date: Wed, 20 May 2020 03:23:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1589945048; bh=sHDjwDraY2RFO2rm0jPU997gvd7HOQg/wgEwP+jo0ks=; h=Date:To:From:Reply-To:Subject:From; b=r3C0JL2iihgQWvL2Llp1cbe/N9mJj9k7ivj8Hckc4ifl1Usdt3KNp3dPYcEFW3YK4 uGRPJiE0pwtCrwNXxdLZYbbi2p46Kg+Aly/7n1h7S6ThOWmqZSszSinQtsd+tgesul BeCA70TsIyAPxGUGdyMzoTZij2SPeH4J7YKVP1DE= To: 41415@debbugs.gnu.org From: Ryan Prior Subject: [PATCH 1/1] gnu: Add v. Message-ID: <20200520032346.498-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41415 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: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/vlang.scm: New file. * gnu/packages/vlang.scm (v): New variable. * gnu/local.mk: Add vlang.scm. --- gnu/local.mk | 1 + gnu/packages/vlang.scm | 116 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 gnu/packages/vlang.scm diff --git a/gnu/local.mk b/gnu/local.mk index 2e12c5a873..4c389fd772 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -533,6 +533,7 @@ GNU_SYSTEM_MODULES =3D=09=09=09=09\ %D%/packages/vim.scm=09=09=09=09\ %D%/packages/virtualization.scm=09=09\ %D%/packages/visidata.scm=09=09=09\ + %D%/packages/vlang.scm=09=09=09\ %D%/packages/vnc.scm=09=09=09=09\ %D%/packages/vpn.scm=09=09=09=09\ %D%/packages/vulkan.scm=09=09=09\ diff --git a/gnu/packages/vlang.scm b/gnu/packages/vlang.scm new file mode 100644 index 0000000000..d73dd566c5 --- /dev/null +++ b/gnu/packages/vlang.scm @@ -0,0 +1,116 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2020 Ryan Prior +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages vlang) + #:use-module (gnu packages c) + #:use-module (gnu packages gcc) + #:use-module (gnu packages glib) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages)) + +(define-public v + (package + (name "v") + (version "0.1.27") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vlang/v.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1d9qhacllvkqif42jaayixhjyhx7pzslh8p1yr5p19447q763fq1")))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; tests are broken in v 0.1.27 + #:make-flags + `("CC=3Dgcc" + "GITCLEANPULL=3Dtrue" + "GITFASTCLONE=3Dmkdir -p" + "TCCREPO=3D" + "TMPTCC=3Dtcc" + ,(string-append "TMPVC=3D" (assoc-ref %build-inputs "vc")) + "VCREPO=3D" + "VERBOSE=3D1" + "V_ALWAYS_CLEAN_TMP=3Dfalse") + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'patch-makefile + (lambda _ + (substitute* "Makefile" + (("rm -rf") "true") + (("v self") "v -cc gcc cmd/v")) + #t)) + ;; A few tests are broken in v 0.1.27. This function should be + ;; enabled to run tests in the next release. + ;; (replace 'check + ;; (lambda _ + ;; (let* ((tmpbin "tmp/bin") + ;; (gcc (which "gcc"))) + ;; (mkdir-p tmpbin) + ;; (symlink gcc (string-append tmpbin "/cc")) + ;; (setenv "PATH" (string-append tmpbin ":" (getenv "PATH"))= ) + ;; (invoke "./v" "test-fixed")) + ;; #t)) + (replace 'install + (lambda _ + (let* ((bin (string-append (assoc-ref %outputs "out") "/bin")) + (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 i= n the + ;; same directory. In a future release we may be able to mov= e + ;; these into other output folders. + (copy-recursively "cmd/tools" tools) + (copy-recursively "thirdparty" thirdparty) + (copy-recursively "vlib" vlib) + (copy-file "v.mod" vmod)) + #t))))) + (inputs + `(("glib" ,glib) + ("gcc" ,gcc))) + (native-inputs + `(("vc" + ,(let ((vc-version "0884d7092f4c2a4f8ca16da6f1792efa235247be")) + ;; 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 + ;; golang is lost to the forces of entropy; modifying the genera= ted c + ;; source by hand has been a commonly used technique for iterati= ng on + ;; the codebase. + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vlang/vc.git") + (commit vc-version))) + (file-name (git-file-name "vc" vc-version)) + (sha256 + (base32 "17bs09iwxfd0si70j48n9nd16gfgcj8imd0azypk3xzzbz4wybnz= "))))))) + (home-page "https://vlang.io/") + (synopsis "Compiler for the V programming language") + (description + "V is a systems programming language. It provides memory safety and t= hread +safety guarantees with minimal abstraction.") + (license license:expat))) --=20 2.26.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 23 18:04:23 2020 Received: (at 41415-done) by debbugs.gnu.org; 23 Jun 2020 22:04:23 +0000 Received: from localhost ([127.0.0.1]:37315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnr1j-0007no-0s for submit@debbugs.gnu.org; Tue, 23 Jun 2020 18:04:23 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jnr1e-0007nW-Iv for 41415-done@debbugs.gnu.org; Tue, 23 Jun 2020 18:04:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40975) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnr1Y-0002tf-Rd; Tue, 23 Jun 2020 18:04:12 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58630 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jnr1Y-0004V7-FJ; Tue, 23 Jun 2020 18:04:12 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ryan Prior Subject: Re: [bug#41415] [PATCH 1/1] gnu: Add v. References: <20200520031816.32692-1-rprior@protonmail.com> <20200520032346.498-1-rprior@protonmail.com> Date: Wed, 24 Jun 2020 00:04:10 +0200 In-Reply-To: <20200520032346.498-1-rprior@protonmail.com> (Ryan Prior's message of "Wed, 20 May 2020 03:23:56 +0000") Message-ID: <87d05pxwv9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (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: 41415-done Cc: 41415-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 Ryna, Ryan Prior skribis: > * gnu/packages/vlang.scm: New file. > * gnu/packages/vlang.scm (v): New variable. > * gnu/local.mk: Add vlang.scm. Finally applied, thank you. > + (native-inputs > + `(("vc" > + ,(let ((vc-version "0884d7092f4c2a4f8ca16da6f1792efa235247be")) > + ;; v bootstraps from generated c source code from a dedicated > + ;; repository. It's readable, as generated source goes, and no= t at all > + ;; obfuscated, and it's about 15kb. The original source writte= n in > + ;; golang is lost to the forces of entropy; modifying the gene= rated c > + ;; source by hand has been a commonly used technique for itera= ting on > + ;; the codebase. > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/vlang/vc.git") > + (commit vc-version))) Thanks for taking the time to write this explanation. The file =E2=80=98v.= c=E2=80=99 is 1.2MB though, and it=E2=80=99s definitely not the preferred form for editio= n. What=E2=80=99s the 15KB above referring to? I=E2=80=99d welcome a patch to= adjust the comment, unless I=E2=80=99m missing something. :-) It would be great if you could bring up this issue with upstream, perhaps mentioning . Thanks, and sorry for the long delay! Ludo=E2=80=99. From unknown Sun Jun 22 00:08:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Jul 2020 11:24:04 +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