From: "Claes Wallin (韋嘉誠)" <gnu@clacke.user.lysator.liu.se>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: [PATCH] Add skalibs, execline.
Date: Mon, 6 Jul 2015 22:57:32 +0200 [thread overview]
Message-ID: <CAGv_=Bop_EnjT_rD_LUxbpps2xoQhBNhGyGfyA6B5hLKhcwVtw@mail.gmail.com> (raw)
In-Reply-To: <CAGv_=BoKNUQ=AU0aqi=puj0vBX_Z2i0344oEqM=HgEZKKGL_-g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1247 bytes --]
On Mon, Jun 29, 2015 at 11:36 AM, Claes Wallin (韋嘉誠)
<gnu@clacke.user.lysator.liu.se> wrote:
> On Jun 28, 2015 10:38 PM, "Ludovic Courtès" <ludo@gnu.org> wrote:
>> "Claes Wallin (韋嘉誠)" <gnu@clacke.user.lysator.liu.se> skribis:
>> Please start the .patch with a brief description of what it does, and
>> its upstream status (like “Upstream commit XYZ”, or “Submitted upstream
>> at http://...”.)
>
> Ok. I'll rename it too, as s6 turned out to need the same patch as
> well. It's not guix-specific, they actually don't compile from source.
> It's funny.
After talking with the author, an explicit --with-lib made the problem
go away, no patch necessary. Apparently GNU make has a special case
where it knows how to interpret -lmylib listed as a dependency.
>> > + #:modules ((guix build utils)
>> > + (guix build gnu-build-system)
>> > + (ice-9 popen))
>>
>> Replace the first two with:
>>
>> ,@%gnu-build-system-modules
... so this part is not even necessary any more.
>> Could you send updated patches?
>
> Will do!
And here they are. I improved (shortened) the wording for the
descriptions and fixed the formatting for the commit message.
[-- Attachment #2: 0001-gnu-Add-skalibs.patch --]
[-- Type: application/octet-stream, Size: 3078 bytes --]
From b9205ac506a12a7fe2193a9b9e02a371a26021d6 Mon Sep 17 00:00:00 2001
From: Claes Wallin <claes.wallin@greatsinodevelopment.com>
Date: Thu, 25 Jun 2015 12:00:06 +0200
Subject: [PATCH 1/2] gnu: Add skalibs.
* gnu/package/skarnet.scm (skalibs): New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
gnu-system.am | 1 +
gnu/packages/skarnet.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+)
create mode 100644 gnu/packages/skarnet.scm
diff --git a/gnu-system.am b/gnu-system.am
index 7e25f6f..b54e298 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -272,6 +272,7 @@ GNU_SYSTEM_MODULES = \
gnu/packages/search.scm \
gnu/packages/serveez.scm \
gnu/packages/shishi.scm \
+ gnu/packages/skarnet.scm \
gnu/packages/skribilo.scm \
gnu/packages/slang.scm \
gnu/packages/slim.scm \
diff --git a/gnu/packages/skarnet.scm b/gnu/packages/skarnet.scm
new file mode 100644
index 0000000..c9b0361
--- /dev/null
+++ b/gnu/packages/skarnet.scm
@@ -0,0 +1,49 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Claes Wallin <claes.wallin@greatsinodevelopment.com>
+;;;
+;;; 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 <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages skarnet)
+ #:use-module (gnu packages)
+ #:use-module (guix licenses)
+ #:use-module (guix packages)
+ #:use-module (guix download)
+ #:use-module (guix build-system gnu))
+
+(define-public skalibs
+ (package
+ (name "skalibs")
+ (version "2.3.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://skarnet.org/software/skalibs/skalibs-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1m31wph4qr4mqgv51nzwd9nw0x5vmpkcxr48i216wn3dpy3mvxwy"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:configure-flags '("--enable-force-devr") ; do not analyze /dev/random
+ #:tests? #f)) ; no tests exist
+ (home-page "http://skarnet.org/software/skalibs/")
+ (synopsis "Platform abstraction libraries for skarnet.org software")
+ (description
+ "Lightweight C libraries isolating the developer from portability issues,
+providing a unified systems API on all platforms, including primitive
+data types, cryptography and POSIX concepts like sockets and file
+system operations. Used by all skarnet.org software.")
+ (license isc)))
--
2.4.3
[-- Attachment #3: 0002-gnu-Add-execline.patch --]
[-- Type: application/octet-stream, Size: 2772 bytes --]
From 1895979db244399f1e24c60f7a931ea551bec772 Mon Sep 17 00:00:00 2001
From: Claes Wallin <claes.wallin@greatsinodevelopment.com>
Date: Thu, 25 Jun 2015 14:47:41 +0200
Subject: [PATCH 2/2] gnu: Add execline.
* gnu/package/skarnet.scm (execline): New variable.
---
gnu/packages/skarnet.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/skarnet.scm b/gnu/packages/skarnet.scm
index c9b0361..5362893 100644
--- a/gnu/packages/skarnet.scm
+++ b/gnu/packages/skarnet.scm
@@ -47,3 +47,46 @@ providing a unified systems API on all platforms, including primitive
data types, cryptography and POSIX concepts like sockets and file
system operations. Used by all skarnet.org software.")
(license isc)))
+
+(define-public execline
+ (package
+ (name "execline")
+ (version "2.1.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://skarnet.org/software/execline/execline-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "01pckac5zijf6icrhwicbmq92yq68gfkf1yl03rr2v4q3cn8r85f"))))
+ (build-system gnu-build-system)
+ (inputs `(("skalibs" ,skalibs)))
+ (arguments
+ '(#:configure-flags (list
+ (string-append "--with-lib="
+ (assoc-ref %build-inputs "skalibs")
+ "/lib/skalibs")
+ (string-append "--with-sysdeps="
+ (assoc-ref %build-inputs "skalibs")
+ "/lib/skalibs/sysdeps"))
+ #:phases (modify-phases %standard-phases
+ (add-after
+ 'install 'post-install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (wrap-program (string-append bin "/execlineb")
+ `("PATH" ":" prefix (,bin)))))))
+ #:tests? #f)) ; No tests exist.
+ (home-page "http://skarnet.org/software/execline/")
+ (license isc)
+ (synopsis "Non-interactive shell-like language with minimal overhead")
+ (description
+ "Execline is a (non-interactive) scripting language, separated into a
+parser (execlineb) and a set of commands meant to execute one another in a
+chain-execution fashion, storing the whole script in the argument array.
+It features conditional loops, getopt-style option handling, file name
+globbing, redirection and other shell concepts, expressed as discrete commands
+rather than in special syntax, minimizing runtime footprint and
+complexity.")))
--
2.4.3
next prev parent reply other threads:[~2015-07-06 20:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 0:28 [PATCH] Add skalibs, execline Claes Wallin (韋嘉誠)
2015-06-28 20:37 ` Ludovic Courtès
2015-06-29 9:36 ` Claes Wallin (韋嘉誠)
2015-07-01 13:32 ` Ludovic Courtès
2015-07-01 17:03 ` Claes Wallin (韋嘉誠)
2015-07-04 15:14 ` Ludovic Courtès
2015-07-04 15:50 ` Claes Wallin (韋嘉誠)
2015-07-06 20:57 ` Claes Wallin (韋嘉誠) [this message]
2015-07-12 20:56 ` Ludovic Courtès
2015-07-13 10:38 ` Claes Wallin (韋嘉誠)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGv_=Bop_EnjT_rD_LUxbpps2xoQhBNhGyGfyA6B5hLKhcwVtw@mail.gmail.com' \
--to=gnu@clacke.user.lysator.liu.se \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).