2013-01-05 18:47:50 -05:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2024-01-10 16:59:10 -05:00
|
|
|
|
;;; Copyright © 2012-2024 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>
|
2023-02-14 09:26:51 -05:00
|
|
|
|
;;; Copyright © 2016, 2017, 2019-2023 Efraim Flashner <efraim@flashner.co.il>
|
2024-02-21 14:52:29 -05:00
|
|
|
|
;;; Copyright © 2016, 2020, 2023, 2024 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>
|
2022-06-26 07:48:28 -04:00
|
|
|
|
;;; Copyright © 2017, 2018, 2020, 2022 Marius Bakke <marius@gnu.org>
|
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>
|
2024-06-05 20:46:21 -04:00
|
|
|
|
;;; Copyright © 2021, 2024 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2022-07-19 12:13:01 -04:00
|
|
|
|
;;; Copyright © 2022 zamfofex <zamfofex@twdb.moe>
|
2022-07-20 23:26:53 -04:00
|
|
|
|
;;; Copyright © 2022 John Kehayias <john.kehayias@protonmail.com>
|
2023-05-22 05:04:12 -04:00
|
|
|
|
;;; Copyright © 2023 Josselin Poiret <dev@jpoiret.xyz>
|
2024-01-19 07:36:55 -05:00
|
|
|
|
;;; Copyright © 2024 Zheng Junjie <873216071@qq.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)
|
2024-06-05 20:46:21 -04:00
|
|
|
|
#:use-module (gnu packages autotools)
|
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)
|
2024-06-05 20:46:21 -04:00
|
|
|
|
#:use-module (gnu packages build-tools)
|
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)
|
2023-12-25 12:58:21 -05:00
|
|
|
|
#:use-module (gnu packages text-editors)
|
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)
|
2023-09-12 10:07:38 -04:00
|
|
|
|
#:use-module (guix search-paths)
|
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
|
2023-05-22 05:42:26 -04:00
|
|
|
|
libc-for-target
|
2023-06-07 13:19:01 -04:00
|
|
|
|
libc-locales-for-target
|
|
|
|
|
libc-utf8-locales-for-target
|
2021-09-14 10:44:30 -04:00
|
|
|
|
make-ld-wrapper
|
2023-08-09 03:38:31 -04:00
|
|
|
|
libiconv-if-needed
|
2024-02-01 12:51:07 -05:00
|
|
|
|
|
|
|
|
|
;; Beware: the following should not be used the top level to avoid
|
|
|
|
|
;; introducing circular module dependencies.
|
|
|
|
|
canonical-package
|
2023-08-09 03:38:31 -04:00
|
|
|
|
%final-inputs))
|
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-05-30 08:28:04 -04:00
|
|
|
|
(version "2.12.1")
|
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-05-30 08:28:04 -04:00
|
|
|
|
"086vqwk2wl8zfs47sq2xpjc9k066ilmb8z6dn0q6ymwjzlm196cd"))))
|
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")
|
2023-12-24 09:06:58 -05:00
|
|
|
|
(version "3.11")
|
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
|
2023-12-24 09:06:58 -05:00
|
|
|
|
"1avf4x8skxbqrjp5j2qr9sp5vlf8jkw2i5bdn51fl3cxx3fsxchx"))
|
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
|
2023-11-25 22:12:08 -05:00
|
|
|
|
(inputs (list pcre2))
|
2016-08-20 21:40:59 -04:00
|
|
|
|
(arguments
|
2023-11-25 22:12:08 -05:00
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--enable-perl-regexp")
|
|
|
|
|
#:phases
|
2016-08-20 21:40:59 -04:00
|
|
|
|
(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")
|
2022-11-23 13:31:12 -05:00
|
|
|
|
(string-append "exec " bin "/grep"))))))
|
2023-06-02 09:42:36 -04:00
|
|
|
|
,@(if (system-hurd?)
|
|
|
|
|
'((add-before 'check 'skip-test
|
2022-11-23 13:31:12 -05:00
|
|
|
|
(lambda _
|
2023-06-02 09:42:36 -04:00
|
|
|
|
(substitute*
|
|
|
|
|
;; This test hangs
|
|
|
|
|
'("tests/hash-collision-perf"
|
|
|
|
|
;; This test fails
|
|
|
|
|
"tests/file")
|
|
|
|
|
(("^#!.*" all)
|
|
|
|
|
(string-append all "exit 77;\n"))))))
|
|
|
|
|
'()))))
|
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
|
2023-02-14 09:26:51 -05:00
|
|
|
|
`(,@(cond
|
2023-06-17 07:51:05 -04:00
|
|
|
|
((target-hurd?)
|
2023-02-14 09:26:51 -05:00
|
|
|
|
'(#:make-flags
|
|
|
|
|
(list (string-append
|
2020-04-15 03:42:09 -04:00
|
|
|
|
"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"
|
2022-10-30 16:53:06 -04:00
|
|
|
|
",!chained renames"
|
|
|
|
|
",!Directory"
|
2023-02-14 09:26:51 -05:00
|
|
|
|
"'"))))
|
|
|
|
|
;; https://lists.gnu.org/archive/html/bug-tar/2021-10/msg00007.html
|
|
|
|
|
;; tar-1.34 isn't aware of 64-bit time_t and upstream suggests
|
|
|
|
|
;; skipping the test for this release on 32-bit systems.
|
|
|
|
|
((not (target-64bit?))
|
2023-02-14 14:54:26 -05:00
|
|
|
|
'(#:make-flags (list "TESTSUITEFLAGS= -k '!tricky time stamps'")))
|
2023-02-14 09:26:51 -05:00
|
|
|
|
(else '()))
|
2020-04-15 03:42:09 -04:00
|
|
|
|
#: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
|
|
|
|
|
2024-06-05 20:46:21 -04:00
|
|
|
|
;;; TODO: Replace/merge with 'patch' on core-updates.
|
|
|
|
|
(define-public patch/pinned
|
|
|
|
|
(hidden-package
|
|
|
|
|
(package
|
|
|
|
|
(name "patch")
|
|
|
|
|
(version "2.7.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/patch/patch-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zfqy4rdcy279vwn2z1kbv19dcfw25d2aqy9nzvdkq5bjzd0nqdc"))
|
|
|
|
|
(patches (search-patches "patch-hurd-path-max.patch"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(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"))
|
|
|
|
|
'()))
|
|
|
|
|
(native-inputs (list ed))
|
|
|
|
|
(synopsis "Apply differences to originals, with optional backups")
|
|
|
|
|
(description
|
|
|
|
|
"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.")
|
2024-06-05 20:46:21 -04:00
|
|
|
|
(license gpl3+)
|
|
|
|
|
(home-page "https://savannah.gnu.org/projects/patch/"))))
|
|
|
|
|
|
|
|
|
|
(define-public patch
|
|
|
|
|
;; The latest release is from 2018, and lacks multiple security related
|
|
|
|
|
;; patches. Since Fedora carries 23 patches, simply use the latest commit
|
|
|
|
|
;; until a proper release is made.
|
|
|
|
|
(let ((revision "0")
|
|
|
|
|
(commit "f144b35425d9d7732ea5485034c1a6b7a106ab92")
|
|
|
|
|
(base patch/pinned))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(name "patch")
|
|
|
|
|
(version (git-version "2.7.6" revision commit))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.savannah.gnu.org/git/patch.git")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1bk38169c0xh01b0q0zmnrjqz8k9byz3arp4q7q66sn6xwf94nvz"))
|
|
|
|
|
(patches (search-patches "patch-hurd-path-max.patch"))))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments base)
|
|
|
|
|
((#:phases phases '%standard-phases)
|
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
|
(add-after 'unpack 'copy-gnulib-sources
|
|
|
|
|
(lambda _
|
|
|
|
|
;; XXX: We copy the source instead of using 'gnulib' as a
|
|
|
|
|
;; native input to avoid introducing a dependency cycle.
|
|
|
|
|
(copy-recursively #+gnulib "gnulib")
|
|
|
|
|
(setenv "GNULIB_SRCDIR"
|
|
|
|
|
(string-append (getcwd) "/gnulib/src/gnulib"))))
|
|
|
|
|
(add-after 'copy-gnulib-sources 'update-bootstrap-script
|
|
|
|
|
(lambda _
|
|
|
|
|
(copy-file "gnulib/src/gnulib/build-aux/bootstrap"
|
|
|
|
|
"bootstrap")))
|
|
|
|
|
(add-after 'unpack 'patch-configure.ac
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "configure.ac"
|
|
|
|
|
;; The gnulib-provided git-version-gen script has a plain
|
|
|
|
|
;; shebang of #!/bin/sh; avoid using it.
|
|
|
|
|
(("build-aux/git-version-gen" all)
|
|
|
|
|
(string-append "sh " all)))))))))
|
|
|
|
|
(native-inputs (list autoconf automake bison ed))
|
|
|
|
|
(properties '()))))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(define-public diffutils
|
|
|
|
|
(package
|
|
|
|
|
(name "diffutils")
|
2023-12-24 09:08:00 -05:00
|
|
|
|
(version "3.10")
|
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
|
2023-12-24 09:08:00 -05:00
|
|
|
|
"17nhkdn5a2z6pwcmjs4jas2plg066hbdz06y5vhypr14qwyfkrch"))))
|
2012-08-22 11:24:38 -04:00
|
|
|
|
(build-system gnu-build-system)
|
2022-10-28 10:14:30 -04:00
|
|
|
|
(arguments
|
2023-06-03 02:47:34 -04:00
|
|
|
|
(list
|
|
|
|
|
#:phases (if (system-hurd?)
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'skip-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "tests/large-subopt"
|
|
|
|
|
(("^#!.*" all)
|
|
|
|
|
(string-append all "exit 77;\n"))))))
|
|
|
|
|
#~%standard-phases)))
|
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")
|
2022-04-28 22:24:17 -04:00
|
|
|
|
(version "4.9.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
|
2022-04-28 22:24:17 -04:00
|
|
|
|
"1zk2sighc26bfdsm97bv7cd1cnvq7r4gll4zqpnp0rs3kp0bigx2"))
|
2021-01-15 08:00:00 -05:00
|
|
|
|
(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")
|
2023-06-02 10:47:36 -04:00
|
|
|
|
(string-append "#!" (which "sh"))))))
|
|
|
|
|
,@(if (system-hurd?)
|
|
|
|
|
'((add-after 'unpack 'skip-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute*
|
|
|
|
|
;; This test fails non-deterministically
|
|
|
|
|
"gnulib-tests/test-strerror_r.c"
|
|
|
|
|
(("(^| )main *\\(.*" all)
|
|
|
|
|
(string-append all "{\n exit (77);//"))))))
|
|
|
|
|
'()))))
|
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")
|
2022-06-25 15:01:32 -04:00
|
|
|
|
(version "9.1")
|
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
|
2022-06-25 15:01:32 -04:00
|
|
|
|
"08q4b0w7mwfxbqjs712l6wrwl2ijs7k50kssgbryg9wbsw8g98b1"))))
|
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
|
2023-05-31 11:51:30 -04:00
|
|
|
|
,@(if (system-hurd?)
|
2020-03-05 14:25:08 -05:00
|
|
|
|
'(#:make-flags ; these tests fail deterministically
|
2023-05-31 11:51:30 -04:00
|
|
|
|
(list (string-append "XFAIL_TESTS="
|
2022-10-27 05:30:53 -04:00
|
|
|
|
;; Gnulib tests.
|
2020-03-05 14:25:08 -05:00
|
|
|
|
" test-fdutimensat"
|
|
|
|
|
" test-futimens"
|
|
|
|
|
" test-linkat"
|
|
|
|
|
" test-renameat"
|
|
|
|
|
" test-renameatu"
|
|
|
|
|
" 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 _
|
2023-05-31 11:51:30 -04:00
|
|
|
|
,@(if (system-hurd?)
|
|
|
|
|
'((substitute*
|
|
|
|
|
;; These tests hang
|
|
|
|
|
'("tests/cp/sparse-to-pipe.sh"
|
|
|
|
|
"tests/split/fail.sh"
|
|
|
|
|
;; These tests error
|
|
|
|
|
"tests/dd/nocache.sh"
|
|
|
|
|
;; These tests fail
|
|
|
|
|
"tests/cp/sparse.sh"
|
|
|
|
|
"tests/cp/special-f.sh"
|
|
|
|
|
"tests/dd/bytes.sh"
|
|
|
|
|
"tests/dd/stats.sh"
|
|
|
|
|
"tests/ls/dangle.sh"
|
|
|
|
|
"tests/ls/follow-slink.sh"
|
|
|
|
|
"tests/ls/hyperlink.sh"
|
|
|
|
|
"tests/ls/infloop.sh"
|
|
|
|
|
"tests/ls/inode.sh"
|
|
|
|
|
"tests/ls/selinux-segfault.sh"
|
|
|
|
|
"tests/misc/env-S.pl"
|
|
|
|
|
"tests/misc/factor-parallel.sh"
|
|
|
|
|
"tests/misc/ls-misc.pl"
|
|
|
|
|
"tests/misc/nice.sh"
|
|
|
|
|
"tests/misc/pwd-long.sh"
|
|
|
|
|
"tests/misc/shred-passes.sh"
|
|
|
|
|
"tests/misc/stat-slash.sh"
|
|
|
|
|
"tests/rm/fail-eperm.xpl"
|
|
|
|
|
"tests/split/filter.sh")
|
|
|
|
|
(("^#!.*" all)
|
|
|
|
|
(string-append all "exit 77;\n")))
|
2022-11-02 16:38:55 -04:00
|
|
|
|
(substitute* "gnulib-tests/Makefile.in"
|
|
|
|
|
;; This test sometimes fails and sometimes
|
|
|
|
|
;; passes, but it does this consistently, so
|
|
|
|
|
;; there might be some environmental factor
|
|
|
|
|
;; here
|
|
|
|
|
((" test-tls\\$\\(EXEEXT\\) ") " ")))
|
2021-06-05 11:22:58 -04:00
|
|
|
|
'())
|
|
|
|
|
(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")
|
2023-12-24 09:09:06 -05:00
|
|
|
|
(version "4.4.1")
|
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
|
2023-12-24 09:09:06 -05:00
|
|
|
|
"1cwgcmwdn7gqn5da2ia91gkyiqs9birr10sy5ykpkaxzcwfzn5nx"))
|
2020-01-20 12:13:53 -05:00
|
|
|
|
(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
|
2023-06-17 07:51:05 -04:00
|
|
|
|
`(,@(if (target-hurd?)
|
2020-02-26 20:22:18 -05:00
|
|
|
|
'(#: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")
|
2024-01-10 16:59:10 -05:00
|
|
|
|
(version "2.41")
|
2021-09-06 11:32:38 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/binutils/binutils-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
2024-01-10 16:59:10 -05:00
|
|
|
|
(base32 "02xkm9xgcrqhln742636nm43yzrpjkhqj0z64h03gf7pab0bxi54"))
|
2022-06-26 07:48:28 -04:00
|
|
|
|
(patches (search-patches "binutils-loongson-workaround.patch"))))
|
2012-08-25 07:11:13 -04:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2024-01-11 07:50:30 -05:00
|
|
|
|
(list #:out-of-source? #t ;recommended in the README
|
|
|
|
|
#:configure-flags #~'(;; Add `-static-libgcc' to not retain a dependency
|
|
|
|
|
;; on GCC when bootstrapping.
|
|
|
|
|
"LDFLAGS=-static-libgcc"
|
2012-08-25 07:11:13 -04:00
|
|
|
|
|
2024-01-11 07:50:30 -05: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"
|
2018-03-16 09:53:01 -04:00
|
|
|
|
|
2024-01-11 07:50:30 -05:00
|
|
|
|
;; Don't search under /usr/lib & co.
|
|
|
|
|
"--with-lib-path=/no-ld-lib-path"
|
2013-03-15 13:37:40 -04:00
|
|
|
|
|
2024-01-11 07:50:30 -05:00
|
|
|
|
;; Install BFD. It ends up in a hidden directory,
|
|
|
|
|
;; but it's here.
|
|
|
|
|
"--enable-install-libbfd"
|
2014-02-06 08:06:28 -05:00
|
|
|
|
|
2024-01-11 07:50:30 -05:00
|
|
|
|
;; Make sure 'ar' and 'ranlib' produce archives in a
|
|
|
|
|
;; deterministic fashion.
|
|
|
|
|
"--enable-deterministic-archives"
|
2021-12-17 15:48:44 -05:00
|
|
|
|
|
2024-01-11 07:50:30 -05:00
|
|
|
|
"--enable-64-bit-bfd"
|
|
|
|
|
"--enable-compressed-debug-sections=all"
|
|
|
|
|
"--enable-lto"
|
|
|
|
|
"--enable-separate-code"
|
|
|
|
|
"--enable-threads")
|
2012-08-25 07:11:13 -04:00
|
|
|
|
|
2024-01-11 07:50:30 -05:00
|
|
|
|
;; For some reason, the build machinery insists on rebuilding .info
|
|
|
|
|
;; files, even though they're already provided by the tarball.
|
|
|
|
|
#:make-flags #~'("MAKEINFO=true")))
|
2024-01-10 16:59:10 -05:00
|
|
|
|
(native-inputs (list bison)) ;needed to build 'gprofng'
|
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)
|
2024-01-11 07:50:30 -05:00
|
|
|
|
((#:make-flags _ #~'()) #~'())))
|
2024-01-10 16:59:10 -05:00
|
|
|
|
(native-inputs '())
|
2020-02-15 12:37:49 -05:00
|
|
|
|
(properties '())))
|
|
|
|
|
|
2019-02-01 15:41:31 -05:00
|
|
|
|
(define-public binutils-gold
|
2024-01-10 16:59:10 -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)
|
2024-01-11 07:50:30 -05:00
|
|
|
|
#~(cons* "--enable-gold=default"
|
|
|
|
|
(delete "LDFLAGS=-static-libgcc" #$flags)))
|
2021-11-10 11:05:37 -05:00
|
|
|
|
((#:phases phases '%standard-phases)
|
2024-01-11 07:50:30 -05:00
|
|
|
|
#~(modify-phases #$phases
|
2021-11-10 11:05:37 -05:00
|
|
|
|
(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.
|
2024-01-15 08:37:14 -05:00
|
|
|
|
#$@(if (or (target-arm?)
|
2024-01-11 07:50:30 -05:00
|
|
|
|
(target-ppc32?))
|
2024-01-15 08:37:14 -05:00
|
|
|
|
#~((add-after 'unpack 'skip-gold-testsuite
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "gold/Makefile.in"
|
|
|
|
|
((" testsuite") " ")))))
|
|
|
|
|
#~())))))
|
2024-01-10 16:59:10 -05:00
|
|
|
|
(native-inputs (modify-inputs (package-native-inputs binutils)
|
|
|
|
|
(append 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+)))
|
|
|
|
|
|
2023-03-26 15:40:46 -04:00
|
|
|
|
(define-public %glibc/hurd-configure-flags
|
|
|
|
|
;; 'configure' in glibc 2.35 omits to pass '-ffreestanding' when detecting
|
|
|
|
|
;; Mach headers. This is fixed in glibc commits
|
|
|
|
|
;; 8b8c768e3c701ed1993789bb46acb8a12c7a93df and
|
|
|
|
|
;; 7685630b98ca2a3f5de86eadf130993e6cf998a0; as a workaround, bypass those
|
|
|
|
|
;; tests.
|
|
|
|
|
'("ac_cv_header_mach_mach_types_defs=yes"
|
|
|
|
|
"ac_cv_header_mach_mach_types_h=yes"
|
|
|
|
|
"ac_cv_header_mach_machine_ndr_def_h=no"
|
|
|
|
|
"libc_cv_mach_task_creation_time=yes"))
|
|
|
|
|
|
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")
|
2023-12-06 04:43:37 -05:00
|
|
|
|
(version "2.38")
|
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
|
2023-12-06 04:43:37 -05:00
|
|
|
|
"1lizxxqbfma5zgmcj0gk5iyk171f2nfvdhbv8rjrkcmjk24rk0pv"))
|
2021-03-24 09:38:17 -04:00
|
|
|
|
(patches (search-patches "glibc-ldd-powerpc.patch"
|
2023-12-06 04:43:37 -05:00
|
|
|
|
"glibc-2.38-ldd-x86_64.patch"
|
2020-11-27 02:53:52 -05:00
|
|
|
|
"glibc-dl-cache.patch"
|
2023-12-06 04:43:37 -05:00
|
|
|
|
"glibc-2.37-versioned-locpath.patch"
|
|
|
|
|
;; "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"
|
2023-12-06 04:43:37 -05:00
|
|
|
|
"glibc-2.37-hurd-clock_t_centiseconds.patch"
|
|
|
|
|
"glibc-2.37-hurd-local-clock_gettime_MONOTONIC.patch"
|
2023-12-16 06:29:51 -05:00
|
|
|
|
"glibc-2.38-hurd-ucontext.patch"
|
2020-10-26 08:41:25 -04:00
|
|
|
|
"glibc-hurd-mach-print.patch"
|
2023-12-06 04:43:37 -05:00
|
|
|
|
"glibc-hurd-gettyent.patch"
|
|
|
|
|
"glibc-hurd-getauxval.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
|
2023-06-17 07:51:05 -04:00
|
|
|
|
(if (target-hurd?)
|
2018-11-18 17:12:36 -05:00
|
|
|
|
`(("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)
|
2022-07-19 12:13:01 -04:00
|
|
|
|
(srfi srfi-1)
|
2017-09-03 08:25:39 -04:00
|
|
|
|
(srfi srfi-26)
|
|
|
|
|
(guix build utils)
|
|
|
|
|
(guix build gnu-build-system))
|
|
|
|
|
|
2022-04-07 12:34:47 -04:00
|
|
|
|
;; Strip binaries but preserve the symbol table needed by Valgrind:
|
|
|
|
|
;; <https://lists.gnu.org/archive/html/help-guix/2022-03/msg00036.html>.
|
|
|
|
|
#:strip-flags '("--strip-debug")
|
|
|
|
|
|
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
|
|
|
|
|
2023-12-06 04:43:37 -05:00
|
|
|
|
;; Libcrypt and <crypt.h> are deprecated in glibc 2.38 and not
|
|
|
|
|
;; built by default. Build it to reduce application breakage.
|
|
|
|
|
"--enable-crypt"
|
|
|
|
|
|
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.
|
2023-06-17 07:51:05 -04:00
|
|
|
|
,@(if (target-hurd?)
|
2023-03-26 15:40:46 -04:00
|
|
|
|
`("--disable-werror"
|
|
|
|
|
,@%glibc/hurd-configure-flags)
|
2018-11-18 17:12:36 -05:00
|
|
|
|
'()))
|
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.
|
2022-07-19 12:13:01 -04:00
|
|
|
|
;; Note: As of GNU libc 2.34, the contents of some ".a"
|
|
|
|
|
;; files have been moved into "libc.so", and *both* empty
|
|
|
|
|
;; ".so" and ".a" files have been introduced to avoid
|
|
|
|
|
;; breaking existing executables and existing builds
|
|
|
|
|
;; respectively. The intent of the seemingly redundant
|
|
|
|
|
;; empty ".a" files is to avoid newly-compiled executables
|
|
|
|
|
;; from having dependencies on the empty shared libraries,
|
|
|
|
|
;; and as such, it is useful to have these ".a" files in
|
|
|
|
|
;; OUT in addition to STATIC.
|
|
|
|
|
|
|
|
|
|
(define (empty-static-library? file)
|
2023-12-07 16:46:27 -05:00
|
|
|
|
;; Return true if FILE is an 'ar' archive with nothing
|
|
|
|
|
;; beyond the header.
|
|
|
|
|
(let ((file (string-append (assoc-ref outputs "out")
|
|
|
|
|
"/lib/" file)))
|
|
|
|
|
(and (ar-file? file)
|
|
|
|
|
(= (stat:size (stat file)) 8))))
|
2022-07-19 12:13:01 -04:00
|
|
|
|
|
2017-09-03 08:25:39 -04:00
|
|
|
|
(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)
|
2022-07-19 12:13:01 -04:00
|
|
|
|
(not (string-contains file "_nonshared"))
|
|
|
|
|
(not (empty-static-library? file))))
|
2017-09-03 08:25:39 -04:00
|
|
|
|
|
|
|
|
|
(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?))
|
2022-07-19 12:13:01 -04:00
|
|
|
|
(empty (scandir lib empty-static-library?))
|
2017-09-03 08:25:39 -04:00
|
|
|
|
(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)
|
2022-07-19 12:13:01 -04:00
|
|
|
|
(for-each (lambda (base)
|
|
|
|
|
(copy-file (string-append lib "/" base)
|
|
|
|
|
(string-append slib "/" base)))
|
|
|
|
|
empty)
|
2017-09-03 08:25:39 -04:00
|
|
|
|
|
|
|
|
|
;; 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
|
|
|
|
|
2023-12-06 04:52:49 -05:00
|
|
|
|
(add-after 'install 'install-utf8-c-locale
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
;; Install the C.UTF-8 locale so there's always a UTF-8
|
|
|
|
|
;; locale around.
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
|
(locale (string-append out "/lib/locale/"
|
|
|
|
|
,(package-version
|
|
|
|
|
this-package))))
|
|
|
|
|
(mkdir-p locale)
|
|
|
|
|
|
|
|
|
|
;; FIXME: When cross-compiling, attempt to use
|
|
|
|
|
;; 'localedef' from the same libc version.
|
|
|
|
|
(invoke ,(if (%current-target-system)
|
|
|
|
|
"true"
|
|
|
|
|
'(string-append bin "/localedef"))
|
|
|
|
|
"--no-archive" "--prefix" locale
|
|
|
|
|
"-i" "C" "-f" "UTF-8"
|
|
|
|
|
(string-append locale "/C.UTF-8")))))
|
|
|
|
|
|
2023-06-17 07:51:05 -04:00
|
|
|
|
,@(if (target-hurd?)
|
2018-11-18 17:12:36 -05:00
|
|
|
|
'((add-after 'install 'augment-libc.so
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2024-01-19 07:22:02 -05:00
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
2018-11-18 17:12:36 -05:00
|
|
|
|
(substitute* (string-append out "/lib/libc.so")
|
|
|
|
|
(("/[^ ]+/lib/libc.so.0.3")
|
|
|
|
|
(string-append out "/lib/libc.so.0.3"
|
2024-01-19 07:22:02 -05:00
|
|
|
|
" libmachuser.so libhurduser.so"))))))
|
|
|
|
|
(add-after 'install 'create-machine-symlink
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out"))
|
|
|
|
|
(cpu "i386"))
|
|
|
|
|
(symlink cpu
|
|
|
|
|
(string-append out
|
|
|
|
|
"/include/mach/machine"))))))
|
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
|
|
|
|
|
2023-06-17 07:51:05 -04:00
|
|
|
|
,@(if (target-hurd?)
|
2018-11-18 17:12:36 -05:00
|
|
|
|
`(("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")
|
2023-09-12 10:07:38 -04:00
|
|
|
|
(files '("lib/locale")))
|
|
|
|
|
$TZDIR))
|
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
|
|
|
|
|
2023-10-04 15:27:13 -04:00
|
|
|
|
(define glibc/fixed
|
|
|
|
|
(package
|
|
|
|
|
(inherit glibc)
|
|
|
|
|
(source
|
|
|
|
|
(origin (inherit (package-source glibc))
|
|
|
|
|
(patches
|
|
|
|
|
(append (search-patches "glibc-2.35-CVE-2023-4911.patch")
|
|
|
|
|
(origin-patches (package-source glibc))))))))
|
|
|
|
|
|
2022-07-20 23:26:53 -04:00
|
|
|
|
;; Define a variation of glibc which uses the default /etc/ld.so.cache, useful
|
|
|
|
|
;; in FHS containers.
|
|
|
|
|
(define-public glibc-for-fhs
|
|
|
|
|
(hidden-package
|
|
|
|
|
(package/inherit glibc
|
|
|
|
|
(name "glibc-for-fhs")
|
|
|
|
|
(source (origin (inherit (package-source glibc))
|
|
|
|
|
;; Remove Guix's patch to read ld.so.cache from /gnu/store
|
|
|
|
|
;; directories, re-enabling the default /etc/ld.so.cache
|
|
|
|
|
;; behavior.
|
|
|
|
|
(patches
|
|
|
|
|
(delete (search-patch "glibc-dl-cache.patch")
|
|
|
|
|
(origin-patches (package-source glibc)))))))))
|
|
|
|
|
|
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.)
|
2023-04-19 10:19:02 -04:00
|
|
|
|
|
2023-12-06 04:43:37 -05:00
|
|
|
|
(define-public glibc-2.35
|
|
|
|
|
(package
|
|
|
|
|
(inherit glibc)
|
|
|
|
|
(version "2.35")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0bpm1kfi09dxl4c6aanc5c9951fmf6ckkzay60cx7k37dcpp68si"))
|
|
|
|
|
(patches (search-patches "glibc-ldd-powerpc.patch"
|
|
|
|
|
"glibc-ldd-x86_64.patch"
|
|
|
|
|
"glibc-dl-cache.patch"
|
|
|
|
|
"glibc-versioned-locpath.patch"
|
|
|
|
|
"glibc-allow-kernel-2.6.32.patch"
|
|
|
|
|
"glibc-reinstate-prlimit64-fallback.patch"
|
|
|
|
|
"glibc-supported-locales.patch"
|
|
|
|
|
"glibc-cross-objdump.patch"
|
|
|
|
|
"glibc-cross-objcopy.patch" ;must come 2nd
|
|
|
|
|
"glibc-hurd-clock_t_centiseconds.patch"
|
|
|
|
|
"glibc-hurd-clock_gettime_monotonic.patch"
|
|
|
|
|
"glibc-hurd-mach-print.patch"
|
2023-12-06 04:52:49 -05:00
|
|
|
|
"glibc-hurd-gettyent.patch"))))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc)
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
;; The C.UTF-8 fails to build in glibc 2.35:
|
|
|
|
|
;; <https://sourceware.org/bugzilla/show_bug.cgi?id=28861>.
|
|
|
|
|
;; It is missing altogether in versions earlier than 2.35.
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(delete 'install-utf8-c-locale)))))))
|
2023-12-06 04:43:37 -05:00
|
|
|
|
|
2023-04-19 10:19:02 -04:00
|
|
|
|
(define-public glibc-2.33
|
|
|
|
|
(package
|
2023-12-06 04:52:49 -05:00
|
|
|
|
(inherit glibc-2.35)
|
2023-04-19 10:19:02 -04:00
|
|
|
|
(name "glibc")
|
|
|
|
|
(version "2.33")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1zvp0qdfbdyqrzydz18d9zg3n5ygy8ps7cmny1bvsp8h1q05c99f"))
|
|
|
|
|
(patches
|
2023-05-28 05:04:53 -04:00
|
|
|
|
(cons (search-patch "glibc-2.33-riscv64-miscompilation.patch")
|
2024-02-21 14:52:29 -05:00
|
|
|
|
;; Remove patches that are irrelevant or do not apply to
|
|
|
|
|
;; this version.
|
|
|
|
|
(remove
|
|
|
|
|
(lambda (patch)
|
|
|
|
|
(member (basename patch)
|
|
|
|
|
'("glibc-2.35-CVE-2023-4911.patch"
|
|
|
|
|
"glibc-hurd-clock_gettime_monotonic.patch")))
|
|
|
|
|
(origin-patches (package-source glibc-2.35)))))))
|
2023-04-19 10:19:02 -04:00
|
|
|
|
(arguments
|
2024-02-21 15:58:57 -05:00
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc-2.35)
|
2023-04-19 10:19:02 -04:00
|
|
|
|
((#:configure-flags flags ''())
|
|
|
|
|
;; There are undefined references to pthread symbols while linking
|
|
|
|
|
;; 'support/links-dso-program.cc'. Since this isn't needed here, turn
|
|
|
|
|
;; off C++ tests.
|
|
|
|
|
`(cons "libc_cv_cxx_link_ok=no" ,flags))))))
|
|
|
|
|
|
2022-05-31 14:08:11 -04:00
|
|
|
|
(define-public glibc-2.32
|
|
|
|
|
(package
|
2023-12-06 04:52:49 -05:00
|
|
|
|
(inherit glibc-2.35)
|
2022-05-31 14:08:11 -04:00
|
|
|
|
(version "2.32")
|
|
|
|
|
(source (origin
|
|
|
|
|
(inherit (package-source glibc))
|
|
|
|
|
(uri (string-append "mirror://gnu/glibc/glibc-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0di848ibffrnwq7g2dvgqrnn4xqhj3h96csn69q4da51ymafl9qn"))
|
|
|
|
|
(patches (search-patches
|
|
|
|
|
"glibc-skip-c++.patch"
|
|
|
|
|
"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"
|
|
|
|
|
"glibc-hurd-gettyent.patch"))
|
|
|
|
|
#;
|
|
|
|
|
(patches (search-patches "glibc-ldd-x86_64.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-hurd-clock_gettime_monotonic.patch"
|
|
|
|
|
"glibc-hurd-signal-sa-siginfo.patch"))))
|
|
|
|
|
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc)
|
|
|
|
|
((#:make-flags flags '())
|
|
|
|
|
;; Arrange so that /etc/rpc & co. go to $out/etc.
|
|
|
|
|
`(list (string-append "sysconfdir="
|
|
|
|
|
(assoc-ref %outputs "out")
|
|
|
|
|
"/etc")))
|
|
|
|
|
((#: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"))))))))))))
|
2018-08-01 10:13:45 -04:00
|
|
|
|
|
2020-09-20 17:11:55 -04:00
|
|
|
|
(define-public glibc-2.31
|
|
|
|
|
(package
|
2023-12-06 04:52:49 -05:00
|
|
|
|
(inherit glibc-2.35)
|
2020-09-20 17:11:55 -04:00
|
|
|
|
(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)
|
2023-10-09 11:10:48 -04:00
|
|
|
|
,@%default-gnu-imported-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)
|
2024-01-15 10:55:01 -05:00
|
|
|
|
(delete 'install-utf8-c-locale)
|
2017-12-06 09:14:35 -05:00
|
|
|
|
(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.
|
2023-12-14 05:07:31 -05:00
|
|
|
|
'("C" "de_DE" "el_GR" "en_US" "fr_FR" "tr_TR"))
|
|
|
|
|
|
2020-11-04 09:48:45 -05:00
|
|
|
|
(define*-public (make-glibc-utf8-locales glibc #:key
|
|
|
|
|
(locales %default-utf8-locales)
|
|
|
|
|
(name "glibc-utf8-locales"))
|
2023-09-21 09:57:10 -04:00
|
|
|
|
(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
|
2023-09-21 09:57:10 -04:00
|
|
|
|
(list #:modules '((guix build utils))
|
|
|
|
|
#:builder
|
|
|
|
|
#~(begin
|
|
|
|
|
(use-modules (guix build utils))
|
|
|
|
|
|
|
|
|
|
(let* ((libc (dirname
|
|
|
|
|
(search-input-file %build-inputs
|
|
|
|
|
"/bin/localedef")))
|
|
|
|
|
(gzip (dirname
|
|
|
|
|
(search-input-file %build-inputs
|
|
|
|
|
"/bin/gzip")))
|
|
|
|
|
(out #$output)
|
|
|
|
|
(localedir (string-append out "/lib/locale/"
|
|
|
|
|
#$(version-major+minor
|
|
|
|
|
(package-version this-package)))))
|
|
|
|
|
;; 'localedef' needs 'gzip'.
|
|
|
|
|
(setenv "PATH" (string-append libc ":" gzip ""))
|
|
|
|
|
|
|
|
|
|
(mkdir-p localedir)
|
|
|
|
|
(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")))
|
2023-12-14 05:07:31 -05:00
|
|
|
|
|
|
|
|
|
;; The C.UTF-8 locale was introduced in 2.35 but it
|
|
|
|
|
;; fails to build there:
|
|
|
|
|
;; <https://sourceware.org/bugzilla/show_bug.cgi?id=28861>.
|
|
|
|
|
'#$(if (version>? (package-version this-package)
|
|
|
|
|
"2.35")
|
|
|
|
|
locales
|
|
|
|
|
(delete "C" locales)))))))
|
2023-09-21 09:57:10 -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
|
2022-02-26 23:06:24 -05:00
|
|
|
|
(hidden-package
|
|
|
|
|
(make-glibc-utf8-locales glibc)))
|
2019-01-17 06:55:53 -05:00
|
|
|
|
|
2019-09-24 08:00:58 -04:00
|
|
|
|
;; Packages provided to ease use of binaries linked against the previous libc.
|
2023-05-28 05:04:53 -04:00
|
|
|
|
(define-public glibc-locales-2.33
|
|
|
|
|
(package (inherit (make-glibc-locales glibc-2.33))
|
|
|
|
|
(name "glibc-locales-2.33")))
|
2022-05-31 14:08:51 -04:00
|
|
|
|
(define-public glibc-locales-2.32
|
|
|
|
|
(package (inherit (make-glibc-locales glibc-2.32))
|
|
|
|
|
(name "glibc-locales-2.32")))
|
2022-05-31 14:08:42 -04:00
|
|
|
|
(define-public glibc-locales-2.31
|
|
|
|
|
(package (inherit (make-glibc-locales glibc-2.31))
|
|
|
|
|
(name "glibc-locales-2.31")))
|
2022-05-31 14:08:34 -04:00
|
|
|
|
(define-public glibc-locales-2.30
|
|
|
|
|
(package (inherit (make-glibc-locales glibc-2.30))
|
|
|
|
|
(name "glibc-locales-2.30")))
|
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+
|
|
|
|
|
|
2023-12-07 09:40:15 -05:00
|
|
|
|
(define-public glibc/hurd glibc)
|
2023-05-22 05:42:26 -04:00
|
|
|
|
|
2014-09-27 13:07:19 -04:00
|
|
|
|
(define-public glibc/hurd-headers
|
2023-05-22 05:42:26 -04:00
|
|
|
|
(package/inherit glibc/hurd
|
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
|
2023-05-22 05:42:26 -04:00
|
|
|
|
(modify-inputs (package-native-inputs glibc/hurd)
|
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
|
|
|
|
(prepend (if (%current-target-system)
|
2023-05-22 05:04:12 -04:00
|
|
|
|
(let* ((cross-base (resolve-interface '(gnu packages cross-base)))
|
|
|
|
|
(cross-mig (module-ref cross-base 'cross-mig)))
|
|
|
|
|
(cross-mig (%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
|
|
|
|
mig))))
|
2014-09-27 13:07:19 -04:00
|
|
|
|
(arguments
|
2023-05-22 05:42:26 -04:00
|
|
|
|
(substitute-keyword-arguments (package-arguments glibc/hurd)
|
2014-09-27 13:07:19 -04:00
|
|
|
|
;; We just pass the flags really needed to build the headers.
|
2023-03-26 15:40:46 -04:00
|
|
|
|
((#:configure-flags flags)
|
2014-09-27 13:07:19 -04:00
|
|
|
|
`(list "--enable-add-ons"
|
2023-03-26 15:40:46 -04:00
|
|
|
|
,@%glibc/hurd-configure-flags))
|
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"))))))
|
2023-05-22 05:04:12 -04:00
|
|
|
|
(delete 'build))))) ; nothing to build
|
|
|
|
|
(supported-systems %hurd-systems)))
|
2014-09-27 13:07:19 -04:00
|
|
|
|
|
2023-11-25 10:17:12 -05:00
|
|
|
|
(define-public glibc-utf8-locales/hurd
|
|
|
|
|
;; Locales for the libc version used on GNU/Hurd.
|
|
|
|
|
(hidden-package
|
|
|
|
|
(make-glibc-utf8-locales glibc/hurd)))
|
|
|
|
|
|
2023-05-22 05:42:26 -04:00
|
|
|
|
(define* (libc-for-target #:optional
|
|
|
|
|
(target (or (%current-target-system)
|
|
|
|
|
(%current-system))))
|
|
|
|
|
(match target
|
|
|
|
|
((? target-hurd?)
|
|
|
|
|
glibc/hurd)
|
|
|
|
|
(_
|
|
|
|
|
glibc)))
|
|
|
|
|
|
2023-06-07 13:19:01 -04:00
|
|
|
|
(define-public glibc-locales/hurd
|
2023-12-06 11:08:53 -05:00
|
|
|
|
;; Locales again; hide them because their 'supported-systems' field suggests
|
|
|
|
|
;; they're Hurd-only, making them non-installable on GNU/Linux.
|
|
|
|
|
(hidden-package
|
|
|
|
|
(make-glibc-locales glibc/hurd)))
|
2023-06-07 13:19:01 -04:00
|
|
|
|
|
|
|
|
|
(define* (libc-locales-for-target #:optional
|
|
|
|
|
(target (or (%current-target-system)
|
|
|
|
|
(%current-system))))
|
|
|
|
|
(if (target-hurd? target)
|
|
|
|
|
glibc-locales/hurd
|
|
|
|
|
glibc-locales))
|
|
|
|
|
|
|
|
|
|
(define* (libc-utf8-locales-for-target #:optional
|
|
|
|
|
(target (or (%current-target-system)
|
|
|
|
|
(%current-system))))
|
2023-12-11 05:50:42 -05:00
|
|
|
|
"Return the glibc UTF-8 locale package for TARGET."
|
|
|
|
|
;; Note: To avoid circular dependencies (such as: texinfo ->
|
|
|
|
|
;; glibc-utf8-locales -> glibc -> texinfo), refer to
|
|
|
|
|
;; 'glibc-utf8-locales-final' via 'canonical-package'.
|
|
|
|
|
(canonical-package
|
|
|
|
|
(if (target-hurd? target)
|
|
|
|
|
glibc-utf8-locales/hurd
|
|
|
|
|
glibc-utf8-locales)))
|
2023-06-07 13:19:01 -04:00
|
|
|
|
|
2013-05-08 16:44:21 -04:00
|
|
|
|
(define-public tzdata
|
|
|
|
|
(package
|
|
|
|
|
(name "tzdata")
|
2024-01-25 15:09:38 -05:00
|
|
|
|
;; This package should be kept in sync with python-pytz and python-tzdata
|
|
|
|
|
;; in (gnu packages time).
|
2024-01-19 07:36:55 -05:00
|
|
|
|
(version "2023d")
|
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
|
2024-01-19 07:36:55 -05:00
|
|
|
|
"1wq858ip55ijnlrffnnadq7vw0x93ywxghgfxh68r2qa1fbj3jnv"))))
|
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
|
2024-01-19 07:36:55 -05:00
|
|
|
|
"07hn7hn2klw4dfyr673ril2nrk18198hbfv25gljsvc833hzk9g9")))))
|
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)
|
2023-02-23 15:45:43 -05:00
|
|
|
|
(list libiconv)
|
2016-05-03 12:49:33 -04:00
|
|
|
|
'()))
|
|
|
|
|
|
2024-02-01 12:51:07 -05:00
|
|
|
|
;;; Beware: canonical-package should not be used at the top level, to avoid
|
|
|
|
|
;;; eagerly resolving (gnu packages commencement), which would introduce
|
|
|
|
|
;;; circular module dependencies.
|
|
|
|
|
(define (canonical-package package)
|
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
|
|
|
|
;; 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
|
|
|
|
|
2024-02-01 12:51:07 -05:00
|
|
|
|
;;; Beware: %final-inputs should not be used at the top level, to avoid
|
|
|
|
|
;;; eagerly resolving (gnu packages commencement), which would introduce
|
|
|
|
|
;;; circular module dependencies.
|
2023-08-09 03:38:31 -04:00
|
|
|
|
(define* (%final-inputs #:optional (system (%current-system)))
|
2016-11-04 10:16:11 -04:00
|
|
|
|
"Return the list of \"final inputs\"."
|
|
|
|
|
;; Avoid circular dependency by lazily resolving 'commencement'.
|
|
|
|
|
(let ((iface (resolve-interface '(gnu packages commencement))))
|
2023-08-09 03:38:31 -04:00
|
|
|
|
((module-ref iface '%final-inputs) system)))
|
2016-11-04 10:16:11 -04:00
|
|
|
|
|
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
|