gnu: singularity: Refer to egrep.
authorTobias Geerinckx-Rice <me@tobias.gr>
Tue, 14 Jul 2020 00:00:25 +0000 (02:00 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Tue, 14 Jul 2020 00:01:32 +0000 (02:01 +0200)
* gnu/packages/linux.scm (singularity)[arguments]: Rename
‘patch-reference-to-squashfs-tools’ to ‘patch-references’ and add egrep.

Reported by slimjim on #guix.

gnu/packages/linux.scm

index 9fa7d0c..80f546e 100644 (file)
@@ -3937,12 +3937,18 @@ thanks to the use of namespaces.")
      `(#:configure-flags '("--localstatedir=/var")
        #:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'patch-reference-to-squashfs-tools
+         (add-after 'unpack 'patch-references
            (lambda _
              (substitute* "libexec/cli/build.exec"
                (("if ! singularity_which mksquashfs") "if 0")
                (("if ! mksquashfs")
                 (string-append "if ! " (which "mksquashfs"))))
+             (substitute* (list "libexec/cli/help.exec"
+                                "libexec/bootstrap-scripts/functions"
+                                "libexec/bootstrap-scripts/post.sh"
+                                "libexec/functions")
+               (("egrep ")
+                (string-append (which "egrep") " ")))
              #t))
          (add-after 'install 'set-PATH
            (lambda* (#:key inputs outputs #:allow-other-keys)