aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/m4.scm
blob: fbc075a2cbf826ee27963cbe5bfe50104d864ae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2015 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; 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.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; 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
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages m4)
  #:use-module (guix licenses)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu))

(define-public m4
  (package
   (name "m4")
   (version "1.4.19")
   (source (origin
            (method url-fetch)
            (uri (string-append "mirror://gnu/m4/m4-"
                                version ".tar.xz"))
            (sha256
             (base32
              "15mghcksh11saylpm86h1zkz4in0rbi0pk8i6nqxkdikdmfdxbk3"))))
   (build-system gnu-build-system)
   (arguments
    `(;; Explicitly disable tests when cross-compiling, otherwise 'make check'
      ;; proceeds and fails, unsurprisingly.
      #:tests? ,(not (%current-target-system))
      #:phases
      (modify-phases %standard-phases
        (add-after 'unpack 'disable-test
          (lambda _
            ;; Test 5 raises SIGINT from a child and immediately returns
            ;; code 71, and tests whether the child was killed by a signal.
            ;; Since there is no signal handler for SIGINT in the build
            ;; container, the parent sees the return code, and fails.
            ;; XXX: For some reason adding signal handlers in Guile before
            ;; running tests has no effect.
            (substitute* "tests/test-execute.sh"
              (("4 5 6")
               "4 6"))))
        (add-after 'unpack 'configure-shell
          (lambda* (#:key native-inputs inputs #:allow-other-keys)
            (let ((/bin/sh (search-input-file (or native-inputs inputs)
                                              "/bin/sh")))
              ;; Adjust hard-coded /bin/sh for tests.
              (substitute* "lib/config.hin"
                (("\"/bin/sh\"")
                 (format #f "\"~a\"" /bin/sh)))))))))
   (synopsis "Macro processor")
   (description
    "GNU M4 is an implementation of the M4 macro language, which features
some extensions over other implementations, some of which are required by GNU
Autoconf.  It is used as a macro processor, which means it processes text,
expanding macros as it encounters them.  It also has some built-in functions,
for example to run shell commands or to do arithmetic.")
   (license gpl3+)
   (home-page "https://www.gnu.org/software/m4/")))
9bb4cc6304d69152687022439df3a'>gnu: rust-1.39: Update mrustc to commit c70665.Maxim Cournoyer 2022-01-08gnu: rust-1.40: Fix spelling.Vagrant Cascadian 2021-12-27gnu: Add rust-1.57.(unmatched parenthesis 2021-12-27gnu: Add rust-1.56.(unmatched parenthesis 2021-12-27gnu: Add rust-1.55.(unmatched parenthesis 2021-11-27gnu: rust: Add 'supported-systems' field.Ludovic Courtès 2021-11-11gnu: Build all Rust packages using the latest rustc.Maxim Cournoyer 2021-11-11gnu: rust: Add rust 1.54 and move all non-bootstrapping logic to it.Maxim Cournoyer 2021-11-11gnu: rust: Bootstrap rust from 1.39.0 and optimize build time.Maxim Cournoyer 2021-11-11gnu: rust: Update to 1.50.Jakub Kądziołka 2021-07-24gnu: Use 'search-input-file' when looking for executables.Ludovic Courtès 2021-07-24gnu: Use 'search-input-file' when looking for *.so and *.a.Ludovic Courtès 2021-07-18Merge branch 'master' into core-updatesLudovic Courtès 2021-07-08mailmap: Update entries for Matthew James Kraai.Matthew James Kraai 2021-05-22Merge branch 'master' into core-updatesMarius Bakke 2021-05-19gnu: Add Rust 1.52.1.Jakub Kądziołka 2021-05-13gnu: Rust: Export all versions.Marius Bakke 2021-05-04gnu: rust: Re-use llvm versions.Efraim Flashner 2021-04-16Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner 2021-03-26gnu: rust: Add Rust 1.51Jakub Kądziołka 2021-03-10gnu: rust: Make it "supported" on all systems but i686-linux.Chris Marusich 2021-03-09gnu: rust-1.26: Remove aarch64-linux from the supported systems.Christopher Baines 2021-03-08gnu: rust-1.19: Don't include i686-linux in supported-systems.Christopher Baines 2021-03-06Merge branch 'master' into core-updatesChristopher Baines 2021-02-13gnu: Add Rust 1.50.Jakub Kądziołka 2021-02-11gnu: rust: Only test the current release.Maxim Cournoyer