Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/kicad/files/
Date: Wed, 01 Feb 2017 22:41:46
Message-Id: 1485988862.66c01bd53b7f13d75df1c8e44c4854390b04c4c5.soap@gentoo
1 commit: 66c01bd53b7f13d75df1c8e44c4854390b04c4c5
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 31 17:48:15 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 22:41:02 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66c01bd5
7
8 sci-electronics/kicad: remove unused patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/3740
11
12 .../kicad/files/kicad-4.0.2-boost-context.patch | 107 ---------------------
13 .../files/kicad-4.0.2-swig-import-helper.patch | 31 ------
14 2 files changed, 138 deletions(-)
15
16 diff --git a/sci-electronics/kicad/files/kicad-4.0.2-boost-context.patch b/sci-electronics/kicad/files/kicad-4.0.2-boost-context.patch
17 deleted file mode 100644
18 index 00e80f3..00000000
19 --- a/sci-electronics/kicad/files/kicad-4.0.2-boost-context.patch
20 +++ /dev/null
21 @@ -1,107 +0,0 @@
22 -diff -Naur kicad-4.0.2-orig/common/system/libcontext.cpp kicad-4.0.2/common/system/libcontext.cpp
23 ---- kicad-4.0.2-orig/common/system/libcontext.cpp 2016-06-16 22:30:58.000000000 -0700
24 -+++ kicad-4.0.2/common/system/libcontext.cpp 2016-06-16 22:35:46.654719468 -0700
25 -@@ -13,7 +13,7 @@
26 - http://www.boost.org/LICENSE_1_0.txt)
27 -
28 - */
29 --#include "libcontext.h"
30 -+#include <system/libcontext.h>
31 - #if defined(LIBCONTEXT_PLATFORM_windows_i386) && defined(LIBCONTEXT_COMPILER_gcc)
32 - __asm (
33 - ".text\n"
34 -diff -Naur kicad-4.0.2-orig/CMakeLists.txt kicad-4.0.2/CMakeLists.txt
35 ---- kicad-4.0.2-orig/CMakeLists.txt 2016-02-13 13:14:42.000000000 -0800
36 -+++ kicad-4.0.2/CMakeLists.txt 2016-06-11 01:11:25.623484908 -0700
37 -@@ -561,7 +561,7 @@
38 - # Download boost and possibly build parts of it
39 - #################################################
40 - if( KICAD_SKIP_BOOST )
41 -- find_package( Boost 1.54.0 REQUIRED COMPONENTS context date_time filesystem iostreams locale
42 -+ find_package( Boost 1.54.0 REQUIRED COMPONENTS date_time filesystem iostreams locale
43 - program_options regex system thread )
44 -
45 - if( NOT Boost_FOUND )
46 -diff -Naur kicad-4.0.2-orig/common/CMakeLists.txt kicad-4.0.2/common/CMakeLists.txt
47 ---- kicad-4.0.2-orig/common/CMakeLists.txt 2016-02-13 13:14:42.000000000 -0800
48 -+++ kicad-4.0.2/common/CMakeLists.txt 2016-06-11 01:10:04.886830434 -0700
49 -@@ -256,6 +256,8 @@
50 - view/view_item.cpp
51 - view/view_group.cpp
52 -
53 -+ system/libcontext.cpp
54 -+
55 - math/math_util.cpp
56 -
57 - tool/tool_action.cpp
58 -diff -Naur kicad-4.0.2-orig/include/tool/coroutine.h kicad-4.0.2/include/tool/coroutine.h
59 ---- kicad-4.0.2-orig/include/tool/coroutine.h 2016-02-13 13:14:42.000000000 -0800
60 -+++ kicad-4.0.2/include/tool/coroutine.h 2016-06-11 01:07:06.035378422 -0700
61 -@@ -27,8 +27,7 @@
62 -
63 - #include <cstdlib>
64 -
65 --#include <boost/context/fcontext.hpp>
66 --#include <boost/version.hpp>
67 -+#include <system/libcontext.h>
68 -
69 - #include "delegate.h"
70 -
71 -@@ -92,10 +91,8 @@
72 - if( m_saved )
73 - delete m_saved;
74 -
75 --#if BOOST_VERSION >= 105600
76 - if( m_self )
77 - delete m_self;
78 --#endif
79 -
80 - if( m_stack )
81 - free( m_stack );
82 -@@ -156,13 +153,9 @@
83 - assert( m_saved == NULL );
84 -
85 - m_args = &aArgs;
86 --#if BOOST_VERSION >= 105600
87 -- m_self = new boost::context::fcontext_t();
88 -- *m_self = boost::context::make_fcontext( sp, m_stackSize, callerStub );
89 --#else
90 -- m_self = boost::context::make_fcontext( sp, m_stackSize, callerStub );
91 --#endif
92 -- m_saved = new boost::context::fcontext_t();
93 -+ m_self = new fcontext_t();
94 -+ *m_self = make_fcontext( sp, m_stackSize, callerStub );
95 -+ m_saved = new fcontext_t();
96 -
97 - m_running = true;
98 - // off we go!
99 -@@ -222,14 +215,10 @@
100 - }
101 -
102 - ///> Wrapper for jump_fcontext to assure compatibility between different boost versions
103 -- static inline intptr_t jump(boost::context::fcontext_t* aOld, boost::context::fcontext_t* aNew,
104 -+ static inline intptr_t jump(fcontext_t* aOld, fcontext_t* aNew,
105 - intptr_t aP, bool aPreserveFPU = true )
106 - {
107 --#if BOOST_VERSION >= 105600
108 -- return boost::context::jump_fcontext( aOld, *aNew, aP, aPreserveFPU );
109 --#else
110 -- return boost::context::jump_fcontext( aOld, aNew, aP, aPreserveFPU );
111 --#endif
112 -+ return jump_fcontext( aOld, *aNew, aP, aPreserveFPU );
113 - }
114 -
115 - template <typename T>
116 -@@ -252,10 +241,10 @@
117 - ReturnType m_retVal;
118 -
119 - ///< saved caller context
120 -- boost::context::fcontext_t* m_saved;
121 -+ fcontext_t* m_saved;
122 -
123 - ///< saved coroutine context
124 -- boost::context::fcontext_t* m_self;
125 -+ fcontext_t* m_self;
126 -
127 - ///< coroutine stack
128 - void* m_stack;
129
130 diff --git a/sci-electronics/kicad/files/kicad-4.0.2-swig-import-helper.patch b/sci-electronics/kicad/files/kicad-4.0.2-swig-import-helper.patch
131 deleted file mode 100644
132 index 9202acc..00000000
133 --- a/sci-electronics/kicad/files/kicad-4.0.2-swig-import-helper.patch
134 +++ /dev/null
135 @@ -1,31 +0,0 @@
136 -diff -Naur kicad-4.0.2-orig/scripting/build_tools/fix_swig_imports.py kicad-4.0.2/scripting/build_tools/fix_swig_imports.py
137 ---- kicad-4.0.2-orig/scripting/build_tools/fix_swig_imports.py 2016-02-13 13:14:42.000000000 -0800
138 -+++ kicad-4.0.2/scripting/build_tools/fix_swig_imports.py 2016-06-26 00:49:20.336661983 -0700
139 -@@ -37,7 +37,19 @@
140 - txt = ""
141 -
142 - for l in lines:
143 -- if l.startswith("if version_info >= (2,6,0):"): # ok with swig version <= 3.0.2
144 -+ if l.startswith("if _swig_python_version_info >= (2, 7, 0):"): # ok with swig version >= 3.0.10
145 -+ l = l.replace("_swig_python_version_info >= (2, 7, 0)","False")
146 -+ doneOk = True
147 -+ elif l.startswith("elif _swig_python_version_info >= (2, 6, 0):"): # needed with swig version >= 3.0.10
148 -+ l = l.replace("_swig_python_version_info >= (2, 6, 0)","False")
149 -+ doneOk = True
150 -+ if l.startswith("if version_info >= (2, 7, 0):"): # ok with swig version >= 3.0.9
151 -+ l = l.replace("version_info >= (2, 7, 0)","False")
152 -+ doneOk = True
153 -+ elif l.startswith("elif version_info >= (2, 6, 0):"): # needed with swig version >= 3.0.9
154 -+ l = l.replace("version_info >= (2, 6, 0)","False")
155 -+ doneOk = True
156 -+ elif l.startswith("if version_info >= (2,6,0):"): # ok with swig version <= 3.0.2
157 - l = l.replace("version_info >= (2,6,0)","False")
158 - doneOk = True
159 - elif l.startswith("if version_info >= (2, 6, 0):"): # needed with swig version 3.0.3
160 -@@ -60,6 +72,3 @@
161 -
162 -
163 - exit(0)
164 --
165 --
166 --