From unknown Sat Jun 21 03:04:53 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#52280 <52280@debbugs.gnu.org> To: bug#52280 <52280@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add guile-smc Reply-To: bug#52280 <52280@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:04:53 +0000 retitle 52280 [PATCH] gnu: Add guile-smc reassign 52280 guix-patches submitter 52280 poptsov.artyom@gmail.com (Artyom V. Poptsov) severity 52280 normal tag 52280 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 12:52:28 2021 Received: (at submit) by debbugs.gnu.org; 4 Dec 2021 17:52:28 +0000 Received: from localhost ([127.0.0.1]:54892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtZD2-0004UV-A7 for submit@debbugs.gnu.org; Sat, 04 Dec 2021 12:52:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:46434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtZCx-0004UK-Gi for submit@debbugs.gnu.org; Sat, 04 Dec 2021 12:52:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtZCw-0004Kt-To for guix-patches@gnu.org; Sat, 04 Dec 2021 12:52:22 -0500 Received: from [2a00:1450:4864:20::236] (port=39513 helo=mail-lj1-x236.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtZCu-0006V1-VB for guix-patches@gnu.org; Sat, 04 Dec 2021 12:52:22 -0500 Received: by mail-lj1-x236.google.com with SMTP id m12so12571166ljj.6 for ; Sat, 04 Dec 2021 09:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=X1Wy6G+ifv0mfodKmMVumYFbxB9oxY++m6g1YObR3nI=; b=VvyStzBBWl+WiPJ7FMyvdzfxEOqJ9j+94saER6m5eq7C/rLhQpyl67Ag91fxDS71pi 8g9bpwvUc/ftNCTq3WbxWAG8JcZNxrIB3wxtDIqYt83sNNB6h7hziPeRjpjo5DbouAq7 f/vSgR0DrYPw8Qfasqx4dCkpRqkG5/cZvBfsaPZsbjV7ErEH9UMHdwQx96le9Jv4KU8h 2c8GW6I7e9dF+MaNQEqvUA0ULCu4SSIIO+7xErCksmY+3vG5Xz2qaV05rEUOAZfiS3ok Usz9WO5sbftmnjK1gkk8KeU2EMq76knB61yhRoCfmttgUPhOOxLLUczIVM1FWdjtVtls pQxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=X1Wy6G+ifv0mfodKmMVumYFbxB9oxY++m6g1YObR3nI=; b=OCJ9krh64qhG5xC4cKi0csCnlgabHoQ0BJ9oEZ+UAnY+tAHSYylY28qAh1iJjVPAA5 /+RSXpR2IRWfSopDMtg8TVU/VZbHdK/2jL72fa/u76q9h16iHCfvFv3QxIxNXprBYUmK Ehkzl4YtqrggdOEzycAwBqSVNgD1hk6X6TcNNoh5F5vzRGgeWS9vPtvGYeFGLcyQGHuB VAXm4ysk6uGBwEA3pBLPaW4QEXw1nxNnoFoBHSaQnm1EEi44LjBuM0tSEFuo97jasx5h mN8tBnA6jBIBwgITOY9B8okwfGR64a/YyVUQSCpRSHb/op4uC9eJJMCykt3HBFK+LdJv dt7w== X-Gm-Message-State: AOAM5300TPFROGv6oKU71PsqXRPVB0Tp94nU5mT86C+PQp+HLQefN/uS we8qImfpzPfXMi75wnF7/+nnjSSFS4M= X-Google-Smtp-Source: ABdhPJxlFddYNupfv1jh49CBpgCSAnqz9tbFTqo7ICVHOGTF0xOR17/fwPQteZiJxwEz1KWlhwCmag== X-Received: by 2002:a2e:7819:: with SMTP id t25mr25934601ljc.374.1638640338826; Sat, 04 Dec 2021 09:52:18 -0800 (PST) Received: from elephant ([5.164.193.196]) by smtp.gmail.com with ESMTPSA id bi34sm829290lfb.12.2021.12.04.09.52.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Dec 2021 09:52:18 -0800 (PST) From: poptsov.artyom@gmail.com (Artyom V. Poptsov) To: guix-patches@gnu.org Subject: [PATCH] gnu: Add guile-smc Date: Sat, 04 Dec 2021 20:52:12 +0300 Message-ID: <87lf106ywj.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::236 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::236; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x236.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) 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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Guixers, this patch adds Guile-SMC[1] -- the GNU Guile State Machine Compiler. Thanks, - Artyom References: 1: https://github.com/artyom-poptsov/guile-smc --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-guile-smc.patch Content-Transfer-Encoding: quoted-printable From=20b3ad6d1c8973647a4dd2efedaa6d70957429f5e2 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sat, 4 Dec 2021 20:40:46 +0300 Subject: [PATCH] gnu: Add guile-smc * gnu/packages/guile-xyz.scm (guile-smc): New variable. =2D-- gnu/packages/guile-xyz.scm | 88 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index cbc3ffa595..1b1acc637c 100644 =2D-- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -58,6 +58,7 @@ (define-module (gnu packages guile-xyz) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) + #:use-module (gnu packages admin) #:use-module (gnu packages algebra) #:use-module (gnu packages aspell) #:use-module (gnu packages autotools) @@ -4856,3 +4857,90 @@ high-level API for network management that uses rtne= tlink.") as well as the @samp{gitlab-cli} command line tool for interacting with a GitLab instance.") (license license:gpl3))) + +(define-public guile-smc + (package + (name "guile-smc") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/artyom-poptsov/guile-smc") + (commit (string-append "v" version)))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0szkjmasi70m1vppck7nhdxg4lnxzjq6mihi6r1552s8sxm5z008")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags '("GUILE_AUTO_COMPILE=3D0") ;to prevent guild warn= ings + #:modules (((guix build guile-build-system) + #:select (target-guile-effective-version)) + ,@%gnu-build-system-modules) + #:imported-modules ((guix build guile-build-system) + ,@%gnu-build-system-modules) + #:phases + (modify-phases %standard-phases + (delete 'strip) + (add-after 'configure 'patch + (lambda* (#:key inputs outputs #:allow-other-keys) + (substitute* "modules/smc/core/log.scm" + ((" #:use-module \\(logging logger\\)") + (string-append + " #:use-module (logging logger)\n" + " #:use-module (logging rotating-log)")) + (("#:init-value \"logger\"") + (format #f + "#:init-value \"~a/bin/logger\"" + (assoc-ref inputs "inetutils"))) + (("\\(add-handler! %logger %syslog\\)") + (string-append + "(add-handler! %logger\n" + " (make \n" + " #:file-name \"smc.log\"))\n"))) + #t)) + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (guile-lib (assoc-ref inputs "guile-lib")) + (version (target-guile-effective-version)) + (scm (string-append "/share/guile/site/" + version)) + (go (string-append "/lib/guile/" + version "/site-ccache"))) + (wrap-program (string-append bin "/smc") + `("GUILE_LOAD_PATH" prefix + (,(string-append out scm) + ,(string-append guile-lib scm))) + `("GUILE_LOAD_COMPILED_PATH" prefix + (,(string-append out go) + ,(string-append guile-lib go))))) + #t))))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("pkg-config" ,pkg-config) + ("texinfo" ,texinfo))) + (inputs + `(("bash" ,bash-minimal) + ("guile" ,guile-3.0) + ("guile-lib" ,guile-lib) + ("inetutils" ,inetutils))) + (home-page "https://github.com/artyom-poptsov/guile-smc") + (synopsis "GNU Guile state machine compiler.") + (description + "Guile-SMC is a state machine compiler that allows to describe finite +state machines (FSMs) in Scheme in terms of transition tables. It is capa= ble +to generate such transition tables from a @url{https://plantuml.com/, +PlantUML} state diagrams. + +A transition table can be verified and checked for dead-ends and infinite +loops. Also Guile-SMC FSMs gather statistics when they run. + +Guile-SMC comes with a Scheme program called @command{smc} -- a state mach= ine +compiler itself. It produces a Scheme code for an FSM from the PlantUML +format. This tool is meant to be called on a PlantUML file when a program +with a FSM is being built (for example, from a Makefile.)") + (license license:gpl3))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmGrqswACgkQ6cWi2QiY oC/2AQgAjWm9dG1oTRX5Y1YnRZ1Tx+d3mzVSqeFdBGVdh0vnXSm4KBpqCr92fdKn P8n8f4zEpVVhaAtBBpejrX+x+BfmWeQ5kpcWpDcZSxXk5ZF83wbjyzfQH/u+CqIG A4co3UwHI9b8yHGSyH4d1KqBV9Pb5PLw80EGs1QuqjfOz9Q38zKLYCmTUYJ68ZYa tCDpu3dCDpVDyqKdhjESHTgf6obXN/j1BGhkxbsFZbkPccfw2nYRLrC9tHd2O1dZ 6Y+jxmBgDXTkvWbTs4P4kJ13apkvuD2XDQuWLt0Rqo7hSFEqV6wS2uLxQ5FQl/5u 7NHa/eHdcdUgwpuIk2hVeNtU/8CSHQ== =BT0l -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 04 16:45:25 2021 Received: (at 52280-done) by debbugs.gnu.org; 4 Dec 2021 21:45:25 +0000 Received: from localhost ([127.0.0.1]:55471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcqT-0003KZ-1O for submit@debbugs.gnu.org; Sat, 04 Dec 2021 16:45:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mtcqR-0003KM-HX for 52280-done@debbugs.gnu.org; Sat, 04 Dec 2021 16:45:23 -0500 Received: from [2001:470:142:3::e] (port=47860 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcqM-0005Ul-85; Sat, 04 Dec 2021 16:45:18 -0500 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=/xuwiB6euC8JD1xbgI5ugWEiMhGgem3N1QZxuT2yDB0=; b=NoBpOJYmy5ThXzW9Mb0e iDmATy1V3HTfnixtZP5tkGppyqU1SknaDU9D33KcWR37Nvi8TMnc/baSIOVDpVkpNw6e8l1qZ2kqZ VKyJEtPzZTlfTvk2sHITPXSqTnltmLaaIwumSHxwijdYUf/yt3cFdlvY9uPISUoMwPaE/UGtIvEDI KxPvqgtBb3SEtRLOd+KPXt2lUHP5WRmVZSZdz2PfXYypbkzClXKb8ZU7Lv+euhtqFl3C6ucoT8VjY kRkbj57/lWYOAclJfivADSGr7Q4ot4aLquFfZsSKqVMy0ZV2K7KqLpK2ONKHE2htf2wJCK6cKCEB7 mdPgwpAqbFOLfQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50211 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtcqM-0001gp-50; Sat, 04 Dec 2021 16:45:18 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: poptsov.artyom@gmail.com (Artyom V. Poptsov) Subject: Re: bug#52280: [PATCH] gnu: Add guile-smc References: <87lf106ywj.fsf@gmail.com> Date: Sat, 04 Dec 2021 22:45:15 +0100 In-Reply-To: <87lf106ywj.fsf@gmail.com> (Artyom V. Poptsov's message of "Sat, 04 Dec 2021 20:52:12 +0300") Message-ID: <87pmqcujro.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52280-done Cc: 52280-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 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, poptsov.artyom@gmail.com (Artyom V. Poptsov) skribis: > From b3ad6d1c8973647a4dd2efedaa6d70957429f5e2 Mon Sep 17 00:00:00 2001 > From: "Artyom V. Poptsov" > Date: Sat, 4 Dec 2021 20:40:46 +0300 > Subject: [PATCH] gnu: Add guile-smc > > * gnu/packages/guile-xyz.scm (guile-smc): New variable. Applied with the changes below to placate =E2=80=98guix lint=E2=80=99. Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm index 1b1acc637c..508b4b44d5 100644 --- a/gnu/packages/guile-xyz.scm +++ b/gnu/packages/guile-xyz.scm @@ -4929,11 +4929,11 @@ (define-public guile-smc ("guile-lib" ,guile-lib) ("inetutils" ,inetutils))) (home-page "https://github.com/artyom-poptsov/guile-smc") - (synopsis "GNU Guile state machine compiler.") + (synopsis "GNU Guile state machine compiler") (description - "Guile-SMC is a state machine compiler that allows to describe finite -state machines (FSMs) in Scheme in terms of transition tables. It is capable -to generate such transition tables from a @url{https://plantuml.com/, + "Guile-SMC is a state machine compiler that allows users to describe +finite state machines (FSMs) in Scheme in terms of transition tables. It is +capable to generate such transition tables from a @url{https://plantuml.com/, PlantUML} state diagrams. A transition table can be verified and checked for dead-ends and infinite --=-=-=-- From unknown Sat Jun 21 03:04:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Jan 2022 12:24:10 +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