Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/openscad/, media-gfx/openscad/files/
Date: Tue, 04 May 2021 22:02:57
Message-Id: 1620165651.4c017ffe1777b31221ca4243c3cf4ed729ccc6ea.sam@gentoo
1 commit: 4c017ffe1777b31221ca4243c3cf4ed729ccc6ea
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Sun May 2 12:21:32 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 22:00:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c017ffe
7
8 media-gfx/openscad: drop 2019.05
9
10 Security cleanup (CVE-2020-28599)
11
12 Bug: https://bugs.gentoo.org/773217
13 Package-Manager: Portage-3.0.18, Repoman-3.0.3
14 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
15 Closes: https://github.com/gentoo/gentoo/pull/20657
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 media-gfx/openscad/Manifest | 1 -
19 ...ad-2019.05-0001-Fix-build-with-boost-1.73.patch | 28 -----
20 ...2-Gentoo-specific-Disable-ccache-building.patch | 35 -------
21 ...ad-2019.05-0003-change-C-standard-to-c-14.patch | 76 --------------
22 .../openscad-2019.05_fix-boost-1.72.0-build.patch | 27 -----
23 media-gfx/openscad/metadata.xml | 3 -
24 media-gfx/openscad/openscad-2019.05-r5.ebuild | 115 ---------------------
25 7 files changed, 285 deletions(-)
26
27 diff --git a/media-gfx/openscad/Manifest b/media-gfx/openscad/Manifest
28 index 31cd206a20c..ac0202896cd 100644
29 --- a/media-gfx/openscad/Manifest
30 +++ b/media-gfx/openscad/Manifest
31 @@ -1,2 +1 @@
32 -DIST openscad-2019.05.tar.gz 14604881 BLAKE2B ed7d6088606fab44284363da73643e556f07c0f0a7a223bdf718dcc36a82158bf23e315724ea520d63a3f1331207df0ea7b0ade817f01dd39b67ca6f36529d56 SHA512 073053f625ffa4fea6ed836396b7ff4b87b26cf7500b06c804983afc0f1dfd3d78bfb81b3fd217c3939b0ec915d85b0c7990773eaf968512a150deaa0399df13
33 DIST openscad-2021.01.tar.gz 15817555 BLAKE2B 417857d704fa3c14312641ebda983eb85a1e3bc0d517a235fa3bd2523fce6f93c1ea526c330179bc35f03e6c73d3cd7c4c57cd71480088c21bfc99bb020ab7cd SHA512 8deaa26bf4c295c12da38f323d2b2e6f827851337f5bc1cc9c79afc083c9f913c19a263086e6e853bf2c8434c1ccc705ea22ddb02dc99d39bb1e5e03fc58d128
34
35 diff --git a/media-gfx/openscad/files/openscad-2019.05-0001-Fix-build-with-boost-1.73.patch b/media-gfx/openscad/files/openscad-2019.05-0001-Fix-build-with-boost-1.73.patch
36 deleted file mode 100644
37 index 74f48b4c1ae..00000000000
38 --- a/media-gfx/openscad/files/openscad-2019.05-0001-Fix-build-with-boost-1.73.patch
39 +++ /dev/null
40 @@ -1,28 +0,0 @@
41 -From 47275a3d92969709e7605f23a408c5ed5aa483c9 Mon Sep 17 00:00:00 2001
42 -From: Bernd Waibel <waebbl@×××××.com>
43 -Date: Fri, 15 May 2020 19:09:10 +0200
44 -Subject: [PATCH] Fix build with boost-1.73
45 -
46 -Thanks to William T Wilson for reporting and providing the patch.
47 -
48 -Signed-off-by: Bernd Waibel <waebbl@×××××.com>
49 ----
50 - src/import.cc | 2 +-
51 - 1 file changed, 1 insertion(+), 1 deletion(-)
52 -
53 -diff --git a/src/import.cc b/src/import.cc
54 -index eef1323..08e46ff 100644
55 ---- a/src/import.cc
56 -+++ b/src/import.cc
57 -@@ -50,7 +50,7 @@ namespace fs = boost::filesystem;
58 - #include <boost/assign/std/vector.hpp>
59 - using namespace boost::assign; // bring 'operator+=()' into scope
60 -
61 --#include <boost/detail/endian.hpp>
62 -+#include <boost/endian/arithmetic.hpp>
63 - #include <cstdint>
64 -
65 - extern PolySet * import_amf(std::string, const Location &loc);
66 ---
67 -2.26.2
68 -
69
70 diff --git a/media-gfx/openscad/files/openscad-2019.05-0002-Gentoo-specific-Disable-ccache-building.patch b/media-gfx/openscad/files/openscad-2019.05-0002-Gentoo-specific-Disable-ccache-building.patch
71 deleted file mode 100644
72 index 1a4903828e8..00000000000
73 --- a/media-gfx/openscad/files/openscad-2019.05-0002-Gentoo-specific-Disable-ccache-building.patch
74 +++ /dev/null
75 @@ -1,35 +0,0 @@
76 -From 2940d8e5c74faa5dcd5279c8166064ade3da5695 Mon Sep 17 00:00:00 2001
77 -From: Bernd Waibel <waebbl@×××××.com>
78 -Date: Sun, 17 May 2020 21:13:44 +0200
79 -Subject: [PATCH] [Gentoo-specific] Disable ccache building
80 -
81 -On Gentoo we use a USE flag to determine whether to use
82 -ccache for building or not.
83 -
84 -Signed-off-by: Bernd Waibel <waebbl@×××××.com>
85 ----
86 - openscad.pro | 8 ++++----
87 - 1 file changed, 4 insertions(+), 4 deletions(-)
88 -
89 -diff --git a/openscad.pro b/openscad.pro
90 -index 2d190dd..9c4e67b 100755
91 ---- a/openscad.pro
92 -+++ b/openscad.pro
93 -@@ -214,10 +214,10 @@ mdi {
94 - DEFINES += ENABLE_MDI
95 - }
96 -
97 --system("ccache -V >/dev/null 2>/dev/null") {
98 -- CONFIG += ccache
99 -- message("Using ccache")
100 --}
101 -+#system("ccache -V >/dev/null 2>/dev/null") {
102 -+# CONFIG += ccache
103 -+# message("Using ccache")
104 -+#}
105 -
106 - include(common.pri)
107 -
108 ---
109 -2.26.2
110 -
111
112 diff --git a/media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch b/media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch
113 deleted file mode 100644
114 index 3863d5631b9..00000000000
115 --- a/media-gfx/openscad/files/openscad-2019.05-0003-change-C-standard-to-c-14.patch
116 +++ /dev/null
117 @@ -1,76 +0,0 @@
118 -From 02f9a4eca87d7713a8345b8513423d9d4a5127e0 Mon Sep 17 00:00:00 2001
119 -From: Bernd Waibel <waebbl@×××××.com>
120 -Date: Fri, 27 Nov 2020 18:49:09 +0100
121 -Subject: [PATCH] change C++ standard to c++14
122 -
123 -Signed-off-by: Bernd Waibel <waebbl@×××××.com>
124 ----
125 - c++11.pri => c++std.pri | 21 ++++++++-------------
126 - common.pri | 2 +-
127 - 2 files changed, 9 insertions(+), 14 deletions(-)
128 - rename c++11.pri => c++std.pri (74%)
129 -
130 -diff --git a/c++11.pri b/c++std.pri
131 -similarity index 74%
132 -rename from c++11.pri
133 -rename to c++std.pri
134 -index 0a2c3b6..aac656d 100644
135 ---- a/c++11.pri
136 -+++ b/c++std.pri
137 -@@ -4,16 +4,16 @@ macx {
138 - dirs = $${BOOSTDIR} $${QMAKE_LIBDIR}
139 - for(dir, dirs) {
140 - system(otool -L $${dir}/libboost_thread* | grep libc++ >& /dev/null ) {
141 -- message("Using libc++11")
142 -+ message("Using libc++")
143 - CONFIG += libc++
144 - }
145 - else {
146 - message("Using libstdc++")
147 - CONFIG += libstdc++
148 -- c++11 {
149 -- # libc++ is a requirement for using C++11
150 -- warning("Disabling C++11 since libstdc++ dependencies were found")
151 -- CONFIG -= c++11
152 -+ c++std {
153 -+ # libc++ is a requirement for using C++14
154 -+ warning("Disabling C++14 since libstdc++ dependencies were found")
155 -+ CONFIG -= c++std
156 - }
157 - }
158 - }
159 -@@ -25,9 +25,9 @@ macx {
160 - }
161 - }
162 -
163 --c++11 {
164 -- QMAKE_CXXFLAGS += -std=c++11
165 -- message("Using C++11")
166 -+c++std {
167 -+ QMAKE_CXXFLAGS += -std=c++14
168 -+ message("Using C++14")
169 -
170 - *clang*: {
171 - # 3rd party libraries will probably violate this for a long time
172 -@@ -41,8 +41,3 @@ c++11 {
173 - QMAKE_OBJECTIVE_CFLAGS_WARN_ON += $$CXX11_SUPPRESS_WARNINGS
174 - }
175 - }
176 --else {
177 -- *clang* {
178 -- QMAKE_CXXFLAGS_WARN_ON += -Wno-c++11-extensions
179 -- }
180 --}
181 -diff --git a/common.pri b/common.pri
182 -index 1110757..d1d5edc 100644
183 ---- a/common.pri
184 -+++ b/common.pri
185 -@@ -30,4 +30,4 @@ include(win.pri)
186 - include(flex.pri)
187 - include(bison.pri)
188 - include(opengl.pri)
189 --include(c++11.pri)
190 -+include(c++std.pri)
191 ---
192 -2.29.2
193 -
194
195 diff --git a/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch
196 deleted file mode 100644
197 index 28d3285a737..00000000000
198 --- a/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch
199 +++ /dev/null
200 @@ -1,27 +0,0 @@
201 -From b6c170cc5dd1bc677176ee732cdb0ddae57e5cf0 Mon Sep 17 00:00:00 2001
202 -From: Jan Beich <jbeich@×××××××.org>
203 -Date: Fri, 25 Oct 2019 15:10:26 +0000
204 -Subject: [PATCH] Add missing header bootlegged by Boost < 1.72
205 -
206 -src/parser.y:76:6: error: no template named 'stack' in namespace 'std'
207 -std::stack<LocalScope *> scope_stack;
208 -~~~~~^
209 ----
210 - src/parser.y | 1 +
211 - 1 file changed, 1 insertion(+)
212 -
213 -diff --git a/src/parser.y b/src/parser.y
214 -index 7f4fd56c..4c77c989 100644
215 ---- a/src/parser.y
216 -+++ b/src/parser.y
217 -@@ -46,6 +46,7 @@
218 - #include "printutils.h"
219 - #include "memory.h"
220 - #include <sstream>
221 -+#include <stack>
222 - #include <boost/filesystem.hpp>
223 - #include "boost-utils.h"
224 - #include "feature.h"
225 ---
226 -2.24.1
227 -
228
229 diff --git a/media-gfx/openscad/metadata.xml b/media-gfx/openscad/metadata.xml
230 index 56612a76fb9..9070d4a92fd 100644
231 --- a/media-gfx/openscad/metadata.xml
232 +++ b/media-gfx/openscad/metadata.xml
233 @@ -21,9 +21,6 @@
234 Mac OS X.
235 </longdescription>
236 <use>
237 - <flag name="ccache">
238 - Use <pkg>dev-util/ccache</pkg> to speed up rebuilds
239 - </flag>
240 <flag name="gamepad">
241 Add support for gamepads through <pkg>dev-qt/qtgamepad</pkg>
242 </flag>
243
244 diff --git a/media-gfx/openscad/openscad-2019.05-r5.ebuild b/media-gfx/openscad/openscad-2019.05-r5.ebuild
245 deleted file mode 100644
246 index 66fb9b68a87..00000000000
247 --- a/media-gfx/openscad/openscad-2019.05-r5.ebuild
248 +++ /dev/null
249 @@ -1,115 +0,0 @@
250 -# Copyright 1999-2021 Gentoo Authors
251 -# Distributed under the terms of the GNU General Public License v2
252 -
253 -EAPI=7
254 -
255 -inherit elisp-common qmake-utils xdg
256 -
257 -SITEFILE="50${PN}-gentoo.el"
258 -
259 -DESCRIPTION="The Programmers Solid 3D CAD Modeller"
260 -HOMEPAGE="https://www.openscad.org/"
261 -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.src.tar.gz -> ${P}.tar.gz"
262 -
263 -LICENSE="GPL-2"
264 -SLOT="0"
265 -KEYWORDS="amd64 ~arm64 x86"
266 -IUSE="ccache emacs"
267 -RESTRICT="test"
268 -
269 -PATCHES=(
270 - "${FILESDIR}/${P}_fix-boost-1.72.0-build.patch"
271 - "${FILESDIR}/${P}-0001-Fix-build-with-boost-1.73.patch"
272 - "${FILESDIR}/${P}-0003-change-C-standard-to-c-14.patch"
273 -)
274 -
275 -RDEPEND="
276 - dev-cpp/eigen:3
277 - dev-libs/boost:=
278 - dev-libs/double-conversion:=
279 - dev-libs/glib:2
280 - dev-libs/gmp:0=
281 - dev-libs/hidapi
282 - dev-libs/libspnav
283 - dev-libs/libzip:=
284 - dev-libs/mpfr:0=
285 - dev-qt/qtconcurrent:5
286 - dev-qt/qtcore:5
287 - dev-qt/qtdbus:5
288 - dev-qt/qtgui:5[-gles2-only]
289 - dev-qt/qtmultimedia:5
290 - dev-qt/qtnetwork:5
291 - dev-qt/qtopengl:5
292 - dev-qt/qtwidgets:5
293 - media-gfx/opencsg
294 - media-libs/fontconfig
295 - media-libs/freetype
296 - >=media-libs/glew-2.0.0:0=
297 - media-libs/harfbuzz:=
298 - <media-libs/lib3mf-2
299 - sci-mathematics/cgal:=
300 - >=x11-libs/qscintilla-2.10.3:=
301 - emacs? ( >=app-editors/emacs-23.1:* )
302 -"
303 -DEPEND="${RDEPEND}"
304 -BDEPEND="
305 - dev-util/itstool
306 - sys-devel/bison
307 - sys-devel/flex
308 - sys-devel/gettext
309 - virtual/pkgconfig
310 - ccache? ( dev-util/ccache )
311 -"
312 -
313 -src_prepare() {
314 - default
315 -
316 - # fix path prefix
317 - sed -i "s/\/usr\/local/\/usr/g" ${PN}.pro || die
318 -
319 - # change c++ standard
320 - sed -e 's/CONFIG += c++11/CONFIG += c++std/' -i openscad.pro || die
321 -
322 - # disable ccache
323 - if ! use ccache; then
324 - eapply "${FILESDIR}/${P}-0002-Gentoo-specific-Disable-ccache-building.patch"
325 - fi
326 -}
327 -
328 -src_configure() {
329 - eqmake5 "${PN}.pro"
330 -}
331 -
332 -src_compile() {
333 - default
334 -
335 - if use emacs ; then
336 - elisp-compile contrib/*.el
337 - fi
338 -}
339 -
340 -src_install() {
341 - emake install INSTALL_ROOT="${D}"
342 -
343 - if use emacs; then
344 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
345 - elisp-install ${PN} contrib/*.el contrib/*.elc
346 - fi
347 -
348 - mv -i "${ED}"/usr/share/openscad/locale "${ED}"/usr/share || die "failed to move locales"
349 - ln -sf ../locale "${ED}"/usr/share/openscad/locale || die
350 -
351 - einstalldocs
352 -}
353 -
354 -pkg_postinst() {
355 - use emacs && elisp-site-regen
356 - xdg_desktop_database_update
357 - xdg_mimeinfo_database_update
358 -}
359 -
360 -pkg_postrm() {
361 - use emacs && elisp-site-regen
362 - xdg_desktop_database_update
363 - xdg_mimeinfo_database_update
364 -}