From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 16:58:45 2021 Received: (at submit) by debbugs.gnu.org; 11 May 2021 20:58:45 +0000 Received: from localhost ([127.0.0.1]:37639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZSm-0003tp-RO for submit@debbugs.gnu.org; Tue, 11 May 2021 16:58:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:45806) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZSk-0003th-Mi for submit@debbugs.gnu.org; Tue, 11 May 2021 16:58:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZSk-0001TF-DK for guix-patches@gnu.org; Tue, 11 May 2021 16:58:42 -0400 Received: from dd3624.kasserver.com ([85.13.130.11]:34392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZSi-0007Es-5o for guix-patches@gnu.org; Tue, 11 May 2021 16:58:42 -0400 Received: from localhost (37-186-9-252.ip.as39912.net [37.186.9.252]) by dd3624.kasserver.com (Postfix) with ESMTPA id A32AF5D40281; Tue, 11 May 2021 22:58:36 +0200 (CEST) From: =?UTF-8?q?Stefan=20Reich=C3=B6r?= To: guix-patches@gnu.org Subject: [PATCH] gnu: Add rset. Date: Tue, 11 May 2021 22:58:31 +0200 Message-Id: <20210511205831.165732-1-stefan@xsteve.at> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=85.13.130.11; envelope-from=stefan@xsteve.at; helo=dd3624.kasserver.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Stefan=20Reich=C3=B6r?= 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 (---) * gnu/packages/admin.scm (rset): New variable. --- gnu/packages/admin.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index fdcbf28a6a..c17609c442 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -3371,6 +3371,41 @@ Intel DRM Driver.") (supported-systems '("i686-linux" "x86_64-linux")) (license license:expat))) +(define-public rset + (package + (name "rset") + (version "2.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eradman/rset/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "150my3lvql3m6jn1c12x81jx990nqh5g02v6r9a5j51ds39shr39")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (invoke "./configure")))) + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + ,(string-append "CC=" (cc-for-target))) + #:tests? #f)) ; TODO: test target requires ruby, curl, uname + (home-page "http://scriptedconfiguration.org") + (synopsis "Configure systems using any scripting language") + (description + "rset(1) operates by staging files on a remote system, then executing +instructions embedded in the pln(5) files. Any interpreter capable of running +scripts read over a pipe may be specified. The bundled utilities rinstall(1) +and rsub(1) provide an easy means of installing and modifying configuration +files, and capabilities are added by writing utility scripts which are sent +along with configuration data.") + (license license:isc))) + (define-public fabric (package (name "fabric") -- 2.25.1 From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 02:08:39 2021 Received: (at control) by debbugs.gnu.org; 7 Aug 2021 06:08:39 +0000 Received: from localhost ([127.0.0.1]:51810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCFVf-0005yc-2u for submit@debbugs.gnu.org; Sat, 07 Aug 2021 02:08:39 -0400 Received: from out1.migadu.com ([91.121.223.63]:44754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCFVb-0005yS-A2 for control@debbugs.gnu.org; Sat, 07 Aug 2021 02:08:38 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1628316513; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=DOm0lS/jg0mq7FbECeqcH3FcPKPvN0cFSAhXV8MzveE=; b=BQDW/UH3tztZ3xJC67L8ob74TbFbpK8lrI8YnlnB/CHQdDZFEHjsbyRQ21lJhKr77nNPCb KYRjrBcOSCd+P/TfvKCoX3jVHezsFDM+Oxx/QU5kivZURtud5jQdK13h9BX84GzGEkYI8n vxQQbLzLgQx3f7dX0JFpO+0II0ZMq+M= From: Sarah Morgensen To: control@debbugs.gnu.org Subject: control message for bug #48369 Date: Fri, 06 Aug 2021 23:08:31 -0700 Message-ID: <86tuk1g528.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control 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.7 (-) merge 48369 48364 48363 48362 48361 48360 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 02:44:31 2021 Received: (at control) by debbugs.gnu.org; 7 Aug 2021 06:44:31 +0000 Received: from localhost ([127.0.0.1]:51830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCG4N-0000Z5-8w for submit@debbugs.gnu.org; Sat, 07 Aug 2021 02:44:31 -0400 Received: from out1.migadu.com ([91.121.223.63]:16353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCG4L-0000Yx-0U for control@debbugs.gnu.org; Sat, 07 Aug 2021 02:44:30 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1628318667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=niOrnbPRqFs043i3LYFlN56R0sJmmYnQwMGxZ7JJqGE=; b=OpsrXPI2AnIULFsVRn7chCG/nQe4YsXqasMIlAEs4x8C/NQWvneNv7CPP84uosdA6zwB6n orktYdR0U8VBXb/GjqnUU3r8y1ShL6wmVZvTnury+p8JWrwLSArE4nwUvr9mytUsnKoNid ANHPz8tpcRbe938p3Vp69kawLpF9d+8= From: Sarah Morgensen To: control@debbugs.gnu.org Subject: control message for bug #48369 Date: Fri, 06 Aug 2021 23:44:25 -0700 Message-ID: <86sfzlg3ee.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control 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.7 (-) unmerge 48369 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 08 20:26:38 2021 Received: (at 48369) by debbugs.gnu.org; 9 Aug 2021 00:26:38 +0000 Received: from localhost ([127.0.0.1]:55082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCt7m-0002E2-7X for submit@debbugs.gnu.org; Sun, 08 Aug 2021 20:26:38 -0400 Received: from out0.migadu.com ([94.23.1.103]:14618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCt7e-0002Do-Tm for 48369@debbugs.gnu.org; Sun, 08 Aug 2021 20:26:36 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1628468788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=DXNp6zKl1yBwGuWua8Hns1mPVpZOr0sjCd0Mej1tQL0=; b=DKZ1oPjOZgp+eXmJE4lUwWnlT1ifNzHLzEPBAytaBx0Rex4/7tHTIfYXjibW2BV0GyXMON bPS6Un7VzeYaAglAp+4pIVmooO3apNWn/jh2okt/LrL3LtvRqD7okKKw+lZSUp9Nhr5DNH NTQTctjbaBvHo/hWPJYGMY/wVeSVoHQ= From: Sarah Morgensen To: Stefan =?utf-8?Q?Reich=C3=B6r?= Subject: Re: bug#48369: [PATCH] gnu: Add rset. References: <20210511205831.165732-1-stefan@xsteve.at> Date: Sun, 08 Aug 2021 17:26:26 -0700 Message-ID: <867dgvlaz1.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: iskarian@mgsn.dev X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 48369 Cc: 48369@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: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Stefan, Thanks for the patch. Sorry it's taken so long for someone to take a look at this! This utility certainly looks interesting. I'm not a committer, but I tested out this patch. It doesn't apply on master anymore, so I manually applied it and was able to build it. However, it looks like it expects a number of utilities to be in specific places, such as /usr/bin/install (which caused rinstall to just... do nothing). It could also be problematic if it's attempting to invoke such absolute paths on a remote machine. I'm not sure exactly how rset works, though. I was able to enable and pass tests with the modifications in the patch attached below. I don't know rset itself though, so I don't know if there might be other hardcoded things that need to be substituted. I also bumped it to 2.2 and made a few minor tweaks to the description. I noticed you didn't add a copyright line, but I wasn't sure whether the omission was intentional, so I didn't add one for you. Go ahead and send an updated patch to this bug number (48369@debbugs.gnu.org) if you'd like to add one, or make any other changes :) The following is after the modifications I've made: * Package review checklist (WIP - comments welcome!) A check indicates that I've verified the item. 1. [X] Package builds (guix build package) [X] x86_64 [ ] aarch64 [ ] armhf [ ] powerpc64le [ ] i686 [ ] i586 [ ] mips64le 2. [X] Build is reproducible (guix build --rounds=3Dn package) 3. [X] Tests enabled (if available) or disabled with in-source comment 4. [X] No extraneous dependencies (guix size package) 5. [X] No unnecessary pre-built binaries/blobs 6. [X] Dependencies unvendored when available in Guix 7. [X] Cross-compile friendly (cc-for-target, patches with inputs) 8. [X] License matches source 9. [X] No problematic lints (guix lint package) 10. [X] Formatting follows guidelines - [X] Lines wrap at 80 characters - [X] Indentation passes etc/indent-code.el - [X] Two spaces used between sentences New packages: 11. [X] Source url is robust * mirror:// used with url-fetch when possible * No auto-generated archives from source repo (prefer cloning) 12. [X] Synopsis is short, descriptive, and meaningful to a wide audience 13. [X] Description is objective, takes 5-10 lines, uses full sentences, and provides the information users need to decide whether the software fits their needs. Stefan Reich=C3=B6r writes: > * gnu/packages/admin.scm (rset): New variable. > --- > gnu/packages/admin.scm | 35 +++++++++++++++++++++++++++++++++++ > 1 file changed, 35 insertions(+) > > diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm > index fdcbf28a6a..c17609c442 100644 > --- a/gnu/packages/admin.scm > +++ b/gnu/packages/admin.scm > @@ -3371,6 +3371,41 @@ Intel DRM Driver.") > (supported-systems '("i686-linux" "x86_64-linux")) > (license license:expat))) >=20=20 > +(define-public rset > + (package > + (name "rset") > + (version "2.1") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/eradman/rset/") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "150my3lvql3m6jn1c12x81jx990nqh5g02v6r9a5j51ds39shr39"))= )) > + (build-system gnu-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases > + (replace 'configure > + (lambda* (#:key outputs #:allow-other-keys) > + (invoke "./configure")))) > + #:make-flags > + (list (string-append "PREFIX=3D" (assoc-ref %outputs "out")) > + ,(string-append "CC=3D" (cc-for-target))) > + #:tests? #f)) ; TODO: test target requires ruby, curl, uname > + (home-page "http://scriptedconfiguration.org") > + (synopsis "Configure systems using any scripting language") > + (description > + "rset(1) operates by staging files on a remote system, then executi= ng > +instructions embedded in the pln(5) files. Any interpreter capable of r= unning > +scripts read over a pipe may be specified. The bundled utilities rinsta= ll(1) > +and rsub(1) provide an easy means of installing and modifying configurat= ion > +files, and capabilities are added by writing utility scripts which are s= ent > +along with configuration data.") > + (license license:isc))) > + > (define-public fabric > (package > (name "fabric") --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-rset.patch Content-Description: 0001-gnu-Add-rset.patch Subject: [PATCH] gnu: Add rset. * gnu/packages/admin.scm (rset): New variable. --- gnu/packages/admin.scm | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index eda269f148..4bf17d57e5 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -142,6 +142,7 @@ #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages web) + #:use-module (gnu packages wget) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (gnu packages xorg)) @@ -3425,6 +3426,84 @@ Intel DRM Driver.") (supported-systems '("i686-linux" "x86_64-linux")) (license license:expat))) +(define-public rset + (package + (name "rset") + (version "2.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/eradman/rset/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0dk75an8axf4480lirwj1vyq1nd18kq5lwz6gdg6hgk3a4rwpv8j")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "PREFIX=" %output) + (string-append "CC=" ,(cc-for-target))) + #:test-target "test" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "rutils.c" + (("/usr/bin/install") + (string-append (assoc-ref inputs "coreutils") "/bin/install"))) + (substitute* "config.h" + (("(LOCAL_INTERPRETER \")/bin/sh" _ start) + (string-append start (assoc-ref inputs "bash") "/bin/sh"))) + ;; Paths on Guix tend to be much longer, so increase buffer size. + (substitute* "input.h" + (("#define PLN_OPTION_SIZE 64") + "#define PLN_OPTION_SIZE 128")))) + (add-after 'patch-paths 'patch-tests + (lambda _ + ;; Input files must be writable for pipe tests. + (for-each make-file-writable (find-files "tests/input")) + (substitute* (find-files "tests") + (("(#!|local_interpreter=)/bin/sh" _ start) + (string-append start (which "sh")))) + (substitute* '("tests/stubs/ssh" "tests/stubs/tar") + (("/bin/echo") (which "echo"))) + (substitute* "tests/test_miniquark.rb" + ;; Make sure the test can see PATH. + ((":unsetenv_others=>true") ":unsetenv_others=>false")) + (substitute* '("tests/cmd_pipe_stdin.c" "tests/test_rset.rb") + (("/bin/cat") (which "cat")) + ;; /bin/cat is in a fixed-size buffer, so increase the size. + (("char \\*cmd_argv\\[16\\];") "char *cmd_argv[256];")) + (substitute* "tests/test_rset.rb" + (("output_size: 20") "output_size: 66") + (("strlen: 20") "strlen: 66") + (("/usr/bin/env ruby") (which "ruby")) + (("\"/bin/sh") (string-append "\"" (which "sh"))) + ;; Make the sure the test can see our PATH. + (("\\{\"PATH\"=>\"/bin:/usr/bin\"\\}, ") "")))) + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + ;; ./configure must be called with no arguments, or it fails. + (invoke "./configure")))))) + (inputs + `(("coreutils" ,coreutils) + ("bash" ,bash-minimal))) + (native-inputs + `(("ruby" ,ruby) + ("wget" ,wget) + ("inetutils" ,inetutils))) + (home-page "http://scriptedconfiguration.org") + (synopsis "Configure systems using any scripting language") + (description + "@command{rset} operates by staging files on a remote system, then +executing instructions embedded in the @code{pln(5)} (Progressive Language +Notation) files. Any interpreter capable of running scripts read over a pipe +may be specified. The bundled utilities @command{rinstall} and @command{rsub} +provide a means of installing and modifying configuration files, and +capabilities are added by writing utility scripts which are sent along +with configuration data.") + (license license:isc))) + (define-public neofetch (package (name "neofetch") base-commit: c8e2be3b32fe784a9db52d8a1a12902ab12ae7cb -- 2.31.1 --=-=-= Content-Type: text/plain -- Sarah --=-=-=--