summary refs log tree commit diff
path: root/gnu/packages/engineering.scm
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2021-06-22 09:53:41 -0300
committerGuillaume Le Vaillant <glv@posteo.net>2021-06-22 16:43:49 +0200
commit33fa648f7561ca00d2a21bc0933d0b05ee8bf6b3 (patch)
tree69663853bec14f60f9aa7036b1365535772905c8 /gnu/packages/engineering.scm
parente22a711c97e0501b398467733164da4ee140036e (diff)
downloadguix-33fa648f7561ca00d2a21bc0933d0b05ee8bf6b3.tar.gz
gnu: libngspice: Delete autogenerated config.h.
* gnu/packages/engineering.scm (libngspice)[arguments]<#:phases>: Rename phase
  'delete-script-files to 'delete-scripts-and-config and delete config.h.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Diffstat (limited to 'gnu/packages/engineering.scm')
-rw-r--r--gnu/packages/engineering.scm9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 1ae9512df1..19c15358c0 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1711,11 +1711,16 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
              (substitute* "man/man1/Makefile.in"
                (("^man_MANS = ngspice\\.1 ngnutmeg\\.1 ngsconvert\\.1 ngmultidec\\.1")
                 "man_MANS = "))))
-         (add-after 'install 'delete-script-files
+         (add-after 'install 'delete-scripts-and-config
            (lambda* (#:key outputs #:allow-other-keys)
              (delete-file-recursively
               (string-append (assoc-ref outputs "out")
-                             "/share/ngspice/scripts")))))
+                             "/share/ngspice/scripts"))
+             ;; This file is autogenerated by the configure script and should
+             ;; not be distributed.  It could be removed in ngspice 35.  See
+             ;; https://bugs.archlinux.org/task/70569 for reference.
+             (delete-file (string-append (assoc-ref outputs "out")
+                                         "/include/config.h")))))
        #:configure-flags
        (list "--enable-openmp"
              "--enable-ciderlib"