Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kde5.git;a=commitdiff;h=0efd4dff0b938faa542f93defb0981014e7f87bc

commit 0efd4dff0b938faa542f93defb0981014e7f87bc
Author: crazy <[email protected]>
Date:   Thu Mar 31 17:16:03 2016 +0200

quassel-0.12.3-1-x86_64
* version bump
* use KF5
* kill not used patches
* added an patch to detect SSL ( see comment in FB )

diff --git a/source/kde-extra/quassel/FrugalBuild 
b/source/kde-extra/quassel/FrugalBuild
deleted file mode 100644
index d9a8087..0000000
--- a/source/kde-extra/quassel/FrugalBuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# Compiling Time: 1.0 SBU
-# Maintainer: Marius Cirsta <[email protected]>
-
-pkgname=quassel
-pkgver=0.12.2
-pkgrel=1
-pkgdesc="A modern, cross-platform, distributed IRC client."
-url="http://quassel-irc.org";
-depends=('qt5-base' 'qt5-script' 'qt5-webkit' 'libdbusmenu-qt5' 'qca-qt5')
-makedepends=('qt5-tools')
-groups=('kde-extra')
-archs=('i686' 'x86_64')
-up2date="Flasttar $url/downloads"
-source=(http://quassel-irc.org/pub/$pkgname-$pkgver.tar.bz2
-       qt55.patch fixFindSSL.patch)
-_F_gnome_iconcache=y
-Finclude cmake gnome-scriptlet
-sha1sums=('12e9a88597f724498c40a1548b5f788e7c40858c' \
-          '57e814b7fb5c6c220f9372621a58ef8e3886db1a' \
-          '2fb960dc3cafd0a90e52f10c67704ff9b312db71')
-replaces=('conspire')
-
-
-build() {
-       CMake_build -DWITH_KDE=0 -DUSE_QT5=1
-       Fbuild_gnome_scriptlet
-}
-
-# optimization OK
diff --git a/source/kde-extra/quassel/fixFindSSL.patch 
b/source/kde-extra/quassel/fixFindSSL.patch
deleted file mode 100644
index b36a78a..0000000
--- a/source/kde-extra/quassel/fixFindSSL.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From d6ee316170f0362e8052d39118671fb36f3c8abf Mon Sep 17 00:00:00 2001
-From: Weng Xuetian <[email protected]>
-Date: Wed, 11 Nov 2015 16:13:33 -0800
-Subject: [PATCH] Fix SSL detection
-
-CMAKE_POSITION_INDEPENDENT_CODE will always append fPIE flag as last compiler 
flag when calling try_compile which makes check_cxx_source_compiles fails. Move 
the SSL check before set CMAKE_POSITION_INDEPENDENT_CODE and append 
Qt5Core_EXECUTABLE_COMPILE_FLAGS to CMAKE_CXX_FLAGS solve the problem.
----
- CMakeLists.txt | 28 ++++++++++++++--------------
- 1 file changed, 14 insertions(+), 14 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index a35fa8f..c2ef8b2 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -413,6 +413,20 @@ if (NOT WIN32)
-     )
- endif()
-
-+# Check for SSL support in Qt
-+# As there's no easy way to get Qt's configuration in particular for Qt5, 
let's just compile
-+# a small test program checking the defines. This works for both Qt4 and Qt5.
-+cmake_push_check_state(RESET)
-+set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
-+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
-+check_cxx_source_compiles("
-+    #include \"qglobal.h\"
-+    #if defined QT_NO_OPENSSL || defined QT_NO_SSL
-+    #  error \"No SSL support\"
-+    #endif
-+    int main() {}"
-+    HAVE_SSL)
-+cmake_pop_check_state()
-
- # Additional compile settings
- #####################################################################
-@@ -476,20 +490,6 @@ if (NOT ZLIB_FOUND)
-     endif()
- endif()
-
--# Check for SSL support in Qt
--# As there's no easy way to get Qt's configuration in particular for Qt5, 
let's just compile
--# a small test program checking the defines. This works for both Qt4 and Qt5.
--cmake_push_check_state(RESET)
--set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
--check_cxx_source_compiles("
--    #include \"qglobal.h\"
--    #if defined QT_NO_OPENSSL || defined QT_NO_SSL
--    #  error \"No SSL support\"
--    #endif
--    int main() {}"
--    HAVE_SSL)
--cmake_pop_check_state()
--
- if (HAVE_SSL)
-     add_definitions(-DHAVE_SSL)
- endif()
diff --git a/source/kde-extra/quassel/qt55.patch 
b/source/kde-extra/quassel/qt55.patch
deleted file mode 100644
index a6fd846..0000000
--- a/source/kde-extra/quassel/qt55.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-From 078477395aaec1edee90922037ebc8a36b072d90 Mon Sep 17 00:00:00 2001
-From: Armin K <[email protected]>
-Date: Sat, 2 May 2015 23:04:53 +0200
-Subject: [PATCH] Fix build with Qt-5.5
-
-http://code.qt.io/cgit/qt/qtbase.git/commit/?id=ebef2ad1360c80ad62de5f4a1c4e7e4051725c1c
----
- src/client/treemodel.cpp | 5 ++---
- src/common/peer.h        | 1 +
- 2 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/src/client/treemodel.cpp b/src/client/treemodel.cpp
-index f599803..fd47bc0 100644
---- a/src/client/treemodel.cpp
-+++ b/src/client/treemodel.cpp
-@@ -556,10 +556,9 @@ void TreeModel::endAppendChilds()
-     ChildStatus cs = _childStatus;
- #ifndef QT_NO_DEBUG
-     QModelIndex parent = indexByItem(parentItem);
--#endif
-     Q_ASSERT(cs.parent == parent);
-     Q_ASSERT(rowCount(parent) == cs.childCount + cs.end - cs.start + 1);
--
-+#endif
-     _aboutToRemoveOrInsert = false;
-     for (int i = cs.start; i <= cs.end; i++) {
-         connectItem(parentItem->child(i));
-@@ -605,9 +604,9 @@ void TreeModel::endRemoveChilds()
- #ifndef QT_NO_DEBUG
-     ChildStatus cs = _childStatus;
-     QModelIndex parent = indexByItem(parentItem);
--#endif
-     Q_ASSERT(cs.parent == parent);
-     Q_ASSERT(rowCount(parent) == cs.childCount - cs.end + cs.start - 1);
-+#endif
-     _aboutToRemoveOrInsert = false;
-
-     endRemoveRows();
-diff --git a/src/common/peer.h b/src/common/peer.h
-index 02eb3c0..79204b4 100644
---- a/src/common/peer.h
-+++ b/src/common/peer.h
-@@ -22,6 +22,7 @@
- #define PEER_H
-
- #include <QAbstractSocket>
-+#include <QDataStream>
- #include <QPointer>
-
- #include "authhandler.h"
diff --git a/source/kde5/quassel/FrugalBuild b/source/kde5/quassel/FrugalBuild
new file mode 100644
index 0000000..ad64ef5
--- /dev/null
+++ b/source/kde5/quassel/FrugalBuild
@@ -0,0 +1,27 @@
+# Compiling Time: 1.0 SBU
+# Maintainer: Marius Cirsta <[email protected]>
+
+pkgname=quassel
+pkgver=0.12.3
+pkgrel=1
+pkgdesc="A modern, cross-platform, distributed IRC client."
+url="http://quassel-irc.org";
+Finclude kf5
+depends=("qt5-webkit>=$_F_kdever_qt5" "knotifyconfig>=$_F_kf5_full" 
'snorenotify' "qt5-svg>=$_F_kdever_qt5" 'qca-qt5')
+makedepends+=('qt5-tools' 'git')
+groups=('kde5')
+archs=('i686' 'x86_64')
+up2date="Flasttar $url/downloads"
+source=(http://quassel-irc.org/pub/$pkgname-$pkgver.tar.bz2 
fix-ssl-detection.patch)
+sha1sums=('8e84e0fd56f17fb5047277bb9107949e610872bd' \
+          'f62666689c18e357a2a49e18e6bb30fc11984fa4')
+replaces=('conspire')
+
+## SEE fix-ssl-detection.patch -- don't remove but re-diff on bumps
+## #error "You must build your code with position independent code if Qt was 
built with
+## -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
+
+_F_cmake_confopts+=" -DWITH_KDE=1 -DUSE_QT5=1"
+
+
+# optimization OK
diff --git a/source/kde5/quassel/fix-ssl-detection.patch 
b/source/kde5/quassel/fix-ssl-detection.patch
new file mode 100644
index 0000000..71f5e98
--- /dev/null
+++ b/source/kde5/quassel/fix-ssl-detection.patch
@@ -0,0 +1,16 @@
+diff -Naur quassel-0.12.3/CMakeLists.txt quassel-0.12.3-fix-ssl/CMakeLists.txt
+--- quassel-0.12.3/CMakeLists.txt      2016-02-09 22:02:34.000000000 +0100
++++ quassel-0.12.3-fix-ssl/CMakeLists.txt      2016-03-31 15:00:14.411850198 
+0200
+@@ -427,10 +427,10 @@
+ # a small test program checking the defines. This works for both Qt4 and Qt5.
+ cmake_push_check_state(RESET)
+ set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
+-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DQT_NO_VERSION_TAGGING=1 
${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
+ check_cxx_source_compiles("
+     #include \"qglobal.h\"
+-    #if defined QT_NO_SSL
++    #if defined QT_NO_OPENSSL || defined QT_NO_SSL
+     #  error \"No SSL support\"
+     #endif
+     int main() {}"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to