From 5db2c619577656eb594eabaf7f3334c615ade1d802000ea277b2c87f101bf20a Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Tue, 18 Sep 2018 09:43:04 +0000 Subject: [PATCH] Accepting request 636352 from home:plater Fix build against boost-1.68 with kicad-fix-boost168-build.patch. OBS-URL: https://build.opensuse.org/request/show/636352 OBS-URL: https://build.opensuse.org/package/show/electronics/kicad?expand=0&rev=43 --- kicad-fix-boost168-build.patch | 36 ++++++++++++++++++++++++++++++++++ kicad.changes | 5 +++++ kicad.spec | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 kicad-fix-boost168-build.patch diff --git a/kicad-fix-boost168-build.patch b/kicad-fix-boost168-build.patch new file mode 100644 index 0000000..d05a4ef --- /dev/null +++ b/kicad-fix-boost168-build.patch @@ -0,0 +1,36 @@ +From: Dave Plater +Date: 2018-11-18 10:52 +Subject: Fix build against boost-1.68 +Upstream: from upstream + +In boost-1.68 "boost/uuid/sha1.hpp" is moved to +"boost/uuid/detail/sha1.hpp" +Patch copied from git #8bb0fabcba3b9344105b11d762b2360de9889fc0 +The comit also includes a large number of debug fixes that are +not necessary and would make the patch very large. + +Index: 3d-viewer/3d_cache/3d_cache.cpp +=================================================================== +--- 3d-viewer/3d_cache/3d_cache.cpp.orig 2018-07-13 21:53:52.000000000 +0200 ++++ 3d-viewer/3d_cache/3d_cache.cpp 2018-09-18 11:02:07.410240387 +0200 +@@ -2,6 +2,7 @@ + * This program source code file is part of KiCad, a free EDA CAD application. + * + * Copyright (C) 2015-2016 Cirilo Bernardo ++ * Copyright (C) 2018 KiCad Developers, see AUTHORS.txt for contributors. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License +@@ -34,7 +35,12 @@ + #include + #include + ++#include ++#if BOOST_VERSION >= 106800 ++#include ++#else + #include ++#endif + + #include + #include diff --git a/kicad.changes b/kicad.changes index 1aa5785..1b203c0 100644 --- a/kicad.changes +++ b/kicad.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 18 09:10:20 UTC 2018 - davejplater@gmail.com + +- Fix build against boost-1.68 with kicad-fix-boost168-build.patch. + ------------------------------------------------------------------- Wed Jul 25 08:51:47 UTC 2018 - davejplater@gmail.com diff --git a/kicad.spec b/kicad.spec index 6634ebf..91d6a39 100644 --- a/kicad.spec +++ b/kicad.spec @@ -34,6 +34,7 @@ Patch2: kicad-library-repos-install.patch # PATCH-FIX-OPENSUSE davejplater@gmail.com -kicad-suse-help-path.patch - kicad looks in /usr/share/doc/kicad for help files and doesn't find them. # this patch adds packges/ befor kicad. Patch3: kicad-suse-help-path.patch +Patch4: kicad-fix-boost168-build.patch %if 0%{?suse_version} > 1325 BuildRequires: libboost_context-devel @@ -110,6 +111,7 @@ This package contains script for KiCad libraries downloading. %patch1 -p0 %patch2 -p1 %patch3 +%patch4 cp %{SOURCE2} .