From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBQ3r-0006tw-9Y for guix-patches@gnu.org; Thu, 18 May 2017 14:22:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBQ3m-00004r-SJ for guix-patches@gnu.org; Thu, 18 May 2017 14:22:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBQ3m-0008WT-Ol for guix-patches@gnu.org; Thu, 18 May 2017 14:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dBQ3m-0007xC-Jw for guix-patches@gnu.org; Thu, 18 May 2017 14:22:02 -0400 Subject: bug#26984: Add loksh (ported OpenBSD pdksh) Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBQ2l-0006Ng-Dk for guix-patches@gnu.org; Thu, 18 May 2017 14:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBQ2g-0008F4-S0 for guix-patches@gnu.org; Thu, 18 May 2017 14:20:59 -0400 Received: from 93-95-228-241.1984.is ([93.95.228.241]:48822 helo=sharknado9001.pragmatique.xyz) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dBQ2g-0008Dk-Bu for guix-patches@gnu.org; Thu, 18 May 2017 14:20:54 -0400 Received: by sharknado9001.pragmatique.xyz (OpenSMTPD) with ESMTPSA id 4f1bd7d9 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 18 May 2017 18:20:39 +0000 (UTC) Date: Thu, 18 May 2017 18:20:47 +0000 From: ng0 Message-ID: <20170518182047.qxwdpsy2edqltyg4@abyayala> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="sk2zbm2red5kdhie" Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26984@debbugs.gnu.org --sk2zbm2red5kdhie Content-Type: text/plain; charset=utf-8 Content-Disposition: inline The first patch adds loksh, a port of OpenBSD pdksh to Linux userland. Intended for musl build, but we don't have that now. It seems to work, I use it. -- https://pragmatique.xyz PGP: https://people.pragmatique.xyz/ng0/ --sk2zbm2red5kdhie Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-gnu-Add-loksh.patch" Content-Transfer-Encoding: quoted-printable =46rom b72f88bfa8c3f26fcac4a0c0e9ef07a76e727fcf Mon Sep 17 00:00:00 2001 =46rom: ng0 Date: Thu, 18 May 2017 16:55:12 +0000 Subject: [PATCH] gnu: Add loksh. * gnu/packages/shells.scm (loksh): New variable. --- gnu/packages/shells.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm index 4e684e8c8..5035c935a 100644 --- a/gnu/packages/shells.scm +++ b/gnu/packages/shells.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages bison) #:use-module (gnu packages documentation) #:use-module (gnu packages groff) + #:use-module (gnu packages libbsd) #:use-module (gnu packages libedit) #:use-module (gnu packages ncurses) #:use-module (gnu packages pcre) @@ -457,3 +458,39 @@ components: a process notation for running programs an= d setting up pipelines and redirections, and a complete syscall library for low-level access to t= he operating system.") (license bsd-3)))) + +(define-public loksh + (package + (name "loksh") + (version "6.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/dimkr/loksh/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1wg7ds56yr8fgg1m149bi53bvrwccwiashmwknggza1sqgj9m2lq")))) + (build-system gnu-build-system) + (inputs + `(("libbsd" ,libbsd))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f ;No tests included + #:make-flags (list "CC=3Dgcc" "HAVE_LIBBSD=3D1" + (string-append "DESTDIR=3D" + (assoc-ref %outputs "out")) + "PREFIX=3D") + #:phases + (modify-phases %standard-phases + (delete 'configure)))) ;No configure script + (home-page "https://github.com/dimkr/loksh") + (synopsis "Port of OpenBSD pdksh to Linux") + (description + "loksh is a Linux port of OpenBSD's ksh (pdksh). +It is a small, interactive shell targeted at resource-constrained systems.= ") + ;; The file 'LEGAL' says it is the public domain, and the 2 + ;; exceptions which are listed are not included in this port. + (license public-domain))) --=20 2.13.0 --sk2zbm2red5kdhie--