Commit graph

70075 commits

Author SHA1 Message Date
Mark H Weaver 485ac28235
utils: Allow text substitution even in the presence of NUL characters.
Fixes <https://issues.guix.gnu.org/30116>.

Before this change, the presence of a NUL character on a line meant that
the (glibc) regexp engine used by Guile would either 1. stop scanning the
string or 2. crash with the error "string contains #\\nul character",
depending on the locale used.

This change works around this limitation by first replacing the NUL character
by an unused Unicode code point, doing the substitution, then reverting the
replacement.

* guix/build/utils.scm (unused-private-use-code-point)
(replace-char): New procedures.
(substitute): Make use of the above procedures to work around the NUL
character regexp engine limitation.
* tests/build-utils.scm: Add tests.

Co-authored-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2021-01-08 14:10:33 -05:00
Leo Famulari 8027711ee8
gnu: tzdata-for-tests: Update to 2020d.
* gnu/packages/base.scm (tzdata-for-tests): Update to 2020d.
[inputs]: Update tzcode.
2021-01-07 15:50:50 -05:00
Miguel Ángel Arruga Vivas cfe606572d
gnu: help2man: Update to 1.47.16.
* gnu/packages/man.scm (help2man): Update to version 1.47.16.
2021-01-06 17:14:49 +01:00
Miguel Ángel Arruga Vivas 378df42fc5
gnu: help2man: Add optional dependencies.
* gnu/packages/man.scm (help2man)[inputs]: Add perl-gettext and
gettext-minimal to the inputs.
2021-01-06 17:14:44 +01:00
Miguel Ángel Arruga Vivas 4343ca8ba5
gnu: Add perl-gettext.
* gnu/packages/perl.scm (perl-gettext): New module imported from CPAN.
2021-01-05 13:32:34 +01:00
Efraim Flashner d24ac47da1
gnu: nettle: Update to 3.7.
* gnu/packages/nettle.scm (nettle): Update to 3.7.
2021-01-05 12:17:36 +02:00
Vincent Legoll 82c791a3b1
gnu: libxkbcommon: Update to 1.0.3.
* gnu/packages/xdisorg.scm (libxkbcommon): Update to 1.0.3.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-01-03 15:44:28 +02:00
Maxim Cournoyer 9ea8616b37
gnu: cmake-bootstrap: Update to 3.19.2.
* gnu/packages/cmake.scm (%preserved-third-party-files): Repatriate from the
cmake package definition.
(cmake-bootstrap): Update to 3.19.2.
(cmake): Remove the version and source field overrides.
2020-12-30 08:40:43 -05:00
Maxim Cournoyer ca5f81ff57
gnu: boost: Update to 1.75.0.
* gnu/packages/boost.scm (boost): Update to 1.75.0.
2020-12-30 08:40:35 -05:00
Justus Winter 7d96a403a2
gnu: pulseaudio: Add webrtc-audio-processing to inputs.
This enables acoustic echo cancellation using the 'webrtc' method.

* gnu/packages/pulseaudio.scm (pulseaudio)[inputs]: Add
webrtc-audio-processing.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2020-12-30 11:54:48 +01:00
Vincent Legoll e104753375
gnu: sqlite: Update to 3.34.0.
* gnu/packages/sqlite.scm (sqlite): Update to 3.34.0.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2020-12-30 11:45:55 +01:00
Maxim Cournoyer 7f80cc8102
build-systems/gnu: Add compressor file extension to symbolic links.
Otherwise man and info readers are not able to read their content as they rely
on the file extension to detect if compression is used.

* guix/build/gnu-build-system.scm (compress-documentation)
[retarget-symlink]: Append the compressor file extension to the link file name.
2020-12-29 13:38:54 -05:00
Ludovic Courtès 067f28a7d7
gnu: fontconfig: Use 'font-dejavu' and remove replacement.
* gnu/packages/fontutils.scm (fontconfig)[replacement]: Remove.
[inputs]: Replace GS-FONTS by FONT-DEJAVU.
[arguments]: Adjust accordingly.
(fontconfig/font-dejavu): Remove.
2020-12-29 13:38:43 -05:00
Ludovic Courtès 951610567f
gnu: gdbm: Update to 1.19.
* gnu/packages/patches/gdbm-gcc-compat.patch: Remove.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/dbm.scm (gdbm)[source]: Remove 'patches'.
2020-12-27 18:44:57 +01:00
Greg Hogan bbd2864272
gnu: openblas: Update to 0.3.13.
* gnu/packages/maths.scm (openblas): Update to 0.3.13.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-12-27 15:50:08 +01:00
Ricardo Wurmus 7549c963c4
guix: Quote list of bootstrap scripts.
This is a follow-up to commit 9cfc93be30.

* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Quote the list of
default bootstrap scripts.
2020-12-23 21:17:46 +01:00
Ricardo Wurmus 9cfc93be30
build-system/gnu: Allow overriding of bootstrap scripts.
* guix/build-system/gnu.scm (gnu-build, gnu-cross-build): Accept
bootstrap-scripts keyword argument and pass it to gnu-build.
(%bootstrap-scripts): New variable.
* guix/build/gnu-build-system.scm (%bootstrap-scripts): Remove variable.
(bootstrap): Remove default value for bootstrap-scripts argument.
2020-12-23 13:33:24 +01:00
Ricardo Wurmus 40f14e3c66
gnu: Replace texlive-latex-pdfx with texlive-pdfx.
* gnu/packages/tex.scm (texlive-latex-pdfx): Deprecate in favor of...
(texlive-pdfx): ...this variable.
2020-12-23 10:34:34 +01:00
Ricardo Wurmus 4c8e7ca01d
gnu: texlive-latex-pdfx: Use simple-texlive-package.
* gnu/packages/tex.scm (texlive-latex-pdfx): Implement with
simple-texlive-package.
[native-inputs]: Remove.
[propagated-inputs]: Replace texlive-generic-pdftex with texlive-pdftex.
2020-12-23 10:34:34 +01:00
Ricardo Wurmus c9ef13bb19
gnu: Replace texlive-latex-hyperref with texlive-hyperref.
* gnu/packages/tex.scm (texlive-latex-hyperref): Deprecate in favor of...
(texlive-hyperref): ...this new variable.
2020-12-23 10:34:27 +01:00
Ricardo Wurmus ad5dddc610
gnu: Replace texlive-latex-fontspec with texlive-fontspec.
* gnu/packages/tex.scm (texlive-latex-fontspec): Deprecate in favor of...
(texlive-fontspec): ...this new variable.
2020-12-23 10:11:00 +01:00
Ricardo Wurmus 2fa52bbcb5
gnu: texlive-base: Update reference to texlive-babel.
* gnu/packages/tex.scm (texlive-base)[propagated-inputs]: Replace
"texlive-latex-babel" with "texlive-babel".
2020-12-23 10:11:00 +01:00
Ricardo Wurmus a8a2dcf06d
gnu: Replace texlive-latex-babel with texlive-babel.
* gnu/packages/tex.scm (texlive-latex-babel): Deprecate in favor of...
(texlive-babel): ...this new variable.
[native-inputs]: Add unzip.
2020-12-23 10:11:00 +01:00
Ricardo Wurmus bbeabb548d
gnu: texlive-base: Update reference to texlive-psnfss.
* gnu/packages/tex.scm (texlive-base)[propagated-inputs]: Replace
"texlive-latex-psnfss" with "texlive-psnfss".
2020-12-23 10:11:00 +01:00
Ricardo Wurmus 10b2fff98a
gnu: texlive-base: Update reference to texlive-amscls.
* gnu/packages/tex.scm (texlive-base)[propagated-inputs]: Replace
"texlive-latex-amscls" with "texlive-amscls".
2020-12-23 10:11:00 +01:00
Ricardo Wurmus 6056dc110f
gnu: Replace texlive-latex-amscls with texlive-amscls.
* gnu/packages/tex.scm (texlive-latex-amscls): Deprecate in favor of...
(texlive-amscls): ...this new variable.
2020-12-23 10:11:00 +01:00
Ricardo Wurmus 4c1de416b2
gnu: Replace texlive-latex-mflogo with texlive-mflogo.
* gnu/packages/tex.scm (texlive-latex-mflogo): Deprecate in favor of...
(texlive-mflogo): ...this new variable.
2020-12-23 10:10:59 +01:00
Ricardo Wurmus a434d9fa71
gnu: python-pypandoc: Do not set HOME.
* gnu/packages/python-xyz.scm (python-pypandoc)[arguments]: Do not set HOME
for the texlive-union.
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 8a08252d0c
gnu: python-ipython-documentation: Use new name for texlive-pdftex.
* gnu/packages/python-xyz.scm (python-ipython-documentation)[native-inputs]:
Replace "texlive-generic-pdftex" with "texlive-pdftex".
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 212e0360d4
gnu: Update references to texlive-knuth-lib.
* gnu/packages/tex.scm (texlive-hyph-utf8, texlive-latex-base,
teximpatient)[native-inputs]: Replace references to "texlive-fonts-knuth-lib"
with "texlive-knuth-lib".
2020-12-23 10:10:59 +01:00
Ricardo Wurmus a2276f625a
gnu: Replace texlive-fonts-knuth-lib with texlive-knuth-lib.
* gnu/packages/tex.scm (texlive-fonts-knuth-lib): Deprecate in favor of...
(texlive-knuth-lib): ...this new variable.
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 2c578eb612
gnu: chez-web: Use new names of TeX Live packages.
* gnu/packages/chez.scm (chez-web)[native-inputs]: Replace
texlive-generic-pdftex, texlive-context-base, and texlive-fonts-cm with the
new names texlive-pdftex, texlive-context, and texlive-cm, respectively.
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 85ca23b0c5
gnu: chez-sockets: Use new name of texlive-pdftex.
* gnu/packages/chez.scm (chez-sockets)[native-inputs]: Replace
"texlive-generic-pdftex" with "texlive-pdftex".
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 5b6600e689
gnu: chez-web: Remove obsolete build phase.
* gnu/packages/chez.scm (chez-web)[arguments]: Remove build phase "set-HOME".
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 63482d6f45
gnu: teximpatient: Use new name for texlive-pdftex.
* gnu/packages/tex.scm (teximpatient)[native-inputs]: Replace
texlive-generic-pdftex with texlive-pdftex.
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 0b4d0c6db3
gnu: Replace texlive-generic-pdftex with texlive-pdftex.
* gnu/packages/tex.scm (texlive-generic-pdftex): Deprecate in favor of...
(texlive-pdftex): ...this new variable.
2020-12-23 10:10:59 +01:00
Ricardo Wurmus 3a2b9b5e05
gnu: lilypond: Use new name of texlive-lh.
* gnu/packages/music.scm (lilypond)[native-inputs]: Replace "texlive-latex-lh"
in texlive-union with new name "texlive-lh".
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 2092c31723
gnu: lilypond: Remove obsolete build phase.
* gnu/packages/music.scm (lilypond)[arguments]: Remove build phase
"use-texlive-union".
2020-12-23 10:10:58 +01:00
Jelle Licht d9f733ad8b
gnu: texlive-amsfonts: Only create tfm files for Euler fonts.
* gnu/packages/tex.scm (texlive-amsfonts)[arguments]<#:phases>[build-fonts]:
Invoke `afm2tfm' for only the Euler fonts.
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 7899a10e8e
gnu: Replace texlive-latex-lh with texlive-lh.
* gnu/packages/tex.scm (texlive-latex-lh): Deprecate in favor of...
(texlive-lh): ...this new variable.
2020-12-23 10:10:58 +01:00
Ricardo Wurmus a72499b3a5
gnu: sbcl: Remove obsolete build phase.
* gnu/packages/lisp.scm (sbcl)[arguments]: Remove obsolete build phase
"set-HOME".
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 08dc1de496
gnu: gtk-doc: Remove obsolete build phase.
* gnu/packages/gtk.scm (gtk-doc)[arguments]: Remove obsolete build phase
"set-HOME".
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 6c7a0ffa1a
gnu: hypre: Remove obsolete build phase.
* gnu/packages/maths.scm (hypre)[arguments]: Remove obsolete build phase
"set-HOME".
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 3ab41ca5e1
gnu: mit-scheme: Remove obsolete build phase.
* gnu/packages/scheme.scm (mit-scheme)[arguments]: Remove obsolete build phase
"set-HOME".
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 07e08bc7d5
gnu: discrover: Use new texlive package names.
* gnu/packages/bioinformatics.scm (discrover)[native-inputs]: Replace
"texlive-fonts-cm" and "texlive-fonts-amsfonts" with their new names
"texlive-cm" and "texlive-amsfonts", respectively.
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 714d02b6b5
gnu: discrover: Remove obsolete build phase.
* gnu/packages/bioinformatics.scm (discrover)[arguments]: Remove obsolete
build phase setenv-HOME.
2020-12-23 10:10:58 +01:00
Ricardo Wurmus 0ac4c0ca40
gnu: Replace texlive-metafont-base with texlive-metafont.
* gnu/packages/tex.scm (texlive-metafont-base): Deprecate this variable in
favor of...
(texlive-metafont): ...this new variable.
(texlive-cm, texlive-fonts-knuth-lib, texlive-fonts-latex, texlive-amsfonts,
texlive-etex, texlive-base, texlive-fonts-ec, texlive-fonts-rsfs): Adjust
references to texlive-metafont-base.
2020-12-23 10:10:58 +01:00
Ricardo Wurmus e760a15d35
gnu: texlive-metafont-base: Install missing files.
* gnu/packages/tex.scm (texlive-metafont-base)[arguments]: Also install "misc"
and "config" directories.
2020-12-23 10:10:57 +01:00
Ricardo Wurmus 17aeabdd52
gnu: texlive-base: Add texlive-cm-super to default set.
This adds T1 variants of the CM fonts, avoiding the need to generate bitmap
fonts (.pk files) at runtime.

* gnu/packages/tex.scm (texlive-base)[propagated-inputs]: Add
texlive-cm-super.
2020-12-23 10:10:57 +01:00
Ricardo Wurmus 556aca82a3
gnu: texlive-luatex-luaotfload: Use TeX Live sources.
* gnu/packages/tex.scm (texlive-luatex-luaotfload): Deprecate in favor of...
(texlive-luaotfload): ...this new variable; install files from the TeX Live
repository.
2020-12-23 10:10:57 +01:00