Accepting request 839140 from graphics
- fix build with new C++ compilers, add boost_include.diff - Use memoryperjob constraint instead of %limit_build macro. OBS-URL: https://build.opensuse.org/request/show/839140 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openscad?expand=0&rev=6
This commit is contained in:
12
_constraints
12
_constraints
@@ -1,10 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<constraints>
|
<constraints>
|
||||||
<hardware>
|
<hardware>
|
||||||
<physicalmemory>
|
<physicalmemory>
|
||||||
<size unit="G">3</size>
|
<size unit="G">3</size>
|
||||||
</physicalmemory>
|
</physicalmemory>
|
||||||
<memory>
|
<memory>
|
||||||
<size unit="G">5</size>
|
<size unit="G">5</size>
|
||||||
</memory>
|
</memory>
|
||||||
|
<memoryperjob>
|
||||||
|
<size unit="M">2200</size>
|
||||||
|
</memoryperjob>
|
||||||
</hardware>
|
</hardware>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
22
boost_include.diff
Normal file
22
boost_include.diff
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
diff -ur openscad-2019.05/src/import.cc openscad-2019.05_fix/src/import.cc
|
||||||
|
--- openscad-2019.05/src/import.cc 2019-03-31 06:14:41.000000000 +0200
|
||||||
|
+++ openscad-2019.05_fix/src/import.cc 2020-10-02 12:34:14.840331047 +0200
|
||||||
|
@@ -50,7 +50,6 @@
|
||||||
|
#include <boost/assign/std/vector.hpp>
|
||||||
|
using namespace boost::assign; // bring 'operator+=()' into scope
|
||||||
|
|
||||||
|
-#include <boost/detail/endian.hpp>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
extern PolySet * import_amf(std::string, const Location &loc);
|
||||||
|
diff -ur openscad-2019.05/src/parser.y openscad-2019.05_fix/src/parser.y
|
||||||
|
--- openscad-2019.05/src/parser.y 2019-04-07 17:45:27.000000000 +0200
|
||||||
|
+++ openscad-2019.05_fix/src/parser.y 2020-10-02 11:58:27.114794108 +0200
|
||||||
|
@@ -35,6 +35,7 @@
|
||||||
|
#else
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
+#include <stack>
|
||||||
|
|
||||||
|
#include "FileModule.h"
|
||||||
|
#include "UserModule.h"
|
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 2 08:10:59 UTC 2020 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||||
|
|
||||||
|
- fix build with new C++ compilers, add boost_include.diff
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 20 09:03:01 UTC 2020 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Use memoryperjob constraint instead of %limit_build macro.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 22 07:56:55 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
Sun Mar 22 07:56:55 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package openscad
|
# spec file for package openscad
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -22,8 +22,10 @@ Release: 0
|
|||||||
Summary: Programmers Solid 3D CAD Modeller
|
Summary: Programmers Solid 3D CAD Modeller
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Graphics/CAD
|
Group: Productivity/Graphics/CAD
|
||||||
Url: https://www.openscad.org/
|
URL: https://www.openscad.org/
|
||||||
Source: https://files.openscad.org/%{name}-%{version}.src.tar.gz
|
Source: https://files.openscad.org/%{name}-%{version}.src.tar.gz
|
||||||
|
#PATCH-FIX-UPSTREAM remove and add an include line to fix build
|
||||||
|
Patch1: boost_include.diff
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: double-conversion-devel
|
BuildRequires: double-conversion-devel
|
||||||
BuildRequires: eigen3-devel
|
BuildRequires: eigen3-devel
|
||||||
@@ -39,7 +41,6 @@ BuildRequires: libboost_thread-devel
|
|||||||
BuildRequires: libcgal-devel
|
BuildRequires: libcgal-devel
|
||||||
BuildRequires: libqscintilla-qt5-devel
|
BuildRequires: libqscintilla-qt5-devel
|
||||||
BuildRequires: libspnav-devel
|
BuildRequires: libspnav-devel
|
||||||
BuildRequires: memory-constraints
|
|
||||||
BuildRequires: opencsg-devel
|
BuildRequires: opencsg-devel
|
||||||
BuildRequires: pkgconfig(Qt5Concurrent)
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
||||||
BuildRequires: pkgconfig(Qt5Core)
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
@@ -59,10 +60,10 @@ aspects, e.g. modelling of machine parts.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
qmake-qt5 PREFIX=%{_prefix} QMAKE_CXXFLAGS="%{optflags}" CONFIG+=qopenglwidget
|
qmake-qt5 PREFIX=%{_prefix} QMAKE_CXXFLAGS="%{optflags}" CONFIG+=qopenglwidget CONFIG+=c++14
|
||||||
%limit_build -m 2200
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Reference in New Issue
Block a user