Merge pull request #7110 from Rmys/master

grantlee-qt5:rebuild
This commit is contained in:
Rmys
2019-09-28 07:30:10 +03:00
committed by GitHub
3 changed files with 62 additions and 0 deletions
@@ -0,0 +1,24 @@
From 3a5fc7662da3261be6496611900c095844e56ab1 Mon Sep 17 00:00:00 2001
From: Albert Astals Cid <aacid@kde.org>
Date: Sat, 20 Jul 2019 17:35:30 +0200
Subject: [PATCH] Fix compile with newer Qt/cmake combination
Without this i get huge errors about Qt needing C++11 support
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d51110..0859788 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,9 @@ endif()
project(Grantlee)
+set (CMAKE_CXX_STANDARD 11)
+set (CMAKE_CXX_EXTENSIONS OFF)
+
# Workaround for http://public.kitware.com/Bug/view.php?id=12301
if (MINGW)
if(NOT CMAKE_BUILD_TYPE)
@@ -0,0 +1,27 @@
From 0cee029ee03ab4906c6d19b57458b5036852b0f8 Mon Sep 17 00:00:00 2001
From: Michael Pyne <mpyne@kde.org>
Date: Tue, 18 Dec 2018 17:47:21 -0500
Subject: [PATCH] Fix build with Qt 5.13 / GCC 8.2.
At this point Grantlee doesn't build for me because QList is an
incomplete type. I think the compiler is right to complain, so I fix by
including the appropriate header.
Fixes issue #47.
---
templates/lib/lexer_p.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/lib/lexer_p.h b/templates/lib/lexer_p.h
index 275aeea..1ae451a 100644
--- a/templates/lib/lexer_p.h
+++ b/templates/lib/lexer_p.h
@@ -24,7 +24,7 @@
#include "textprocessingmachine_p.h"
#include "token.h"
-template <typename T> class QList;
+#include <QList>
namespace Grantlee
{
+11
View File
@@ -20,6 +20,10 @@
<!-- <Dependency versionFrom="5.7.1">qt5-linguist</Dependency> -->
<Dependency>cmake</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">grantlee-c++11.patch</Patch>
<Patch level="1">grantlee-qt-5.13.patch</Patch>
</Patches>
</Source>
<Package>
@@ -50,6 +54,13 @@
</Package>
<History>
<Update release="7">
<Date>2019-09-28</Date>
<Version>5.1.0</Version>
<Comment>Rebuild.</Comment>
<Name>Kamil Atlı</Name>
<Email>suvari@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2018-12-25</Date>
<Version>5.1.0</Version>