Accepting request 435362 from KDE:Applications

Fix 42.2 build failure

OBS-URL: https://build.opensuse.org/request/show/435362
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kshisen?expand=0&rev=54
This commit is contained in:
Dominique Leuenberger 2016-10-19 11:13:31 +00:00 committed by Git OBS Bridge
commit 9f93f6d8fd
5 changed files with 43 additions and 4 deletions

25
cpp14.patch Normal file
View File

@ -0,0 +1,25 @@
Index: kshisen-16.08.2/src/board.cpp
===================================================================
--- kshisen-16.08.2.orig/src/board.cpp
+++ kshisen-16.08.2/src/board.cpp
@@ -1401,9 +1401,9 @@ void Board::madeMove(TilePos const & til
{
std::unique_ptr<Move> move;
if (slide.empty()) {
- move = std::make_unique<Move>(tilePos1, tilePos2, field(tilePos1), field(tilePos2));
+ move = std::unique_ptr<Move>(new Move(tilePos1, tilePos2, field(tilePos1), field(tilePos2)));
} else {
- move = std::make_unique<Move>(tilePos1, tilePos2, field(tilePos1), field(tilePos2), slide);
+ move = std::unique_ptr<Move>(new Move(tilePos1, tilePos2, field(tilePos1), field(tilePos2), slide));
}
m_undo.push_back(std::move(move));
if (!m_redo.empty()) {
@@ -1743,7 +1743,7 @@ bool Board::hint_I(PossibleMoves & possi
int Board::tilesLeft() const
{
- return std::count_if(m_field.begin(), m_field.end(), [](auto field) { return field != EMPTY; });
+ return std::count_if(m_field.begin(), m_field.end(), [](int field) { return field != EMPTY; });
}
int Board::currentTime() const

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:904a61ce5c312d1f79a7d95d869e0e99e0be8fca134d3e1c5b3d1744985f63c8
size 343536

3
kshisen-16.08.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:979d3609b16d99c440555d3c51116e4c366661226e0e305ef3fe8a9775750598
size 343580

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Oct 14 15:47:28 UTC 2016 - fabian@ritter-vogt.de
- Add cpp14.patch to use only c++ features supported by GCC 4.8
-------------------------------------------------------------------
Tue Oct 11 21:02:07 UTC 2016 - lbeltrame@kde.org
- KDE Applications 16.08.2
https://www.kde.org/announcements/announce-applications-16.08.2.php
-------------------------------------------------------------------
Fri Sep 9 08:33:21 UTC 2016 - tittiatcoke@gmail.com

View File

@ -34,9 +34,11 @@ Summary: Shisen-Sho Mahjongg-like game
License: GPL-2.0+
Group: Amusements/Games/Board/Other
Url: http://www.kde.org
Version: 16.08.1
Version: 16.08.2
Release: 0
Source0: kshisen-%{version}.tar.xz
# PATCH-FIX-OPENSUSE cpp14.patch fabian@ritter-vogt.de Use only c++11 features
Patch1: cpp14.patch
Obsoletes: %{name}5 < %{version}
Provides: %{name}5 = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -50,6 +52,7 @@ two tiles with of the same type until no tile is left.
%prep
%setup -q -n kshisen-%{version}
%patch1 -p1
%build
%cmake_kf5 -d build