Accepting request 815500 from home:polslinux:branches:network:cryptocurrencies

- Add fix-qpainterpath.patch
- Add -fcommon to allow building against GCC10

OBS-URL: https://build.opensuse.org/request/show/815500
OBS-URL: https://build.opensuse.org/package/show/network:cryptocurrencies/bitcoin?expand=0&rev=32
This commit is contained in:
Martin Pluskal 2020-06-17 12:15:12 +00:00 committed by Git OBS Bridge
parent 12e242326d
commit e0ffd9de84
3 changed files with 20 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 17 11:57:34 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
- Add fix-qpainterpath.patch
- Add -fcommon to allow building against GCC10
-------------------------------------------------------------------
Fri Jun 12 05:39:25 UTC 2020 - Martin Pluskal <mpluskal@suse.com>

View File

@ -34,6 +34,7 @@ Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%
Source1: %{base}d.service
Source3: %{base}d.conf
Source4: %{base}.conf
Patch0: fix-qpainterpath.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
@ -170,11 +171,12 @@ This package provides automated tests for %{name}-qt5 and %{name}d.
%prep
%setup -q
%patch0 -p1
%build
autoreconf -fiv
export CXXFLAGS="%{optflags} -fPIE -fPIC"
export CFLAGS="%{optflags} -fPIE -fPIC"
export CXXFLAGS="%{optflags} -fPIE -fPIC -fcommon"
export CFLAGS="%{optflags} -fPIE -fPIC -fcommon"
export LDFLAGS="-pie"
# Autodetecting if assembly optimizazions for secp256k1 can be used does not

10
fix-qpainterpath.patch Normal file
View File

@ -0,0 +1,10 @@
--- bitcoin-0.20.0/src/qt/trafficgraphwidget.cpp.orig 2020-06-17 13:42:31.658215250 +0200
+++ bitcoin-0.20.0/src/qt/trafficgraphwidget.cpp 2020-06-17 13:42:39.286235611 +0200
@@ -7,6 +7,7 @@
#include <qt/clientmodel.h>
#include <QPainter>
+#include <QPainterPath>
#include <QColor>
#include <QTimer>