2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2017-01-27 09:50:07 +01:00
|
|
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
2018-03-16 15:17:40 +01:00
|
|
|
;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
|
2017-01-22 03:35:34 +01:00
|
|
|
;;; Copyright © 2015, 2017 Leo Famulari <leo@famulari.name>
|
2019-01-08 17:18:55 +01:00
|
|
|
;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
2018-03-19 14:43:23 +01:00
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-03-06 10:24:15 +01:00
|
|
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; This file is part of GNU Guix.
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
;;; 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.
|
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
;;; 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
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
(define-module (gnu packages bash)
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
#:use-module (guix licenses)
|
2015-03-12 22:08:04 +01:00
|
|
|
#:use-module (gnu packages)
|
2017-03-07 23:42:13 +01:00
|
|
|
#:use-module (gnu packages bootstrap)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages ncurses)
|
|
|
|
#:use-module (gnu packages readline)
|
2014-09-28 07:48:58 +02:00
|
|
|
#:use-module (gnu packages bison)
|
2015-04-19 22:46:10 +02:00
|
|
|
#:use-module (gnu packages linux)
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
#:use-module (guix packages)
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
#:use-module (guix download)
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
#:use-module (guix utils)
|
2017-02-10 10:34:33 +01:00
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix monads)
|
|
|
|
#:use-module (guix store)
|
2014-09-24 19:19:03 +02:00
|
|
|
#:use-module (guix build-system gnu)
|
|
|
|
#:autoload (guix gnupg) (gnupg-verify*)
|
Switch to Guile-Gcrypt.
This removes (guix hash) and (guix pk-crypto), which now live as part of
Guile-Gcrypt (version 0.1.0.)
* guix/gcrypt.scm, guix/hash.scm, guix/pk-crypto.scm,
tests/hash.scm, tests/pk-crypto.scm: Remove.
* configure.ac: Test for Guile-Gcrypt. Remove LIBGCRYPT and
LIBGCRYPT_LIBDIR assignments.
* m4/guix.m4 (GUIX_ASSERT_LIBGCRYPT_USABLE): Remove.
* README: Add Guile-Gcrypt to the dependencies; move libgcrypt as
"required unless --disable-daemon".
* doc/guix.texi (Requirements): Likewise.
* gnu/packages/bash.scm, guix/derivations.scm, guix/docker.scm,
guix/git.scm, guix/http-client.scm, guix/import/cpan.scm,
guix/import/cran.scm, guix/import/crate.scm, guix/import/elpa.scm,
guix/import/gnu.scm, guix/import/hackage.scm,
guix/import/texlive.scm, guix/import/utils.scm, guix/nar.scm,
guix/pki.scm, guix/scripts/archive.scm,
guix/scripts/authenticate.scm, guix/scripts/download.scm,
guix/scripts/hash.scm, guix/scripts/pack.scm,
guix/scripts/publish.scm, guix/scripts/refresh.scm,
guix/scripts/substitute.scm, guix/store.scm,
guix/store/deduplication.scm, guix/tests.scm, tests/base32.scm,
tests/builders.scm, tests/challenge.scm, tests/cpan.scm,
tests/crate.scm, tests/derivations.scm, tests/gem.scm,
tests/nar.scm, tests/opam.scm, tests/pki.scm,
tests/publish.scm, tests/pypi.scm, tests/store-deduplication.scm,
tests/store.scm, tests/substitute.scm: Adjust imports.
* gnu/system/vm.scm: Likewise.
(guile-sqlite3&co): Rename to...
(gcrypt-sqlite3&co): ... this. Add GUILE-GCRYPT.
(expression->derivation-in-linux-vm)[config]: Remove.
(iso9660-image)[config]: Remove.
(qemu-image)[config]: Remove.
(system-docker-image)[config]: Remove.
* guix/scripts/pack.scm: Adjust imports.
(guile-sqlite3&co): Rename to...
(gcrypt-sqlite3&co): ... this. Add GUILE-GCRYPT.
(self-contained-tarball)[build]: Call 'make-config.scm' without
#:libgcrypt argument.
(squashfs-image)[libgcrypt]: Remove.
[build]: Call 'make-config.scm' without #:libgcrypt.
(docker-image)[config, json]: Remove.
[build]: Add GUILE-GCRYPT to the extensions Remove (guix config) from
the imported modules.
* guix/self.scm (specification->package): Remove "libgcrypt", add
"guile-gcrypt".
(compiled-guix): Remove #:libgcrypt.
[guile-gcrypt]: New variable.
[dependencies]: Add it.
[*core-modules*]: Remove #:libgcrypt from 'make-config.scm' call.
Add #:extensions.
[*config*]: Remove #:libgcrypt from 'make-config.scm' call.
(%dependency-variables): Remove %libgcrypt.
(make-config.scm): Remove #:libgcrypt.
* build-aux/build-self.scm (guile-gcrypt): New variable.
(make-config.scm): Remove #:libgcrypt.
(build-program)[fake-gcrypt-hash]: New variable.
Add (gcrypt hash) to the imported modules. Adjust load path
assignments.
* gnu/packages/package-management.scm (guix)[propagated-inputs]: Add
GUILE-GCRYPT.
[arguments]: In 'wrap-program' phase, add GUILE-GCRYPT to the search
path.
2018-08-31 17:07:07 +02:00
|
|
|
#:autoload (gcrypt hash) (port-sha256)
|
2014-09-24 19:19:03 +02:00
|
|
|
#:autoload (guix base32) (bytevector->nix-base32-string)
|
|
|
|
#:use-module (srfi srfi-1)
|
|
|
|
#:use-module (srfi srfi-26)
|
|
|
|
#:use-module (ice-9 format))
|
|
|
|
|
|
|
|
(define (patch-url seqno)
|
|
|
|
"Return the URL of Bash patch number SEQNO."
|
2019-01-08 17:18:55 +01:00
|
|
|
(format #f "mirror://gnu/bash/bash-5.0-patches/bash50-~3,'0d" seqno))
|
2014-09-24 19:19:03 +02:00
|
|
|
|
|
|
|
(define (bash-patch seqno sha256)
|
|
|
|
"Return the origin of Bash patch SEQNO, with expected hash SHA256"
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (patch-url seqno))
|
|
|
|
(sha256 sha256)))
|
|
|
|
|
|
|
|
(define-syntax-rule (patch-series (seqno hash) ...)
|
|
|
|
(list (bash-patch seqno (base32 hash))
|
|
|
|
...))
|
|
|
|
|
2019-01-08 17:18:55 +01:00
|
|
|
(define %patch-series-5.0
|
|
|
|
;; This is the current patches series for 5.0, generated using
|
2014-09-24 19:19:03 +02:00
|
|
|
;; 'download-patches' below.
|
2016-11-27 08:24:17 +01:00
|
|
|
(patch-series
|
2019-03-02 21:19:37 +01:00
|
|
|
(1 "12bjfdy6bg8nhyw27bdgxn7h4paylx8d927skfmi9pxd1wgrxzpj")
|
2019-05-26 20:18:48 +02:00
|
|
|
(2 "01w7yrzmz10mw06ys0546vhl7isv2v402ziyvfd7k67588spvs47")
|
|
|
|
(3 "0ny81ridp5n0j69hb8ixrc7dmxybby54jbsz5hikly8kgg1wvssf")
|
|
|
|
(4 "021gqqvgydixkrmqss64b6srfdlkvnx88lyfzpxfrn5d6bc7li0l")
|
|
|
|
(5 "0xl2kyzm84nlyklrqzkn73ixabhzfhn9x91lzcmis89cppclvxav")
|
|
|
|
(6 "0844749ixk1z60437nkznzms1f0nzh9an62kj7sny6r0zyk2k1fn")
|
|
|
|
(7 "16xg37gp1b8zlj5969w8mcrparwqlcbj9695vn3qhgb7wdz1xd0p")))
|
2015-12-15 17:59:49 +01:00
|
|
|
|
2014-09-24 19:19:03 +02:00
|
|
|
(define (download-patches store count)
|
|
|
|
"Download COUNT Bash patches into store. Return a list of
|
|
|
|
number/base32-hash tuples, directly usable in the 'patch-series' form."
|
|
|
|
(unfold (cut > <> count)
|
|
|
|
(lambda (number)
|
|
|
|
(let* ((patch (download-to-store store (patch-url number)))
|
|
|
|
(sig (download-to-store store
|
|
|
|
(string-append (patch-url number)
|
|
|
|
".sig"))))
|
|
|
|
(unless (gnupg-verify* sig patch)
|
|
|
|
(error "failed to verify signature" patch))
|
|
|
|
|
|
|
|
(list number
|
|
|
|
(bytevector->nix-base32-string
|
|
|
|
(call-with-input-file patch port-sha256)))))
|
|
|
|
1+
|
|
|
|
1))
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
|
|
|
|
(define-public bash
|
2018-02-07 12:29:22 +01:00
|
|
|
(let* ((cppflags (string-join '("-DDEFAULT_PATH_VALUE='\"/no-such-path\"'"
|
2013-05-26 22:48:22 +02:00
|
|
|
"-DSTANDARD_UTILS_PATH='\"/no-such-path\"'"
|
|
|
|
"-DNON_INTERACTIVE_LOGIN_SHELLS"
|
|
|
|
"-DSSH_SOURCE_BASHRC")
|
|
|
|
" "))
|
|
|
|
(configure-flags
|
|
|
|
``("--with-installed-readline"
|
|
|
|
,,(string-append "CPPFLAGS=" cppflags)
|
|
|
|
,(string-append
|
|
|
|
"LDFLAGS=-Wl,-rpath -Wl,"
|
|
|
|
(assoc-ref %build-inputs "readline")
|
|
|
|
"/lib"
|
|
|
|
" -Wl,-rpath -Wl,"
|
|
|
|
(assoc-ref %build-inputs "ncurses")
|
|
|
|
"/lib")))
|
2019-01-08 17:18:55 +01:00
|
|
|
(version "5.0"))
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(package
|
|
|
|
(name "bash")
|
|
|
|
(source (origin
|
Remove (guix http) and (guix ftp).
* guix/ftp.scm, guix/http.scm, guix/build/ftp.scm, guix/build/http.scm:
Remove.
* Makefile.am (MODULES): Likewise.
* tests/builders.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gnupg.scm, distro/packages/gperf.scm,
distro/packages/guile.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/lout.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/ncurses.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm: Use
`url-fetch' instead of `http-fetch' and `ftp-fetch'.
* distro/packages/bootstrap.scm: Likewise
(bootstrap-origin): Remove references to `http-fetch' and
`ftp-fetch'.
* guix.scm (%public-modules): Remove `http' and `ftp'; add `download'.
2012-11-13 00:22:44 +01:00
|
|
|
(method url-fetch)
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(uri (string-append
|
distro: Use `mirror://' URLs.
* distro/packages/base.scm, distro/packages/bash.scm,
distro/packages/compression.scm, distro/packages/gawk.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/pth.scm, distro/packages/readline.scm,
distro/packages/recutils.scm: Use `mirror://gnu' URLs.
* distro/packages/gnupg.scm: Use `mirror://gnupg' URLs.
2012-11-12 23:34:03 +01:00
|
|
|
"mirror://gnu/bash/bash-" version ".tar.gz"))
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2019-03-02 21:19:37 +01:00
|
|
|
"0kgvfwqdcd90waczf4gx39xnrxzijhjrzyzv7s8v4w31qqm0za5l"))
|
|
|
|
(patch-flags '("-p0"))
|
|
|
|
(patches %patch-series-5.0)))
|
|
|
|
(version (string-append version "." (number->string (length %patch-series-5.0))))
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(build-system gnu-build-system)
|
2015-03-04 23:21:09 +01:00
|
|
|
|
|
|
|
(outputs '("out"
|
2015-12-15 22:22:59 +01:00
|
|
|
"doc" ;1.7 MiB of HTML and extra files
|
|
|
|
"include")) ;headers used by extensions
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(inputs `(("readline" ,readline)
|
2014-09-28 07:48:58 +02:00
|
|
|
("ncurses" ,ncurses))) ;TODO: add texinfo
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(arguments
|
2013-05-26 22:48:22 +02:00
|
|
|
`(;; When cross-compiling, `configure' incorrectly guesses that job
|
|
|
|
;; control is missing.
|
|
|
|
#:configure-flags ,(if (%current-target-system)
|
|
|
|
`(cons* "bash_cv_job_control_missing=no"
|
|
|
|
,configure-flags)
|
|
|
|
configure-flags)
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
|
|
|
|
;; Bash is reportedly not parallel-safe. See, for instance,
|
|
|
|
;; <http://patches.openembedded.org/patch/32745/> and
|
gnu: Adjust formatting as recommended by 'guix lint'.
* gnu/packages/aidc.scm (barcode, qrencode),
gnu/packages/bash.scm (bash, bash-completion),
gnu/packages/busybox.scm (busybox),
gnu/packages/cdrom.scm (cdparanoia),
gnu/packages/cmake.scm (cmake),
gnu/packages/conkeror.scm (conkeror),
gnu/packages/cook.scm (cook),
gnu/packages/curl.scm (curl),
gnu/packages/docbook.scm (docbook-xsl),
gnu/packages/enlightenment.scm (enlightenment),
gnu/packages/games.scm (abbaye),
gnu/packages/geeqie.scm (exiv2),
gnu/packages/gimp.scm (gegl),
gnu/packages/gl.scm (glu, freeglut, ftgl),
gnu/packages/glib.scm (glib),
gnu/packages/gnome.scm (orbit2, gconf, geocode-glib),
gnu/packages/gstreamer.scm (gstreamer, gst-plugins-base),
gnu/packages/linux.scm (util-linux),
gnu/packages/lisp.scm (gcl, ecl),
gnu/packages/maths.scm (gnuplot, hdf5),
gnu/packages/ssh.scm (dropbear),
gnu/packages/web.scm (json-c): Remove tabulations and trailing
white spaces or reformat to fit within 80 columns.
* gnu/packages/audio.scm (aubio),
gnu/packages/emacs.scm (emacs-s),
gnu/packages/engineering.scm (geda-gaf),
gnu/packages/games.scm (dosbox),
gnu/packages/gnome.scm (gusb),
gnu/packages/gtk.scm (gtk+),
gnu/packages/guile.scm (guile-wisp),
gnu/packages/hurd.scm (hurd-headers),
gnu/packages/wm.scm (i3-wm): Adjust synopsis or description.
2015-11-13 15:50:36 +01:00
|
|
|
;; <http://git.buildroot.net/buildroot/commit/?h=79e2d802a>.
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
#:parallel-build? #f
|
|
|
|
#:parallel-tests? #f
|
|
|
|
|
|
|
|
;; XXX: The tests have a lot of hard-coded paths, so disable them
|
|
|
|
;; for now.
|
|
|
|
#:tests? #f
|
|
|
|
|
2016-09-30 13:23:23 +02:00
|
|
|
#:modules ((srfi srfi-26)
|
2015-10-18 21:40:06 +02:00
|
|
|
(guix build utils)
|
|
|
|
(guix build gnu-build-system))
|
|
|
|
|
2016-09-30 13:23:23 +02:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'install 'install-sh-symlink
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Add a `sh' -> `bash' link.
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(with-directory-excursion (string-append out "/bin")
|
2018-03-16 15:17:40 +01:00
|
|
|
(symlink "bash" "sh")
|
|
|
|
#t))))
|
2016-09-30 13:23:23 +02:00
|
|
|
|
|
|
|
(add-after 'install 'move-development-files
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Move 'Makefile.inc' and 'bash.pc' to "include" to avoid
|
|
|
|
;; circular references among the outputs.
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
(include (assoc-ref outputs "include"))
|
|
|
|
(lib (cut string-append <> "/lib/bash")))
|
|
|
|
(mkdir-p (lib include))
|
|
|
|
(rename-file (string-append (lib out)
|
|
|
|
"/Makefile.inc")
|
|
|
|
(string-append (lib include)
|
|
|
|
"/Makefile.inc"))
|
|
|
|
(rename-file (string-append out "/lib/pkgconfig")
|
|
|
|
(string-append include
|
|
|
|
"/lib/pkgconfig"))
|
2017-01-27 09:50:07 +01:00
|
|
|
|
|
|
|
;; Don't capture the absolute file name of 'install' to avoid
|
|
|
|
;; retaining a dependency on Coreutils.
|
|
|
|
(substitute* (string-append (lib include)
|
|
|
|
"/Makefile.inc")
|
|
|
|
(("^INSTALL =.*")
|
|
|
|
"INSTALL = install -c\n"))
|
2016-09-30 13:23:23 +02:00
|
|
|
#t))))))
|
|
|
|
|
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification ;new in 4.4
|
|
|
|
(variable "BASH_LOADABLES_PATH")
|
|
|
|
(files '("lib/bash")))))
|
|
|
|
|
gnu: Use synopses from the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/gawk.scm,
gnu/packages/gcc.scm,
packages/gcc.scm, b/gnu/packages/gcc.scm,
4b982 100644
s/gcc.scm,
s/gcc.scm,
@@
%standard-phases)))))
`((gcc-libc . ,(assoc-ref inputs "libc"))))
The GNU Compiler Collection")
GNU Compiler Collection")
n
ompiler Collection includes compiler front ends for C, C++,
tran, OpenMP for C/C++/Fortran, Java, and Ada, as well as
gnu/packages/gdb.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/glib.scm,
gnu/packages/global.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mailutils.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm: Use synopses from the Womb.
2013-04-17 18:04:25 +02:00
|
|
|
(synopsis "The GNU Bourne-Again SHell")
|
distro: Split (distro packages base) into several files.
* distro/packages/base.scm (libsigsegv, gawk, perl, m4, gmp, mpfr, mpc,
ncurses, readline, bash, libtool, libunistring, libffi, pkg-config,
libgc): Move to modules of their own.
(guile-1.8, guile-2.0): Move to...
* distro/packages/guile.scm: ... here.
* distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/gawk.scm, distro/packages/libffi.scm,
distro/packages/libsigsegv.scm, distro/packages/libtool.scm,
distro/packages/libunistring.scm, distro/packages/m4.scm,
distro/packages/multiprecision.scm, distro/packages/ncurses.scm,
distro/packages/perl.scm, distro/packages/pkg-config.scm,
distro/packages/readline.scm: New files.
2012-11-04 22:37:22 +01:00
|
|
|
(description
|
2013-12-01 22:33:23 +01:00
|
|
|
"Bash is the shell, or command-line interpreter, of the GNU system. It
|
Synchronize package descriptions with the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/freeipmi.scm,
gnu/packages/gawk.scm,
gnu/packages/gcal.scm,
gnu/packages/gcc.scm,
gnu/packages/gdb.scm,
gnu/packages/gdbm.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/global.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/gv.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/lightning.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mail.scm,
gnu/packages/maths.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/ocrad.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/plotutils.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/unrtf.scm,
gnu/packages/version-control.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm,
gnu/packages/xnee.scm,
gnu/packages/zile.scm: Change value of the 'description' field to that
of the Womb.
2013-10-09 16:14:23 +02:00
|
|
|
is compatible with the Bourne Shell, but it also integrates useful features
|
|
|
|
from the Korn Shell and the C Shell and new improvements of its own. It
|
2013-12-01 22:33:23 +01:00
|
|
|
allows command-line editing, unlimited command history, shell functions and
|
Synchronize package descriptions with the Womb.
* gnu/packages/algebra.scm,
gnu/packages/aspell.scm,
gnu/packages/autotools.scm,
gnu/packages/base.scm,
gnu/packages/bash.scm,
gnu/packages/bison.scm,
gnu/packages/cdrom.scm,
gnu/packages/cflow.scm,
gnu/packages/compression.scm,
gnu/packages/cpio.scm,
gnu/packages/cppi.scm,
gnu/packages/ddrescue.scm,
gnu/packages/dejagnu.scm,
gnu/packages/ed.scm,
gnu/packages/emacs.scm,
gnu/packages/fdisk.scm,
gnu/packages/freeipmi.scm,
gnu/packages/gawk.scm,
gnu/packages/gcal.scm,
gnu/packages/gcc.scm,
gnu/packages/gdb.scm,
gnu/packages/gdbm.scm,
gnu/packages/gettext.scm,
gnu/packages/ghostscript.scm,
gnu/packages/global.scm,
gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnutls.scm,
gnu/packages/gperf.scm,
gnu/packages/gprolog.scm,
gnu/packages/groff.scm,
gnu/packages/grub.scm,
gnu/packages/gsasl.scm,
gnu/packages/guile.scm,
gnu/packages/gv.scm,
gnu/packages/help2man.scm,
gnu/packages/idutils.scm,
gnu/packages/indent.scm,
gnu/packages/less.scm,
gnu/packages/libidn.scm,
gnu/packages/libsigsegv.scm,
gnu/packages/libunistring.scm,
gnu/packages/lightning.scm,
gnu/packages/linux.scm,
gnu/packages/lsh.scm,
gnu/packages/m4.scm,
gnu/packages/mail.scm,
gnu/packages/maths.scm,
gnu/packages/multiprecision.scm,
gnu/packages/nano.scm,
gnu/packages/ncurses.scm,
gnu/packages/nettle.scm,
gnu/packages/ocrad.scm,
gnu/packages/oggvorbis.scm,
gnu/packages/parted.scm,
gnu/packages/plotutils.scm,
gnu/packages/pth.scm,
gnu/packages/readline.scm,
gnu/packages/recutils.scm,
gnu/packages/rush.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/shishi.scm,
gnu/packages/smalltalk.scm,
gnu/packages/system.scm,
gnu/packages/texinfo.scm,
gnu/packages/time.scm,
gnu/packages/unrtf.scm,
gnu/packages/version-control.scm,
gnu/packages/wdiff.scm,
gnu/packages/wget.scm,
gnu/packages/which.scm,
gnu/packages/xnee.scm,
gnu/packages/zile.scm: Change value of the 'description' field to that
of the Womb.
2013-10-09 16:14:23 +02:00
|
|
|
aliases, and job control while still allowing most sh scripts to be run
|
|
|
|
without modification.")
|
distro: Use (guix licenses) instead of strings.
* distro/packages/acl.scm, distro/packages/attr.scm,
distro/packages/autotools.scm, distro/packages/base.scm,
distro/packages/bash.scm, distro/packages/bdw-gc.scm,
distro/packages/bison.scm, distro/packages/bootstrap.scm,
distro/packages/compression.scm, distro/packages/cpio.scm,
distro/packages/ddrescue.scm, distro/packages/ed.scm,
distro/packages/flex.scm, distro/packages/gawk.scm,
distro/packages/gdbm.scm, distro/packages/gettext.scm,
distro/packages/gnupg.scm, distro/packages/gnutls.scm,
distro/packages/gperf.scm, distro/packages/guile.scm,
distro/packages/help2man.scm, distro/packages/less.scm,
distro/packages/libffi.scm, distro/packages/libsigsegv.scm,
distro/packages/libunistring.scm, distro/packages/linux.scm,
distro/packages/lout.scm, distro/packages/lsh.scm,
distro/packages/m4.scm, distro/packages/multiprecision.scm,
distro/packages/nano.scm, distro/packages/ncurses.scm,
distro/packages/nettle.scm, distro/packages/perl.scm,
distro/packages/pkg-config.scm, distro/packages/pth.scm,
distro/packages/readline.scm, distro/packages/recutils.scm,
distro/packages/shishi.scm, distro/packages/system.scm,
distro/packages/texinfo.scm, distro/packages/time.scm,
distro/packages/wget.scm, distro/packages/which.scm,
distro/packages/zile.scm: Use (guix licenses).
2012-12-14 16:14:04 +01:00
|
|
|
(license gpl3+)
|
2017-03-30 00:48:16 +02:00
|
|
|
(home-page "https://www.gnu.org/software/bash/"))))
|
2013-01-01 16:54:45 +01:00
|
|
|
|
2015-09-03 10:12:28 +02:00
|
|
|
(define-public bash-minimal
|
2013-01-01 16:54:45 +01:00
|
|
|
;; A stripped-down Bash for non-interactive use.
|
|
|
|
(package (inherit bash)
|
2015-09-03 10:12:28 +02:00
|
|
|
(name "bash-minimal")
|
2013-01-01 16:54:45 +01:00
|
|
|
(inputs '()) ; no readline, no curses
|
2016-10-13 13:01:37 +02:00
|
|
|
|
|
|
|
;; No "include" output because there's no support for loadable modules.
|
|
|
|
(outputs (delete "include" (package-outputs bash)))
|
|
|
|
|
2013-01-01 16:54:45 +01:00
|
|
|
(arguments
|
2017-06-02 15:22:03 +02:00
|
|
|
(substitute-keyword-arguments (package-arguments bash)
|
|
|
|
((#:modules _ '())
|
|
|
|
'((guix build gnu-build-system)
|
|
|
|
(guix build utils)
|
|
|
|
(srfi srfi-1)
|
|
|
|
(srfi srfi-26)))
|
|
|
|
((#:configure-flags flags '())
|
|
|
|
`(list "--without-bash-malloc"
|
|
|
|
"--disable-readline"
|
|
|
|
"--disable-history"
|
|
|
|
"--disable-help-builtin"
|
|
|
|
"--disable-progcomp"
|
|
|
|
"--disable-net-redirections"
|
|
|
|
"--disable-nls"
|
|
|
|
|
|
|
|
;; Pretend 'dlopen' is missing so we don't build loadable
|
|
|
|
;; modules and related code.
|
|
|
|
"ac_cv_func_dlopen=no"
|
|
|
|
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
'("bash_cv_job_control_missing=no"
|
|
|
|
"bash_cv_getcwd_malloc=yes")
|
|
|
|
'())))
|
|
|
|
((#:phases phases)
|
|
|
|
`(modify-phases ,phases
|
|
|
|
;; No loadable modules.
|
|
|
|
(delete 'move-development-files)))))))
|
2015-03-03 22:58:06 +01:00
|
|
|
|
2015-08-19 14:40:59 +02:00
|
|
|
(define-public static-bash
|
|
|
|
;; Statically-linked Bash that contains nothing but the 'bash' binary and
|
|
|
|
;; 'sh' symlink, without any reference.
|
2015-09-03 10:12:28 +02:00
|
|
|
(let ((bash (static-package bash-minimal)))
|
2015-08-19 14:40:59 +02:00
|
|
|
(package
|
|
|
|
(inherit bash)
|
|
|
|
(name "bash-static")
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments
|
|
|
|
`(#:allowed-references ("out") ,@(package-arguments bash))
|
|
|
|
((#:phases phases)
|
2016-09-30 16:59:51 +02:00
|
|
|
`(modify-phases ,phases
|
|
|
|
(add-after 'strip 'remove-everything-but-the-binary
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
(remove-store-references (string-append bin "/bash"))
|
|
|
|
(delete-file (string-append bin "/bashbug"))
|
|
|
|
(delete-file-recursively (string-append out "/share"))
|
2016-10-02 15:16:21 +02:00
|
|
|
#t))))))))))
|
2015-08-19 14:40:59 +02:00
|
|
|
|
2015-03-03 22:58:06 +01:00
|
|
|
(define-public bash-completion
|
|
|
|
(package
|
|
|
|
(name "bash-completion")
|
2018-03-19 14:43:23 +01:00
|
|
|
(version "2.8")
|
2015-03-03 22:58:06 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2016-08-07 12:02:27 +02:00
|
|
|
"https://github.com/scop/" name "/releases/download/"
|
|
|
|
version "/" name "-" version ".tar.xz"))
|
2015-03-03 22:58:06 +01:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-03-19 14:43:23 +01:00
|
|
|
"0kgmflrr1ga9wfk770vmakna3nj46ylb5ky9ipd0v2k9ymq5a7y0"))
|
2015-03-12 22:08:04 +01:00
|
|
|
(patches
|
2016-04-08 14:18:13 +02:00
|
|
|
(search-patches "bash-completion-directories.patch"))))
|
2015-03-03 22:58:06 +01:00
|
|
|
(build-system gnu-build-system)
|
2015-04-19 22:46:10 +02:00
|
|
|
(native-inputs `(("util-linux" ,util-linux)))
|
|
|
|
(arguments
|
2016-08-07 11:49:57 +02:00
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
(add-after
|
|
|
|
'install 'remove-redundant-completions
|
2019-03-06 10:24:15 +01:00
|
|
|
(lambda* (#:key
|
|
|
|
inputs native-inputs
|
|
|
|
outputs #:allow-other-keys)
|
2016-08-07 11:49:57 +02:00
|
|
|
;; Util-linux comes with a bunch of completion files for
|
|
|
|
;; its own commands which are more sophisticated and
|
|
|
|
;; up-to-date than those of bash-completion. Remove those
|
|
|
|
;; from bash-completion.
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
2019-03-06 10:24:15 +01:00
|
|
|
(util-linux (assoc-ref (or native-inputs inputs)
|
|
|
|
"util-linux"))
|
2016-08-07 11:49:57 +02:00
|
|
|
(completions (string-append out
|
|
|
|
"/share/bash-completion"
|
|
|
|
"/completions"))
|
|
|
|
(already (find-files
|
|
|
|
(string-append
|
|
|
|
util-linux
|
|
|
|
"/etc/bash_completion.d"))))
|
|
|
|
(with-directory-excursion completions
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(when (file-exists? file)
|
|
|
|
(delete-file file)))
|
|
|
|
(map basename already)))
|
|
|
|
#t))))))
|
2015-03-03 22:58:06 +01:00
|
|
|
(synopsis "Bash completions for common commands")
|
|
|
|
(description
|
|
|
|
"This package provides extensions that allow Bash to provide adapted
|
|
|
|
completion for many common commands.")
|
2016-10-10 10:58:11 +02:00
|
|
|
(home-page "https://github.com/scop/bash-completion")
|
2015-03-03 22:58:06 +01:00
|
|
|
(license gpl2+)))
|
2016-05-07 19:12:42 +02:00
|
|
|
|
|
|
|
(define-public bash-tap
|
|
|
|
(package
|
|
|
|
(name "bash-tap")
|
|
|
|
(version "1.0.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://github.com/illusori/bash-tap/"
|
|
|
|
"archive/" version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0qs1qi38bl3ns4mpagcawv618dsk2q1lgrbddgvs0wl3ia12cyz5"))))
|
|
|
|
;; There is no compilation process to use this package, however, the bash
|
|
|
|
;; scripts installed by this package start with "#!/bin/bash". To fix
|
|
|
|
;; these lines, we use the patch-shebangs of the GNU build system. The
|
|
|
|
;; project does not use a Makefile.
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:tests? #f ; There is no test suite.
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
;; Because there are no configure scripts or Makefile, we can
|
|
|
|
;; remove these phases.
|
|
|
|
(delete 'configure)
|
|
|
|
(delete 'build)
|
|
|
|
;; The installation involves manually copying the files to a location.
|
|
|
|
;; To make them easily accessible by setting PATH, we add the scripts
|
|
|
|
;; to the "bin" folder.
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((bin (string-append (assoc-ref outputs "out") "/bin")))
|
|
|
|
(install-file "bash-tap" bin)
|
|
|
|
(install-file "bash-tap-bootstrap" bin)
|
|
|
|
(install-file "bash-tap-mock" bin)))))))
|
|
|
|
(home-page "http://www.illusori.co.uk/projects/bash-tap/")
|
|
|
|
(synopsis "Bash port of a Test::More/Test::Builder-style TAP-compliant
|
|
|
|
test library")
|
|
|
|
(description "Bash TAP is a TAP-compliant Test::More-style testing library
|
|
|
|
for Bash shell scripts and functions. Along with the Test::More-style testing
|
|
|
|
helpers it provides helper functions for mocking commands and in-process output
|
|
|
|
capturing.")
|
|
|
|
(license expat)))
|