unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41725] [PATCH] gnu: openscad: Add patch to fix build.
@ 2020-06-05 18:10 Steve Sprang
  2020-06-06 16:28 ` bug#41725: " Brice Waegeneire
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Sprang @ 2020-06-05 18:10 UTC (permalink / raw)
  To: 41725

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



[-- Attachment #2: 0001-gnu-openscad-Add-patch-to-fix-build.patch --]
[-- Type: text/x-patch, Size: 2914 bytes --]

From 870b1541e78ad172fa39ac76e968837bc33624fe Mon Sep 17 00:00:00 2001
From: Steve Sprang <scs@stevesprang.com>
Date: Fri, 5 Jun 2020 11:05:06 -0700
Subject: [PATCH] gnu: openscad: Add patch to fix build.

* gnu/packages/engineering.scm (openscad): Use it.
* gnu/packages/patches/openscad-parser-boost-1.72.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/engineering.scm                  |  5 +++-
 .../patches/openscad-parser-boost-1.72.patch  | 26 +++++++++++++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/openscad-parser-boost-1.72.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 01ec893310..05b9c5b8d4 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1328,6 +1328,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/openocd-nrf52.patch			\
   %D%/packages/patches/openssh-hurd.patch			\
   %D%/packages/patches/openresolv-restartcmd-guix.patch	\
+  %D%/packages/patches/openscad-parser-boost-1.72.patch	\
   %D%/packages/patches/openssl-runpath.patch			\
   %D%/packages/patches/openssl-1.1-c-rehash-in.patch		\
   %D%/packages/patches/openssl-c-rehash-in.patch		\
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 2102f8d295..fab3ee0261 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -2263,7 +2263,10 @@ specification can be downloaded at @url{http://3mf.io/specification/}.")
                            ".src.tar.gz"))
        (sha256
         (base32
-         "0nbgk5q5pgnw53la0kccdcpz2f4xf6d6076rkn0q08z57hkc85ha"))))
+         "0nbgk5q5pgnw53la0kccdcpz2f4xf6d6076rkn0q08z57hkc85ha"))
+       (patches
+        (search-patches
+         "openscad-parser-boost-1.72.patch"))))
     (build-system cmake-build-system)
     (inputs
      `(("boost" ,boost)
diff --git a/gnu/packages/patches/openscad-parser-boost-1.72.patch b/gnu/packages/patches/openscad-parser-boost-1.72.patch
new file mode 100644
index 0000000000..35311e6173
--- /dev/null
+++ b/gnu/packages/patches/openscad-parser-boost-1.72.patch
@@ -0,0 +1,26 @@
+https://github.com/openscad/openscad/commit/b6c170cc5d.patch
+
+From b6c170cc5dd1bc677176ee732cdb0ddae57e5cf0 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbeich@FreeBSD.org>
+Date: Fri, 25 Oct 2019 15:10:26 +0000
+Subject: [PATCH] Add missing header bootlegged by Boost < 1.72
+
+src/parser.y:76:6: error: no template named 'stack' in namespace 'std'
+std::stack<LocalScope *> scope_stack;
+~~~~~^
+---
+ src/parser.y | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/parser.y b/src/parser.y
+index 7f4fd56ca7..4c77c989ea 100644
+--- a/src/parser.y
++++ b/src/parser.y
+@@ -46,6 +46,7 @@
+ #include "printutils.h"
+ #include "memory.h"
+ #include <sstream>
++#include <stack>
+ #include <boost/filesystem.hpp>
+ #include "boost-utils.h"
+ #include "feature.h"
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#41725: [PATCH] gnu: openscad: Add patch to fix build.
  2020-06-05 18:10 [bug#41725] [PATCH] gnu: openscad: Add patch to fix build Steve Sprang
@ 2020-06-06 16:28 ` Brice Waegeneire
  0 siblings, 0 replies; 2+ messages in thread
From: Brice Waegeneire @ 2020-06-06 16:28 UTC (permalink / raw)
  To: Steve Sprang; +Cc: 41725-done


Hello Steve,

Thank you for the patch.

I can't find a failed build on ci.guix.gnu.org but building it locally
it failed.  Your patch fixed that.

Pushed as c08a784c58bca8df048bc98276aa4fcf0d61d8b3 with minor cosmetic
tweaks.

- Brice




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-06 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 18:10 [bug#41725] [PATCH] gnu: openscad: Add patch to fix build Steve Sprang
2020-06-06 16:28 ` bug#41725: " Brice Waegeneire

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).