2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2019-06-06 16:52:15 +02:00
|
|
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
2019-02-01 21:41:31 +01:00
|
|
|
;;; Copyright © 2014, 2019 Andreas Enge <andreas@enge.fr>
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
2018-03-16 06:14:02 +01:00
|
|
|
;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
|
2014-12-05 13:59:00 +01:00
|
|
|
;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
|
2014-09-27 19:07:19 +02:00
|
|
|
;;; Copyright © 2014, 2015 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
2019-02-01 21:41:31 +01:00
|
|
|
;;; Copyright © 2016, 2017, 2019 Efraim Flashner <efraim@flashner.co.il>
|
2016-05-03 18:48:40 +02:00
|
|
|
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
|
2018-02-01 16:03:55 +01:00
|
|
|
;;; Copyright © 2016, 2018 Alex Vong <alexvong1995@gmail.com>
|
2017-02-22 06:21:49 +01:00
|
|
|
;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
|
2017-04-17 12:18:28 +02:00
|
|
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
2018-06-12 00:05:18 +02:00
|
|
|
;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
|
2017-10-30 17:23:46 +01:00
|
|
|
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
|
2018-02-20 04:16:00 +01:00
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-01-17 12:55:53 +01:00
|
|
|
;;; Copyright © 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
|
2012-06-28 01:24:34 +02:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; This file is part of GNU Guix.
|
2012-06-28 01:24:34 +02:00
|
|
|
;;;
|
2013-01-06 00:47:50 +01:00
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-06-28 01:24:34 +02: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
|
2012-06-28 01:24:34 +02: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/>.
|
2012-06-28 01:24:34 +02:00
|
|
|
|
2013-01-18 01:06:24 +01:00
|
|
|
(define-module (gnu packages base)
|
2013-04-20 17:47:59 +02:00
|
|
|
#:use-module ((guix licenses)
|
2016-05-03 18:48:40 +02:00
|
|
|
#:select (gpl3+ lgpl2.0+ lgpl3+ public-domain))
|
2013-01-18 01:06:47 +01:00
|
|
|
#:use-module (gnu packages)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages acl)
|
2019-02-01 21:41:31 +01:00
|
|
|
#:use-module (gnu packages algebra)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages bash)
|
2018-03-15 21:08:37 +01:00
|
|
|
#:use-module (gnu packages bison)
|
2014-08-28 21:34:17 +02:00
|
|
|
#:use-module (gnu packages ed)
|
2019-02-01 21:41:31 +01:00
|
|
|
#:use-module (gnu packages gcc)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages guile)
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2015-02-25 13:58:15 +01:00
|
|
|
#:use-module (gnu packages compression)
|
2013-01-18 01:06:24 +01:00
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
#:use-module (gnu packages linux)
|
2018-01-11 17:56:05 +01:00
|
|
|
#:use-module (gnu packages pcre)
|
2014-01-07 18:08:51 +01:00
|
|
|
#:use-module (gnu packages texinfo)
|
2014-09-27 19:07:19 +02:00
|
|
|
#:use-module (gnu packages hurd)
|
2014-01-07 18:10:01 +01:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2015-04-23 03:48:20 +02:00
|
|
|
#:use-module (gnu packages gettext)
|
2015-02-11 11:19:29 +01:00
|
|
|
#:use-module (guix utils)
|
2012-06-28 01:24:34 +02: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)
|
2014-09-27 19:07:19 +02:00
|
|
|
#:use-module (guix git-download)
|
2015-02-25 13:58:15 +01:00
|
|
|
#:use-module (guix build-system gnu)
|
2016-06-06 16:21:51 +02:00
|
|
|
#:use-module (guix build-system trivial)
|
|
|
|
#:use-module (ice-9 match)
|
2019-02-01 21:41:31 +01:00
|
|
|
#:use-module (srfi srfi-1)
|
|
|
|
#:use-module (srfi srfi-26)
|
2016-05-03 18:49:33 +02:00
|
|
|
#:export (glibc
|
|
|
|
libiconv-if-needed))
|
2012-06-28 01:24:34 +02:00
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;;;
|
distro: Add the `guile', `typesetting', and `databases' package modules.
* distro.scm (package-files): Adjust PREFIX-LEN to use the top-level
directory, not %DISTRO-MODULE-DIRECTORY.
* distro/packages/base.scm (guile-reader, guile-reader/guile-1.8,
guile-reader/guile-2.0, lout, recutils): Move to...
* distro/packages/guile.scm, distro/packages/typesetting.scm,
distro/packages/databases.scm: ... here. New files.
* Makefile.am (MODULES): Add them.
(EXTRA_DIST): Add `.dir-locals.el'.
* .dir-locals.el: New file, with settings formerly in `base.scm'.
2012-09-26 22:17:41 +02:00
|
|
|
;;; Base packages of the Guix-based GNU user-land software distribution.
|
2012-06-28 01:24:34 +02:00
|
|
|
;;;
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(define-public hello
|
|
|
|
(package
|
2015-09-13 22:26:37 +02:00
|
|
|
(name "hello")
|
|
|
|
(version "2.10")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/hello/hello-" version
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(synopsis "Hello, GNU world: An example GNU package")
|
|
|
|
(description
|
|
|
|
"GNU Hello prints the message \"Hello, world!\" and then exits. 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
|
|
|
serves as an example of standard GNU coding practices. As such, it supports
|
|
|
|
command-line arguments, multiple languages, and so on.")
|
2017-03-30 00:48:16 +02:00
|
|
|
(home-page "https://www.gnu.org/software/hello/")
|
2015-09-13 22:26:37 +02:00
|
|
|
(license gpl3+)))
|
2012-07-06 00:55:07 +02:00
|
|
|
|
2012-08-22 15:22:38 +02:00
|
|
|
(define-public grep
|
|
|
|
(package
|
|
|
|
(name "grep")
|
2017-08-30 06:21:38 +02:00
|
|
|
(version "3.1")
|
2012-08-22 15:22:38 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/grep/grep-"
|
2012-08-22 15:22:38 +02:00
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-08-30 06:21:38 +02:00
|
|
|
"0zm0ywmyz9g8vn1plw14mn8kj74yipx5qsljndbyfgmvndx5qqnv"))
|
|
|
|
(patches (search-patches "grep-timing-sensitive-test.patch"))))
|
2012-08-22 15:22:38 +02:00
|
|
|
(build-system gnu-build-system)
|
2015-12-15 18:03:29 +01:00
|
|
|
(native-inputs `(("perl" ,perl))) ;some of the tests require it
|
2018-01-11 17:56:05 +01:00
|
|
|
(inputs `(("pcre" ,pcre)))
|
2016-08-21 03:40:59 +02:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
2018-08-24 16:37:50 +02:00
|
|
|
(add-before 'check 'disable-failing-tests
|
|
|
|
(lambda _
|
|
|
|
;; These tests are expected to fail due to a glibc bug which has
|
|
|
|
;; been fixed in 2.28, so they are unexpectedly passing. They
|
|
|
|
;; should be fixed for grep versions > 3.1.
|
|
|
|
(substitute* "tests/Makefile.in"
|
|
|
|
(("^[[:blank:]]+backref-alt[[:blank:]]+\\\\") "\\")
|
|
|
|
(("^[[:blank:]]+triple-backref[[:blank:]]+\\\\") "\\"))
|
|
|
|
#t))
|
2016-08-21 03:40:59 +02:00
|
|
|
(add-after 'install 'fix-egrep-and-fgrep
|
|
|
|
;; Patch 'egrep' and 'fgrep' to execute 'grep' via its
|
|
|
|
;; absolute file name instead of searching for it in $PATH.
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin")))
|
|
|
|
(substitute* (list (string-append bin "/egrep")
|
|
|
|
(string-append bin "/fgrep"))
|
|
|
|
(("^exec grep")
|
|
|
|
(string-append "exec " bin "/grep")))
|
|
|
|
#t))))))
|
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 "Print lines matching a pattern")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
2014-11-05 23:23:38 +01:00
|
|
|
"grep is a tool for finding text inside files. Text is found by
|
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
|
|
|
matching a pattern provided by the user in one or many files. The pattern
|
2013-12-01 22:33:23 +01:00
|
|
|
may be provided as a basic or extended regular expression, or as fixed
|
|
|
|
strings. By default, the matching text is simply printed to the screen,
|
|
|
|
however the output can be greatly customized to include, for example, line
|
|
|
|
numbers. GNU grep offers many extensions over the standard utility,
|
|
|
|
including, for example, recursive directory searching.")
|
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/grep/")))
|
2012-08-22 15:22:38 +02:00
|
|
|
|
2012-08-22 15:11:12 +02:00
|
|
|
(define-public sed
|
|
|
|
(package
|
|
|
|
(name "sed")
|
2018-04-01 18:38:58 +02:00
|
|
|
(version "4.5")
|
2012-08-22 15:11:12 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/sed/sed-" version
|
2017-01-04 16:47:48 +01:00
|
|
|
".tar.xz"))
|
2012-08-22 15:11:12 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-04-01 18:38:58 +02:00
|
|
|
"0h3b2jfj57wmz680vkbyavlsrkak556qhvs7m7fdlawwhg477bbs"))))
|
2012-08-22 15:11:12 +02:00
|
|
|
(build-system gnu-build-system)
|
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 "Stream editor")
|
2013-01-02 01:01:58 +01:00
|
|
|
(arguments
|
2017-01-21 22:37:06 +01:00
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
2017-01-22 13:10:56 +01:00
|
|
|
(add-after 'unpack 'dont-rebuild-sed.1
|
|
|
|
(lambda _
|
|
|
|
;; Make sure we do not attempt to rebuild 'doc/sed.1', which does
|
|
|
|
;; not work when cross-compiling because we cannot run 'sed'.
|
|
|
|
;; This is fixed upstream as commit a0a25e3.
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
(("^doc/sed\\.1:.*")
|
|
|
|
"doc/sed.1:\n"))
|
2017-01-21 22:37:06 +01:00
|
|
|
#t)))))
|
2018-04-01 18:38:58 +02:00
|
|
|
(native-inputs
|
|
|
|
`(("perl" ,perl))) ;for tests
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
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
|
|
|
"Sed is a non-interactive, text stream editor. It receives a text
|
|
|
|
input from a file or from standard input and it then applies a series of text
|
|
|
|
editing commands to the stream and prints its output to standard output. It
|
2013-12-01 22:33:23 +01:00
|
|
|
is often used for substituting text patterns in a stream. The GNU
|
|
|
|
implementation offers several extensions over the standard utility.")
|
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-01-04 16:47:48 +01:00
|
|
|
(home-page "https://www.gnu.org/software/sed/")))
|
2012-08-22 15:11:12 +02:00
|
|
|
|
2012-08-22 15:21:50 +02:00
|
|
|
(define-public tar
|
|
|
|
(package
|
|
|
|
(name "tar")
|
2018-02-01 16:03:55 +01:00
|
|
|
(version "1.30")
|
2012-08-22 15:21:50 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/tar/tar-"
|
2014-08-04 02:05:55 +02:00
|
|
|
version ".tar.xz"))
|
2012-08-22 15:21:50 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-02-01 16:03:55 +01:00
|
|
|
"1lyjyk8z8hdddsxw0ikchrsfg3i0x3fsh7l63a8jgaz1n7dr5gzi"))
|
2018-01-10 03:09:22 +01:00
|
|
|
(patches (search-patches "tar-skip-unreliable-tests.patch"
|
|
|
|
"tar-remove-wholesparse-check.patch"))))
|
2012-08-22 15:21:50 +02:00
|
|
|
(build-system gnu-build-system)
|
2016-05-17 10:46:26 +02:00
|
|
|
;; Note: test suite requires ~1GiB of disk space.
|
|
|
|
(arguments
|
2018-04-22 22:39:49 +02:00
|
|
|
`(#:phases (modify-phases %standard-phases
|
2016-05-17 10:46:26 +02:00
|
|
|
(add-before 'build 'set-shell-file-name
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Do not use "/bin/sh" to run programs.
|
|
|
|
(let ((bash (assoc-ref inputs "bash")))
|
|
|
|
(substitute* "src/system.c"
|
|
|
|
(("/bin/sh")
|
|
|
|
(string-append bash "/bin/sh")))
|
2018-02-25 01:03:52 +01:00
|
|
|
#t))))
|
|
|
|
|
2018-04-22 22:39:49 +02:00
|
|
|
;; Work around a cross-compilation bug whereby libgnu.a would provide
|
|
|
|
;; '__mktime_internal', which conflicts with the one in libc.a.
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
`(#:configure-flags '("gl_cv_func_working_mktime=yes"))
|
|
|
|
'())
|
|
|
|
|
2018-02-25 01:03:52 +01:00
|
|
|
;; Test #92 "link mismatch" expects "a/z: Not linked to a/y" but gets
|
|
|
|
;; "a/y: Not linked to a/z" and fails, presumably due to differences in
|
|
|
|
;; the order in which 'diff' traverses directories. That leads to a
|
|
|
|
;; test failure even though conceptually the test passes. Skip it.
|
2018-04-06 15:22:24 +02:00
|
|
|
;; Test 117 and 118 are prone to race conditions too, particularly
|
|
|
|
;; when cross-compiling, so we skip those as well. All issues have
|
|
|
|
;; been fixed upstream in these commits:
|
|
|
|
;; <https://git.savannah.gnu.org/cgit/tar.git/commit/?id=847a36f>
|
|
|
|
;; <https://git.savannah.gnu.org/cgit/tar.git/commit/?id=64b43fd>
|
|
|
|
#:make-flags (list (string-append
|
|
|
|
"TESTSUITEFLAGS= -k '!link mismatch,"
|
|
|
|
"!directory removed before reading,"
|
|
|
|
"!explicitly named directory removed before reading'"))))
|
2016-06-10 11:25:09 +02:00
|
|
|
|
|
|
|
;; When cross-compiling, the 'set-shell-file-name' phase needs to be able
|
|
|
|
;; to refer to the target Bash.
|
|
|
|
(inputs (if (%current-target-system)
|
|
|
|
`(("bash" ,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 "Managing tar archives")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
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
|
|
|
"Tar provides the ability to create tar archives, as well as the
|
|
|
|
ability to extract, update or list files in an existing archive. It is
|
|
|
|
useful for combining many files into one larger file, while maintaining
|
|
|
|
directory structure and file information such as permissions and
|
2013-12-01 22:33:23 +01:00
|
|
|
creation/modification dates. GNU tar offers many extensions over the
|
|
|
|
standard utility.")
|
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/tar/")))
|
2012-08-22 15:21:50 +02:00
|
|
|
|
2012-08-22 17:24:38 +02:00
|
|
|
(define-public patch
|
|
|
|
(package
|
|
|
|
(name "patch")
|
2018-03-14 22:00:05 +01:00
|
|
|
(version "2.7.6")
|
2015-02-11 11:23:46 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/patch/patch-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-03-14 22:00:05 +01:00
|
|
|
"1zfqy4rdcy279vwn2z1kbv19dcfw25d2aqy9nzvdkq5bjzd0nqdc"))
|
2016-04-08 14:18:13 +02:00
|
|
|
(patches (search-patches "patch-hurd-path-max.patch"))))
|
2012-08-22 17:24:38 +02:00
|
|
|
(build-system gnu-build-system)
|
2018-04-22 22:16:36 +02:00
|
|
|
(arguments
|
|
|
|
;; Work around a cross-compilation bug whereby libpatch.a would provide
|
|
|
|
;; '__mktime_internal', which conflicts with the one in libc.a.
|
|
|
|
(if (%current-target-system)
|
|
|
|
`(#:configure-flags '("gl_cv_func_working_mktime=yes"))
|
|
|
|
'()))
|
gnu: Fix misplaced commas (unquote).
Fix many occurrences of comma (unquote) being placed immediately after the
previous list item, e.g. ("ncurses", ncurses) in the inputs.
* gnu/packages/base.scm (patch, gnu-make),
gnu/packages/bioinformatics.scm (hmmer),
gnu/packages/bittorrent.scm (aria2),
gnu/packages/compression.scm (pbzip2),
gnu/packages/databases.scm (recutils),
gnu/packages/fonts.scm (font-terminus),
gnu/packages/freedesktop.scm (xdg-utils, elogind),
gnu/packages/games.scm (gnujump),
gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit),
gnu/packages/gnunet.scm (gnunet),
gnu/packages/gnuzilla.scm (mozjs, nspr),
gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf),
gnu/packages/lua.scm (lua),
gnu/packages/openstack.scm (python-swiftclient),
gnu/packages/perl.scm (perl-json-any),
gnu/packages/polkit.scm (polkit-qt),
gnu/packages/python.scm (wrap-python3, python-oauthlib)
(python-mccabe-0.2.1, python-contextlib2, python2-rauth),
gnu/packages/qt.scm (qtkeychain),
gnu/packages/ruby.scm (ruby-nokogiri),
gnu/packages/screen.scm (screen),
gnu/packages/ssh.scm (libssh),
gnu/packages/video.scm (ffmpeg, mplayer),
gnu/packages/vim.scm (vim),
gnu/packages/xdisorg.scm (redshift),
gnu/packages/xfce.scm (xfce4-panel, xfce4-settings),
gnu/packages/xnee.scm (xnee),
gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi),
gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote).
2016-02-27 14:37:28 +01:00
|
|
|
(native-inputs `(("ed" ,ed)))
|
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 "Apply differences to originals, with optional backups")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
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
|
|
|
"Patch is a program that applies changes to files based on differences
|
2013-12-01 22:33:23 +01:00
|
|
|
laid out as by the program \"diff\". The changes may be applied to one or more
|
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
|
|
|
files depending on the contents of the diff file. It accepts several
|
|
|
|
different diff formats. It may also be used to revert previously applied
|
|
|
|
differences.")
|
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://savannah.gnu.org/projects/patch/")))
|
2012-08-22 17:24:38 +02:00
|
|
|
|
2012-08-22 17:24:38 +02:00
|
|
|
(define-public diffutils
|
|
|
|
(package
|
|
|
|
(name "diffutils")
|
2017-05-24 04:27:10 +02:00
|
|
|
(version "3.6")
|
2012-08-22 17:24:38 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/diffutils/diffutils-"
|
2012-08-22 17:24:38 +02:00
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-12-20 23:19:31 +01:00
|
|
|
"1mivg0fy3a6fcn535ln8nkgfj6vxh5hsxxs5h6692wxmsjyyh8fn"))
|
|
|
|
(patches (search-patches "diffutils-getopt.patch"))))
|
2012-08-22 17:24:38 +02:00
|
|
|
(build-system gnu-build-system)
|
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 "Comparing and merging files")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
2013-12-01 22:33:23 +01:00
|
|
|
"GNU Diffutils is a package containing tools for finding the
|
|
|
|
differences between files. The \"diff\" command is used to show how two files
|
gnu packages: Clean up synopses and descriptions.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bittorrent.scm,
gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/databases.scm, gnu/packages/enchant.scm,
gnu/packages/firmware.scm, gnu/packages/fonts.scm,
gnu/packages/freedesktop.scm, gnu/packages/games.scm, gnu/packages/gd.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gsasl.scm,
gnu/packages/gstreamer.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm,
gnu/packages/haskell.scm, gnu/packages/language.scm,
gnu/packages/lesstif.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/llvm.scm, gnu/packages/maths.scm,
gnu/packages/mcrypt.scm, gnu/packages/mit-krb5.scm, gnu/packages/mp3.scm,
gnu/packages/ncdu.scm, gnu/packages/networking.scm, gnu/packages/ntp.scm,
gnu/packages/ocaml.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/pretty-print.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python.scm,
gnu/packages/rdesktop.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm,
gnu/packages/slang.scm, gnu/packages/slim.scm, gnu/packages/telephony.scm,
gnu/packages/tls.scm, gnu/packages/tmux.scm, gnu/packages/tre.scm,
gnu/packages/unrtf.scm, gnu/packages/version-control.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wget.scm,
gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xiph.scm:
Fix typos. Trim long lines. Add missing periods in the end of sentences.
Use double spaces between sentences. Remove trailing whitespaces.
2015-07-17 14:16:07 +02:00
|
|
|
differ, while \"cmp\" shows the offsets and line numbers where they differ.
|
2013-12-01 22:33:23 +01:00
|
|
|
\"diff3\" allows you to compare three files. Finally, \"sdiff\" offers an
|
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
|
|
|
interactive means to merge two files.")
|
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/diffutils/")))
|
2012-08-22 17:24:38 +02:00
|
|
|
|
2012-08-22 15:51:17 +02:00
|
|
|
(define-public findutils
|
|
|
|
(package
|
|
|
|
(name "findutils")
|
2016-01-01 00:55:24 +01:00
|
|
|
(version "4.6.0")
|
2012-08-22 15:51:17 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/findutils/findutils-"
|
2012-08-22 15:51:17 +02:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-01-01 00:55:24 +01:00
|
|
|
"178nn4dl7wbcw499czikirnkniwnx36argdnqgz4ik9i6zvwkm6y"))
|
2017-04-17 12:18:28 +02:00
|
|
|
(patches (search-patches
|
2018-08-24 17:24:51 +02:00
|
|
|
"findutils-gnulib-libio.patch"
|
2017-04-17 12:18:28 +02:00
|
|
|
"findutils-localstatedir.patch"
|
2018-08-24 17:24:51 +02:00
|
|
|
"findutils-makedev.patch"
|
2017-10-30 17:23:46 +01:00
|
|
|
"findutils-test-xargs.patch"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; The gnulib test-lock test is prone to writer starvation
|
|
|
|
;; with our glibc@2.25, which prefers readers, so disable it.
|
|
|
|
;; The gnulib commit b20e8afb0b2 should fix this once
|
|
|
|
;; incorporated here.
|
|
|
|
(substitute* "tests/Makefile.in"
|
|
|
|
(("test-lock\\$\\(EXEEXT\\) ") ""))
|
|
|
|
#t))))
|
2012-08-22 15:51:17 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
2015-06-04 12:49:43 +02:00
|
|
|
`(#:configure-flags (list
|
|
|
|
;; Tell 'updatedb' to write to /var.
|
|
|
|
"--localstatedir=/var"
|
|
|
|
|
|
|
|
;; Work around cross-compilation failure. See
|
|
|
|
;; <http://savannah.gnu.org/bugs/?27299#comment1>.
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
'("gl_cv_func_wcwidth_works=yes")
|
|
|
|
'()))))
|
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 "Operating on files matching given criteria")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
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
|
|
|
"Findutils supplies the basic file directory searching utilities of the
|
|
|
|
GNU system. It consists of two primary searching utilities: \"find\"
|
|
|
|
recursively searches for files in a directory according to given criteria and
|
|
|
|
\"locate\" lists files in a database that match a query. Two auxiliary tools
|
2013-12-01 22:33:23 +01:00
|
|
|
are included: \"updatedb\" updates the file name database and \"xargs\" may be
|
|
|
|
used to apply commands with arbitrarily long arguments.")
|
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/findutils/")))
|
2012-08-22 17:24:38 +02:00
|
|
|
|
|
|
|
(define-public coreutils
|
|
|
|
(package
|
|
|
|
(name "coreutils")
|
2018-08-24 16:14:07 +02:00
|
|
|
(version "8.30")
|
2012-08-22 17:24:38 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/coreutils/coreutils-"
|
2012-08-22 17:24:38 +02:00
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-08-24 16:14:07 +02:00
|
|
|
"0mxhw43d4wpqmvg0l4znk1vm10fy92biyh90lzdnqjcic2lb6cg8"))))
|
2012-08-22 17:24:38 +02:00
|
|
|
(build-system gnu-build-system)
|
2013-05-25 16:24:21 +02:00
|
|
|
(inputs `(("acl" ,acl) ; TODO: add SELinux
|
2015-09-02 11:20:48 +02:00
|
|
|
("gmp" ,gmp) ;bignums in 'expr', yay!
|
2015-09-04 11:56:51 +02:00
|
|
|
|
|
|
|
;; Drop the dependency on libcap when cross-compiling since it's
|
|
|
|
;; not quite cross-compilable.
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
'()
|
|
|
|
`(("libcap" ,libcap))))) ;capability support is 'ls', etc.
|
2014-02-06 12:17:16 +01:00
|
|
|
(native-inputs
|
|
|
|
;; Perl is needed to run tests in native builds, and to run the bundled
|
2014-02-10 18:27:42 +01:00
|
|
|
;; copy of help2man. However, don't pass it when cross-compiling since
|
|
|
|
;; that would lead it to try to run programs to get their '--help' output
|
|
|
|
;; for help2man.
|
2017-04-08 23:20:54 +02:00
|
|
|
(if (%current-target-system)
|
|
|
|
'()
|
|
|
|
`(("perl" ,perl))))
|
2013-07-03 23:55:04 +02:00
|
|
|
(outputs '("out" "debug"))
|
2012-08-22 17:24:38 +02:00
|
|
|
(arguments
|
2013-01-02 22:44:58 +01:00
|
|
|
`(#:parallel-build? #f ; help2man may be called too early
|
2017-10-07 20:33:58 +02:00
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
(add-before 'build 'patch-shell-references
|
|
|
|
(lambda _
|
|
|
|
;; 'split' uses either $SHELL or /bin/sh. Set $SHELL so
|
|
|
|
;; that tests pass, since /bin/sh isn't in the chroot.
|
|
|
|
(setenv "SHELL" (which "sh"))
|
2014-06-09 12:22:05 +02:00
|
|
|
|
2017-10-07 20:33:58 +02:00
|
|
|
(substitute* (find-files "gnulib-tests" "\\.c$")
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
(substitute* (find-files "tests" "\\.sh$")
|
2018-08-24 16:14:07 +02:00
|
|
|
(("#!/bin/sh") (string-append "#!" (which "sh"))))
|
|
|
|
#t))
|
|
|
|
(add-before 'check 'disable-broken-test
|
|
|
|
(lambda _
|
|
|
|
;; This test hits the 127 character shebang limit in the build
|
|
|
|
;; environment due to the way "env -S" splits arguments into
|
|
|
|
;; shebangs. Note that "env-S-script.sh" works around this
|
|
|
|
;; specific issue, but "env-S.pl" is not adjusted for build
|
|
|
|
;; environments with long prefixes (/tmp/guix-build-...).
|
|
|
|
(substitute* "Makefile"
|
|
|
|
(("^.*tests/misc/env-S.pl.*$") ""))
|
2017-12-29 13:15:42 +01:00
|
|
|
#t)))
|
|
|
|
|
|
|
|
;; Work around a cross-compilation bug whereby libcoreutils.a would
|
|
|
|
;; provide '__mktime_internal', which conflicts with the one in libc.a.
|
|
|
|
,@(if (%current-target-system)
|
|
|
|
`(#:configure-flags '("gl_cv_func_working_mktime=yes"))
|
|
|
|
'())))
|
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 "Core GNU utilities (file, text, shell)")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
2013-12-01 22:33:23 +01:00
|
|
|
"GNU Coreutils includes all of the basic command-line tools that are
|
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
|
|
|
expected in a POSIX system. These provide the basic file, shell and text
|
|
|
|
manipulation functions of the GNU system. Most of these tools offer extended
|
|
|
|
functionality beyond that which is outlined in the POSIX standard.")
|
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/coreutils/")))
|
2012-08-22 15:51:17 +02:00
|
|
|
|
2015-09-04 14:50:11 +02:00
|
|
|
(define-public coreutils-minimal
|
2015-08-19 14:16:39 +02:00
|
|
|
;; Coreutils without its optional dependencies.
|
|
|
|
(package
|
|
|
|
(inherit coreutils)
|
2015-09-04 14:50:11 +02:00
|
|
|
(name "coreutils-minimal")
|
2015-08-19 14:16:39 +02:00
|
|
|
(outputs '("out"))
|
|
|
|
(inputs '())))
|
|
|
|
|
2012-08-21 18:14:57 +02:00
|
|
|
(define-public gnu-make
|
|
|
|
(package
|
|
|
|
(name "make")
|
2016-08-14 08:45:47 +02:00
|
|
|
(version "4.2.1")
|
2012-08-21 18:14:57 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/make/make-" version
|
2012-08-21 18:14:57 +02:00
|
|
|
".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-08-14 08:45:47 +02:00
|
|
|
"12f5zzyq2w56g95nni65hc0g5p7154033y2f3qmjvd016szn5qnn"))
|
2018-03-18 15:12:17 +01:00
|
|
|
(patches (search-patches "make-impure-dirs.patch"
|
|
|
|
"make-glibc-compat.patch"))))
|
2012-08-21 18:14:57 +02:00
|
|
|
(build-system gnu-build-system)
|
gnu: Fix misplaced commas (unquote).
Fix many occurrences of comma (unquote) being placed immediately after the
previous list item, e.g. ("ncurses", ncurses) in the inputs.
* gnu/packages/base.scm (patch, gnu-make),
gnu/packages/bioinformatics.scm (hmmer),
gnu/packages/bittorrent.scm (aria2),
gnu/packages/compression.scm (pbzip2),
gnu/packages/databases.scm (recutils),
gnu/packages/fonts.scm (font-terminus),
gnu/packages/freedesktop.scm (xdg-utils, elogind),
gnu/packages/games.scm (gnujump),
gnu/packages/gnome.scm (libidl, gnumeric, eog, gedit),
gnu/packages/gnunet.scm (gnunet),
gnu/packages/gnuzilla.scm (mozjs, nspr),
gnu/packages/gtk.scm (gtksourceview, gdk-pixbuf),
gnu/packages/lua.scm (lua),
gnu/packages/openstack.scm (python-swiftclient),
gnu/packages/perl.scm (perl-json-any),
gnu/packages/polkit.scm (polkit-qt),
gnu/packages/python.scm (wrap-python3, python-oauthlib)
(python-mccabe-0.2.1, python-contextlib2, python2-rauth),
gnu/packages/qt.scm (qtkeychain),
gnu/packages/ruby.scm (ruby-nokogiri),
gnu/packages/screen.scm (screen),
gnu/packages/ssh.scm (libssh),
gnu/packages/video.scm (ffmpeg, mplayer),
gnu/packages/vim.scm (vim),
gnu/packages/xdisorg.scm (redshift),
gnu/packages/xfce.scm (xfce4-panel, xfce4-settings),
gnu/packages/xnee.scm (xnee),
gnu/packages/xorg.scm (font-adobe100dpi, font-adobe75dpi),
gnu/packages/zsh.scm (zsh): Fix misplaced commas (unquote).
2016-02-27 14:37:28 +01:00
|
|
|
(native-inputs `(("pkg-config" ,pkg-config))) ; to detect Guile
|
2013-10-16 16:27:45 +02:00
|
|
|
(inputs `(("guile" ,guile-2.0)))
|
2013-07-03 23:55:04 +02:00
|
|
|
(outputs '("out" "debug"))
|
2012-12-19 12:34:53 +01:00
|
|
|
(arguments
|
2018-03-18 15:12:17 +01:00
|
|
|
'(;; Work around faulty glob detection with glibc 2.27. See
|
|
|
|
;; <https://lists.nongnu.org/archive/html/bug-make/2017-11/msg00027.html>.
|
|
|
|
#:configure-flags '("make_cv_sys_gnu_glob=yes")
|
|
|
|
#:phases
|
2016-08-14 08:47:28 +02:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'set-default-shell
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Change the default shell from /bin/sh.
|
|
|
|
(let ((bash (assoc-ref inputs "bash")))
|
|
|
|
(substitute* "job.c"
|
|
|
|
(("default_shell =.*$")
|
2017-01-05 09:02:08 +01:00
|
|
|
(format #f "default_shell = \"~a/bin/sh\";\n"
|
2018-03-19 20:11:11 +01:00
|
|
|
bash)))
|
|
|
|
#t))))))
|
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 "Remake files automatically")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
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
|
|
|
"Make is a program that is used to control the production of
|
|
|
|
executables or other files from their source files. The process is
|
|
|
|
controlled from a Makefile, in which the developer specifies how each file is
|
|
|
|
generated from its source. It has powerful dependency resolution and the
|
|
|
|
ability to determine when files have to be regenerated after their sources
|
2013-12-01 22:33:23 +01:00
|
|
|
change. GNU make offers many powerful extensions over the standard utility.")
|
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/make/")))
|
2012-08-21 18:14:57 +02:00
|
|
|
|
2012-08-25 13:11:13 +02:00
|
|
|
(define-public binutils
|
|
|
|
(package
|
|
|
|
(name "binutils")
|
2018-07-18 13:46:20 +02:00
|
|
|
(version "2.31.1")
|
2012-08-25 13:11:13 +02:00
|
|
|
(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: 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
|
|
|
(uri (string-append "mirror://gnu/binutils/binutils-"
|
2012-08-25 13:11:13 +02:00
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-07-18 13:46:20 +02:00
|
|
|
"1l34hn1zkmhr1wcrgf0d4z7r3najxnw3cx2y2fk7v55zjlk3ik7z"))
|
2018-03-16 14:53:01 +01:00
|
|
|
(patches (search-patches "binutils-loongson-workaround.patch"))))
|
2012-08-25 13:11:13 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
|
|
|
;; TODO: Add dependency on zlib + those for Gold.
|
|
|
|
(arguments
|
2013-10-10 23:05:28 +02:00
|
|
|
`(#:configure-flags '(;; Add `-static-libgcc' to not retain a dependency
|
2012-11-16 00:23:06 +01:00
|
|
|
;; on GCC when bootstrapping.
|
|
|
|
"LDFLAGS=-static-libgcc"
|
2012-08-25 13:11:13 +02:00
|
|
|
|
2018-03-16 14:53:01 +01:00
|
|
|
;; Turn on --enable-new-dtags by default to make the
|
|
|
|
;; linker set RUNPATH instead of RPATH on binaries.
|
|
|
|
;; This is important because RUNPATH can be overriden
|
|
|
|
;; using LD_LIBRARY_PATH at runtime.
|
|
|
|
"--enable-new-dtags"
|
|
|
|
|
2012-11-16 00:23:06 +01:00
|
|
|
;; Don't search under /usr/lib & co.
|
2013-03-15 18:37:40 +01:00
|
|
|
"--with-lib-path=/no-ld-lib-path"
|
|
|
|
|
2014-01-08 22:30:33 +01:00
|
|
|
;; Install BFD. It ends up in a hidden directory,
|
|
|
|
;; but it's here.
|
2014-02-06 14:06:28 +01:00
|
|
|
"--enable-install-libbfd"
|
|
|
|
|
|
|
|
;; Make sure 'ar' and 'ranlib' produce archives in a
|
|
|
|
;; deterministic fashion.
|
|
|
|
"--enable-deterministic-archives")))
|
2012-08-25 13:11:13 +02:00
|
|
|
|
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 "Binary utilities: bfd gas gprof ld")
|
2012-11-04 13:41:34 +01:00
|
|
|
(description
|
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
|
|
|
"GNU Binutils is a collection of tools for working with binary files.
|
2014-09-13 15:31:31 +02:00
|
|
|
Perhaps the most notable are \"ld\", a linker, and \"as\", an assembler.
|
|
|
|
Other tools include programs to display binary profiling information, list
|
|
|
|
the strings in a binary file, and utilities for working with archives. The
|
|
|
|
\"bfd\" library for working with executable and object formats is also
|
|
|
|
included.")
|
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/binutils/")))
|
2012-08-25 13:11:13 +02:00
|
|
|
|
2019-02-01 21:41:31 +01:00
|
|
|
(define-public binutils-gold
|
|
|
|
(package
|
|
|
|
(inherit binutils)
|
|
|
|
(name "binutils-gold")
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'patch-source-shebangs 'patch-more-shebangs
|
|
|
|
(lambda _
|
|
|
|
(substitute* "gold/Makefile.in"
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
#t)))
|
|
|
|
,@(substitute-keyword-arguments (package-arguments binutils)
|
|
|
|
; Upstream is aware of unrelocatable test failures on arm*.
|
|
|
|
((#:tests? _ #f)
|
|
|
|
(if (any (cute string-prefix? <> (or (%current-target-system)
|
|
|
|
(%current-system)))
|
|
|
|
'("i686" "x86_64"))
|
|
|
|
'#t '#f))
|
|
|
|
((#:configure-flags flags)
|
|
|
|
`(cons* "--enable-gold=default"
|
|
|
|
(delete "LDFLAGS=-static-libgcc" ,flags))))))
|
|
|
|
(native-inputs
|
|
|
|
`(("bc" ,bc)))
|
|
|
|
(inputs
|
|
|
|
`(("gcc:lib" ,gcc "lib")))))
|
|
|
|
|
2016-10-31 15:41:14 +01:00
|
|
|
(define* (make-ld-wrapper name #:key
|
|
|
|
(target (const #f))
|
|
|
|
binutils
|
2017-04-20 23:38:12 +02:00
|
|
|
(guile (canonical-package guile-2.2))
|
2016-10-31 15:41:14 +01:00
|
|
|
(bash (canonical-package bash))
|
2015-04-03 11:54:01 +02:00
|
|
|
(guile-for-build guile))
|
|
|
|
"Return a package called NAME that contains a wrapper for the 'ld' program
|
2016-10-31 15:41:14 +01:00
|
|
|
of BINUTILS, which adds '-rpath' flags to the actual 'ld' command line. The
|
|
|
|
wrapper uses GUILE and BASH.
|
|
|
|
|
|
|
|
TARGET must be a one-argument procedure that, given a system type, returns a
|
|
|
|
cross-compilation target triplet or #f. When the result is not #f, make a
|
|
|
|
wrapper for the cross-linker for that target, called 'TARGET-ld'."
|
|
|
|
;; Note: #:system->target-triplet is a procedure so that the evaluation of
|
|
|
|
;; its result can be delayed until the 'arguments' field is evaluated, thus
|
|
|
|
;; in a context where '%current-system' is accurate.
|
2015-04-03 11:54:01 +02:00
|
|
|
(package
|
|
|
|
(name name)
|
|
|
|
(version "0")
|
|
|
|
(source #f)
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(inputs `(("binutils" ,binutils)
|
|
|
|
("guile" ,guile)
|
|
|
|
("bash" ,bash)
|
|
|
|
("wrapper" ,(search-path %load-path
|
2015-04-07 21:36:04 +02:00
|
|
|
"gnu/packages/ld-wrapper.in"))))
|
2015-04-03 11:54:01 +02:00
|
|
|
(arguments
|
2016-10-31 15:41:14 +01:00
|
|
|
(let ((target (target (%current-system))))
|
|
|
|
`(#:guile ,guile-for-build
|
|
|
|
#:modules ((guix build utils))
|
|
|
|
#:builder (begin
|
|
|
|
(use-modules (guix build utils)
|
|
|
|
(system base compile))
|
2015-04-03 11:54:01 +02:00
|
|
|
|
2016-10-31 15:41:14 +01:00
|
|
|
(let* ((out (assoc-ref %outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
(ld ,(if target
|
|
|
|
`(string-append bin "/" ,target "-ld")
|
|
|
|
'(string-append bin "/ld")))
|
|
|
|
(go (string-append ld ".go")))
|
2015-04-03 11:54:01 +02:00
|
|
|
|
2016-10-31 15:41:14 +01:00
|
|
|
(setvbuf (current-output-port) _IOLBF)
|
|
|
|
(format #t "building ~s/bin/ld wrapper in ~s~%"
|
|
|
|
(assoc-ref %build-inputs "binutils")
|
|
|
|
out)
|
2015-04-03 11:54:01 +02:00
|
|
|
|
2016-10-31 15:41:14 +01:00
|
|
|
(mkdir-p bin)
|
|
|
|
(copy-file (assoc-ref %build-inputs "wrapper") ld)
|
|
|
|
(substitute* ld
|
|
|
|
(("@SELF@")
|
|
|
|
ld)
|
|
|
|
(("@GUILE@")
|
|
|
|
(string-append (assoc-ref %build-inputs "guile")
|
|
|
|
"/bin/guile"))
|
|
|
|
(("@BASH@")
|
|
|
|
(string-append (assoc-ref %build-inputs "bash")
|
|
|
|
"/bin/bash"))
|
|
|
|
(("@LD@")
|
|
|
|
(string-append (assoc-ref %build-inputs "binutils")
|
|
|
|
,(if target
|
|
|
|
(string-append "/bin/"
|
|
|
|
target "-ld")
|
|
|
|
"/bin/ld"))))
|
|
|
|
(chmod ld #o555)
|
gnu: Use invoke and return #t from all builders.
* gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm,
gnu/packages/avr.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm,
gnu/packages/certs.scm, gnu/packages/check.scm, gnu/packages/code.scm,
gnu/packages/commencement.scm, gnu/packages/dictionaries.scm,
gnu/packages/docbook.scm, gnu/packages/emacs.scm, gnu/packages/embedded.scm,
gnu/packages/fonts.scm, gnu/packages/games.scm, gnu/packages/gnome.scm,
gnu/packages/gnu-doc.scm, gnu/packages/guile.scm, gnu/packages/hurd.scm,
gnu/packages/javascript.scm, gnu/packages/libreoffice.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm,
gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm,
gnu/packages/pkg-config.scm, gnu/packages/qt.scm, gnu/packages/rust.scm,
gnu/packages/scheme.scm, gnu/packages/sdl.scm, gnu/packages/statistics.scm,
gnu/packages/syncthing.scm, gnu/packages/tex.scm, gnu/packages/web.scm,
gnu/packages/wine.scm, gnu/packages/xfce.scm: In the builders of packages
using 'trivial-build-system', use invoke where appropriate, raise exceptions
on errors, and otherwise return #t.
2018-03-28 02:14:05 +02:00
|
|
|
(compile-file ld #:output-file go)
|
|
|
|
#t)))))
|
2015-04-03 11:54:01 +02:00
|
|
|
(synopsis "The linker wrapper")
|
|
|
|
(description
|
gnu: Fix descriptions to not use quotes.
* gnu/packages/admin.scm (wpa-supplicant-minimal, mingetty, di),
* gnu/packages/audio.scm (fil-plugins),
* gnu/packages/base.scm (make-ld-wrapper, make-glibc-locales),
* gnu/packages/bioinformatics.scm (r-samtools),
* gnu/packages/chez.scm (chez-mit),
* gnu/packages/commencement.scm (make-gcc-toolchain),
* gnu/packages/compression.scm (fastjar),
* gnu/packages/cran.scm (r-maps, r-rcpp),
* gnu/packages/databases.scm (sparql-query),
* gnu/packages/dunst.scm (dunst),
* gnu/packages/ftp.scm (ncftp),
* gnu/packages/gl.scm (freeglut),
* gnu/packages/haskell-check.scm (ghc-tasty-golden),
* gnu/packages/haskell.scm (ghc-case-insensitive, ghc-text,
ghc-haskell-src, ghc-syb, ghc-deepseq-generics, ghc-network-uri,
ghc-rerebase, ghc-zlib),
* gnu/packages/image.scm (jbig2dec),
* gnu/packages/kde-frameworks.scm (kinit, karchive),
* gnu/packages/linux.scm (wireless-tools, perf, module-init-tools, kbd),
* gnu/packages/lirc.scm (lirc),
* gnu/packages/lisp.scm (uglify-js),
* gnu/packages/mate.scm (mate-netbook),
* gnu/packages/microcom.scm (microcom),
* gnu/packages/music.scm (bristol),
* gnu/packages/networking.scm (perl-geo-ip),
* gnu/packages/patchutils.scm (patches),
* gnu/packages/perl-check.scm (perl-test-more-utf8),
* gnu/packages/perl.scm (perl-log-report-optional, perl-file-which,
perl-io-tty, perl-log-any, perl-digest-sha1, perl-class-load,
perl-regexp-common, perl-module-pluggable, perl-class-modifier),
* gnu/packages/python-xyz.scm (python-backports-abc, python-natsort),
* gnu/packages/samba.scm (iniparser),
* gnu/packages/search.scm (mlocate),
* gnu/packages/spice.scm (spice),
* gnu/packages/statistics.scm (r-dt, r-lubridate, r-estimability,
r-commonmark, r-digest, r-viridislite, r-stringr),
* gnu/packages/tex.scm (texlive-latex-changebar),
* gnu/packages/version-control.scm (subversion),
* gnu/packages/w3m.scm (w3m),
* gnu/packages/web.scm (perl-http-parser,
perl-plack-middleware-reverseproxy),
* gnu/packages/xorg.scm (xkeyboard-config, mkfontdir, xcursor-theme,
mkfontscale, xinit, font-alias)[description]: Use @code instead of quotes.
2019-03-31 15:39:43 +02:00
|
|
|
"The linker wrapper (or @code{ld-wrapper}) wraps the linker to add any
|
|
|
|
missing @code{-rpath} flags, and to detect any misuse of libraries outside of
|
|
|
|
the store.")
|
2017-03-30 00:48:16 +02:00
|
|
|
(home-page "https://www.gnu.org/software/guix//")
|
2015-04-03 11:54:01 +02:00
|
|
|
(license gpl3+)))
|
|
|
|
|
|
|
|
(export make-ld-wrapper)
|
|
|
|
|
2018-11-18 23:12:36 +01:00
|
|
|
(define-public glibc
|
|
|
|
;; This is the GNU C Library, used on GNU/Linux and GNU/Hurd. Prior to
|
|
|
|
;; version 2.28, GNU/Hurd used a different glibc branch.
|
2012-08-28 23:15:13 +02:00
|
|
|
(package
|
|
|
|
(name "glibc")
|
2017-12-03 02:32:16 +01:00
|
|
|
;; Note: Always use a dot after the minor version since various places rely
|
|
|
|
;; on "version-major+minor" to determine where locales are found.
|
2018-08-01 16:13:45 +02:00
|
|
|
(version "2.28")
|
2012-08-28 23:15:13 +02:00
|
|
|
(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)
|
2018-03-15 21:08:37 +01:00
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
2012-08-28 23:15:13 +02:00
|
|
|
(sha256
|
|
|
|
(base32
|
2018-08-01 16:13:45 +02:00
|
|
|
"10iha5ynvdj5m62vgpgqbq4cwvc2yhyl2w9yyyjgfxmdmx8h145i"))
|
2013-11-16 23:14:28 +01:00
|
|
|
(snippet
|
|
|
|
;; Disable 'ldconfig' and /etc/ld.so.cache. The latter is
|
|
|
|
;; required on LFS distros to avoid loading the distro's libc.so
|
|
|
|
;; instead of ours.
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
'(begin
|
|
|
|
(substitute* "sysdeps/unix/sysv/linux/configure"
|
|
|
|
(("use_ldconfig=yes")
|
|
|
|
"use_ldconfig=no"))
|
|
|
|
#t))
|
2014-02-28 12:22:14 +01:00
|
|
|
(modules '((guix build utils)))
|
2016-05-02 17:53:40 +02:00
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
2018-08-01 16:13:45 +02:00
|
|
|
"glibc-2.28-git-fixes.patch"
|
2018-03-15 21:08:37 +01:00
|
|
|
"glibc-hidden-visibility-ldconfig.patch"
|
2016-05-02 17:53:40 +02:00
|
|
|
"glibc-versioned-locpath.patch"
|
2018-03-30 11:18:47 +02:00
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"))))
|
2012-08-28 23:15:13 +02:00
|
|
|
(build-system gnu-build-system)
|
2012-09-01 19:21:06 +02:00
|
|
|
|
|
|
|
;; Glibc's <limits.h> refers to <linux/limit.h>, for instance, so glibc
|
2018-11-18 23:12:36 +01:00
|
|
|
;; users should automatically pull Linux headers as well. On GNU/Hurd,
|
|
|
|
;; libc provides <hurd.h>, which includes a bunch of Hurd and Mach headers,
|
|
|
|
;; so both should be propagated.
|
|
|
|
(propagated-inputs
|
|
|
|
(if (hurd-target?)
|
|
|
|
`(("hurd-core-headers" ,hurd-core-headers))
|
|
|
|
`(("kernel-headers" ,linux-libre-headers))))
|
2012-09-01 19:21:06 +02:00
|
|
|
|
2017-09-03 14:25:39 +02:00
|
|
|
(outputs '("out" "debug"
|
|
|
|
"static")) ;9 MiB of .a files
|
2013-03-05 18:38:05 +01:00
|
|
|
|
2012-08-28 23:15:13 +02:00
|
|
|
(arguments
|
2012-09-01 19:21:06 +02:00
|
|
|
`(#:out-of-source? #t
|
2015-03-05 23:41:29 +01:00
|
|
|
|
2015-04-01 16:47:49 +02:00
|
|
|
;; The libraries have an empty RUNPATH, but some, such as the versioned
|
2016-09-02 13:30:58 +02:00
|
|
|
;; libraries (libdl-2.24.so, etc.) have ld.so marked as NEEDED. Since
|
2015-04-01 16:47:49 +02:00
|
|
|
;; these libraries are always going to be found anyway, just skip
|
|
|
|
;; RUNPATH checks.
|
|
|
|
#:validate-runpath? #f
|
|
|
|
|
2017-09-03 14:25:39 +02:00
|
|
|
#:modules ((ice-9 ftw)
|
|
|
|
(srfi srfi-26)
|
|
|
|
(guix build utils)
|
|
|
|
(guix build gnu-build-system))
|
|
|
|
|
2012-08-28 23:15:13 +02:00
|
|
|
#:configure-flags
|
2018-03-15 21:08:37 +01:00
|
|
|
(list "--sysconfdir=/etc"
|
2013-03-05 18:38:05 +01:00
|
|
|
|
2014-11-26 11:16:05 +01:00
|
|
|
;; Installing a locale archive with all the locales is to
|
|
|
|
;; expensive (~100 MiB), so we rely on users to install the
|
|
|
|
;; locales they really want.
|
|
|
|
;;
|
|
|
|
;; Set the default locale path. In practice, $LOCPATH may be
|
|
|
|
;; defined to point whatever locales users want. However, setuid
|
|
|
|
;; binaries don't honor $LOCPATH, so they'll instead look into
|
2016-08-03 04:24:02 +02:00
|
|
|
;; $libc_cv_complocaledir; we choose /run/current-system/locale/X.Y,
|
2015-09-30 17:06:40 +02:00
|
|
|
;; with the idea that it is going to be populated by the sysadmin.
|
|
|
|
;; The "X.Y" sub-directory is because locale data formats are
|
|
|
|
;; incompatible across libc versions; see
|
|
|
|
;; <https://lists.gnu.org/archive/html/guix-devel/2015-08/msg00737.html>.
|
2014-11-26 11:16:05 +01:00
|
|
|
;;
|
2013-03-05 18:38:05 +01:00
|
|
|
;; `--localedir' is not honored, so work around it.
|
|
|
|
;; See <http://sourceware.org/ml/libc-alpha/2013-03/msg00093.html>.
|
2016-08-03 04:24:02 +02:00
|
|
|
(string-append "libc_cv_complocaledir=/run/current-system/locale/"
|
2017-12-03 02:32:16 +01:00
|
|
|
,(version-major+minor version))
|
2013-03-05 18:38:05 +01:00
|
|
|
|
2012-08-28 23:15:13 +02:00
|
|
|
(string-append "--with-headers="
|
2016-05-29 23:15:14 +02:00
|
|
|
(assoc-ref ,(if (%current-target-system)
|
|
|
|
'%build-target-inputs
|
|
|
|
'%build-inputs)
|
2016-06-07 11:54:03 +02:00
|
|
|
"kernel-headers")
|
2012-08-28 23:15:13 +02:00
|
|
|
"/include")
|
2012-09-06 00:00:34 +02:00
|
|
|
|
2017-10-22 22:11:19 +02:00
|
|
|
;; This is the default for most architectures as of GNU libc 2.26,
|
2014-09-08 17:05:45 +02:00
|
|
|
;; but we specify it explicitly for clarity and consistency. See
|
|
|
|
;; "kernel-features.h" in the GNU libc for details.
|
2017-10-22 22:11:19 +02:00
|
|
|
"--enable-kernel=3.2.0"
|
2012-09-06 00:00:34 +02:00
|
|
|
|
2012-12-20 00:49:06 +01:00
|
|
|
;; Use our Bash instead of /bin/sh.
|
2013-01-01 23:50:52 +01:00
|
|
|
(string-append "BASH_SHELL="
|
2012-12-20 00:49:06 +01:00
|
|
|
(assoc-ref %build-inputs "bash")
|
2018-11-18 23:12:36 +01:00
|
|
|
"/bin/bash")
|
|
|
|
|
|
|
|
;; On GNU/Hurd we get discarded-qualifiers warnings for
|
|
|
|
;; 'device_write_inband' among other things. Ignore them.
|
|
|
|
,@(if (hurd-target?)
|
|
|
|
'("--disable-werror")
|
|
|
|
'()))
|
2012-12-20 00:49:06 +01:00
|
|
|
|
2012-08-28 23:15:13 +02:00
|
|
|
#:tests? #f ; XXX
|
2015-08-30 14:12:57 +02:00
|
|
|
#:phases (modify-phases %standard-phases
|
2018-12-16 15:36:48 +01:00
|
|
|
,@(if (hurd-target?)
|
|
|
|
`((add-after 'unpack 'apply-hurd-patch
|
|
|
|
(lambda* (#:key inputs native-inputs
|
|
|
|
#:allow-other-keys)
|
|
|
|
;; TODO: Move this to 'patches' field.
|
|
|
|
(let ((patch (or (assoc-ref native-inputs
|
|
|
|
"hurd-magic-pid-patch")
|
|
|
|
(assoc-ref inputs
|
|
|
|
"hurd-magic-pid-patch"))))
|
|
|
|
(invoke "patch" "-p1" "--force" "--input"
|
|
|
|
patch)))))
|
|
|
|
'())
|
2015-08-30 14:12:57 +02:00
|
|
|
(add-before
|
|
|
|
'configure 'pre-configure
|
|
|
|
(lambda* (#:key inputs native-inputs outputs
|
|
|
|
#:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
;; FIXME: Normally we would look it up only in INPUTS
|
|
|
|
;; but cross-base uses it as a native input.
|
|
|
|
(bash (or (assoc-ref inputs "static-bash")
|
|
|
|
(assoc-ref native-inputs "static-bash"))))
|
|
|
|
;; Install the rpc data base file under `$out/etc/rpc'.
|
|
|
|
;; FIXME: Use installFlags = [ "sysconfdir=$(out)/etc" ];
|
|
|
|
(substitute* "sunrpc/Makefile"
|
|
|
|
(("^\\$\\(inst_sysconfdir\\)/rpc(.*)$" _ suffix)
|
|
|
|
(string-append out "/etc/rpc" suffix "\n"))
|
|
|
|
(("^install-others =.*$")
|
|
|
|
(string-append "install-others = " out "/etc/rpc\n")))
|
|
|
|
|
|
|
|
(substitute* "Makeconfig"
|
|
|
|
;; According to
|
|
|
|
;; <http://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html>,
|
|
|
|
;; linking against libgcc_s is not needed with GCC
|
|
|
|
;; 4.7.1.
|
|
|
|
((" -lgcc_s") ""))
|
|
|
|
|
|
|
|
;; Have `system' use that Bash.
|
|
|
|
(substitute* "sysdeps/posix/system.c"
|
|
|
|
(("#define[[:blank:]]+SHELL_PATH.*$")
|
|
|
|
(format #f "#define SHELL_PATH \"~a/bin/bash\"\n"
|
|
|
|
bash)))
|
|
|
|
|
|
|
|
;; Same for `popen'.
|
|
|
|
(substitute* "libio/iopopen.c"
|
|
|
|
(("/bin/sh")
|
2017-01-05 17:11:18 +01:00
|
|
|
(string-append bash "/bin/sh")))
|
2015-08-30 14:12:57 +02:00
|
|
|
|
2015-08-30 14:20:08 +02:00
|
|
|
;; Same for the shell used by the 'exec' functions for
|
|
|
|
;; scripts that lack a shebang.
|
|
|
|
(substitute* (find-files "." "^paths\\.h$")
|
|
|
|
(("#define[[:blank:]]+_PATH_BSHELL[[:blank:]].*$")
|
|
|
|
(string-append "#define _PATH_BSHELL \""
|
2017-01-05 17:11:38 +01:00
|
|
|
bash "/bin/sh\"\n")))
|
2015-08-30 14:20:08 +02:00
|
|
|
|
2015-12-16 22:05:30 +01:00
|
|
|
;; Nscd uses __DATE__ and __TIME__ to create a string to
|
|
|
|
;; make sure the client and server come from the same
|
|
|
|
;; libc. Use something deterministic instead.
|
|
|
|
(substitute* "nscd/nscd_stat.c"
|
|
|
|
(("static const char compilation\\[21\\] =.*$")
|
|
|
|
(string-append
|
|
|
|
"static const char compilation[21] = \""
|
|
|
|
(string-take (basename out) 20) "\";\n")))
|
|
|
|
|
2015-08-30 14:12:57 +02:00
|
|
|
;; Make sure we don't retain a reference to the
|
|
|
|
;; bootstrap Perl.
|
|
|
|
(substitute* "malloc/mtrace.pl"
|
|
|
|
(("^#!.*")
|
|
|
|
;; The shebang can be omitted, because there's the
|
|
|
|
;; "bilingual" eval/exec magic at the top of the file.
|
|
|
|
"")
|
|
|
|
(("exec @PERL@")
|
2018-03-23 04:43:56 +01:00
|
|
|
"exec perl"))
|
|
|
|
|
|
|
|
#t)))
|
2017-09-03 14:25:39 +02:00
|
|
|
|
|
|
|
(add-after 'install 'move-static-libs
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Move static libraries to the "static" output.
|
|
|
|
(define (static-library? file)
|
|
|
|
;; Return true if FILE is a static library. The
|
|
|
|
;; "_nonshared.a" files are referred to by libc.so,
|
|
|
|
;; libpthread.so, etc., which are in fact linker
|
|
|
|
;; scripts.
|
|
|
|
(and (string-suffix? ".a" file)
|
|
|
|
(not (string-contains file "_nonshared"))))
|
|
|
|
|
|
|
|
(define (linker-script? file)
|
|
|
|
;; Guess whether FILE, a ".a" file, is actually a
|
|
|
|
;; linker script.
|
|
|
|
(and (not (ar-file? file))
|
|
|
|
(not (elf-file? file))))
|
|
|
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(lib (string-append out "/lib"))
|
|
|
|
(files (scandir lib static-library?))
|
|
|
|
(static (assoc-ref outputs "static"))
|
|
|
|
(slib (string-append static "/lib")))
|
|
|
|
(mkdir-p slib)
|
|
|
|
(for-each (lambda (base)
|
|
|
|
(rename-file (string-append lib "/" base)
|
|
|
|
(string-append slib "/" base)))
|
|
|
|
files)
|
|
|
|
|
|
|
|
;; Usually libm.a is a linker script so we need to
|
|
|
|
;; change the file names in there to refer to STATIC
|
|
|
|
;; instead of OUT.
|
|
|
|
(for-each (lambda (ld-script)
|
|
|
|
(substitute* ld-script
|
|
|
|
((out) static)))
|
|
|
|
(filter linker-script?
|
|
|
|
(map (cut string-append slib "/" <>)
|
|
|
|
files)))
|
2018-11-18 23:12:36 +01:00
|
|
|
#t)))
|
|
|
|
|
|
|
|
,@(if (hurd-target?)
|
|
|
|
'((add-after 'install 'augment-libc.so
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out")))
|
|
|
|
(substitute* (string-append out "/lib/libc.so")
|
|
|
|
(("/[^ ]+/lib/libc.so.0.3")
|
|
|
|
(string-append out "/lib/libc.so.0.3"
|
|
|
|
" libmachuser.so libhurduser.so"))))
|
|
|
|
#t)))
|
|
|
|
'()))))
|
2013-03-05 18:38:05 +01:00
|
|
|
|
2015-08-20 00:13:25 +02:00
|
|
|
(inputs `(("static-bash" ,static-bash)))
|
2014-01-07 18:08:51 +01:00
|
|
|
|
2015-04-21 22:53:09 +02:00
|
|
|
;; To build the manual, we need Texinfo and Perl. Gettext is needed to
|
|
|
|
;; install the message catalogs, with 'msgfmt'.
|
2014-01-07 18:08:51 +01:00
|
|
|
(native-inputs `(("texinfo" ,texinfo)
|
2015-04-21 22:53:09 +02:00
|
|
|
("perl" ,perl)
|
2018-03-15 21:08:37 +01:00
|
|
|
("bison" ,bison)
|
2018-11-18 23:12:36 +01:00
|
|
|
("gettext" ,gettext-minimal)
|
|
|
|
|
|
|
|
,@(if (hurd-target?)
|
|
|
|
`(("mig" ,mig)
|
2018-12-16 15:36:48 +01:00
|
|
|
("perl" ,perl)
|
|
|
|
("hurd-magic-pid-patch"
|
|
|
|
,(search-patch "glibc-hurd-magic-pid.patch")))
|
2018-11-18 23:12:36 +01:00
|
|
|
'())))
|
2014-01-07 18:08:51 +01:00
|
|
|
|
2015-02-11 14:16:29 +01:00
|
|
|
(native-search-paths
|
|
|
|
;; Search path for packages that provide locale data. This is useful
|
2015-10-01 21:32:50 +02:00
|
|
|
;; primarily in build environments. Use 'GUIX_LOCPATH' rather than
|
|
|
|
;; 'LOCPATH' to avoid interference with the host system's libc on foreign
|
|
|
|
;; distros.
|
2015-02-11 14:16:29 +01:00
|
|
|
(list (search-path-specification
|
2015-10-01 21:32:50 +02:00
|
|
|
(variable "GUIX_LOCPATH")
|
2015-10-05 22:27:23 +02:00
|
|
|
(files '("lib/locale")))))
|
2015-02-11 14:16:29 +01:00
|
|
|
|
2012-11-04 13:41:34 +01:00
|
|
|
(synopsis "The GNU C Library")
|
|
|
|
(description
|
2012-08-28 23:15:13 +02:00
|
|
|
"Any Unix-like operating system needs a C library: the library which
|
|
|
|
defines the \"system calls\" and other basic facilities such as open, malloc,
|
|
|
|
printf, exit...
|
|
|
|
|
|
|
|
The GNU C library is used as the C library in the GNU system and most systems
|
|
|
|
with the Linux kernel.")
|
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 lgpl2.0+)
|
2017-03-30 00:48:16 +02:00
|
|
|
(home-page "https://www.gnu.org/software/libc/")))
|
2012-08-28 23:15:13 +02:00
|
|
|
|
2018-08-01 16:13:45 +02:00
|
|
|
;; Below are old libc versions, which we use mostly to build locale data in
|
|
|
|
;; the old format (which the new libc cannot cope with.)
|
|
|
|
|
|
|
|
(define-public glibc-2.27
|
2018-08-01 15:48:26 +02:00
|
|
|
(package
|
|
|
|
(inherit glibc)
|
2018-08-01 16:13:45 +02:00
|
|
|
(version "2.27")
|
2018-08-01 15:48:26 +02:00
|
|
|
(source (origin
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2018-08-01 16:13:45 +02:00
|
|
|
"0wpwq7gsm7sd6ysidv0z575ckqdg13cr2njyfgrbgh4f65adwwji"))
|
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
|
|
|
"glibc-2.27-git-fixes.patch"
|
2018-08-01 15:48:26 +02:00
|
|
|
"glibc-hidden-visibility-ldconfig.patch"
|
2018-08-01 16:13:45 +02:00
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
2019-02-11 21:40:10 +01:00
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"
|
|
|
|
"glibc-CVE-2018-11236.patch"
|
|
|
|
"glibc-CVE-2018-11237.patch"))))
|
|
|
|
(properties `((lint-hidden-cve . ("CVE-2017-18269")))))) ; glibc-2.27-git-fixes
|
2016-11-07 00:44:56 +01:00
|
|
|
|
2018-03-15 21:08:37 +01:00
|
|
|
(define-public glibc-2.26
|
|
|
|
(package
|
|
|
|
(inherit glibc)
|
|
|
|
;; This version number corresponds to the output of `git describe` and the
|
|
|
|
;; archive can be generated by checking out the commit ID and running:
|
|
|
|
;; git archive --prefix=$(git describe)/ HEAD | xz > $(git describe).tar.xz
|
|
|
|
;; See <https://bugs.gnu.org/29406> for why this was necessary.
|
|
|
|
(version "2.26.105-g0890d5379c")
|
|
|
|
(source (origin
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
(uri (string-append "https://alpha.gnu.org/gnu/guix/mirror/"
|
|
|
|
"glibc-" (version-major+minor version) "-"
|
|
|
|
(caddr (string-split version #\.)) ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1jck0c1i248sn02rvsfjykk77qncma34bjq89dyy2irwm50d7s3g"))
|
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"))))))
|
|
|
|
|
2017-10-22 22:11:19 +02:00
|
|
|
(define-public glibc-2.25
|
|
|
|
(package
|
|
|
|
(inherit glibc)
|
|
|
|
(version "2.25")
|
|
|
|
(source (origin
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1813dzkgw6v8q8q1m4v96yfis7vjqc9pslqib6j9mrwh6fxxjyq6"))
|
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
"glibc-vectorized-strcspn-guards.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt1.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt2.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt3.patch"))))))
|
|
|
|
|
2017-02-07 18:40:46 +01:00
|
|
|
(define-public glibc-2.24
|
|
|
|
(package
|
|
|
|
(inherit glibc)
|
|
|
|
(version "2.24")
|
|
|
|
(source (origin
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-06-19 22:13:53 +02:00
|
|
|
"1lxmprg9gm73gvafxd503x70z32phwjzcy74i0adfi6ixzla7m4r"))
|
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
|
|
|
"glibc-versioned-locpath.patch"
|
2017-06-26 02:58:17 +02:00
|
|
|
"glibc-vectorized-strcspn-guards.patch"
|
2017-08-02 19:48:12 +02:00
|
|
|
"glibc-CVE-2015-5180.patch"
|
2017-06-19 22:13:53 +02:00
|
|
|
"glibc-CVE-2017-1000366-pt1.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt2.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt3.patch"))))))
|
2017-02-07 18:40:46 +01:00
|
|
|
|
2016-11-07 00:44:56 +01:00
|
|
|
(define-public glibc-2.23
|
|
|
|
(package
|
|
|
|
(inherit glibc)
|
|
|
|
(version "2.23")
|
|
|
|
(source (origin
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-06-19 22:13:53 +02:00
|
|
|
"1s8krs3y2n6pzav7ic59dz41alqalphv7vww4138ag30wh0fpvwl"))
|
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
|
|
|
"glibc-versioned-locpath.patch"
|
2017-06-26 02:58:17 +02:00
|
|
|
"glibc-vectorized-strcspn-guards.patch"
|
2017-08-02 20:11:57 +02:00
|
|
|
"glibc-CVE-2015-5180.patch"
|
|
|
|
"glibc-CVE-2016-3075.patch"
|
|
|
|
"glibc-CVE-2016-3706.patch"
|
|
|
|
"glibc-CVE-2016-4429.patch"
|
2017-06-19 22:13:53 +02:00
|
|
|
"glibc-CVE-2017-1000366-pt1.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt2.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt3.patch"))))))
|
2016-11-07 00:44:56 +01:00
|
|
|
|
2016-07-30 13:14:36 +02:00
|
|
|
(define-public glibc-2.22
|
2016-08-01 23:30:52 +02:00
|
|
|
(package
|
2016-08-04 14:16:38 +02:00
|
|
|
(inherit glibc)
|
2016-07-30 13:14:36 +02:00
|
|
|
(version "2.22")
|
2015-09-24 16:21:45 +02:00
|
|
|
(source (origin
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-"
|
|
|
|
version ".tar.xz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2016-07-30 13:14:36 +02:00
|
|
|
"0j49682pm2nh4qbdw35bas82p1pgfnz4d2l7iwfyzvrvj0318wzb"))
|
2017-06-19 22:13:53 +02:00
|
|
|
(patches (search-patches "glibc-ldd-x86_64.patch"
|
2018-03-16 15:25:15 +01:00
|
|
|
"glibc-o-largefile.patch"
|
2017-06-26 02:58:17 +02:00
|
|
|
"glibc-vectorized-strcspn-guards.patch"
|
2017-08-02 20:45:37 +02:00
|
|
|
"glibc-CVE-2015-5180.patch"
|
|
|
|
"glibc-CVE-2015-7547.patch"
|
|
|
|
"glibc-CVE-2016-3075.patch"
|
|
|
|
"glibc-CVE-2016-3706.patch"
|
|
|
|
"glibc-CVE-2016-4429.patch"
|
2017-06-19 22:13:53 +02:00
|
|
|
"glibc-CVE-2017-1000366-pt1.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt2.patch"
|
|
|
|
"glibc-CVE-2017-1000366-pt3.patch"))))
|
2016-07-11 09:23:08 +02:00
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc)
|
|
|
|
((#:phases phases)
|
|
|
|
`(modify-phases ,phases
|
|
|
|
(add-before 'configure 'fix-pwd
|
|
|
|
(lambda _
|
2017-07-17 23:28:59 +02:00
|
|
|
;; Use `pwd' instead of `/bin/pwd' for glibc-2.22.
|
2016-07-11 09:23:08 +02:00
|
|
|
(substitute* "configure"
|
2017-06-24 07:27:22 +02:00
|
|
|
(("/bin/pwd") "pwd"))
|
|
|
|
#t))))))))
|
2015-09-24 16:21:45 +02:00
|
|
|
|
2019-05-07 00:34:15 +02:00
|
|
|
(define (make-gcc-libc base-gcc libc)
|
|
|
|
"Return a GCC that targets LIBC."
|
|
|
|
(package (inherit base-gcc)
|
|
|
|
(name (string-append (package-name base-gcc) "-"
|
|
|
|
(package-name libc) "-"
|
|
|
|
(package-version libc)))
|
|
|
|
(arguments
|
|
|
|
(substitute-keyword-arguments
|
|
|
|
(ensure-keyword-arguments (package-arguments base-gcc)
|
|
|
|
'(#:implicit-inputs? #f))
|
|
|
|
((#:make-flags flags)
|
|
|
|
`(let ((libc (assoc-ref %build-inputs "libc")))
|
|
|
|
;; FLAGS_FOR_TARGET are needed for the target libraries to receive
|
|
|
|
;; the -Bxxx for the startfiles.
|
|
|
|
(cons (string-append "FLAGS_FOR_TARGET=-B" libc "/lib")
|
|
|
|
,flags)))))
|
|
|
|
(native-inputs
|
|
|
|
`(("libc" ,libc)
|
|
|
|
("libc:static" ,libc "static")
|
|
|
|
,@(append (package-inputs base-gcc)
|
|
|
|
(fold alist-delete (%final-inputs) '("libc" "libc:static")))))
|
|
|
|
(inputs '())))
|
|
|
|
|
2019-01-17 12:55:53 +01:00
|
|
|
(define-public (make-glibc-locales glibc)
|
2015-02-11 11:19:29 +01:00
|
|
|
(package
|
|
|
|
(inherit glibc)
|
|
|
|
(name "glibc-locales")
|
|
|
|
(source (origin (inherit (package-source glibc))
|
|
|
|
(patches (cons (search-patch "glibc-locales.patch")
|
|
|
|
(origin-patches (package-source glibc))))))
|
|
|
|
(synopsis "All the locales supported by the GNU C Library")
|
|
|
|
(description
|
|
|
|
"This package provides all the locales supported by the GNU C Library,
|
gnu: Fix descriptions to not use quotes.
* gnu/packages/admin.scm (wpa-supplicant-minimal, mingetty, di),
* gnu/packages/audio.scm (fil-plugins),
* gnu/packages/base.scm (make-ld-wrapper, make-glibc-locales),
* gnu/packages/bioinformatics.scm (r-samtools),
* gnu/packages/chez.scm (chez-mit),
* gnu/packages/commencement.scm (make-gcc-toolchain),
* gnu/packages/compression.scm (fastjar),
* gnu/packages/cran.scm (r-maps, r-rcpp),
* gnu/packages/databases.scm (sparql-query),
* gnu/packages/dunst.scm (dunst),
* gnu/packages/ftp.scm (ncftp),
* gnu/packages/gl.scm (freeglut),
* gnu/packages/haskell-check.scm (ghc-tasty-golden),
* gnu/packages/haskell.scm (ghc-case-insensitive, ghc-text,
ghc-haskell-src, ghc-syb, ghc-deepseq-generics, ghc-network-uri,
ghc-rerebase, ghc-zlib),
* gnu/packages/image.scm (jbig2dec),
* gnu/packages/kde-frameworks.scm (kinit, karchive),
* gnu/packages/linux.scm (wireless-tools, perf, module-init-tools, kbd),
* gnu/packages/lirc.scm (lirc),
* gnu/packages/lisp.scm (uglify-js),
* gnu/packages/mate.scm (mate-netbook),
* gnu/packages/microcom.scm (microcom),
* gnu/packages/music.scm (bristol),
* gnu/packages/networking.scm (perl-geo-ip),
* gnu/packages/patchutils.scm (patches),
* gnu/packages/perl-check.scm (perl-test-more-utf8),
* gnu/packages/perl.scm (perl-log-report-optional, perl-file-which,
perl-io-tty, perl-log-any, perl-digest-sha1, perl-class-load,
perl-regexp-common, perl-module-pluggable, perl-class-modifier),
* gnu/packages/python-xyz.scm (python-backports-abc, python-natsort),
* gnu/packages/samba.scm (iniparser),
* gnu/packages/search.scm (mlocate),
* gnu/packages/spice.scm (spice),
* gnu/packages/statistics.scm (r-dt, r-lubridate, r-estimability,
r-commonmark, r-digest, r-viridislite, r-stringr),
* gnu/packages/tex.scm (texlive-latex-changebar),
* gnu/packages/version-control.scm (subversion),
* gnu/packages/w3m.scm (w3m),
* gnu/packages/web.scm (perl-http-parser,
perl-plack-middleware-reverseproxy),
* gnu/packages/xorg.scm (xkeyboard-config, mkfontdir, xcursor-theme,
mkfontscale, xinit, font-alias)[description]: Use @code instead of quotes.
2019-03-31 15:39:43 +02:00
|
|
|
more than 400 in total. To use them set the @code{LOCPATH} environment variable
|
|
|
|
to the @code{share/locale} sub-directory of this package.")
|
2015-02-11 11:19:29 +01:00
|
|
|
(outputs '("out")) ;110+ MiB
|
2015-02-11 22:27:05 +01:00
|
|
|
(native-search-paths '())
|
2015-02-11 11:19:29 +01:00
|
|
|
(arguments
|
|
|
|
(let ((args `(#:tests? #f #:strip-binaries? #f
|
|
|
|
,@(package-arguments glibc))))
|
|
|
|
(substitute-keyword-arguments args
|
2019-06-06 16:52:15 +02:00
|
|
|
((#:modules modules '((guix build utils)
|
|
|
|
(guix build gnu-build-system)))
|
|
|
|
`((srfi srfi-11)
|
|
|
|
(gnu build locale)
|
|
|
|
,@modules))
|
|
|
|
((#:imported-modules modules '())
|
|
|
|
`((gnu build locale)
|
|
|
|
,@%gnu-build-system-modules))
|
2015-02-11 11:19:29 +01:00
|
|
|
((#:phases phases)
|
2017-10-06 14:42:00 +02:00
|
|
|
`(modify-phases ,phases
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
2018-03-16 06:18:04 +01:00
|
|
|
(invoke "make" "localedata/install-locales"
|
|
|
|
"-j" (number->string (parallel-job-count)))))
|
2019-06-06 16:52:15 +02:00
|
|
|
(add-after 'build 'symlink-normalized-codesets
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; The above phase does not install locales with names using
|
|
|
|
;; the "normalized codeset." Thus, create symlinks like:
|
|
|
|
;; en_US.utf8 -> en_US.UTF-8
|
|
|
|
(define (locale-directory? file stat)
|
|
|
|
(and (file-is-directory? file)
|
|
|
|
(string-index (basename file) #\_)
|
|
|
|
(string-rindex (basename file) #\.)))
|
|
|
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(locales (find-files out locale-directory?
|
|
|
|
#:directories? #t)))
|
|
|
|
(for-each (lambda (directory)
|
|
|
|
(let*-values (((base)
|
|
|
|
(basename directory))
|
|
|
|
((name codeset)
|
|
|
|
(locale->name+codeset base))
|
|
|
|
((normalized)
|
|
|
|
(normalize-codeset codeset)))
|
|
|
|
(unless (string=? codeset normalized)
|
|
|
|
(symlink base
|
|
|
|
(string-append (dirname directory)
|
|
|
|
"/" name "."
|
|
|
|
normalized)))))
|
|
|
|
locales)
|
|
|
|
#t)))
|
2017-12-06 15:14:35 +01:00
|
|
|
(delete 'install)
|
|
|
|
(delete 'move-static-libs)))
|
2015-02-11 11:19:29 +01:00
|
|
|
((#:configure-flags flags)
|
|
|
|
`(append ,flags
|
2015-10-01 21:32:50 +02:00
|
|
|
;; Use $(libdir)/locale/X.Y as is the case by default.
|
2016-07-31 04:42:47 +02:00
|
|
|
(list (string-append "libc_cv_complocaledir="
|
2015-02-11 11:19:29 +01:00
|
|
|
(assoc-ref %outputs "out")
|
2015-10-03 18:02:30 +02:00
|
|
|
"/lib/locale/"
|
2017-12-03 02:32:16 +01:00
|
|
|
,(version-major+minor
|
|
|
|
(package-version glibc)))))))))))
|
2015-02-11 11:19:29 +01:00
|
|
|
|
2019-01-17 12:55:53 +01:00
|
|
|
(define-public (make-glibc-utf8-locales glibc)
|
2015-02-25 13:58:15 +01:00
|
|
|
(package
|
|
|
|
(name "glibc-utf8-locales")
|
|
|
|
(version (package-version glibc))
|
|
|
|
(source #f)
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
(arguments
|
2015-10-03 18:02:30 +02:00
|
|
|
`(#:modules ((guix build utils))
|
2015-02-25 13:58:15 +01:00
|
|
|
#:builder (begin
|
2018-03-16 06:26:17 +01:00
|
|
|
(use-modules (guix build utils))
|
2015-02-25 13:58:15 +01:00
|
|
|
|
|
|
|
(let* ((libc (assoc-ref %build-inputs "glibc"))
|
|
|
|
(gzip (assoc-ref %build-inputs "gzip"))
|
|
|
|
(out (assoc-ref %outputs "out"))
|
2015-10-03 18:02:30 +02:00
|
|
|
(localedir (string-append out "/lib/locale/"
|
2017-12-03 02:32:16 +01:00
|
|
|
,(version-major+minor version))))
|
2015-02-25 13:58:15 +01:00
|
|
|
;; 'localedef' needs 'gzip'.
|
|
|
|
(setenv "PATH" (string-append libc "/bin:" gzip "/bin"))
|
|
|
|
|
|
|
|
(mkdir-p localedir)
|
2018-03-16 06:26:17 +01:00
|
|
|
(for-each (lambda (locale)
|
|
|
|
(define file
|
|
|
|
;; Use the "normalized codeset" by
|
|
|
|
;; default--e.g., "en_US.utf8".
|
|
|
|
(string-append localedir "/" locale ".utf8"))
|
|
|
|
|
|
|
|
(invoke "localedef" "--no-archive"
|
|
|
|
"--prefix" localedir
|
|
|
|
"-i" locale
|
|
|
|
"-f" "UTF-8" file)
|
|
|
|
|
|
|
|
;; For backward compatibility with Guix
|
|
|
|
;; <= 0.8.3, add "xx_YY.UTF-8".
|
|
|
|
(symlink (string-append locale ".utf8")
|
|
|
|
(string-append localedir "/"
|
|
|
|
locale ".UTF-8")))
|
|
|
|
|
|
|
|
;; These are the locales commonly used for
|
|
|
|
;; tests---e.g., in Guile's i18n tests.
|
|
|
|
'("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR"))
|
|
|
|
#t))))
|
2015-02-25 13:58:15 +01:00
|
|
|
(inputs `(("glibc" ,glibc)
|
|
|
|
("gzip" ,gzip)))
|
|
|
|
(synopsis "Small sample of UTF-8 locales")
|
|
|
|
(description
|
|
|
|
"This package provides a small sample of UTF-8 locales mostly useful in
|
|
|
|
test environments.")
|
|
|
|
(home-page (package-home-page glibc))
|
|
|
|
(license (package-license glibc))))
|
2015-02-11 11:19:29 +01:00
|
|
|
|
2019-01-17 12:55:53 +01:00
|
|
|
(define-public glibc-locales
|
|
|
|
(make-glibc-locales glibc))
|
|
|
|
(define-public glibc-utf8-locales
|
|
|
|
(make-glibc-utf8-locales glibc))
|
|
|
|
|
|
|
|
(define-public glibc-locales-2.27
|
|
|
|
(package (inherit (make-glibc-locales glibc-2.27))
|
|
|
|
(name "glibc-locales-2.27")))
|
|
|
|
(define-public glibc-utf8-locales-2.27
|
|
|
|
(package (inherit (make-glibc-utf8-locales glibc-2.27))
|
|
|
|
(name "glibc-utf8-locales-2.27")))
|
|
|
|
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 17:21:21 +01:00
|
|
|
(define-public which
|
|
|
|
(package
|
|
|
|
(name "which")
|
2015-06-10 23:39:08 +02:00
|
|
|
(version "2.21")
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 17:21:21 +01:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/which/which-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2015-06-10 23:39:08 +02:00
|
|
|
"1bgafvy3ypbhhfznwjv1lxmd6mci3x1byilnnkc7gcr486wlb8pl"))))
|
gnu: Move 'which' to (gnu packages base).
* gnu/packages/which.scm: Remove.
* gnu-system.am (GNU_SYSTEM_MODULES): Remove it.
* gnu/packages/base.scm (which): New variable.
* gnu/packages/aspell.scm, gnu/packages/audio.scm,
gnu/packages/autogen.scm, gnu/packages/cdrom.scm,
gnu/packages/compression.scm, gnu/packages/datamash.scm,
gnu/packages/games.scm, gnu/packages/glib.scm,
gnu/packages/gnu-pw-mgr.scm, gnu/packages/gnutls.scm,
gnu/packages/gps.scm, gnu/packages/guile.scm,
gnu/packages/java.scm, gnu/packages/libevent.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/node.scm, gnu/packages/ntp.scm,
gnu/packages/orpheus.scm, gnu/packages/pciutils.scm,
gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/sawfish.scm,
gnu/packages/scheme.scm, gnu/packages/ssh.scm,
gnu/packages/statistics.scm, gnu/packages/texlive.scm,
gnu/packages/wdiff.scm: Adjust accordingly.
2015-03-04 17:21:21 +01:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "https://gnu.org/software/which/")
|
|
|
|
(synopsis "Find full path of shell commands")
|
|
|
|
(description
|
|
|
|
"The which program finds the location of executables in PATH, with a
|
|
|
|
variety of options. It is an alternative to the shell \"type\" built-in
|
|
|
|
command.")
|
|
|
|
(license gpl3+))) ; some files are under GPLv2+
|
|
|
|
|
2014-09-27 19:07:19 +02:00
|
|
|
(define-public glibc/hurd-headers
|
2018-11-18 23:12:36 +01:00
|
|
|
(package (inherit glibc)
|
2014-09-27 19:07:19 +02:00
|
|
|
(name "glibc-hurd-headers")
|
|
|
|
(outputs '("out"))
|
|
|
|
(propagated-inputs `(("gnumach-headers" ,gnumach-headers)
|
|
|
|
("hurd-headers" ,hurd-headers)))
|
|
|
|
(arguments
|
2018-11-18 23:12:36 +01:00
|
|
|
(substitute-keyword-arguments (package-arguments glibc)
|
2014-09-27 19:07:19 +02:00
|
|
|
;; We just pass the flags really needed to build the headers.
|
|
|
|
((#:configure-flags _)
|
|
|
|
`(list "--enable-add-ons"
|
2018-11-18 23:12:36 +01:00
|
|
|
"--host=i586-pc-gnu"))
|
2014-09-27 19:07:19 +02:00
|
|
|
((#:phases _)
|
2018-02-20 04:16:00 +01:00
|
|
|
'(modify-phases %standard-phases
|
|
|
|
(replace 'install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(invoke "make" "install-headers")
|
|
|
|
|
|
|
|
;; Make an empty stubs.h to work around not being able to
|
|
|
|
;; produce a valid stubs.h and causing the build to fail. See
|
|
|
|
;; <http://lists.gnu.org/archive/html/guix-devel/2014-04/msg00233.html>.
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(close-port
|
|
|
|
(open-output-file
|
2018-03-23 07:29:03 +01:00
|
|
|
(string-append out "/include/gnu/stubs.h"))))
|
|
|
|
#t))
|
2018-11-18 23:12:36 +01:00
|
|
|
(delete 'build))))))) ; nothing to build
|
2014-09-27 19:07:19 +02:00
|
|
|
|
2013-05-08 22:44:21 +02:00
|
|
|
(define-public tzdata
|
|
|
|
(package
|
|
|
|
(name "tzdata")
|
2019-07-02 17:11:39 +02:00
|
|
|
(version "2019b")
|
2013-05-08 22:44:21 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2019-07-02 01:57:13 +02:00
|
|
|
"https://data.iana.org/time-zones/releases/tzdata"
|
2013-05-08 22:44:21 +02:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-02 17:11:39 +02:00
|
|
|
"0r0clnlslwm15m1c61dinf1fi9ffgl6aipng7i7yryfwj0n0kn85"))))
|
2013-05-08 22:44:21 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:tests? #f
|
|
|
|
#:make-flags (let ((out (assoc-ref %outputs "out"))
|
|
|
|
(tmp (getenv "TMPDIR")))
|
|
|
|
(list (string-append "TOPDIR=" out)
|
|
|
|
(string-append "TZDIR=" out "/share/zoneinfo")
|
2018-02-20 05:47:46 +01:00
|
|
|
(string-append "TZDEFAULT=" out
|
|
|
|
"/share/zoneinfo/localtime")
|
2013-05-08 22:44:21 +02:00
|
|
|
|
|
|
|
;; Likewise for the C library routines.
|
|
|
|
(string-append "LIBDIR=" tmp "/lib")
|
|
|
|
(string-append "MANDIR=" tmp "/man")
|
|
|
|
|
|
|
|
"AWK=awk"
|
|
|
|
"CC=gcc"))
|
|
|
|
#:modules ((guix build utils)
|
|
|
|
(guix build gnu-build-system)
|
|
|
|
(srfi srfi-1))
|
|
|
|
#:phases
|
2016-10-06 20:14:03 +02:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'unpack
|
|
|
|
(lambda* (#:key source inputs #:allow-other-keys)
|
2018-03-16 06:33:04 +01:00
|
|
|
(invoke "tar" "xvf" source)
|
|
|
|
(invoke "tar" "xvf" (assoc-ref inputs "tzcode"))))
|
2016-10-06 20:14:03 +02:00
|
|
|
(add-after 'install 'post-install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Move data in the right place.
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-02-20 05:47:46 +01:00
|
|
|
;; Discard zic, dump, and tzselect, already
|
|
|
|
;; provided by glibc.
|
|
|
|
(delete-file-recursively (string-append out "/usr"))
|
2016-10-06 20:14:03 +02:00
|
|
|
(symlink (string-append out "/share/zoneinfo")
|
|
|
|
(string-append out "/share/zoneinfo/posix"))
|
|
|
|
(delete-file-recursively
|
|
|
|
(string-append out "/share/zoneinfo-posix"))
|
|
|
|
(copy-recursively (string-append out "/share/zoneinfo-leaps")
|
|
|
|
(string-append out "/share/zoneinfo/right"))
|
|
|
|
(delete-file-recursively
|
2018-03-16 06:33:04 +01:00
|
|
|
(string-append out "/share/zoneinfo-leaps"))
|
|
|
|
#t)))
|
2016-10-06 20:14:03 +02:00
|
|
|
(delete 'configure))))
|
2013-05-08 22:44:21 +02:00
|
|
|
(inputs `(("tzcode" ,(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2019-07-02 01:57:13 +02:00
|
|
|
"https://data.iana.org/time-zones/releases/tzcode"
|
2013-05-08 22:44:21 +02:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-02 17:11:39 +02:00
|
|
|
"0vbmswvv3li25s31shyllq5v24449lxnrki9hr043nipjd09sirf"))))))
|
2016-12-02 09:48:03 +01:00
|
|
|
(home-page "https://www.iana.org/time-zones")
|
2013-05-08 22:44:21 +02:00
|
|
|
(synopsis "Database of current and historical time zones")
|
|
|
|
(description "The Time Zone Database (often called tz or zoneinfo)
|
|
|
|
contains code and data that represent the history of local time for many
|
gnu: Some cleanup based on lint checkers.
* gnu/packages/admin.scm, gnu/packages/aidc.scm, gnu/packages/algebra.scm,
gnu/packages/apr.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm,
gnu/packages/base.scm, gnu/packages/calcurse.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/compression.scm, gnu/packages/cook.scm,
gnu/packages/crypto.scm, gnu/packages/cryptsetup.scm, gnu/packages/curl.scm,
gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm,
gnu/packages/doxygen.scm, gnu/packages/dwm.scm, gnu/packages/elf.scm,
gnu/packages/emacs.scm, gnu/packages/feh.scm, gnu/packages/file.scm,
gnu/packages/fish.scm, gnu/packages/flex.scm, gnu/packages/fltk.scm,
gnu/packages/fontutils.scm, gnu/packages/games.scm, gnu/packages/gcal.scm,
gnu/packages/gcc.scm, gnu/packages/geeqie.scm, gnu/packages/ghostscript.scm,
gnu/packages/gimp.scm, gnu/packages/gl.scm, gnu/packages/glib.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gperf.scm, gnu/packages/grub.scm, gnu/packages/gsasl.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile.scm,
gnu/packages/hurd.scm, gnu/packages/icu4c.scm, gnu/packages/image.scm,
gnu/packages/imagemagick.scm, gnu/packages/irssi.scm, gnu/packages/kde.scm,
gnu/packages/libdaemon.scm, gnu/packages/libevent.scm,
gnu/packages/libidn.scm, gnu/packages/libusb.scm, gnu/packages/linux.scm,
gnu/packages/lout.scm, gnu/packages/lsh.scm, gnu/packages/lsof.scm,
gnu/packages/lua.scm, gnu/packages/maths.scm, gnu/packages/mcrypt.scm,
gnu/packages/mp3.scm, gnu/packages/netpbm.scm, gnu/packages/noweb.scm,
gnu/packages/ocaml.scm, gnu/packages/openssl.scm, gnu/packages/pcre.scm,
gnu/packages/pdf.scm, gnu/packages/pkg-config.scm,
gnu/packages/pretty-print.scm, gnu/packages/python.scm, gnu/packages/qt.scm,
gnu/packages/rsync.scm, gnu/packages/scheme.scm, gnu/packages/scrot.scm,
gnu/packages/sdl.scm, gnu/packages/skribilo.scm, gnu/packages/ssh.scm,
gnu/packages/stalonetray.scm, gnu/packages/tcl.scm, gnu/packages/tcsh.scm,
gnu/packages/telephony.scm, gnu/packages/texlive.scm, gnu/packages/tor.scm,
gnu/packages/valgrind.scm, gnu/packages/version-control.scm,
gnu/packages/vim.scm, gnu/packages/vpn.scm, gnu/packages/w3m.scm,
gnu/packages/web.scm, gnu/packages/wordnet.scm, gnu/packages/xiph.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/packages/zile.scm,
gnu/packages/zip.scm, gnu/packages/zsh.scm [synopsis, description]: Adjust
according to lint checkers.
* gnu/packages/fltk.scm (fltk)[source]: Wrap long line in uri.
* /gnu/packages/xiph.scm (libogg, libtheora, vorbis-tools)[source]: Same.
2014-10-24 06:46:59 +02:00
|
|
|
representative locations around the globe. It is updated periodically to
|
2013-05-08 22:44:21 +02:00
|
|
|
reflect changes made by political bodies to time zone boundaries, UTC offsets,
|
|
|
|
and daylight-saving rules.")
|
|
|
|
(license public-domain)))
|
|
|
|
|
2017-11-03 13:10:47 +01:00
|
|
|
;;; A "fixed" version of tzdata, which is used in the test suites of glib and R
|
|
|
|
;;; and a few other places. We can update this whenever we are able to rebuild
|
|
|
|
;;; thousands of packages (for example, in a core-updates rebuild). This package
|
|
|
|
;;; will typically be obsolete and should never be referred to by a built
|
|
|
|
;;; package.
|
2017-11-03 13:07:32 +01:00
|
|
|
(define-public tzdata-for-tests
|
2018-06-12 00:05:18 +02:00
|
|
|
(hidden-package
|
|
|
|
(package
|
|
|
|
(inherit tzdata)
|
2019-01-09 21:46:53 +01:00
|
|
|
(version "2018g")
|
2018-06-12 00:05:18 +02:00
|
|
|
(source (origin
|
2019-01-09 21:46:53 +01:00
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2019-07-02 01:57:13 +02:00
|
|
|
"https://data.iana.org/time-zones/releases/tzdata"
|
2019-01-09 21:46:53 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"05kayi3w9pvhj6ljx1hvwd0r8mxfzn436fjmwhx53xkj919xxpq2"))))
|
|
|
|
(inputs
|
|
|
|
`(("tzcode" ,(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
2019-07-02 01:57:13 +02:00
|
|
|
"http://data.iana.org/time-zones/releases/tzcode"
|
2019-01-09 21:46:53 +01:00
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"09y44fzcdq3c06saa8iqqa0a59cyw6ni3p31ps0j1w3hcpxz8lxa")))))))))
|
2017-03-09 00:03:38 +01:00
|
|
|
|
2016-05-03 18:48:40 +02:00
|
|
|
(define-public libiconv
|
|
|
|
(package
|
|
|
|
(name "libiconv")
|
2017-04-18 05:38:01 +02:00
|
|
|
(version "1.15")
|
2016-05-03 18:48:40 +02:00
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://gnu/libiconv/libiconv-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2017-05-02 12:19:55 +02:00
|
|
|
"0y1ij745r4p48mxq84rax40p10ln7fc7m243p8k8sia519i3dxfc"))
|
2016-05-03 18:48:40 +02:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
;; Work around "declared gets" error on glibc systems (fixed by
|
|
|
|
;; Gnulib commit 66712c23388e93e5c518ebc8515140fa0c807348.)
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 12:47:34 +01:00
|
|
|
'(begin
|
|
|
|
(substitute* "srclib/stdio.in.h"
|
|
|
|
(("^#undef gets") "")
|
|
|
|
(("^_GL_WARN_ON_USE \\(gets.*") ""))
|
|
|
|
#t))))
|
2016-05-03 18:48:40 +02:00
|
|
|
(build-system gnu-build-system)
|
|
|
|
(synopsis "Character set conversion library")
|
|
|
|
(description
|
|
|
|
"libiconv provides an implementation of the iconv function for systems
|
|
|
|
that lack it. iconv is used to convert between character encodings in a
|
|
|
|
program. It supports a wide variety of different encodings.")
|
2017-03-30 00:48:16 +02:00
|
|
|
(home-page "https://www.gnu.org/software/libiconv/")
|
2016-05-03 18:48:40 +02:00
|
|
|
(license lgpl3+)))
|
|
|
|
|
2016-05-03 18:49:33 +02:00
|
|
|
(define* (libiconv-if-needed #:optional (target (%current-target-system)))
|
|
|
|
"Return either a libiconv package specification to include in a dependency
|
|
|
|
list for platforms that have an incomplete libc, or the empty list. If a
|
|
|
|
package needs iconv ,@(libiconv-if-needed) should be added."
|
|
|
|
;; POSIX C libraries provide iconv. Platforms with an incomplete libc
|
|
|
|
;; without iconv, such as MinGW, must return the then clause.
|
|
|
|
(if (target-mingw? target)
|
|
|
|
`(("libiconv" ,libiconv))
|
|
|
|
'()))
|
|
|
|
|
gnu: Split (gnu packages base), adding (gnu packages commencement).
* gnu/packages/base.scm (gnu-make-boot0, diffutils-boot0,
findutils-boot0, %boot0-inputs, nix-system->gnu-triplet, boot-triplet,
binutils-boot0, gcc-boot0, perl-boot0, linux-libre-headers-boot0,
texinfo-boot0, %boot1-inputs, glibc-final-with-bootstrap-bash,
cross-gcc-wrapper, static-bash-for-glibc, glibc-final,
gcc-boot0-wrapped, %boot2-inputs, binutils-final, libstdc++,
gcc-final, ld-wrapper-boot3, %boot3-inputs, bash-final, %boot4-inputs,
guile-final, gnu-make-final, ld-wrapper, coreutils-final, grep-final,
%boot5-inputs, %final-inputs, canonical-package, gcc-toolchain,
gcc-toolchain-4.8, gcc-toolchain-4.9): Move to...
* gnu/packages/commencement.scm: ... here. New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
* build-aux/check-final-inputs-self-contained.scm: Adjust accordingly.
* gnu/packages/cross-base.scm: Likewise.
* gnu/packages/make-bootstrap.scm: Likewise.
* guix/build-system/cmake.scm (cmake-build): Likewise.
* guix/build-system/gnu.scm (standard-packages, gnu-build,
gnu-cross-build): Likewise.
* guix/build-system/perl.scm (perl-build): Likewise.
* guix/build-system/python.scm (python-build): Likewise.
* guix/build-system/trivial.scm (guile-for-build): Likewise.
* guix/download.scm (url-fetch): Likewise.
* guix/gexp.scm (default-guile): Likewise.
* guix/git-download.scm (git-fetch): Likewise.
* guix/monads.scm (run-with-store): Likewise.
* guix/packages.scm (default-guile): Likewise.
* guix/scripts/package.scm (guix-package): Likewise.
* guix/scripts/refresh.scm: Likewise.
* guix/svn-download.scm (svn-fetch): Likewise.
* tests/builders.scm (%bootstrap-inputs, %bootstrap-search-paths):
Likewise.
* tests/packages.scm ("GNU Make, bootstrap"): Likewise.
* tests/guix-package.sh: Likewise.
* gnu/services/base.scm: Use 'canonical-package' instead of xxx-final.
* gnu/services/xorg.scm: Likewise.
* gnu/system/vm.scm: Likewise.
* guix/scripts/pull.scm (guix-pull): Likewise.
2014-08-27 00:25:17 +02:00
|
|
|
(define-public (canonical-package package)
|
|
|
|
;; Avoid circular dependency by lazily resolving 'commencement'.
|
|
|
|
(let* ((iface (resolve-interface '(gnu packages commencement)))
|
|
|
|
(proc (module-ref iface 'canonical-package)))
|
|
|
|
(proc package)))
|
2014-04-22 17:44:45 +02:00
|
|
|
|
2016-11-04 15:16:11 +01:00
|
|
|
(define-public (%final-inputs)
|
|
|
|
"Return the list of \"final inputs\"."
|
|
|
|
;; Avoid circular dependency by lazily resolving 'commencement'.
|
|
|
|
(let ((iface (resolve-interface '(gnu packages commencement))))
|
|
|
|
(module-ref iface '%final-inputs)))
|
|
|
|
|
distro: Add the `guile', `typesetting', and `databases' package modules.
* distro.scm (package-files): Adjust PREFIX-LEN to use the top-level
directory, not %DISTRO-MODULE-DIRECTORY.
* distro/packages/base.scm (guile-reader, guile-reader/guile-1.8,
guile-reader/guile-2.0, lout, recutils): Move to...
* distro/packages/guile.scm, distro/packages/typesetting.scm,
distro/packages/databases.scm: ... here. New files.
* Makefile.am (MODULES): Add them.
(EXTRA_DIST): Add `.dir-locals.el'.
* .dir-locals.el: New file, with settings formerly in `base.scm'.
2012-09-26 22:17:41 +02:00
|
|
|
;;; base.scm ends here
|