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-libs/coinor-os/files/, sci-libs/coinor-os/
Date: Thu, 29 Sep 2016 17:09:32
Message-Id: 1475168949.61ea105c86d379360ce4ddc1d975ab6caaa3d8a9.soap@gentoo
1 commit: 61ea105c86d379360ce4ddc1d975ab6caaa3d8a9
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 17:04:12 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 17:09:09 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61ea105c
7
8 sci-libs/coinor-os: Allow for compiling with GCC 6
9
10 Gentoo-bug: 594180
11 * EAPI=6
12 * Delete .la files unconditionally
13
14 Package-Manager: portage-2.3.1
15
16 sci-libs/coinor-os/Manifest | 1 +
17 sci-libs/coinor-os/coinor-os-2.10.1.ebuild | 62 +++++++++++++
18 .../files/coinor-os-2.10.1-fix-c++14.patch | 100 +++++++++++++++++++++
19 3 files changed, 163 insertions(+)
20
21 diff --git a/sci-libs/coinor-os/Manifest b/sci-libs/coinor-os/Manifest
22 index d5a01cd..f6678ca 100644
23 --- a/sci-libs/coinor-os/Manifest
24 +++ b/sci-libs/coinor-os/Manifest
25 @@ -1 +1,2 @@
26 +DIST OS-2.10.1.tgz 37106742 SHA256 3db70a66f4b764e3ec7d43a58982098d80d5d7470825ff9dc029da1806c59b05 SHA512 bfc0af075e0db2160db694ec1e6f69c36cd52b29449fcbd689c809db01a9cf5f6a8a59edb7fb7269db5757faa14da5cd9fef34dffc73de7b2953b35fc2b710f0 WHIRLPOOL bd8f0ad49097ed7816ea24aa86db2d28df29734dbf7a8bacc9d4254f3ea52520a4010079d554f4bc500a9dcba468b470e0fe19c27b20c844e5bf7fde7774f89d
27 DIST OS-2.8.3.tgz 36046350 SHA256 45dbedbaf0db850a62d50351e1b855c529edcb627ed4ddea0011afbfc72e4da3 SHA512 33812e4ae12862bb44d0cb7e2210d418ce8fe705988364ee0622fc5aef04491e6675447bcac379a16add15ec4d123d853a5940ce1244a5767f1587c09b435078 WHIRLPOOL 8e802db5d0faf17e11cc11e5768c581b5b686fdea0db9668c6631a3a90aa9d71eb9f684bcfbba8dbdcc66d88ebf9367b8ce86e6c139cd640faf6d90673ab8d6e
28
29 diff --git a/sci-libs/coinor-os/coinor-os-2.10.1.ebuild b/sci-libs/coinor-os/coinor-os-2.10.1.ebuild
30 new file mode 100644
31 index 00000000..40efe07
32 --- /dev/null
33 +++ b/sci-libs/coinor-os/coinor-os-2.10.1.ebuild
34 @@ -0,0 +1,62 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=6
40 +
41 +inherit flag-o-matic
42 +
43 +MY_PN=OS
44 +
45 +DESCRIPTION="COIN-OR Optimization Services"
46 +HOMEPAGE="https://projects.coin-or.org/OS/"
47 +SRC_URI="http://www.coin-or.org/download/source/${MY_PN}/${MY_PN}-${PV}.tgz"
48 +
49 +LICENSE="EPL-1.0"
50 +SLOT="0/6"
51 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
52 +IUSE="doc examples static-libs test"
53 +
54 +RDEPEND="
55 + sci-libs/coinor-bcp:=
56 + sci-libs/coinor-bonmin:=
57 + sci-libs/coinor-couenne:=
58 + sci-libs/coinor-clp:=
59 + sci-libs/coinor-dylp:=
60 + sci-libs/coinor-symphony:=
61 + sci-libs/coinor-utils:=
62 + sci-libs/coinor-vol:=
63 + sci-libs/ipopt:="
64 +DEPEND="${RDEPEND}
65 + virtual/pkgconfig
66 + doc? ( app-doc/doxygen[dot] )
67 + test? ( sci-libs/coinor-sample )"
68 +
69 +S="${WORKDIR}/${MY_PN}-${PV}/${MY_PN}"
70 +
71 +PATCHES=( "${FILESDIR}/${PN}-2.10.1-fix-c++14.patch" )
72 +
73 +src_prepare() {
74 + default
75 +
76 + # needed for the --with-coin-instdir
77 + dodir /usr
78 +}
79 +
80 +src_configure() {
81 + append-cppflags -DNDEBUG
82 +
83 + econf \
84 + --enable-shared \
85 + $(use_enable static-libs static) \
86 + --enable-dependency-linking \
87 + --with-coin-instdir="${ED%/}"/usr
88 +}
89 +
90 +src_install() {
91 + default
92 + use doc && dodoc doc/*.pdf
93 +
94 + # package provides .pc files
95 + find "${D}" -name '*.la' -delete || die
96 +}
97
98 diff --git a/sci-libs/coinor-os/files/coinor-os-2.10.1-fix-c++14.patch b/sci-libs/coinor-os/files/coinor-os-2.10.1-fix-c++14.patch
99 new file mode 100644
100 index 00000000..a788646
101 --- /dev/null
102 +++ b/sci-libs/coinor-os/files/coinor-os-2.10.1-fix-c++14.patch
103 @@ -0,0 +1,100 @@
104 +Fix building with C++14, which errors out due to bool -> T* conversions
105 +and changed semantics caught by -Werror=terminate.
106 +
107 +See also: https://bugs.gentoo.org/show_bug.cgi?id=594180
108 +Patch partially taken from: https://projects.coin-or.org/OS/changeset/5137/
109 +
110 +--- a/src/OSCommonInterfaces/OSInstance.cpp
111 ++++ b/src/OSCommonInterfaces/OSInstance.cpp
112 +@@ -165,6 +165,9 @@
113 + }
114 +
115 + OSInstance::~OSInstance()
116 ++#if __cplusplus >= 201103L
117 ++ noexcept(false)
118 ++#endif
119 + {
120 + std::ostringstream outStr;
121 +
122 +--- a/src/OSCommonInterfaces/OSInstance.h
123 ++++ b/src/OSCommonInterfaces/OSInstance.h
124 +@@ -2267,7 +2267,11 @@
125 + OSInstance();
126 +
127 + /** The OSInstance class destructor */
128 +- ~OSInstance();
129 ++ ~OSInstance()
130 ++#if __cplusplus >= 201103L
131 ++ noexcept(false)
132 ++#endif
133 ++ ;
134 +
135 + /** the instanceHeader is implemented as a general file header object
136 + * to allow sharing of classes between schemas
137 +--- a/src/OSCommonInterfaces/OSMatrix.cpp
138 ++++ b/src/OSCommonInterfaces/OSMatrix.cpp
139 +@@ -2297,7 +2297,7 @@
140 +
141 + if (!processBlocks(rowPartition, rowPartitionSize,
142 + colPartition, colPartitionSize, false, symmetry))
143 +- return false;
144 ++ return NULL;
145 + return ExpandedMatrixByBlocks.back();
146 + }// end of MatrixType::getBlocks
147 +
148 +--- a/src/OSParsers/OSParseosil.tab.cpp
149 ++++ b/src/OSParsers/OSParseosil.tab.cpp
150 +@@ -180,7 +180,7 @@
151 +
152 + #define GETATTRIBUTETEXT \
153 + for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \
154 +- if( *ch != '=') { osilerror_wrapper( ch, osillineno, "found an attribute not defined"); return false;} \
155 ++ if( *ch != '=') { osilerror_wrapper( ch, osillineno, "found an attribute not defined"); return NULL;} \
156 + ch++; \
157 + for(; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ; \
158 + if(*ch == '\"'){ \
159 +@@ -196,7 +196,7 @@
160 + *p = ch; \
161 + for( ; *ch != '\''; ch++); \
162 + } \
163 +- else { osilerror_wrapper( ch, osillineno,"missing quote on attribute"); return false;} \
164 ++ else { osilerror_wrapper( ch, osillineno,"missing quote on attribute"); return NULL;} \
165 + }\
166 + numChar = ch - *p; \
167 + attText = new char[numChar + 1]; \
168 +@@ -11070,7 +11070,7 @@
169 + // eat the white space
170 + for( ; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ;
171 + for(i = 0; sizeOf[i] == *ch; i++, ch++);
172 +- if(i != 6) { osilerror_wrapper( ch,osillineno,"incorrect sizeOf attribute in <base64BinaryData> element"); return false;}
173 ++ if(i != 6) { osilerror_wrapper( ch,osillineno,"incorrect sizeOf attribute in <base64BinaryData> element"); return NULL;}
174 + // ch should be pointing to the first character after sizeOf
175 + GETATTRIBUTETEXT;
176 + ch++;
177 +@@ -11080,7 +11080,7 @@
178 + // eat the white space
179 + for( ; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ;
180 + // better have an > sign or not valid
181 +- if(*ch != '>' ) { osilerror_wrapper( ch,osillineno,"<base64BinaryData> element does not have a proper closing >"); return false;}
182 ++ if(*ch != '>' ) { osilerror_wrapper( ch,osillineno,"<base64BinaryData> element does not have a proper closing >"); return NULL;}
183 + ch++;
184 + // we are now pointing start of the data
185 + const char *b64textstart = ch;
186 +@@ -11089,7 +11089,7 @@
187 + const char *b64textend = ch;
188 + // we should be pointing to </base64BinaryData>
189 + for(i = 0; endBase64BinaryData[i] == *ch; i++, ch++);
190 +- if(i != 18) { osilerror_wrapper( ch,osillineno," problem with <base64BinaryData> element"); return false;}
191 ++ if(i != 18) { osilerror_wrapper( ch,osillineno," problem with <base64BinaryData> element"); return NULL;}
192 + int b64len = b64textend - b64textstart;
193 + b64string = new char[ b64len + 1];
194 + for(ki = 0; ki < b64len; ki++) b64string[ki] = b64textstart[ ki];
195 +@@ -11097,7 +11097,7 @@
196 + // burn the white space
197 + for( ; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ;
198 + // better have an > sign or not valid
199 +- if(*ch != '>' ) { osilerror_wrapper( ch,osillineno,"</base64BinaryData> element does not have a proper closing >"); return false;}
200 ++ if(*ch != '>' ) { osilerror_wrapper( ch,osillineno,"</base64BinaryData> element does not have a proper closing >"); return NULL;}
201 + ch++;
202 + for( ; ISWHITESPACE( *ch) || isnewline( *ch, osillineno); ch++ ) ;
203 + *p = ch;