2013-01-05 18:47:50 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-01-15 08:00:00 -05:00
|
|
|
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
|
2019-02-01 15:41:31 -05:00
|
|
|
|
;;; Copyright © 2014, 2019 Andreas Enge <andreas@enge.fr>
|
2013-01-05 18:47:50 -05:00
|
|
|
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
2018-03-16 01:14:02 -04:00
|
|
|
|
;;; Copyright © 2014, 2015, 2016, 2018 Mark H Weaver <mhw@netris.org>
|
2014-12-05 07:59:00 -05:00
|
|
|
|
;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
|
2014-09-27 13:07:19 -04:00
|
|
|
|
;;; Copyright © 2014, 2015 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
|
2021-01-26 04:26:41 -05:00
|
|
|
|
;;; Copyright © 2016, 2017, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
|
2020-04-29 18:00:24 -04:00
|
|
|
|
;;; Copyright © 2016, 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2018-02-01 10:03:55 -05:00
|
|
|
|
;;; Copyright © 2016, 2018 Alex Vong <alexvong1995@gmail.com>
|
2017-02-22 00:21:49 -05:00
|
|
|
|
;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
|
2020-03-08 15:41:51 -04:00
|
|
|
|
;;; Copyright © 2017, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
|
2020-02-01 10:28:43 -05:00
|
|
|
|
;;; Copyright © 2017, 2018, 2020 Marius Bakke <mbakke@fastmail.com>
|
2017-10-30 12:23:46 -04:00
|
|
|
|
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
|
2018-02-19 22:16:00 -05:00
|
|
|
|
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
2022-02-04 18:56:54 -05:00
|
|
|
|
;;; Copyright © 2018, 2019, 2022 Ricardo Wurmus <rekado@elephly.net>
|
2020-03-21 10:03:01 -04:00
|
|
|
|
;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
|
2020-06-10 02:35:56 -04:00
|
|
|
|
;;; Copyright © 2020 Chris Marusich <cmmarusich@gmail.com>
|
2021-02-06 14:02:31 -05:00
|
|
|
|
;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
|
2021-07-14 07:12:52 -04:00
|
|
|
|
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
|
2021-09-06 11:32:38 -04:00
|
|
|
|
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
|
2021-09-14 10:44:30 -04:00
|
|
|
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2012-06-27 19:24:34 -04:00
|
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
|
;;; This file is part of GNU Guix.
|
2012-06-27 19:24:34 -04:00
|
|
|
|
;;;
|
2013-01-05 18:47:50 -05:00
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
2012-06-27 19:24:34 -04: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-05 18:47:50 -05:00
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
2012-06-27 19:24:34 -04: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-05 18:47:50 -05:00
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
2012-06-27 19:24:34 -04:00
|
|
|
|
|
2013-01-17 19:06:24 -05:00
|
|
|
|
(define-module (gnu packages base)
|
2013-04-20 11:47:59 -04:00
|
|
|
|
#:use-module ((guix licenses)
|
2016-05-03 12:48:40 -04:00
|
|
|
|
#:select (gpl3+ lgpl2.0+ lgpl3+ public-domain))
|
2013-01-17 19:06:47 -05:00
|
|
|
|
#:use-module (gnu packages)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages acl)
|
2019-02-01 15:41:31 -05:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2020-05-30 14:19:00 -04:00
|
|
|
|
#:use-module (gnu packages attr)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages bash)
|
2018-03-15 16:08:37 -04:00
|
|
|
|
#:use-module (gnu packages bison)
|
2014-08-28 15:34:17 -04:00
|
|
|
|
#:use-module (gnu packages ed)
|
2022-02-04 18:56:54 -05:00
|
|
|
|
#:use-module (gnu packages gawk)
|
2019-02-01 15:41:31 -05:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages guile)
|
|
|
|
|
#:use-module (gnu packages multiprecision)
|
2015-02-25 07:58:15 -05:00
|
|
|
|
#:use-module (gnu packages compression)
|
2013-01-17 19:06:24 -05:00
|
|
|
|
#:use-module (gnu packages perl)
|
|
|
|
|
#:use-module (gnu packages linux)
|
2018-01-11 11:56:05 -05:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2014-01-07 12:08:51 -05:00
|
|
|
|
#:use-module (gnu packages texinfo)
|
2014-09-27 13:07:19 -04:00
|
|
|
|
#:use-module (gnu packages hurd)
|
2014-01-07 12:10:01 -05:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2019-07-02 10:45:17 -04:00
|
|
|
|
#:use-module (gnu packages python)
|
2015-04-22 21:48:20 -04:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2020-11-04 09:48:45 -05:00
|
|
|
|
#:use-module (guix i18n)
|
2015-02-11 05:19:29 -05:00
|
|
|
|
#:use-module (guix utils)
|
2021-07-02 10:34:43 -04:00
|
|
|
|
#:use-module (guix gexp)
|
2012-06-27 19:24:34 -04: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-12 18:22:44 -05:00
|
|
|
|
#:use-module (guix download)
|
2014-09-27 13:07:19 -04:00
|
|
|
|
#:use-module (guix git-download)
|
2015-02-25 07:58:15 -05:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2016-06-06 10:21:51 -04:00
|
|
|
|
#:use-module (guix build-system trivial)
|
2020-11-04 09:48:45 -05:00
|
|
|
|
#:use-module (ice-9 format)
|
2016-06-06 10:21:51 -04:00
|
|
|
|
#:use-module (ice-9 match)
|
2020-11-04 09:48:45 -05:00
|
|
|
|
#:use-module (ice-9 optargs)
|
2019-02-01 15:41:31 -05:00
|
|
|
|
#:use-module (srfi srfi-1)
|
|
|
|
|
#:use-module (srfi srfi-26)
|
2016-05-03 12:49:33 -04:00
|
|
|
|
#:export (glibc
|
2021-09-14 10:44:30 -04:00
|
|
|
|
make-ld-wrapper
|
2016-05-03 12:49:33 -04:00
|
|
|
|
libiconv-if-needed))
|
2012-06-27 19:24:34 -04: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 16:17:41 -04:00
|
|
|
|
;;; Base packages of the Guix-based GNU user-land software distribution.
|
2012-06-27 19:24:34 -04:00
|
|
|
|
;;;
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
(define-public hello
|
|
|
|
|
(package
|
2015-09-13 16:26:37 -04:00
|
|
|
|
(name "hello")
|
2022-01-08 19:00:00 -05:00
|
|
|
|
(version "2.11")
|
2015-09-13 16:26:37 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/hello/hello-" version
|
|
|
|
|
".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-01-08 19:00:00 -05:00
|
|
|
|
"1g84a3hqs4pgx3yzs99cysv3iq440ncdw77bf03fsi1w5mby174c"))))
|
2015-09-13 16:26:37 -04:00
|
|
|
|
(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 10:14:23 -04:00
|
|
|
|
serves as an example of standard GNU coding practices. As such, it supports
|
|
|
|
|
command-line arguments, multiple languages, and so on.")
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/hello/")
|
2015-09-13 16:26:37 -04:00
|
|
|
|
(license gpl3+)))
|
2012-07-05 18:55:07 -04:00
|
|
|
|
|
2012-08-22 09:22:38 -04:00
|
|
|
|
(define-public grep
|
|
|
|
|
(package
|
|
|
|
|
(name "grep")
|
2020-11-17 09:28:58 -05:00
|
|
|
|
(version "3.6")
|
2012-08-22 09:22:38 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/grep/grep-"
|
2012-08-22 09:22:38 -04:00
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-11-17 09:28:58 -05:00
|
|
|
|
"0gipv6bzkm1aihj0ncqpyh164xrzgcxcv9r1kwzyk2g1mzl1azk6"))
|
2017-08-30 00:21:38 -04:00
|
|
|
|
(patches (search-patches "grep-timing-sensitive-test.patch"))))
|
2012-08-22 09:22:38 -04:00
|
|
|
|
(build-system gnu-build-system)
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(native-inputs (list perl)) ;some of the tests require it
|
|
|
|
|
(inputs (list pcre))
|
2016-08-20 21:40:59 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(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")
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
(string-append "exec " bin "/grep")))))))))
|
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 12:04:25 -04:00
|
|
|
|
(synopsis "Print lines matching a pattern")
|
2012-11-04 07:41:34 -05:00
|
|
|
|
(description
|
2014-11-05 17:23:38 -05: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 10:14:23 -04:00
|
|
|
|
matching a pattern provided by the user in one or many files. The pattern
|
2013-12-01 16:33:23 -05: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/grep/")))
|
2012-08-22 09:22:38 -04:00
|
|
|
|
|
2012-08-22 09:11:12 -04:00
|
|
|
|
(define-public sed
|
|
|
|
|
(package
|
|
|
|
|
(name "sed")
|
2020-01-15 03:32:07 -05:00
|
|
|
|
(version "4.8")
|
2012-08-22 09:11:12 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/sed/sed-" version
|
2020-01-15 03:32:07 -05:00
|
|
|
|
".tar.gz"))
|
2012-08-22 09:11:12 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-06-10 02:35:56 -04:00
|
|
|
|
"0alqagh0nliymz23kfjg6g9w3cr086k0sfni56gi8fhzqwa3xksk"))
|
2021-07-18 17:48:14 -04:00
|
|
|
|
(patches (search-patches "coreutils-gnulib-tests.patch"))
|
|
|
|
|
|
2020-06-10 02:35:56 -04:00
|
|
|
|
;; Remove this snippet once upstream releases a fixed version.
|
|
|
|
|
;; This snippet changes Makefile.in, even though the upstream
|
|
|
|
|
;; patch changes testsuite/local.mk, since we build sed from a
|
|
|
|
|
;; release tarball. See: https://bugs.gnu.org/36150
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
|
(("^ abs_srcdir='\\$\\(abs_srcdir\\)'.*" previous-line)
|
|
|
|
|
(string-append
|
|
|
|
|
previous-line
|
|
|
|
|
" CONFIG_HEADER='$(CONFIG_HEADER)'\t\t\\\n")))))
|
|
|
|
|
(modules '((guix build utils)))))
|
2012-08-22 09:11:12 -04: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 12:04:25 -04:00
|
|
|
|
(synopsis "Stream editor")
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(native-inputs (list perl)) ;for tests
|
2012-11-04 07:41:34 -05: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 10:14:23 -04: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 16:33:23 -05: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-01-04 10:47:48 -05:00
|
|
|
|
(home-page "https://www.gnu.org/software/sed/")))
|
2012-08-22 09:11:12 -04:00
|
|
|
|
|
2012-08-22 09:21:50 -04:00
|
|
|
|
(define-public tar
|
|
|
|
|
(package
|
|
|
|
|
(name "tar")
|
2021-02-18 02:54:51 -05:00
|
|
|
|
(version "1.34")
|
2012-08-22 09:21:50 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/tar/tar-"
|
2014-08-03 20:05:55 -04:00
|
|
|
|
version ".tar.xz"))
|
2012-08-22 09:21:50 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-02-18 02:54:51 -05:00
|
|
|
|
"0a0x87anh9chbi2cgcyy7pmnm5hzk4yd1w2j8gm1wplwhwkbvgk3"))
|
2018-01-09 21:09:22 -05:00
|
|
|
|
(patches (search-patches "tar-skip-unreliable-tests.patch"
|
|
|
|
|
"tar-remove-wholesparse-check.patch"))))
|
2012-08-22 09:21:50 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2016-05-17 04:46:26 -04:00
|
|
|
|
;; Note: test suite requires ~1GiB of disk space.
|
|
|
|
|
(arguments
|
2020-04-15 03:42:09 -04:00
|
|
|
|
`(,@(if (hurd-target?)
|
|
|
|
|
'(#:make-flags
|
|
|
|
|
(list (string-append
|
|
|
|
|
"TESTSUITEFLAGS= -k '"
|
|
|
|
|
"!sparse"
|
|
|
|
|
",!renamed dirs in incrementals"
|
|
|
|
|
",!--exclude-tag option in incremental pass"
|
|
|
|
|
",!incremental dumps with -C"
|
|
|
|
|
",!incremental dumps of nested directories"
|
|
|
|
|
",!incremental restores with -C"
|
|
|
|
|
",!concatenated incremental archives (renames)"
|
|
|
|
|
",!renamed directory containing subdirectories"
|
|
|
|
|
",!renamed subdirectories"
|
|
|
|
|
"'")))
|
|
|
|
|
'())
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
2016-05-17 04:46:26 -04: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")
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
(string-append bash "/bin/sh")))))))))
|
2016-06-10 05:25:09 -04: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)
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(list bash)
|
2016-06-10 05:25:09 -04: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 12:04:25 -04:00
|
|
|
|
(synopsis "Managing tar archives")
|
2012-11-04 07:41:34 -05: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 10:14:23 -04: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 16:33:23 -05: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/tar/")))
|
2012-08-22 09:21:50 -04:00
|
|
|
|
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(define-public patch
|
|
|
|
|
(package
|
|
|
|
|
(name "patch")
|
2018-03-14 17:00:05 -04:00
|
|
|
|
(version "2.7.6")
|
2015-02-11 05:23:46 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/patch/patch-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-03-14 17:00:05 -04:00
|
|
|
|
"1zfqy4rdcy279vwn2z1kbv19dcfw25d2aqy9nzvdkq5bjzd0nqdc"))
|
2016-04-08 08:18:13 -04:00
|
|
|
|
(patches (search-patches "patch-hurd-path-max.patch"))))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2018-04-22 16:16:36 -04: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: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(native-inputs (list 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 12:04:25 -04:00
|
|
|
|
(synopsis "Apply differences to originals, with optional backups")
|
2012-11-04 07:41:34 -05: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 10:14:23 -04:00
|
|
|
|
"Patch is a program that applies changes to files based on differences
|
2013-12-01 16:33:23 -05: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 10:14:23 -04: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://savannah.gnu.org/projects/patch/")))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(define-public diffutils
|
|
|
|
|
(package
|
|
|
|
|
(name "diffutils")
|
2021-08-28 00:57:15 -04:00
|
|
|
|
(version "3.8")
|
2012-08-22 11:24:38 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/diffutils/diffutils-"
|
2012-08-22 11:24:38 -04:00
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-08-28 00:57:15 -04:00
|
|
|
|
"1v4g8gi0lgakqa7iix8s4fq7lq6l92vw3rjd9wfd2rhjng8xggd6"))
|
|
|
|
|
(patches (search-patches "diffutils-fix-signal-processing.patch"))))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(build-system gnu-build-system)
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(native-inputs (list perl))
|
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 12:04:25 -04:00
|
|
|
|
(synopsis "Comparing and merging files")
|
2012-11-04 07:41:34 -05:00
|
|
|
|
(description
|
2013-12-01 16:33:23 -05: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 08:16:07 -04:00
|
|
|
|
differ, while \"cmp\" shows the offsets and line numbers where they differ.
|
2013-12-01 16:33:23 -05: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 10:14:23 -04: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/diffutils/")))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
|
2012-08-22 09:51:17 -04:00
|
|
|
|
(define-public findutils
|
|
|
|
|
(package
|
|
|
|
|
(name "findutils")
|
2021-01-15 08:00:00 -05:00
|
|
|
|
(version "4.8.0")
|
2012-08-22 09:51:17 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/findutils/findutils-"
|
2019-11-29 22:41:12 -05:00
|
|
|
|
version ".tar.xz"))
|
2012-08-22 09:51:17 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-01-15 08:00:00 -05:00
|
|
|
|
"0r3i72hnw0a30khlczi9k2c51aamaj6kfmp5mk3844nrjxz7n4jp"))
|
|
|
|
|
(patches (search-patches "findutils-localstatedir.patch"))))
|
2012-08-22 09:51:17 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2015-06-04 06:49:43 -04:00
|
|
|
|
`(#:configure-flags (list
|
|
|
|
|
;; Tell 'updatedb' to write to /var.
|
2019-11-29 22:41:12 -05:00
|
|
|
|
"--localstatedir=/var")
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'adjust-test-shebangs
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* '("tests/xargs/verbose-quote.sh"
|
|
|
|
|
"tests/find/exec-plus-last-file.sh")
|
|
|
|
|
(("#!/bin/sh")
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
(string-append "#!" (which "sh")))))))))
|
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 12:04:25 -04:00
|
|
|
|
(synopsis "Operating on files matching given criteria")
|
2012-11-04 07:41:34 -05: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 10:14:23 -04: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 16:33:23 -05: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/findutils/")))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
|
|
|
|
|
(define-public coreutils
|
|
|
|
|
(package
|
|
|
|
|
(name "coreutils")
|
2020-03-05 11:47:41 -05:00
|
|
|
|
(version "8.32")
|
2012-08-22 11:24:38 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/coreutils/coreutils-"
|
2012-08-22 11:24:38 -04:00
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-03-08 15:41:51 -04:00
|
|
|
|
"1yjcrh5hw70c0yn8zw55pd6j51dj90anpq8mmg649ps9g3gdhn24"))
|
2021-07-09 05:49:29 -04:00
|
|
|
|
(patches (search-patches "coreutils-ls.patch"
|
|
|
|
|
"coreutils-gnulib-tests.patch"))))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(build-system gnu-build-system)
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(inputs `(,acl ;TODO: add SELinux
|
|
|
|
|
,attr ;for xattrs in ls, mv, etc
|
|
|
|
|
,gmp ;bignums in 'expr', yay!
|
2015-09-04 05:56:51 -04:00
|
|
|
|
|
2020-03-07 03:53:38 -05:00
|
|
|
|
;; Do not use libcap when cross-compiling since it's not quite
|
|
|
|
|
;; cross-compilable; and use it only for supported systems.
|
|
|
|
|
,@(if (and (not (%current-target-system))
|
2020-03-30 07:03:11 -04:00
|
|
|
|
(member (%current-system)
|
|
|
|
|
(package-supported-systems libcap)))
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
`(,libcap) ;capability support in 'ls', etc.
|
2021-05-09 05:41:08 -04:00
|
|
|
|
'())))
|
2014-02-06 06:17:16 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
;; Perl is needed to run tests in native builds, and to run the bundled
|
2014-02-10 12:27:42 -05: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 17:20:54 -04:00
|
|
|
|
(if (%current-target-system)
|
|
|
|
|
'()
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(list perl)))
|
2013-07-03 17:55:04 -04:00
|
|
|
|
(outputs '("out" "debug"))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(arguments
|
2013-01-02 16:44:58 -05:00
|
|
|
|
`(#:parallel-build? #f ; help2man may be called too early
|
2020-03-05 14:25:08 -05:00
|
|
|
|
,@(if (hurd-target?)
|
|
|
|
|
'(#:make-flags ; these tests fail deterministically
|
|
|
|
|
(list (string-append "XFAIL_TESTS=tests/misc/env-S.pl"
|
|
|
|
|
" tests/misc/kill.sh"
|
|
|
|
|
" tests/misc/nice.sh"
|
2020-07-08 01:37:24 -04:00
|
|
|
|
" tests/misc/pwd-long.sh"
|
2020-03-05 14:25:08 -05:00
|
|
|
|
" tests/split/fail.sh"
|
|
|
|
|
" test-fdutimensat"
|
|
|
|
|
" test-futimens"
|
|
|
|
|
" test-linkat"
|
|
|
|
|
" test-renameat"
|
|
|
|
|
" test-renameatu"
|
|
|
|
|
" test-tls"
|
|
|
|
|
" test-utimensat")))
|
|
|
|
|
'())
|
2017-10-07 14:33:58 -04: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 06:22:05 -04:00
|
|
|
|
|
2017-10-07 14:33:58 -04:00
|
|
|
|
(substitute* (find-files "gnulib-tests" "\\.c$")
|
|
|
|
|
(("/bin/sh") (which "sh")))
|
|
|
|
|
(substitute* (find-files "tests" "\\.sh$")
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
(("#!/bin/sh") (string-append "#!" (which "sh"))))))
|
2021-06-05 11:22:58 -04:00
|
|
|
|
(add-after 'unpack 'remove-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
,@(if (hurd-target?)
|
|
|
|
|
'((substitute* "Makefile.in"
|
2020-06-17 01:29:30 -04:00
|
|
|
|
;; this test hangs
|
2021-06-05 11:22:58 -04:00
|
|
|
|
(("^ *tests/misc/timeout-group.sh.*") "")))
|
|
|
|
|
'())
|
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
|
;; fails on filesystems where inotify cannot be used,
|
|
|
|
|
;; more info in #47935
|
|
|
|
|
(("^ *tests/tail-2/inotify-dir-recreate.sh.*") "")))))))
|
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 12:04:25 -04:00
|
|
|
|
(synopsis "Core GNU utilities (file, text, shell)")
|
2012-11-04 07:41:34 -05:00
|
|
|
|
(description
|
2020-03-21 10:03:01 -04:00
|
|
|
|
"GNU Coreutils package includes all of the basic command-line tools that
|
|
|
|
|
are expected in a POSIX system, excluding shell. This package is the union of
|
|
|
|
|
the GNU fileutils, sh-utils, and textutils packages. 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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/coreutils/")))
|
2012-08-22 09:51:17 -04:00
|
|
|
|
|
2015-09-04 08:50:11 -04:00
|
|
|
|
(define-public coreutils-minimal
|
2015-08-19 08:16:39 -04:00
|
|
|
|
;; Coreutils without its optional dependencies.
|
|
|
|
|
(package
|
|
|
|
|
(inherit coreutils)
|
2015-09-04 08:50:11 -04:00
|
|
|
|
(name "coreutils-minimal")
|
2015-08-19 08:16:39 -04:00
|
|
|
|
(outputs '("out"))
|
2021-07-18 07:37:24 -04:00
|
|
|
|
(native-inputs '())
|
2015-08-19 08:16:39 -04:00
|
|
|
|
(inputs '())))
|
|
|
|
|
|
2020-05-11 06:52:43 -04:00
|
|
|
|
(define-public coreutils-8.30
|
|
|
|
|
;; XXX: This version is kept just so we can run PRoot tests.
|
|
|
|
|
(hidden-package
|
|
|
|
|
(package
|
|
|
|
|
(inherit coreutils-minimal)
|
|
|
|
|
(version "8.30")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/coreutils/coreutils-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0mxhw43d4wpqmvg0l4znk1vm10fy92biyh90lzdnqjcic2lb6cg8"))))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments coreutils-minimal)
|
|
|
|
|
((#:phases phases '%standard-phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(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"
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
(("^.*tests/misc/env-S.pl.*$") "")))))))))))
|
2020-05-11 06:52:43 -04:00
|
|
|
|
|
2012-08-21 12:14:57 -04:00
|
|
|
|
(define-public gnu-make
|
|
|
|
|
(package
|
|
|
|
|
(name "make")
|
2020-01-20 12:13:53 -05:00
|
|
|
|
(version "4.3")
|
2012-08-21 12:14:57 -04: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-12 18:22:44 -05: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 17:34:03 -05:00
|
|
|
|
(uri (string-append "mirror://gnu/make/make-" version
|
2020-01-20 12:13:53 -05:00
|
|
|
|
".tar.gz"))
|
2012-08-21 12:14:57 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-01-20 12:13:53 -05:00
|
|
|
|
"06cfqzpqsvdnsxbysl5p2fgdgxgl9y4p7scpnrfa8z2zgkjdspz0"))
|
|
|
|
|
(patches (search-patches "make-impure-dirs.patch"))))
|
2012-08-21 12:14:57 -04:00
|
|
|
|
(build-system gnu-build-system)
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(native-inputs (list pkg-config)) ;to detect Guile
|
|
|
|
|
(inputs (list guile-3.0))
|
2013-07-03 17:55:04 -04:00
|
|
|
|
(outputs '("out" "debug"))
|
2012-12-19 06:34:53 -05:00
|
|
|
|
(arguments
|
2020-02-26 20:22:18 -05:00
|
|
|
|
`(,@(if (hurd-target?)
|
|
|
|
|
'(#:configure-flags '("CFLAGS=-D__alloca=alloca"
|
|
|
|
|
"ac_cv_func_posix_spawn=no"))
|
|
|
|
|
'())
|
2018-03-18 10:12:17 -04:00
|
|
|
|
#:phases
|
2016-08-14 02:47:28 -04: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")))
|
2020-01-20 12:13:53 -05:00
|
|
|
|
(substitute* "src/job.c"
|
2016-08-14 02:47:28 -04:00
|
|
|
|
(("default_shell =.*$")
|
2017-01-05 03:02:08 -05:00
|
|
|
|
(format #f "default_shell = \"~a/bin/sh\";\n"
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
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 12:04:25 -04:00
|
|
|
|
(synopsis "Remake files automatically")
|
2012-11-04 07:41:34 -05: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 10:14:23 -04: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 16:33:23 -05: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/make/")))
|
2012-08-21 12:14:57 -04:00
|
|
|
|
|
2020-03-28 15:57:27 -04:00
|
|
|
|
(define-public gnu-make-4.2
|
|
|
|
|
(package
|
|
|
|
|
(inherit gnu-make)
|
|
|
|
|
(version "4.2.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/make/make-" version
|
|
|
|
|
".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"12f5zzyq2w56g95nni65hc0g5p7154033y2f3qmjvd016szn5qnn"))))
|
|
|
|
|
(arguments
|
2021-09-14 17:38:37 -04:00
|
|
|
|
`(#:configure-flags '("CFLAGS=-D__alloca=alloca -D__stat=stat")
|
2020-03-28 15:57:27 -04:00
|
|
|
|
#:phases
|
|
|
|
|
(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 =.*$")
|
|
|
|
|
(format #f "default_shell = \"~a/bin/sh\";\n"
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
bash)))))))))))
|
2020-03-28 15:57:27 -04:00
|
|
|
|
|
2012-08-25 07:11:13 -04:00
|
|
|
|
(define-public binutils
|
|
|
|
|
(package
|
|
|
|
|
(name "binutils")
|
2021-07-19 14:44:27 -04:00
|
|
|
|
(version "2.37")
|
2021-09-06 11:32:38 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/binutils/binutils-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1m3b2rdfv1dmdpd0bzg1hy7i8a2qng53szc6livyi3nh6101mz37"))
|
|
|
|
|
(patches (search-patches "binutils-loongson-workaround.patch"
|
2021-12-24 13:16:54 -05:00
|
|
|
|
"binutils-2.37-file-descriptor-leak.patch"
|
|
|
|
|
"binutils-CVE-2021-45078.patch"))))
|
2012-08-25 07:11:13 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2021-12-17 15:48:44 -05:00
|
|
|
|
`(#:out-of-source? #t ;recommended in the README
|
|
|
|
|
#:configure-flags '(;; Add `-static-libgcc' to not retain a dependency
|
2012-11-15 18:23:06 -05:00
|
|
|
|
;; on GCC when bootstrapping.
|
|
|
|
|
"LDFLAGS=-static-libgcc"
|
2012-08-25 07:11:13 -04:00
|
|
|
|
|
2018-03-16 09:53:01 -04: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-15 18:23:06 -05:00
|
|
|
|
;; Don't search under /usr/lib & co.
|
2013-03-15 13:37:40 -04:00
|
|
|
|
"--with-lib-path=/no-ld-lib-path"
|
|
|
|
|
|
2014-01-08 16:30:33 -05:00
|
|
|
|
;; Install BFD. It ends up in a hidden directory,
|
|
|
|
|
;; but it's here.
|
2014-02-06 08:06:28 -05:00
|
|
|
|
"--enable-install-libbfd"
|
|
|
|
|
|
|
|
|
|
;; Make sure 'ar' and 'ranlib' produce archives in a
|
|
|
|
|
;; deterministic fashion.
|
2021-12-17 15:48:44 -05:00
|
|
|
|
"--enable-deterministic-archives"
|
|
|
|
|
|
|
|
|
|
"--enable-64-bit-bfd"
|
|
|
|
|
"--enable-compressed-debug-sections=all"
|
|
|
|
|
"--enable-lto"
|
|
|
|
|
"--enable-separate-code"
|
|
|
|
|
"--enable-threads")))
|
2012-08-25 07:11:13 -04: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 12:04:25 -04:00
|
|
|
|
(synopsis "Binary utilities: bfd gas gprof ld")
|
2012-11-04 07:41:34 -05: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 10:14:23 -04:00
|
|
|
|
"GNU Binutils is a collection of tools for working with binary files.
|
2014-09-13 09:31:31 -04: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 10:14:04 -05:00
|
|
|
|
(license gpl3+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/binutils/")))
|
2012-08-25 07:11:13 -04:00
|
|
|
|
|
2020-02-15 12:37:49 -05:00
|
|
|
|
;; FIXME: ath9k-firmware-htc-binutils.patch do not apply on 2.34 because of a
|
|
|
|
|
;; big refactoring of xtensa-modules.c (commit 567607c11fbf7105 upstream).
|
|
|
|
|
;; Keep this version around until the patch is updated.
|
|
|
|
|
(define-public binutils-2.33
|
2020-06-26 07:54:10 -04:00
|
|
|
|
(package
|
|
|
|
|
(inherit binutils)
|
2020-02-15 12:37:49 -05:00
|
|
|
|
(version "2.33.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(inherit (package-source binutils))
|
|
|
|
|
(uri (string-append "mirror://gnu/binutils/binutils-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-13 07:58:31 -05:00
|
|
|
|
"1cmd0riv37bqy9mwbg6n3523qgr8b3bbm5kwj19sjrasl4yq9d0c"))
|
|
|
|
|
(patches '())))
|
2020-02-15 12:37:49 -05:00
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments binutils)
|
|
|
|
|
((#:make-flags _ ''()) ''())))
|
|
|
|
|
(properties '())))
|
|
|
|
|
|
2019-02-01 15:41:31 -05:00
|
|
|
|
(define-public binutils-gold
|
2021-12-17 15:48:44 -05:00
|
|
|
|
(package/inherit binutils
|
2019-02-01 15:41:31 -05:00
|
|
|
|
(name "binutils-gold")
|
|
|
|
|
(arguments
|
2021-11-10 11:05:37 -05:00
|
|
|
|
(substitute-keyword-arguments (package-arguments binutils)
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
`(cons* "--enable-gold=default"
|
|
|
|
|
(delete "LDFLAGS=-static-libgcc" ,flags)))
|
|
|
|
|
((#:phases phases '%standard-phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(add-after 'patch-source-shebangs 'patch-more-shebangs
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "gold/Makefile.in"
|
2021-12-21 09:15:03 -05:00
|
|
|
|
(("/bin/sh") (which "sh")))))
|
|
|
|
|
;; Multiple failing tests on some architectures in the gold testsuite.
|
|
|
|
|
,@(if (or (target-arm?)
|
|
|
|
|
(target-ppc32?))
|
|
|
|
|
'((add-after 'unpack 'skip-gold-testsuite
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "gold/Makefile.in"
|
|
|
|
|
((" testsuite") " ")))))
|
|
|
|
|
'())))))
|
2021-11-10 11:05:37 -05:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("bc" ,bc)))))
|
2019-02-01 15:41:31 -05:00
|
|
|
|
|
2016-10-31 10:41:14 -04:00
|
|
|
|
(define* (make-ld-wrapper name #:key
|
|
|
|
|
(target (const #f))
|
|
|
|
|
binutils
|
2021-09-14 10:44:30 -04:00
|
|
|
|
(linker "ld")
|
2020-03-18 15:04:57 -04:00
|
|
|
|
(guile (canonical-package guile-3.0))
|
2016-10-31 10:41:14 -04:00
|
|
|
|
(bash (canonical-package bash))
|
2015-04-03 05:54:01 -04:00
|
|
|
|
(guile-for-build guile))
|
|
|
|
|
"Return a package called NAME that contains a wrapper for the 'ld' program
|
2016-10-31 10:41:14 -04: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
|
2021-09-14 10:44:30 -04:00
|
|
|
|
wrapper for the cross-linker for that target, called 'TARGET-ld'. To use a
|
|
|
|
|
different linker than the default \"ld\", such as \"ld.gold\" the linker name
|
|
|
|
|
can be provided via the LINKER argument."
|
2016-10-31 10:41:14 -04:00
|
|
|
|
;; 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 05:54:01 -04: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 15:36:04 -04:00
|
|
|
|
"gnu/packages/ld-wrapper.in"))))
|
2015-04-03 05:54:01 -04:00
|
|
|
|
(arguments
|
2016-10-31 10:41:14 -04: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 05:54:01 -04:00
|
|
|
|
|
2016-10-31 10:41:14 -04:00
|
|
|
|
(let* ((out (assoc-ref %outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(ld ,(if target
|
2021-09-14 10:44:30 -04:00
|
|
|
|
`(string-append bin "/" ,target "-"
|
|
|
|
|
,linker)
|
|
|
|
|
`(string-append bin "/" ,linker)))
|
2016-10-31 10:41:14 -04:00
|
|
|
|
(go (string-append ld ".go")))
|
2015-04-03 05:54:01 -04:00
|
|
|
|
|
2020-03-16 10:31:58 -04:00
|
|
|
|
(setvbuf (current-output-port)
|
|
|
|
|
(cond-expand (guile-2.0 _IOLBF)
|
|
|
|
|
(else 'line)))
|
2016-10-31 10:41:14 -04:00
|
|
|
|
(format #t "building ~s/bin/ld wrapper in ~s~%"
|
|
|
|
|
(assoc-ref %build-inputs "binutils")
|
|
|
|
|
out)
|
2015-04-03 05:54:01 -04:00
|
|
|
|
|
2016-10-31 10:41:14 -04: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/"
|
2021-09-14 10:44:30 -04:00
|
|
|
|
target "-" linker)
|
|
|
|
|
(string-append "/bin/" linker)))))
|
2016-10-31 10:41:14 -04:00
|
|
|
|
(chmod ld #o555)
|
2021-09-14 10:44:30 -04:00
|
|
|
|
(compile-file ld #:output-file go))))))
|
2015-04-03 05:54:01 -04: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 09:39:43 -04: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-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/guix//")
|
2015-04-03 05:54:01 -04:00
|
|
|
|
(license gpl3+)))
|
|
|
|
|
|
2018-11-18 17:12:36 -05: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 17:15:13 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "glibc")
|
2021-04-09 08:17:24 -04:00
|
|
|
|
(version "2.33")
|
2012-08-28 17:15:13 -04: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-12 18:22:44 -05:00
|
|
|
|
(method url-fetch)
|
2018-03-15 16:08:37 -04:00
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
2012-08-28 17:15:13 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-04-09 08:17:24 -04:00
|
|
|
|
"1zvp0qdfbdyqrzydz18d9zg3n5ygy8ps7cmny1bvsp8h1q05c99f"))
|
2021-03-24 09:38:17 -04:00
|
|
|
|
(patches (search-patches "glibc-ldd-powerpc.patch"
|
|
|
|
|
"glibc-ldd-x86_64.patch"
|
2020-11-27 02:53:52 -05:00
|
|
|
|
"glibc-dl-cache.patch"
|
2016-05-02 11:53:40 -04:00
|
|
|
|
"glibc-versioned-locpath.patch"
|
2018-03-30 05:18:47 -04:00
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
2018-10-27 22:16:46 -04:00
|
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"
|
2020-03-01 10:37:37 -05:00
|
|
|
|
"glibc-supported-locales.patch"
|
2021-07-04 16:10:06 -04:00
|
|
|
|
"glibc-cross-objdump.patch"
|
2021-07-07 12:58:20 -04:00
|
|
|
|
"glibc-cross-objcopy.patch" ;must come 2nd
|
2020-03-01 10:37:37 -05:00
|
|
|
|
"glibc-hurd-clock_t_centiseconds.patch"
|
2020-03-08 09:01:17 -04:00
|
|
|
|
"glibc-hurd-clock_gettime_monotonic.patch"
|
2020-10-26 08:41:25 -04:00
|
|
|
|
"glibc-hurd-mach-print.patch"
|
|
|
|
|
"glibc-hurd-gettyent.patch"))))
|
2012-08-28 17:15:13 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2012-09-01 13:21:06 -04:00
|
|
|
|
|
|
|
|
|
;; Glibc's <limits.h> refers to <linux/limit.h>, for instance, so glibc
|
2018-11-18 17:12:36 -05: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 13:21:06 -04:00
|
|
|
|
|
2017-09-03 08:25:39 -04:00
|
|
|
|
(outputs '("out" "debug"
|
|
|
|
|
"static")) ;9 MiB of .a files
|
2013-03-05 12:38:05 -05:00
|
|
|
|
|
2012-08-28 17:15:13 -04:00
|
|
|
|
(arguments
|
2012-09-01 13:21:06 -04:00
|
|
|
|
`(#:out-of-source? #t
|
2015-03-05 17:41:29 -05:00
|
|
|
|
|
2015-04-01 10:47:49 -04:00
|
|
|
|
;; The libraries have an empty RUNPATH, but some, such as the versioned
|
2016-09-02 07:30:58 -04:00
|
|
|
|
;; libraries (libdl-2.24.so, etc.) have ld.so marked as NEEDED. Since
|
2015-04-01 10:47:49 -04:00
|
|
|
|
;; these libraries are always going to be found anyway, just skip
|
|
|
|
|
;; RUNPATH checks.
|
|
|
|
|
#:validate-runpath? #f
|
|
|
|
|
|
2017-09-03 08:25:39 -04:00
|
|
|
|
#:modules ((ice-9 ftw)
|
|
|
|
|
(srfi srfi-26)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build gnu-build-system))
|
|
|
|
|
|
2012-08-28 17:15:13 -04:00
|
|
|
|
#:configure-flags
|
2018-03-15 16:08:37 -04:00
|
|
|
|
(list "--sysconfdir=/etc"
|
2013-03-05 12:38:05 -05:00
|
|
|
|
|
2014-11-26 05:16:05 -05: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-02 22:24:02 -04:00
|
|
|
|
;; $libc_cv_complocaledir; we choose /run/current-system/locale/X.Y,
|
2015-09-30 11:06:40 -04: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 05:16:05 -05:00
|
|
|
|
;;
|
2013-03-05 12:38:05 -05:00
|
|
|
|
;; `--localedir' is not honored, so work around it.
|
|
|
|
|
;; See <http://sourceware.org/ml/libc-alpha/2013-03/msg00093.html>.
|
2016-08-02 22:24:02 -04:00
|
|
|
|
(string-append "libc_cv_complocaledir=/run/current-system/locale/"
|
2017-12-02 20:32:16 -05:00
|
|
|
|
,(version-major+minor version))
|
2013-03-05 12:38:05 -05:00
|
|
|
|
|
2012-08-28 17:15:13 -04:00
|
|
|
|
(string-append "--with-headers="
|
2016-05-29 17:15:14 -04:00
|
|
|
|
(assoc-ref ,(if (%current-target-system)
|
|
|
|
|
'%build-target-inputs
|
|
|
|
|
'%build-inputs)
|
2016-06-07 05:54:03 -04:00
|
|
|
|
"kernel-headers")
|
2012-08-28 17:15:13 -04:00
|
|
|
|
"/include")
|
2012-09-05 18:00:34 -04:00
|
|
|
|
|
2017-10-22 16:11:19 -04:00
|
|
|
|
;; This is the default for most architectures as of GNU libc 2.26,
|
2014-09-08 11:05:45 -04:00
|
|
|
|
;; but we specify it explicitly for clarity and consistency. See
|
|
|
|
|
;; "kernel-features.h" in the GNU libc for details.
|
2017-10-22 16:11:19 -04:00
|
|
|
|
"--enable-kernel=3.2.0"
|
2012-09-05 18:00:34 -04:00
|
|
|
|
|
2012-12-19 18:49:06 -05:00
|
|
|
|
;; Use our Bash instead of /bin/sh.
|
2013-01-01 17:50:52 -05:00
|
|
|
|
(string-append "BASH_SHELL="
|
2012-12-19 18:49:06 -05:00
|
|
|
|
(assoc-ref %build-inputs "bash")
|
2018-11-18 17:12:36 -05: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-19 18:49:06 -05:00
|
|
|
|
|
2012-08-28 17:15:13 -04:00
|
|
|
|
#:tests? #f ; XXX
|
2015-08-30 08:12:57 -04:00
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(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'.
|
2021-10-12 14:01:56 -04:00
|
|
|
|
(substitute* "inet/Makefile"
|
2015-08-30 08:12:57 -04:00
|
|
|
|
(("^\\$\\(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") ""))
|
|
|
|
|
|
2020-11-27 02:53:52 -05:00
|
|
|
|
;; Tell the ld.so cache code where the store is.
|
|
|
|
|
(substitute* "elf/dl-cache.c"
|
|
|
|
|
(("@STORE_DIRECTORY@")
|
|
|
|
|
(string-append "\"" (%store-directory) "\"")))
|
|
|
|
|
|
2015-08-30 08:12:57 -04:00
|
|
|
|
;; 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 11:11:18 -05:00
|
|
|
|
(string-append bash "/bin/sh")))
|
2015-08-30 08:12:57 -04:00
|
|
|
|
|
2015-08-30 08:20:08 -04: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 11:11:38 -05:00
|
|
|
|
bash "/bin/sh\"\n")))
|
2015-08-30 08:20:08 -04:00
|
|
|
|
|
2015-08-30 08:12:57 -04: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@")
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
"exec perl")))))
|
2017-09-03 08:25:39 -04: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 "/" <>)
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
files))))))
|
2018-11-18 17:12:36 -05:00
|
|
|
|
|
|
|
|
|
,@(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"
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
" libmachuser.so libhurduser.so")))))))
|
2018-11-18 17:12:36 -05:00
|
|
|
|
'()))))
|
2013-03-05 12:38:05 -05:00
|
|
|
|
|
2015-08-19 18:13:25 -04:00
|
|
|
|
(inputs `(("static-bash" ,static-bash)))
|
2014-01-07 12:08:51 -05:00
|
|
|
|
|
2015-04-21 16:53:09 -04:00
|
|
|
|
;; To build the manual, we need Texinfo and Perl. Gettext is needed to
|
|
|
|
|
;; install the message catalogs, with 'msgfmt'.
|
2014-01-07 12:08:51 -05:00
|
|
|
|
(native-inputs `(("texinfo" ,texinfo)
|
2015-04-21 16:53:09 -04:00
|
|
|
|
("perl" ,perl)
|
2018-03-15 16:08:37 -04:00
|
|
|
|
("bison" ,bison)
|
2018-11-18 17:12:36 -05:00
|
|
|
|
("gettext" ,gettext-minimal)
|
2019-07-02 10:45:17 -04:00
|
|
|
|
("python" ,python-minimal)
|
2018-11-18 17:12:36 -05:00
|
|
|
|
|
|
|
|
|
,@(if (hurd-target?)
|
|
|
|
|
`(("mig" ,mig)
|
2018-12-20 14:02:03 -05:00
|
|
|
|
("perl" ,perl))
|
2018-11-18 17:12:36 -05:00
|
|
|
|
'())))
|
2014-01-07 12:08:51 -05:00
|
|
|
|
|
2015-02-11 08:16:29 -05:00
|
|
|
|
(native-search-paths
|
|
|
|
|
;; Search path for packages that provide locale data. This is useful
|
2015-10-01 15:32:50 -04: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 08:16:29 -05:00
|
|
|
|
(list (search-path-specification
|
2015-10-01 15:32:50 -04:00
|
|
|
|
(variable "GUIX_LOCPATH")
|
2015-10-05 16:27:23 -04:00
|
|
|
|
(files '("lib/locale")))))
|
2015-02-11 08:16:29 -05:00
|
|
|
|
|
2012-11-04 07:41:34 -05:00
|
|
|
|
(synopsis "The GNU C Library")
|
|
|
|
|
(description
|
2012-08-28 17:15:13 -04: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 10:14:04 -05:00
|
|
|
|
(license lgpl2.0+)
|
2017-03-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/libc/")))
|
2012-08-28 17:15:13 -04:00
|
|
|
|
|
2018-08-01 10:13:45 -04: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.)
|
|
|
|
|
|
2020-09-20 17:11:55 -04:00
|
|
|
|
(define-public glibc-2.31
|
|
|
|
|
(package
|
|
|
|
|
(inherit glibc)
|
|
|
|
|
(version "2.31")
|
|
|
|
|
(source (origin
|
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-07-10 19:49:49 -04:00
|
|
|
|
"05zxkyz9bv3j9h0xyid1rhvh3klhsmrpkf3bcs6frvlgyr2gwilj"))
|
|
|
|
|
(patches (search-patches
|
2021-09-08 10:07:48 -04:00
|
|
|
|
"glibc-skip-c++.patch"
|
2021-07-10 19:49:49 -04:00
|
|
|
|
"glibc-ldd-powerpc.patch"
|
|
|
|
|
"glibc-ldd-x86_64.patch"
|
|
|
|
|
"glibc-dl-cache.patch"
|
|
|
|
|
"glibc-hidden-visibility-ldconfig.patch"
|
|
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
|
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"
|
|
|
|
|
"glibc-supported-locales.patch"
|
|
|
|
|
"glibc-hurd-clock_t_centiseconds.patch"
|
|
|
|
|
"glibc-2.31-hurd-clock_gettime_monotonic.patch"
|
|
|
|
|
"glibc-hurd-signal-sa-siginfo.patch"
|
|
|
|
|
"glibc-hurd-mach-print.patch"
|
2021-10-12 14:01:56 -04:00
|
|
|
|
"glibc-hurd-gettyent.patch"))))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(add-before 'configure 'set-etc-rpc-installation-directory
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Install the rpc data base file under `$out/etc/rpc'.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(substitute* "sunrpc/Makefile"
|
|
|
|
|
(("^\\$\\(inst_sysconfdir\\)/rpc(.*)$" _ suffix)
|
|
|
|
|
(string-append out "/etc/rpc" suffix "\n"))
|
|
|
|
|
(("^install-others =.*$")
|
|
|
|
|
(string-append "install-others = " out "/etc/rpc\n"))))))))))))
|
2020-09-20 17:11:55 -04:00
|
|
|
|
|
gnu: glibc: Update to 2.31.
* gnu/packages/patches/glibc-supported-locales.patch: Adjust for upstream
changes.
* gnu/packages/patches/glibc-2.29-supported-locales.patch: New file, with
previous contents.
* gnu/packages/patches/gcc-4.9-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-6-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-7-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/gcc.scm (gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8,
gcc-9)[source](patches): Add the respective patch files.
* gnu/packages/base.scm (glibc): Update to 2.31.
[source](patches): Remove obsolete.
(glibc-2.30): New public variable.
(glibc-2.29)[source](patches): Adjust for renamed patch file.
2020-02-01 10:29:02 -05:00
|
|
|
|
(define-public glibc-2.30
|
|
|
|
|
(package
|
2021-10-12 14:01:56 -04:00
|
|
|
|
(inherit glibc-2.31)
|
gnu: glibc: Update to 2.31.
* gnu/packages/patches/glibc-supported-locales.patch: Adjust for upstream
changes.
* gnu/packages/patches/glibc-2.29-supported-locales.patch: New file, with
previous contents.
* gnu/packages/patches/gcc-4.9-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-6-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-7-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/gcc.scm (gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8,
gcc-9)[source](patches): Add the respective patch files.
* gnu/packages/base.scm (glibc): Update to 2.31.
[source](patches): Remove obsolete.
(glibc-2.30): New public variable.
(glibc-2.29)[source](patches): Adjust for renamed patch file.
2020-02-01 10:29:02 -05:00
|
|
|
|
(version "2.30")
|
2021-09-08 10:22:11 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
;; This fails with a build error in libc-tls.c when using GCC 10. Use an
|
|
|
|
|
;; older compiler.
|
|
|
|
|
(modify-inputs (package-native-inputs glibc)
|
|
|
|
|
(prepend gcc-8)))
|
gnu: glibc: Update to 2.31.
* gnu/packages/patches/glibc-supported-locales.patch: Adjust for upstream
changes.
* gnu/packages/patches/glibc-2.29-supported-locales.patch: New file, with
previous contents.
* gnu/packages/patches/gcc-4.9-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-6-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-7-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/gcc.scm (gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8,
gcc-9)[source](patches): Add the respective patch files.
* gnu/packages/base.scm (glibc): Update to 2.31.
[source](patches): Remove obsolete.
(glibc-2.30): New public variable.
(glibc-2.29)[source](patches): Adjust for renamed patch file.
2020-02-01 10:29:02 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1bxqpg91d02qnaz837a5kamm0f43pr1il4r9pknygywsar713i72"))
|
2021-09-08 10:22:11 -04:00
|
|
|
|
(patches (search-patches "glibc-skip-c++.patch"
|
|
|
|
|
"glibc-ldd-x86_64.patch"
|
gnu: glibc: Update to 2.31.
* gnu/packages/patches/glibc-supported-locales.patch: Adjust for upstream
changes.
* gnu/packages/patches/glibc-2.29-supported-locales.patch: New file, with
previous contents.
* gnu/packages/patches/gcc-4.9-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-6-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-7-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/gcc.scm (gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8,
gcc-9)[source](patches): Add the respective patch files.
* gnu/packages/base.scm (glibc): Update to 2.31.
[source](patches): Remove obsolete.
(glibc-2.30): New public variable.
(glibc-2.29)[source](patches): Adjust for renamed patch file.
2020-02-01 10:29:02 -05:00
|
|
|
|
"glibc-CVE-2019-19126.patch"
|
|
|
|
|
"glibc-hidden-visibility-ldconfig.patch"
|
|
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
|
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"
|
|
|
|
|
"glibc-2.29-supported-locales.patch"))))))
|
|
|
|
|
|
2019-11-29 11:44:25 -05:00
|
|
|
|
(define-public glibc-2.29
|
|
|
|
|
(package
|
2021-09-08 12:06:07 -04:00
|
|
|
|
(inherit glibc-2.30)
|
2019-11-29 11:44:25 -05:00
|
|
|
|
(version "2.29")
|
|
|
|
|
(source (origin
|
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jzh58728flfh939a8k9pi1zdyalfzlxmwra7k0rzji5gvavivpk"))
|
2021-09-08 12:06:07 -04:00
|
|
|
|
(patches (search-patches "glibc-skip-c++.patch"
|
|
|
|
|
"glibc-ldd-x86_64.patch"
|
2019-11-29 11:44:25 -05:00
|
|
|
|
"glibc-CVE-2019-7309.patch"
|
|
|
|
|
"glibc-CVE-2019-9169.patch"
|
|
|
|
|
"glibc-2.29-git-updates.patch"
|
|
|
|
|
"glibc-hidden-visibility-ldconfig.patch"
|
|
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
|
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"
|
gnu: glibc: Update to 2.31.
* gnu/packages/patches/glibc-supported-locales.patch: Adjust for upstream
changes.
* gnu/packages/patches/glibc-2.29-supported-locales.patch: New file, with
previous contents.
* gnu/packages/patches/gcc-4.9-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-6-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-7-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch,
gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/gcc.scm (gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8,
gcc-9)[source](patches): Add the respective patch files.
* gnu/packages/base.scm (glibc): Update to 2.31.
[source](patches): Remove obsolete.
(glibc-2.30): New public variable.
(glibc-2.29)[source](patches): Adjust for renamed patch file.
2020-02-01 10:29:02 -05:00
|
|
|
|
"glibc-2.29-supported-locales.patch"))))))
|
2019-11-29 11:44:25 -05:00
|
|
|
|
|
2019-05-13 16:02:13 -04:00
|
|
|
|
(define-public (make-gcc-libc base-gcc libc)
|
2019-05-06 18:34:15 -04:00
|
|
|
|
"Return a GCC that targets LIBC."
|
|
|
|
|
(package (inherit base-gcc)
|
|
|
|
|
(name (string-append (package-name base-gcc) "-"
|
|
|
|
|
(package-name libc) "-"
|
|
|
|
|
(package-version libc)))
|
|
|
|
|
(arguments
|
2020-02-06 09:32:00 -05:00
|
|
|
|
(ensure-keyword-arguments (package-arguments base-gcc)
|
|
|
|
|
'(#:implicit-inputs? #f)))
|
2019-05-06 18:34:15 -04:00
|
|
|
|
(native-inputs
|
2019-10-25 00:12:38 -04:00
|
|
|
|
`(,@(package-native-inputs base-gcc)
|
|
|
|
|
,@(append (fold alist-delete (%final-inputs) '("libc" "libc:static")))
|
|
|
|
|
("libc" ,libc)
|
|
|
|
|
("libc:static" ,libc "static")))))
|
2019-05-06 18:34:15 -04:00
|
|
|
|
|
2019-01-17 06:55:53 -05:00
|
|
|
|
(define-public (make-glibc-locales glibc)
|
2015-02-11 05:19:29 -05:00
|
|
|
|
(package
|
|
|
|
|
(inherit glibc)
|
|
|
|
|
(name "glibc-locales")
|
|
|
|
|
(source (origin (inherit (package-source glibc))
|
2019-07-04 06:49:29 -04:00
|
|
|
|
;; The patch for glibc 2.28 and earlier replaces the same
|
|
|
|
|
;; content, but the context in the patch is different
|
|
|
|
|
;; enough to fail to merge.
|
|
|
|
|
(patches (cons (search-patch
|
|
|
|
|
(if (version>=? (package-version glibc)
|
|
|
|
|
"2.29")
|
|
|
|
|
"glibc-locales.patch"
|
|
|
|
|
"glibc-locales-2.28.patch"))
|
2015-02-11 05:19:29 -05:00
|
|
|
|
(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 09:39:43 -04: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 05:19:29 -05:00
|
|
|
|
(outputs '("out")) ;110+ MiB
|
2015-02-11 16:27:05 -05:00
|
|
|
|
(native-search-paths '())
|
2015-02-11 05:19:29 -05:00
|
|
|
|
(arguments
|
|
|
|
|
(let ((args `(#:tests? #f #:strip-binaries? #f
|
|
|
|
|
,@(package-arguments glibc))))
|
|
|
|
|
(substitute-keyword-arguments args
|
2019-06-06 10:52:15 -04: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 05:19:29 -05:00
|
|
|
|
((#:phases phases)
|
2017-10-06 08:42:00 -04:00
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
2018-03-16 01:18:04 -04:00
|
|
|
|
(invoke "make" "localedata/install-locales"
|
|
|
|
|
"-j" (number->string (parallel-job-count)))))
|
2019-06-06 10:52:15 -04: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)))))
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
locales))))
|
2017-12-06 09:14:35 -05:00
|
|
|
|
(delete 'install)
|
|
|
|
|
(delete 'move-static-libs)))
|
2015-02-11 05:19:29 -05:00
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
`(append ,flags
|
2015-10-01 15:32:50 -04:00
|
|
|
|
;; Use $(libdir)/locale/X.Y as is the case by default.
|
2016-07-30 22:42:47 -04:00
|
|
|
|
(list (string-append "libc_cv_complocaledir="
|
2015-02-11 05:19:29 -05:00
|
|
|
|
(assoc-ref %outputs "out")
|
2015-10-03 12:02:30 -04:00
|
|
|
|
"/lib/locale/"
|
2017-12-02 20:32:16 -05:00
|
|
|
|
,(version-major+minor
|
2022-01-13 12:01:12 -05:00
|
|
|
|
(package-version glibc)))))))))
|
|
|
|
|
(properties `((upstream-name . "glibc")))))
|
2015-02-11 05:19:29 -05:00
|
|
|
|
|
2020-11-04 09:48:45 -05:00
|
|
|
|
(define %default-utf8-locales
|
|
|
|
|
;; 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"))
|
|
|
|
|
(define*-public (make-glibc-utf8-locales glibc #:key
|
|
|
|
|
(locales %default-utf8-locales)
|
|
|
|
|
(name "glibc-utf8-locales"))
|
|
|
|
|
(define default-locales? (equal? locales %default-utf8-locales))
|
2015-02-25 07:58:15 -05:00
|
|
|
|
(package
|
2020-11-04 09:48:45 -05:00
|
|
|
|
(name name)
|
2015-02-25 07:58:15 -05:00
|
|
|
|
(version (package-version glibc))
|
|
|
|
|
(source #f)
|
|
|
|
|
(build-system trivial-build-system)
|
|
|
|
|
(arguments
|
2015-10-03 12:02:30 -04:00
|
|
|
|
`(#:modules ((guix build utils))
|
2015-02-25 07:58:15 -05:00
|
|
|
|
#:builder (begin
|
2018-03-16 01:26:17 -04:00
|
|
|
|
(use-modules (guix build utils))
|
2015-02-25 07:58:15 -05:00
|
|
|
|
|
|
|
|
|
(let* ((libc (assoc-ref %build-inputs "glibc"))
|
|
|
|
|
(gzip (assoc-ref %build-inputs "gzip"))
|
|
|
|
|
(out (assoc-ref %outputs "out"))
|
2015-10-03 12:02:30 -04:00
|
|
|
|
(localedir (string-append out "/lib/locale/"
|
2017-12-02 20:32:16 -05:00
|
|
|
|
,(version-major+minor version))))
|
2015-02-25 07:58:15 -05:00
|
|
|
|
;; 'localedef' needs 'gzip'.
|
|
|
|
|
(setenv "PATH" (string-append libc "/bin:" gzip "/bin"))
|
|
|
|
|
|
|
|
|
|
(mkdir-p localedir)
|
2018-03-16 01:26:17 -04: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")))
|
2020-11-04 09:48:45 -05:00
|
|
|
|
',locales)
|
2018-03-16 01:26:17 -04:00
|
|
|
|
#t))))
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(native-inputs (list glibc gzip))
|
2020-11-04 09:48:45 -05:00
|
|
|
|
(synopsis (if default-locales?
|
|
|
|
|
(P_ "Small sample of UTF-8 locales")
|
|
|
|
|
(P_ "Customized sample of UTF-8 locales")))
|
2015-02-25 07:58:15 -05:00
|
|
|
|
(description
|
2020-11-04 09:48:45 -05:00
|
|
|
|
(if default-locales?
|
|
|
|
|
(P_ "This package provides a small sample of UTF-8 locales mostly useful in
|
2015-02-25 07:58:15 -05:00
|
|
|
|
test environments.")
|
2020-11-04 09:48:45 -05:00
|
|
|
|
(format #f (P_ "This package provides the following UTF-8 locales:
|
|
|
|
|
@itemize
|
|
|
|
|
~{@item ~a~%~}
|
|
|
|
|
@end itemize~%")
|
|
|
|
|
locales)))
|
2015-02-25 07:58:15 -05:00
|
|
|
|
(home-page (package-home-page glibc))
|
|
|
|
|
(license (package-license glibc))))
|
2015-02-11 05:19:29 -05:00
|
|
|
|
|
2019-01-17 06:55:53 -05:00
|
|
|
|
(define-public glibc-locales
|
|
|
|
|
(make-glibc-locales glibc))
|
|
|
|
|
(define-public glibc-utf8-locales
|
|
|
|
|
(make-glibc-utf8-locales glibc))
|
|
|
|
|
|
2019-09-24 08:00:58 -04:00
|
|
|
|
;; Packages provided to ease use of binaries linked against the previous libc.
|
2020-04-23 18:37:07 -04:00
|
|
|
|
(define-public glibc-locales-2.29
|
|
|
|
|
(package (inherit (make-glibc-locales glibc-2.29))
|
|
|
|
|
(name "glibc-locales-2.29")))
|
|
|
|
|
(define-public glibc-utf8-locales-2.29
|
|
|
|
|
(package (inherit (make-glibc-utf8-locales glibc-2.29))
|
|
|
|
|
(name "glibc-utf8-locales-2.29")))
|
2019-01-17 06:55:53 -05:00
|
|
|
|
|
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 11:21:21 -05:00
|
|
|
|
(define-public which
|
|
|
|
|
(package
|
|
|
|
|
(name "which")
|
2015-06-10 17:39:08 -04: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 11:21:21 -05:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/which/which-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2015-06-10 17:39:08 -04: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 11:21:21 -05: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 13:07:19 -04:00
|
|
|
|
(define-public glibc/hurd-headers
|
2018-11-18 17:12:36 -05:00
|
|
|
|
(package (inherit glibc)
|
2014-09-27 13:07:19 -04:00
|
|
|
|
(name "glibc-hurd-headers")
|
|
|
|
|
(outputs '("out"))
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(propagated-inputs (list gnumach-headers hurd-headers))
|
2020-04-29 18:00:24 -04:00
|
|
|
|
(native-inputs
|
gnu: Change inputs of core packages to plain lists.
This is transparent: the resulting derivations are unchanged.
* gnu/packages/base.scm (grep, sed, tar, patch, diffutils, glibc/hurd-headers)
(coreutils, gnu-make, make-glibc-utf8-locales): Change input fields to
plain package lists and use 'modify-inputs'.
* gnu/packages/guile.scm (guile-1.8, guile-json-1, guile-json-3)
(guile-gdbm-ffi, guile-sqlite3, guile-bytestructures)
(guile-git, guile-zlib, guile-lzlib, guile-zstd, guile-next): Likewise.
* gnu/packages/mes.scm (nyacc-0.86, nyacc-0.99)
(nyacc, nyacc-1.00.2, mes-0.19, mes, m2-planet): Likewise.
2021-05-20 09:49:32 -04:00
|
|
|
|
(modify-inputs (package-native-inputs glibc)
|
|
|
|
|
(prepend (if (%current-target-system)
|
|
|
|
|
;; XXX: When targeting i586-pc-gnu, we need a 32-bit MiG,
|
|
|
|
|
;; hence this hack.
|
|
|
|
|
(package (inherit mig)
|
|
|
|
|
(arguments `(#:system "i686-linux")))
|
|
|
|
|
mig))))
|
2014-09-27 13:07:19 -04:00
|
|
|
|
(arguments
|
2018-11-18 17:12:36 -05:00
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc)
|
2014-09-27 13:07:19 -04:00
|
|
|
|
;; We just pass the flags really needed to build the headers.
|
|
|
|
|
((#:configure-flags _)
|
|
|
|
|
`(list "--enable-add-ons"
|
2018-11-18 17:12:36 -05:00
|
|
|
|
"--host=i586-pc-gnu"))
|
2014-09-27 13:07:19 -04:00
|
|
|
|
((#:phases _)
|
2018-02-19 22:16:00 -05: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
|
gnu: base, commencement: Remove trailing #t from build phases.
* gnu/packages/base.scm (grep, tar, findutils)
(coreutils, coreutils-8.30, gnu-make, gnu-make-4.2)
(binutils-gold, glibc, make-glibc-locales):
(glibc/hurd-headers, tzdata): Remove trailing #t in build phases.
* gnu/packages/commencement.scm (bootar)
(gash-boot, gash-utils-boot, mes-boot):
(gzip-mesboot, gnu-make-mesboot0, bzip2-mesboot)
(bash-mesboot0, tcc-boot, diffutils-mesboot)
(patch-mesboot, sed-mesboot0, binutils-mesboot0)
(gcc-core-mesboot0, mesboot-headers, gawk-mesboot0)
(glibc-mesboot0, gcc-mesboot0, tar-mesboot)
(grep-mesboot, binutils-mesboot1, gnu-make-mesboot)
(gawk-mesboot, sed-mesboot, bash-mesboot)
(gcc-core-mesboot1, gcc-mesboot1, binutils-mesboot)
(glibc-headers-mesboot, glibc-mesboot, gcc-mesboot1-wrapper)
(gcc-mesboot, gnu-make-boot0, binutils-boot0)
(libstdc++-boot0, gcc-boot0, perl-boot0, python-boot0)
(glibc-final-with-bootstrap-bash)
(cross-gcc-wrapper, gettext-boot0, gcc-final): Remove trailing #t in
build phases.
2020-11-24 17:08:26 -05:00
|
|
|
|
(string-append out "/include/gnu/stubs.h"))))))
|
2018-11-18 17:12:36 -05:00
|
|
|
|
(delete 'build))))))) ; nothing to build
|
2014-09-27 13:07:19 -04:00
|
|
|
|
|
2013-05-08 16:44:21 -04:00
|
|
|
|
(define-public tzdata
|
|
|
|
|
(package
|
|
|
|
|
(name "tzdata")
|
2021-02-07 07:11:47 -05:00
|
|
|
|
;; This package should be kept in sync with python-pytz in (gnu packages
|
|
|
|
|
;; time).
|
2021-10-04 19:14:09 -04:00
|
|
|
|
(version "2021e")
|
2013-05-08 16:44:21 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
2019-07-01 19:57:13 -04:00
|
|
|
|
"https://data.iana.org/time-zones/releases/tzdata"
|
2013-05-08 16:44:21 -04:00
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-10-04 19:14:09 -04:00
|
|
|
|
"1cdjdcxl0s9xf0dg1z64kh7llm80byxqlzrkkjzcdlyh6yvl5v07"))))
|
2013-05-08 16:44:21 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2021-07-02 10:34:43 -04:00
|
|
|
|
(list #:tests? #f
|
|
|
|
|
|
|
|
|
|
;; This consists purely of (architecture-independent) data, so
|
|
|
|
|
;; ‘cross-compilation’ is pointless here! (The binaries zic,
|
|
|
|
|
;; dump, and tzselect are deleted in the post-install phase.)
|
|
|
|
|
#:target #f
|
|
|
|
|
|
|
|
|
|
#:make-flags
|
|
|
|
|
#~(let ((out #$output)
|
|
|
|
|
(tmp (getenv "TMPDIR")))
|
|
|
|
|
(list (string-append "TOPDIR=" out)
|
|
|
|
|
(string-append "TZDIR=" out "/share/zoneinfo")
|
|
|
|
|
(string-append "TZDEFAULT=" out
|
|
|
|
|
"/share/zoneinfo/localtime")
|
|
|
|
|
|
|
|
|
|
;; Likewise for the C library routines.
|
|
|
|
|
(string-append "LIBDIR=" tmp "/lib")
|
|
|
|
|
(string-append "MANDIR=" tmp "/man")
|
|
|
|
|
|
|
|
|
|
;; XXX: tzdata 2020b changed the on-disk format
|
|
|
|
|
;; of the time zone files from 'fat' to 'slim'.
|
|
|
|
|
;; Many packages (particularly evolution-data-server)
|
|
|
|
|
;; can not yet handle the latter, so we stick with
|
|
|
|
|
;; 'fat' for now.
|
|
|
|
|
#$@(if (version>=? (package-version this-package)
|
|
|
|
|
"2020b")
|
|
|
|
|
'("CPPFLAGS=-DZIC_BLOAT_DEFAULT='\"fat\"'")
|
|
|
|
|
'())
|
|
|
|
|
|
|
|
|
|
"AWK=awk"
|
|
|
|
|
"CC=gcc"))
|
|
|
|
|
#:modules '((guix build utils)
|
|
|
|
|
(guix build gnu-build-system)
|
|
|
|
|
(srfi srfi-1))
|
|
|
|
|
#:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(replace 'unpack
|
|
|
|
|
(lambda* (#:key source inputs #:allow-other-keys)
|
|
|
|
|
(invoke "tar" "xvf" source)
|
|
|
|
|
(invoke "tar" "xvf"
|
|
|
|
|
#$(match (package-inputs this-package)
|
|
|
|
|
(((_ tzcode)) tzcode)))))
|
|
|
|
|
(add-after 'install 'post-install
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Move data in the right place.
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
;; Discard zic, dump, and tzselect, already
|
|
|
|
|
;; provided by glibc.
|
|
|
|
|
(delete-file-recursively (string-append out "/usr"))
|
|
|
|
|
(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
|
|
|
|
|
(string-append out "/share/zoneinfo-leaps")))))
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(inputs (list (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://data.iana.org/time-zones/releases/tzcode"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-10-04 19:14:09 -04:00
|
|
|
|
"0x8pcfmjvxk29yfh8bklchv2f0vpl4yih0gc4wyx292l78wncijq")))))
|
2016-12-02 03:48:03 -05:00
|
|
|
|
(home-page "https://www.iana.org/time-zones")
|
2013-05-08 16:44:21 -04: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 00:46:59 -04:00
|
|
|
|
representative locations around the globe. It is updated periodically to
|
2013-05-08 16:44:21 -04:00
|
|
|
|
reflect changes made by political bodies to time zone boundaries, UTC offsets,
|
|
|
|
|
and daylight-saving rules.")
|
|
|
|
|
(license public-domain)))
|
|
|
|
|
|
2017-11-03 08:10:47 -04: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.
|
2021-10-04 19:14:09 -04:00
|
|
|
|
;;;
|
|
|
|
|
;;; Please make this a hidden-package if it is different from the primary tzdata
|
|
|
|
|
;;; package.
|
|
|
|
|
(define-public tzdata-for-tests tzdata)
|
2017-03-08 18:03:38 -05:00
|
|
|
|
|
2016-05-03 12:48:40 -04:00
|
|
|
|
(define-public libiconv
|
|
|
|
|
(package
|
|
|
|
|
(name "libiconv")
|
2017-04-17 23:38:01 -04:00
|
|
|
|
(version "1.15")
|
2016-05-03 12:48:40 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/libiconv/libiconv-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-05-02 06:19:55 -04:00
|
|
|
|
"0y1ij745r4p48mxq84rax40p10ln7fc7m243p8k8sia519i3dxfc"))
|
2016-05-03 12:48:40 -04:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Work around "declared gets" error on glibc systems (fixed by
|
|
|
|
|
;; Gnulib commit 66712c23388e93e5c518ebc8515140fa0c807348.)
|
2020-11-24 18:01:09 -05:00
|
|
|
|
'(substitute* "srclib/stdio.in.h"
|
|
|
|
|
(("^#undef gets") "")
|
|
|
|
|
(("^_GL_WARN_ON_USE \\(gets.*") "")))))
|
2016-05-03 12:48:40 -04: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-29 18:48:16 -04:00
|
|
|
|
(home-page "https://www.gnu.org/software/libiconv/")
|
2016-05-03 12:48:40 -04:00
|
|
|
|
(license lgpl3+)))
|
|
|
|
|
|
2016-05-03 12:49:33 -04: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-26 18:25:17 -04: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 11:44:45 -04:00
|
|
|
|
|
2016-11-04 10:16:11 -04: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 16:17:41 -04:00
|
|
|
|
;;; base.scm ends here
|