Subject: Re: [PATCH v3 8/8] gnu: Add qucs-s.

From: Theodoros Foradis <[email-masked]>
Date: Sun, 01 Oct 2017 01:30:10 +0300

Having run "guix lint" before formatting the patches, I split some lines
in two, and that caused some text substitutions to fail in qucs-s
package, which I did not catch in time.

This patch (applied on top of [PATCH v3 8/8] gnu: Add qucs-s.) resolves
the issue. If it is preferred that I send the whole patch again, please
ask.

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 25221369f..74000e948 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1598,16 +1598,16 @@ e.g. DC, AC, S-parameter, Transient, Noise and Harmonic Balance analysis.
          (add-after 'patch-scripts 'patch-paths
            (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "qucs/main.cpp"
-               (("QucsSettings\\.Qucsator = QucsSettings\\.BinDir
- \\+ \"qucsator\" \\+ executableSuffix")
+               (((string-append "QucsSettings\\.Qucsator = QucsSettings\\.BinDir "
+                                "\\+ \"qucsator\" \\+ executableSuffix"))
                 (string-append "}{ QucsSettings.Qucsator = \""
                                (assoc-ref inputs "qucs") "/bin/qucsator\""))
-               (("else QucsSettings\\.XyceExecutable =
- \"/usr/local/Xyce-Release-6.2.0-OPENSOURCE/bin/runxyce")
+               (((string-append "else QucsSettings\\.XyceExecutable = "
+                                "\"/usr/local/Xyce-Release-6.2.0-OPENSOURCE/bin/runxyce"))
                 (string-append "QucsSettings.XyceExecutable = \""
                                (assoc-ref inputs "xyce-serial") "/bin/Xyce"))
-               (("else QucsSettings\\.XyceParExecutable =
- \"/usr/local/Xyce-Release-6.2.0-OPENMPI-OPENSOURCE/bin/xmpirun")
+               (((string-append "else QucsSettings\\.XyceParExecutable = \"/usr/local"
+                                "/Xyce-Release-6.2.0-OPENMPI-OPENSOURCE/bin/xmpirun"))
                 (string-append "QucsSettings.XyceParExecutable = \""
                                (assoc-ref inputs "mpi") "/bin/mpirun"))
                (("%p")
-- 
Theodoros Foradis