all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: Guillaume Le Vaillant <glv@posteo.net>
Cc: 49161@debbugs.gnu.org, Brice Waegeneire <brice@waegenei.re>
Subject: bug#49161: kicad-5.1.6 fails to build
Date: Tue, 22 Jun 2021 13:39:26 +0000	[thread overview]
Message-ID: <b5aa92ddfae44c4fddaf8181fe2edace50c1a7a3.camel@posteo.net> (raw)
In-Reply-To: <87tulqds5s.fsf@kitej>

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]

Sending a v2 removing readline from inputs because it's unused now.

[-- Attachment #2: v2-0001-gnu-libngspice-Fix-KiCad-compilation.patch --]
[-- Type: text/x-patch, Size: 1386 bytes --]

From 7dc50ffb272c391cb2afa8b874f6d487e6020423 Mon Sep 17 00:00:00 2001
From: Vinicius Monego <monego@posteo.net>
Date: Tue, 22 Jun 2021 09:46:32 -0300
Subject: [PATCH v2 1/2] gnu: libngspice: Fix KiCad compilation.

* gnu/packages/engineering.scm (libngspice)[arguments]<#:configure-flags>:
Pass "--with-readline=no".
[inputs]: Remove readline.
---
 gnu/packages/engineering.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 5b1c8b7938..a50e6d6526 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -1721,14 +1721,15 @@ high-performance parallel differential evolution (DE) optimization algorithm.")
              "--enable-ciderlib"
              "--enable-xspice"
              "--with-ngshared"
-             "--with-readline=yes")))
+             ;; Readline must be disabled to build KiCad with ngspice 34.  See
+             ;; https://bugs.archlinux.org/task/70563 for reference.
+             "--with-readline=no")))
     (native-inputs
      `(("bison" ,bison)
        ("flex" ,flex)))
     (inputs
      `(("libxaw" ,libxaw)
-       ("mpi" ,openmpi)
-       ("readline" ,readline)))
+       ("mpi" ,openmpi)))
     (home-page "http://ngspice.sourceforge.net/")
     (synopsis "Mixed-level/mixed-signal circuit simulator")
     (description
-- 
2.32.0


[-- Attachment #3: v2-0002-gnu-libngspice-Delete-autogenerated-config.h.patch --]
[-- Type: text/x-patch, Size: 1771 bytes --]

From bc8bdfc9f403e585f4f18796a8fb7bb3e5699134 Mon Sep 17 00:00:00 2001
From: Vinicius Monego <monego@posteo.net>
Date: Tue, 22 Jun 2021 09:53:41 -0300
Subject: [PATCH v2 2/2] 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.
---
 gnu/packages/engineering.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index a50e6d6526..b2aa2179dd 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"
-- 
2.32.0


  parent reply	other threads:[~2021-06-22 13:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21 16:23 bug#49161: kicad-5.1.6 fails to build bdju via Bug reports for GNU Guix
2021-06-22  6:36 ` Brice Waegeneire
2021-06-22  9:42   ` Vinicius Monego
2021-06-22  9:42   ` Vinicius Monego
2021-06-22 11:04   ` Vinicius Monego
2021-06-22 12:01     ` Guillaume Le Vaillant
2021-06-22 13:29       ` Vinicius Monego
2021-06-22 13:39       ` Vinicius Monego [this message]
2021-06-22 14:54         ` Guillaume Le Vaillant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b5aa92ddfae44c4fddaf8181fe2edace50c1a7a3.camel@posteo.net \
    --to=monego@posteo.net \
    --cc=49161@debbugs.gnu.org \
    --cc=brice@waegenei.re \
    --cc=glv@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.