From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBRwy-0005IA-7G for guix-patches@gnu.org; Thu, 18 May 2017 16:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBRws-0000lt-39 for guix-patches@gnu.org; Thu, 18 May 2017 16:23:08 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51202) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBRwr-0000la-VN for guix-patches@gnu.org; Thu, 18 May 2017 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dBRwr-0005yS-Mu for guix-patches@gnu.org; Thu, 18 May 2017 16:23:01 -0400 Subject: bug#26984: Add loksh (ported OpenBSD pdksh) Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBRw6-000550-4R for guix-patches@gnu.org; Thu, 18 May 2017 16:22:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBRw2-0000R2-VC for guix-patches@gnu.org; Thu, 18 May 2017 16:22:14 -0400 Received: from 93-95-228-241.1984.is ([93.95.228.241]:48828 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 1dBRw2-0000QM-Ha for guix-patches@gnu.org; Thu, 18 May 2017 16:22:10 -0400 Received: by sharknado9001.pragmatique.xyz (OpenSMTPD) with ESMTPSA id 4330c1d0 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 18 May 2017 20:21:57 +0000 (UTC) Date: Thu, 18 May 2017 20:22:02 +0000 From: ng0 Message-ID: <20170518202202.l5yqcijtn6c65mu7@abyayala> References: <20170518182047.qxwdpsy2edqltyg4@abyayala> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170518182047.qxwdpsy2edqltyg4@abyayala> 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 ng0 transcribed 2.8K bytes: > 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. By the way, this can not be used for the test suite in graphviz. There are many ksh implementations, and this is not the one the tests accept. Or at least its ksh93 checks fail ;) > -- > https://pragmatique.xyz > PGP: https://people.pragmatique.xyz/ng0/ > From b72f88bfa8c3f26fcac4a0c0e9ef07a76e727fcf Mon Sep 17 00:00:00 2001 > From: 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 and setting up pipelines > and redirections, and a complete syscall library for low-level access to the > 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=gcc" "HAVE_LIBBSD=1" > + (string-append "DESTDIR=" > + (assoc-ref %outputs "out")) > + "PREFIX=") > + #: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))) > -- > 2.13.0 > -- https://pragmatique.xyz PGP: https://people.pragmatique.xyz/ng0/