Compare commits
5 Commits
master
...
private-kd
Author | SHA1 | Date | |
---|---|---|---|
|
b75f914150 | ||
|
17543dd98f | ||
|
6614cdaf38 | ||
|
46f56644cc | ||
|
a3ab531671 |
5
.cvsignore
Normal file
5
.cvsignore
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
kdelibs-3.3.0.tar.bz2
|
||||||
|
kdelibs-3.3.1.tar.bz2
|
||||||
|
kdelibs-3.3.2.tar.bz2
|
||||||
|
kdelibs-3.3.92.tar.bz2
|
||||||
|
kdelibs-3.4.0-rc1.tar.bz2
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
/kdelibs-4.14.38.tar.xz
|
|
@ -1,27 +0,0 @@
|
|||||||
From 02966e348e37ebf6269aaed238e7ce67fbe958e7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
|
||||||
Date: Sun, 25 May 2014 00:36:08 +0200
|
|
||||||
Subject: [PATCH 1/1] Drop Nepomuk from KParts' LINK_INTERFACE_LIBRARIES
|
|
||||||
|
|
||||||
Nepomuk is only used in a private header, browserrun_p.h,
|
|
||||||
thus it is not needed as KParts public dependancy
|
|
||||||
Makes it possible to drop libsoprano-devel from libkde4-devel Requires
|
|
||||||
---
|
|
||||||
kparts/CMakeLists.txt | 1 -
|
|
||||||
1 file changed, 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/kparts/CMakeLists.txt b/kparts/CMakeLists.txt
|
|
||||||
index 2eab2e8..e17ef5e 100644
|
|
||||||
--- a/kparts/CMakeLists.txt
|
|
||||||
+++ b/kparts/CMakeLists.txt
|
|
||||||
@@ -39,7 +39,6 @@ target_link_libraries(kparts ${KDE4_KDECORE_LIBS} kdeui kio)
|
|
||||||
target_link_libraries(kparts LINK_PUBLIC kio kdeui kdecore ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} )
|
|
||||||
if(HAVE_NEPOMUK)
|
|
||||||
target_link_libraries(kparts LINK_PRIVATE nepomuk nepomukutils)
|
|
||||||
- target_link_libraries(kparts LINK_PUBLIC nepomuk nepomukutils )
|
|
||||||
endif(HAVE_NEPOMUK)
|
|
||||||
|
|
||||||
set_target_properties(kparts PROPERTIES VERSION ${GENERIC_LIB_VERSION}
|
|
||||||
--
|
|
||||||
1.9.3
|
|
||||||
|
|
17
Makefile
17
Makefile
@ -3,19 +3,4 @@
|
|||||||
NAME := kdelibs
|
NAME := kdelibs
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
SPECFILE = $(firstword $(wildcard *.spec))
|
||||||
|
|
||||||
define find-makefile-common
|
include ../common/Makefile.common
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attempt a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
|
|
||||||
if [ -z "${SOLID_HAL_LEGACY}" ] ; then
|
|
||||||
SOLID_HAL_LEGACY=1
|
|
||||||
export SOLID_HAL_LEGACY
|
|
||||||
fi
|
|
||||||
|
|
5
kde.csh
Executable file
5
kde.csh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
# Make sure KDEDIR is set
|
||||||
|
if ( $?KDEDIR ) then
|
||||||
|
exit
|
||||||
|
endif
|
||||||
|
setenv KDEDIR /usr
|
3
kde.sh
Executable file
3
kde.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
# Make sure KDEDIR is set
|
||||||
|
[ -z "$KDEDIR" ] && KDEDIR="/usr"
|
||||||
|
export KDEDIR
|
11
kdelibs-3.0.0-ndebug.patch
Normal file
11
kdelibs-3.0.0-ndebug.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs/kdecore/kdebug.cpp.ndebug Mon Mar 11 16:44:31 2002
|
||||||
|
+++ kdelibs/kdecore/kdebug.cpp Mon Mar 11 16:45:19 2002
|
||||||
|
@@ -224,7 +224,7 @@
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
- short nOutput = kDebug_data->config ? kDebug_data->config->readNumEntry(key, 2) : 2;
|
||||||
|
+ short nOutput = kDebug_data->config ? kDebug_data->config->readNumEntry(key, 4) : 4;
|
||||||
|
|
||||||
|
// If the application doesn't have a QApplication object it can't use
|
||||||
|
// a messagebox.
|
29
kdelibs-3.0.4-ksyscoca.patch
Normal file
29
kdelibs-3.0.4-ksyscoca.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- kdelibs-3.0.4/kdecore/ksycoca.cpp.ksyscoca 2002-09-09 20:25:56.000000000 -0400
|
||||||
|
+++ kdelibs-3.0.4/kdecore/ksycoca.cpp 2002-10-10 12:16:39.000000000 -0400
|
||||||
|
@@ -149,9 +149,15 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
static void delete_ksycoca_self() {
|
||||||
|
- delete KSycoca::_self;
|
||||||
|
+ if (KSycoca::_checkSelf())
|
||||||
|
+ delete KSycoca::_self;
|
||||||
|
+
|
||||||
|
}
|
||||||
|
|
||||||
|
+bool KSycoca::_checkSelf() {
|
||||||
|
+ return (_self ? true : false);
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
KSycoca * KSycoca::self()
|
||||||
|
{
|
||||||
|
if (!_self) {
|
||||||
|
--- kdelibs-3.0.4/kdecore/ksycoca.h.ksyscoca 2002-09-09 20:25:56.000000000 -0400
|
||||||
|
+++ kdelibs-3.0.4/kdecore/ksycoca.h 2002-10-10 11:54:28.000000000 -0400
|
||||||
|
@@ -63,6 +63,7 @@
|
||||||
|
* Get or create the only instance of KSycoca (read-only)
|
||||||
|
*/
|
||||||
|
static KSycoca *self();
|
||||||
|
+ static bool _checkSelf();
|
||||||
|
|
||||||
|
virtual ~KSycoca();
|
||||||
|
|
17
kdelibs-3.1-libtool.patch
Normal file
17
kdelibs-3.1-libtool.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- kdelibs-3.1/admin/ltmain.sh.orig 2003-02-20 17:52:07.000000000 -0500
|
||||||
|
+++ kdelibs-3.1/admin/ltmain.sh 2003-02-20 18:30:32.000000000 -0500
|
||||||
|
@@ -4459,6 +4459,14 @@
|
||||||
|
case $host,$output,$installed,$module,$dlname in
|
||||||
|
*cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
|
||||||
|
esac
|
||||||
|
+ newdeplib=""
|
||||||
|
+ for j in $dependency_libs ; do
|
||||||
|
+ if echo $j | grep "gcc-lib" >& /dev/null ; then
|
||||||
|
+ continue
|
||||||
|
+ fi
|
||||||
|
+ newdeplib="$newdeplib $j"
|
||||||
|
+ done
|
||||||
|
+ dependency_libs="$newdeplib"
|
||||||
|
$echo > $output "\
|
||||||
|
# $outputname - a libtool library file
|
||||||
|
# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
|
11
kdelibs-3.1-ssl-krb5.patch
Normal file
11
kdelibs-3.1-ssl-krb5.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs-3.1/admin/acinclude.m4.in.ORIG 2003-01-10 09:32:45.000000000 -0500
|
||||||
|
+++ kdelibs-3.1/admin/acinclude.m4.in 2003-01-10 09:33:00.000000000 -0500
|
||||||
|
@@ -5090,7 +5090,7 @@
|
||||||
|
ssl_incdirs="/usr/include /usr/local/include /usr/ssl/include /usr/local/ssl/include $prefix/include $kde_extra_includes"
|
||||||
|
ssl_incdirs="$ac_ssl_includes $ssl_incdirs"
|
||||||
|
AC_FIND_FILE(openssl/ssl.h, $ssl_incdirs, ssl_incdir)
|
||||||
|
- ac_ssl_includes="$ssl_incdir"
|
||||||
|
+ ac_ssl_includes="$ssl_incdir -I/usr/kerberos/include"
|
||||||
|
|
||||||
|
ssl_libdirs="/usr/lib /usr/local/lib /usr/ssl/lib /usr/local/ssl/lib $prefix/lib $exec_prefix/lib $kde_extra_libs"
|
||||||
|
if test ! "$ac_ssl_libraries" = "NO"; then
|
7
kdelibs-3.2.3-cups.patch
Normal file
7
kdelibs-3.2.3-cups.patch
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
--- kdelibs-3.2.3/kdeprint/kdeprintrc.orig 2004-07-19 12:45:04.575573066 +0200
|
||||||
|
+++ kdelibs-3.2.3/kdeprint/kdeprintrc 2004-07-19 12:45:27.141880905 +0200
|
||||||
|
@@ -3,3 +3,4 @@
|
||||||
|
ViewType=1
|
||||||
|
ViewToolBar=true
|
||||||
|
ViewPrinterInfos=true
|
||||||
|
+PrintSystem=cups
|
10
kdelibs-3.3.2-ppc.patch
Normal file
10
kdelibs-3.3.2-ppc.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- kdelibs-3.3.2/kdefx/kcpuinfo.cpp.orig 2004-12-15 11:17:53.549403872 -0500
|
||||||
|
+++ kdelibs-3.3.2/kdefx/kcpuinfo.cpp 2004-12-15 11:18:26.312348696 -0500
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
#include <config.h>
|
||||||
|
#include "kcpuinfo.h"
|
||||||
|
|
||||||
|
+#undef HAVE_PPC_ALTIVEC
|
||||||
|
|
||||||
|
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
|
||||||
|
# define HAVE_GNU_INLINE_ASM
|
11
kdelibs-3.3.92-defaultstyle.patch
Normal file
11
kdelibs-3.3.92-defaultstyle.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs-3.3.92/kdefx/kstyle.cpp.defaultstyle 2004-11-18 00:54:47.000000000 +0100
|
||||||
|
+++ kdelibs-3.3.92/kdefx/kstyle.cpp 2005-02-14 18:13:11.584981009 +0100
|
||||||
|
@@ -238,7 +238,7 @@
|
||||||
|
QString KStyle::defaultStyle()
|
||||||
|
{
|
||||||
|
if (QPixmap::defaultDepth() > 8)
|
||||||
|
- return QString("plastik");
|
||||||
|
+ return QString("Bluecurve");
|
||||||
|
else
|
||||||
|
return QString("light, 3rd revision");
|
||||||
|
}
|
@ -1,16 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/solid/solid/managerbase.cpp.SOLID_UPNP kdelibs-4.10.0/solid/solid/managerbase.cpp
|
|
||||||
--- kdelibs-4.10.0/solid/solid/managerbase.cpp.SOLID_UPNP 2013-01-23 15:44:27.000000000 -0600
|
|
||||||
+++ kdelibs-4.10.0/solid/solid/managerbase.cpp 2013-01-31 07:48:05.058342162 -0600
|
|
||||||
@@ -98,7 +98,11 @@ void Solid::ManagerBasePrivate::loadBack
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# if defined (HUPNP_FOUND)
|
|
||||||
- m_backends << new Solid::Backends::UPnP::UPnPDeviceManager(0);
|
|
||||||
+ bool solidUpnpEnabled
|
|
||||||
+ = QString::fromLocal8Bit(qgetenv("SOLID_UPNP")).toInt()==1;
|
|
||||||
+ if (solidUpnpEnabled) {
|
|
||||||
+ m_backends << new Solid::Backends::UPnP::UPnPDeviceManager(0);
|
|
||||||
+ }
|
|
||||||
# endif
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/kio/kio/kprotocolmanager.cpp.branding kdelibs-4.10.0/kio/kio/kprotocolmanager.cpp
|
|
||||||
--- kdelibs-4.10.0/kio/kio/kprotocolmanager.cpp.branding 2013-01-23 15:44:24.000000000 -0600
|
|
||||||
+++ kdelibs-4.10.0/kio/kio/kprotocolmanager.cpp 2013-01-31 07:41:09.248540500 -0600
|
|
||||||
@@ -743,6 +743,7 @@ QString KProtocolManager::defaultUserAge
|
|
||||||
d->useragent += QString::number(KDE::versionMajor());
|
|
||||||
d->useragent += QL1C('.');
|
|
||||||
d->useragent += QString::number(KDE::versionMinor());
|
|
||||||
+ d->useragent += QL1S(" Fedora/@@VERSION_RELEASE@@");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
@ -1,11 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake.xxcmake kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake
|
|
||||||
--- kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake.xxcmake 2013-01-31 07:45:31.958256176 -0600
|
|
||||||
+++ kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake 2013-01-31 07:45:31.989255789 -0600
|
|
||||||
@@ -955,6 +955,7 @@ endif(WIN32)
|
|
||||||
# CMake generators if no build type is set.
|
|
||||||
if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
|
||||||
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
|
||||||
+ set(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE})
|
|
||||||
endif (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
|
|
||||||
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/kdeui/icons/kicontheme.cpp.kde149705 kdelibs-4.10.0/kdeui/icons/kicontheme.cpp
|
|
||||||
--- kdelibs-4.10.0/kdeui/icons/kicontheme.cpp.kde149705 2013-01-23 15:44:19.000000000 -0600
|
|
||||||
+++ kdelibs-4.10.0/kdeui/icons/kicontheme.cpp 2013-01-31 07:40:19.163166653 -0600
|
|
||||||
@@ -527,7 +527,7 @@ QString KIconTheme::current()
|
|
||||||
}
|
|
||||||
|
|
||||||
KConfigGroup cg(KGlobal::config(), "Icons");
|
|
||||||
- *_theme = cg.readEntry("Theme", defaultThemeName());
|
|
||||||
+ *_theme = cg.readEntry("Theme4", cg.readEntry("Theme", defaultThemeName()));
|
|
||||||
if ( *_theme == QLatin1String("hicolor") ) {
|
|
||||||
*_theme = defaultThemeName();
|
|
||||||
}
|
|
||||||
diff -up kdelibs-4.10.0/kdeui/kernel/kglobalsettings.cpp.kde149705 kdelibs-4.10.0/kdeui/kernel/kglobalsettings.cpp
|
|
||||||
--- kdelibs-4.10.0/kdeui/kernel/kglobalsettings.cpp.kde149705 2013-01-23 15:44:19.000000000 -0600
|
|
||||||
+++ kdelibs-4.10.0/kdeui/kernel/kglobalsettings.cpp 2013-01-31 07:40:19.163166653 -0600
|
|
||||||
@@ -942,7 +942,7 @@ void KGlobalSettings::Private::applyGUIS
|
|
||||||
if (kde_overrideStyle.isEmpty()) {
|
|
||||||
const QString &defaultStyle = KStyle::defaultStyle();
|
|
||||||
const KConfigGroup pConfig(KGlobal::config(), "General");
|
|
||||||
- const QString &styleStr = pConfig.readEntry("widgetStyle", defaultStyle);
|
|
||||||
+ const QString &styleStr = pConfig.readEntry("widgetStyle4", pConfig.readEntry("widgetStyle", defaultStyle));
|
|
||||||
|
|
||||||
if (styleStr.isEmpty() ||
|
|
||||||
// check whether we already use the correct style to return then
|
|
||||||
diff -up kdelibs-4.10.0/kutils/kdeglobals.kcfg.kde149705 kdelibs-4.10.0/kutils/kdeglobals.kcfg
|
|
||||||
--- kdelibs-4.10.0/kutils/kdeglobals.kcfg.kde149705 2013-01-23 15:44:26.000000000 -0600
|
|
||||||
+++ kdelibs-4.10.0/kutils/kdeglobals.kcfg 2013-01-31 07:40:19.164166641 -0600
|
|
||||||
@@ -24,6 +24,10 @@
|
|
||||||
<whatsthis>The name of the widget style, for example "keramik" or "plastik". Without quotes.</whatsthis>
|
|
||||||
<default>keramik</default>
|
|
||||||
</entry>
|
|
||||||
+ <entry key="widgetStyle4" type="String" >
|
|
||||||
+ <label>Widget style to use for KDE 4</label>
|
|
||||||
+ <whatsthis>The name of the widget style, for example "oxygen". Without quotes. Defaults to widgetStyle.</whatsthis>
|
|
||||||
+ </entry>
|
|
||||||
<entry key="windowBackground" type="String" />
|
|
||||||
<entry key="windowForeground" type="String" />
|
|
||||||
<entry key="UseSystemBell" type="Bool" >
|
|
@ -1,107 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake.no_rpath kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake
|
|
||||||
--- kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake.no_rpath 2013-01-31 07:47:15.581960702 -0600
|
|
||||||
+++ kdelibs-4.10.0/cmake/modules/FindKDE4Internal.cmake 2013-01-31 07:47:15.583960677 -0600
|
|
||||||
@@ -1050,7 +1050,7 @@ if (UNIX)
|
|
||||||
|
|
||||||
set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
||||||
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
||||||
- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
||||||
+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
|
|
||||||
endif (APPLE)
|
|
||||||
endif (UNIX)
|
|
||||||
|
|
||||||
diff -up kdelibs-4.10.0/kdewidgets/CMakeLists.txt.no_rpath kdelibs-4.10.0/kdewidgets/CMakeLists.txt
|
|
||||||
--- kdelibs-4.10.0/kdewidgets/CMakeLists.txt.no_rpath 2013-01-31 07:47:15.556961014 -0600
|
|
||||||
+++ kdelibs-4.10.0/kdewidgets/CMakeLists.txt 2013-01-31 07:47:15.583960677 -0600
|
|
||||||
@@ -46,14 +46,14 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
kde4_add_plugin(kdewidgets ${kdewidgets_PART_SRCS})
|
|
||||||
|
|
||||||
target_link_libraries(kdewidgets ${KDE4_KIO_LIBS})
|
|
||||||
- if(NOT WIN32)
|
|
||||||
- set_target_properties(kdewidgets PROPERTIES
|
|
||||||
- INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
- SKIP_BUILD_RPATH TRUE
|
|
||||||
- BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
- INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
- )
|
|
||||||
- endif(NOT WIN32)
|
|
||||||
+# if(NOT WIN32)
|
|
||||||
+# set_target_properties(kdewidgets PROPERTIES
|
|
||||||
+# INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
+# SKIP_BUILD_RPATH TRUE
|
|
||||||
+# BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
+# INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
+# )
|
|
||||||
+# endif(NOT WIN32)
|
|
||||||
|
|
||||||
install(TARGETS kdewidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
|
|
||||||
|
|
||||||
@@ -76,14 +76,14 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
kde4_add_plugin(kdedeprecated ${kdedeprecated_PART_SRCS})
|
|
||||||
|
|
||||||
target_link_libraries(kdedeprecated ${KDE4_KIO_LIBS})
|
|
||||||
- if(NOT WIN32)
|
|
||||||
- set_target_properties(kdedeprecated PROPERTIES
|
|
||||||
- INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
- SKIP_BUILD_RPATH TRUE
|
|
||||||
- BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
- INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
- )
|
|
||||||
- endif(NOT WIN32)
|
|
||||||
+# if(NOT WIN32)
|
|
||||||
+# set_target_properties(kdedeprecated PROPERTIES
|
|
||||||
+# INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
+# SKIP_BUILD_RPATH TRUE
|
|
||||||
+# BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
+# INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
+# )
|
|
||||||
+# endif(NOT WIN32)
|
|
||||||
|
|
||||||
install(TARGETS kdedeprecated DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
|
|
||||||
endif(NOT KDE_NO_DEPRECATED)
|
|
||||||
@@ -111,14 +111,14 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
kde4_add_plugin(kdewebkitwidgets ${kdewebkitwidgets_PART_SRCS})
|
|
||||||
|
|
||||||
target_link_libraries(kdewebkitwidgets ${KDE4_KDEUI_LIBS} ${KDE4_KDEWEBKIT_LIBS} ${QT_QTWEBKIT_LIBRARY})
|
|
||||||
- if(NOT WIN32)
|
|
||||||
- set_target_properties(kdewebkitwidgets PROPERTIES
|
|
||||||
- INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
- SKIP_BUILD_RPATH TRUE
|
|
||||||
- BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
- INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
- )
|
|
||||||
- endif(NOT WIN32)
|
|
||||||
+# if(NOT WIN32)
|
|
||||||
+# set_target_properties(kdewebkitwidgets PROPERTIES
|
|
||||||
+# INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
+# SKIP_BUILD_RPATH TRUE
|
|
||||||
+# BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
+# INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
+# )
|
|
||||||
+# endif(NOT WIN32)
|
|
||||||
|
|
||||||
install(TARGETS kdewebkitwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
|
|
||||||
|
|
||||||
@@ -147,14 +147,14 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
kde4_add_plugin(kde3supportwidgets ${kde3supportwidgets_PART_SRCS})
|
|
||||||
|
|
||||||
target_link_libraries(kde3supportwidgets ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KIO_LIBS})
|
|
||||||
- if(NOT WIN32)
|
|
||||||
- set_target_properties(kde3supportwidgets PROPERTIES
|
|
||||||
- INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
- SKIP_BUILD_RPATH TRUE
|
|
||||||
- BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
- INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
- )
|
|
||||||
- endif(NOT WIN32)
|
|
||||||
+# if(NOT WIN32)
|
|
||||||
+# set_target_properties(kde3supportwidgets PROPERTIES
|
|
||||||
+# INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
+# SKIP_BUILD_RPATH TRUE
|
|
||||||
+# BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
+# INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
+# )
|
|
||||||
+# endif(NOT WIN32)
|
|
||||||
|
|
||||||
install(TARGETS kde3supportwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
|
|
||||||
endif (QT_QT3SUPPORT_FOUND)
|
|
@ -1,75 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/kded/applications.menu.Administration-menu kdelibs-4.10.0/kded/applications.menu
|
|
||||||
--- kdelibs-4.10.0/kded/applications.menu.Administration-menu 2013-01-23 15:44:19.000000000 -0600
|
|
||||||
+++ kdelibs-4.10.0/kded/applications.menu 2013-01-31 07:42:28.173553801 -0600
|
|
||||||
@@ -31,29 +31,31 @@
|
|
||||||
<Category>Core</Category>
|
|
||||||
<Not><Category>KDE</Category></Not>
|
|
||||||
</And>
|
|
||||||
+ <Category>X-Red-Hat-Base</Category>
|
|
||||||
<!-- Don't list SUSE's YaST in here -->
|
|
||||||
<Category>X-SuSE-YaST</Category>
|
|
||||||
- <Category>X-KDE-settings-hardware</Category>
|
|
||||||
- <Category>X-KDE-settings-accessibility</Category>
|
|
||||||
- <Category>X-KDE-settings-components</Category>
|
|
||||||
- <Category>X-KDE-settings-desktop</Category>
|
|
||||||
- <Category>X-KDE-settings-looknfeel</Category>
|
|
||||||
- <Category>X-KDE-settings-network</Category>
|
|
||||||
- <Category>X-KDE-settings-webbrowsing</Category>
|
|
||||||
- <Category>X-KDE-settings-peripherals</Category>
|
|
||||||
- <Category>X-KDE-settings-hardware</Category>
|
|
||||||
- <Category>X-KDE-settings-power</Category>
|
|
||||||
- <Category>X-KDE-settings-security</Category>
|
|
||||||
- <Category>X-KDE-settings-sound</Category>
|
|
||||||
- <Category>X-KDE-settings-system</Category>
|
|
||||||
- <Category>X-KDE-information</Category>
|
|
||||||
- <Filename>kde-kcm_knetworkconfmodule_ss.desktop</Filename>
|
|
||||||
- <Filename>kde-medianotifications.desktop</Filename>
|
|
||||||
- <Filename>kde-audioencoding.desktop</Filename>
|
|
||||||
</Not>
|
|
||||||
</Include>
|
|
||||||
</Menu>
|
|
||||||
<Menu>
|
|
||||||
+ <Name>System Settings</Name>
|
|
||||||
+ <Directory>SystemConfig.directory</Directory>
|
|
||||||
+ <Include>
|
|
||||||
+ <And>
|
|
||||||
+ <Category>System</Category>
|
|
||||||
+ <Category>Settings</Category>
|
|
||||||
+ <Not><Category>X-Red-Hat-ServerConfig</Category></Not>
|
|
||||||
+ </And>
|
|
||||||
+ </Include>
|
|
||||||
+ <Menu>
|
|
||||||
+ <Name>Server</Name>
|
|
||||||
+ <Directory>ServerConfig.directory</Directory>
|
|
||||||
+ <Include>
|
|
||||||
+ <Category>X-Red-Hat-ServerConfig</Category>
|
|
||||||
+ </Include>
|
|
||||||
+ </Menu>
|
|
||||||
+ </Menu>
|
|
||||||
+ <Menu>
|
|
||||||
<Name>Development</Name>
|
|
||||||
<Directory>kde-development.directory</Directory>
|
|
||||||
<Menu>
|
|
||||||
@@ -369,7 +371,11 @@
|
|
||||||
<Name>Settingsmenu</Name>
|
|
||||||
<Directory>kde-settingsmenu.directory</Directory>
|
|
||||||
<Include>
|
|
||||||
- <Category>Settings</Category>
|
|
||||||
+ <And>
|
|
||||||
+ <Category>Settings</Category>
|
|
||||||
+ <Not><Category>System</Category></Not>
|
|
||||||
+ <Not><Category>X-Red-Hat-ServerConfig</Category></Not>
|
|
||||||
+ </And>
|
|
||||||
</Include>
|
|
||||||
</Menu>
|
|
||||||
<Menu>
|
|
||||||
@@ -378,7 +384,9 @@
|
|
||||||
<Include>
|
|
||||||
<And>
|
|
||||||
<Category>System</Category>
|
|
||||||
+ <Not><Category>Settings</Category></Not>
|
|
||||||
<Not><Category>X-KDE-More</Category></Not>
|
|
||||||
+ <Not><Category>X-Red-Hat-ServerConfig</Category></Not>
|
|
||||||
</And>
|
|
||||||
</Include>
|
|
||||||
<Menu>
|
|
@ -1,15 +0,0 @@
|
|||||||
diff -up kdelibs-4.11.3/plasma/corona.cpp.than kdelibs-4.11.3/plasma/corona.cpp
|
|
||||||
--- kdelibs-4.11.3/plasma/corona.cpp.than 2013-12-02 16:46:19.542820822 +0100
|
|
||||||
+++ kdelibs-4.11.3/plasma/corona.cpp 2013-12-02 17:53:04.919830893 +0100
|
|
||||||
@@ -388,7 +388,11 @@ void Corona::addOffscreenWidget(QGraphic
|
|
||||||
}
|
|
||||||
|
|
||||||
d->offscreenWidgets[i] = widget;
|
|
||||||
+#if defined(arm) || defined(__arm__)
|
|
||||||
+ widget->setPos((-i - 1) * 2000, -2000);
|
|
||||||
+#else
|
|
||||||
widget->setPos((-i - 1) * QWIDGETSIZE_MAX, -QWIDGETSIZE_MAX);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
QGraphicsWidget *pw = widget->parentWidget();
|
|
||||||
widget->setParentItem(0);
|
|
@ -1,54 +0,0 @@
|
|||||||
diff -up kdelibs-4.11.3/kdecore/kernel/kstandarddirs.cpp.libexecdir kdelibs-4.11.3/kdecore/kernel/kstandarddirs.cpp
|
|
||||||
--- kdelibs-4.11.3/kdecore/kernel/kstandarddirs.cpp.libexecdir 2013-06-28 12:03:40.883340083 -0500
|
|
||||||
+++ kdelibs-4.11.3/kdecore/kernel/kstandarddirs.cpp 2013-11-01 15:44:00.780783690 -0500
|
|
||||||
@@ -1871,7 +1871,7 @@ void KStandardDirs::addKDEDefaults()
|
|
||||||
addResourceType(types_string + types_indices[index], 0, types_string + types_indices[index+1], true);
|
|
||||||
index+=2;
|
|
||||||
}
|
|
||||||
- addResourceType("exe", "lib", "kde4/libexec", true );
|
|
||||||
+ addResourceType("exe", 0, "libexec/kde4", true );
|
|
||||||
|
|
||||||
addResourceDir("home", QDir::homePath(), false);
|
|
||||||
|
|
||||||
diff -up kdelibs-4.11.3/kdecore/kernel/kstandarddirs_unix.cpp.libexecdir kdelibs-4.11.3/kdecore/kernel/kstandarddirs_unix.cpp
|
|
||||||
--- kdelibs-4.11.3/kdecore/kernel/kstandarddirs_unix.cpp.libexecdir 2013-06-28 12:03:40.884340190 -0500
|
|
||||||
+++ kdelibs-4.11.3/kdecore/kernel/kstandarddirs_unix.cpp 2013-11-01 15:44:00.782783770 -0500
|
|
||||||
@@ -63,7 +63,7 @@ QString KStandardDirs::installPath(const
|
|
||||||
if (strcmp("lib", type) == 0)
|
|
||||||
return QFile::decodeName(LIB_INSTALL_DIR "/");
|
|
||||||
if (strcmp("libexec", type) == 0)
|
|
||||||
- return QFile::decodeName(KDEDIR "/lib" KDELIBSUFF "/kde4/libexec/");
|
|
||||||
+ return QFile::decodeName(LIBEXEC_INSTALL_DIR "/");
|
|
||||||
if (strcmp("locale", type) == 0)
|
|
||||||
return QFile::decodeName(LOCALE_INSTALL_DIR "/");
|
|
||||||
break;
|
|
||||||
diff -up kdelibs-4.11.3/kdecore/tests/kstandarddirstest.cpp.libexecdir kdelibs-4.11.3/kdecore/tests/kstandarddirstest.cpp
|
|
||||||
--- kdelibs-4.11.3/kdecore/tests/kstandarddirstest.cpp.libexecdir 2013-11-01 10:45:56.409145508 -0500
|
|
||||||
+++ kdelibs-4.11.3/kdecore/tests/kstandarddirstest.cpp 2013-11-01 15:50:20.473658147 -0500
|
|
||||||
@@ -96,8 +96,9 @@ void KStandarddirsTest::testFindResource
|
|
||||||
#define KIOSLAVE "bin/kioslave.exe"
|
|
||||||
#else
|
|
||||||
#define EXT ""
|
|
||||||
-#define KIOSLAVE "kde4/libexec/kioslave"
|
|
||||||
+#define KIOSLAVE "libexec/kde4/kioslave"
|
|
||||||
#endif
|
|
||||||
+
|
|
||||||
const QString bin = KGlobal::dirs()->findResource( "exe", "kioslave" EXT );
|
|
||||||
QVERIFY( !bin.isEmpty() );
|
|
||||||
QVERIFY( bin.endsWith( KIOSLAVE ) );
|
|
||||||
@@ -248,11 +249,13 @@ void KStandarddirsTest::testFindExe()
|
|
||||||
// findExe with a result in libexec
|
|
||||||
const QString lnusertemp = KGlobal::dirs()->findExe( "lnusertemp" );
|
|
||||||
QVERIFY( !lnusertemp.isEmpty() );
|
|
||||||
- QVERIFY( lnusertemp.endsWith( "lib" KDELIBSUFF "/kde4/libexec/lnusertemp" EXT, PATH_SENSITIVITY ) );
|
|
||||||
+ QVERIFY( lnusertemp.endsWith( "lib" KDELIBSUFF "/kde4/libexec/lnusertemp" EXT, PATH_SENSITIVITY )
|
|
||||||
+ || lnusertemp.endsWith( "libexec/kde4/lnusertemp" EXT, PATH_SENSITIVITY ) );
|
|
||||||
|
|
||||||
// locate("exe") with a result in libexec
|
|
||||||
const QString locateExeResult = KGlobal::dirs()->locate("exe", "lnusertemp");
|
|
||||||
- QVERIFY(locateExeResult.endsWith("lib" KDELIBSUFF "/kde4/libexec/lnusertemp" EXT, PATH_SENSITIVITY));
|
|
||||||
+ QVERIFY(locateExeResult.endsWith("lib" KDELIBSUFF "/kde4/libexec/lnusertemp" EXT, PATH_SENSITIVITY)
|
|
||||||
+ || locateExeResult.endsWith("libexec/kde4/lnusertemp" EXT, PATH_SENSITIVITY) );
|
|
||||||
|
|
||||||
// findExe with relative path
|
|
||||||
const QString pwd = QDir::currentPath();
|
|
@ -1,25 +0,0 @@
|
|||||||
diff -up kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp.kstandarddirs kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp
|
|
||||||
--- kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp.kstandarddirs 2013-11-30 21:24:01.637163800 -0600
|
|
||||||
+++ kdelibs-4.11.97/kdecore/kernel/kstandarddirs.cpp 2013-11-30 21:35:27.166292739 -0600
|
|
||||||
@@ -1149,7 +1149,8 @@ QStringList KStandardDirs::KStandardDirs
|
|
||||||
pit != prefixList->end();
|
|
||||||
++pit)
|
|
||||||
{
|
|
||||||
- if((*pit).compare(installprefix, cs) != 0 || installdir.isEmpty())
|
|
||||||
+ // "exe" never has a custom install path, and the check triggers a false positive due to the libexecdir patch
|
|
||||||
+ if((*pit).compare(installprefix, cs) != 0 || installdir.isEmpty() || !strcmp("exe", type))
|
|
||||||
{
|
|
||||||
for (QStringList::ConstIterator it = dirs.constBegin();
|
|
||||||
it != dirs.constEnd(); ++it)
|
|
||||||
@@ -1163,6 +1164,11 @@ QStringList KStandardDirs::KStandardDirs
|
|
||||||
if ((local || testdir.exists()) && !candidates.contains(path, cs))
|
|
||||||
candidates.append(path);
|
|
||||||
}
|
|
||||||
+ // special-case "config" (forward porting Chris Cheney's
|
|
||||||
+ // hack) - we want /etc/kde after the local config paths
|
|
||||||
+ // and before the ones in /usr (including kde-profile)
|
|
||||||
+ if (local && !strcmp("config", type))
|
|
||||||
+ candidates.append(QLatin1String("/etc/kde/"));
|
|
||||||
local = false;
|
|
||||||
}
|
|
||||||
else
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.12.90/doc/common/Doxyfile.global.dot kdelibs-4.12.90/doc/common/Doxyfile.global
|
|
||||||
--- kdelibs-4.12.90/doc/common/Doxyfile.global.dot 2014-03-17 13:15:23.252517997 -0500
|
|
||||||
+++ kdelibs-4.12.90/doc/common/Doxyfile.global 2014-03-17 13:16:02.472100942 -0500
|
|
||||||
@@ -1360,7 +1360,7 @@ HIDE_UNDOC_RELATIONS = NO
|
|
||||||
# toolkit from AT&T and Lucent Bell Labs. The other options in this section
|
|
||||||
# have no effect if this option is set to NO (the default)
|
|
||||||
|
|
||||||
-HAVE_DOT = YES
|
|
||||||
+HAVE_DOT = NO
|
|
||||||
|
|
||||||
# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
|
|
||||||
# The default size is 10pt.
|
|
@ -1,17 +0,0 @@
|
|||||||
diff -up kdelibs-4.13.2/kdecore/kernel/ktoolinvocation_x11.cpp.orig kdelibs-4.13.2/kdecore/kernel/ktoolinvocation_x11.cpp
|
|
||||||
--- kdelibs-4.13.2/kdecore/kernel/ktoolinvocation_x11.cpp.orig 2014-07-11 16:54:51.000000000 +0200
|
|
||||||
+++ kdelibs-4.13.2/kdecore/kernel/ktoolinvocation_x11.cpp 2014-07-11 16:57:31.000000000 +0200
|
|
||||||
@@ -412,11 +412,9 @@ void KToolInvocation::invokeTerminal(con
|
|
||||||
// directory before launching them, see below.
|
|
||||||
}
|
|
||||||
|
|
||||||
- QString error;
|
|
||||||
- if (self()->startServiceInternal("kdeinit_exec_with_workdir",
|
|
||||||
- cmd, cmdTokens, &error, 0, NULL, startup_id, false, workdir)) {
|
|
||||||
+ if (!QProcess::startDetached(cmd, cmdTokens)) {
|
|
||||||
KMessage::message(KMessage::Error,
|
|
||||||
- i18n("Could not launch the terminal client:\n\n%1", error),
|
|
||||||
+ i18n("Could not launch the terminal client"),
|
|
||||||
i18n("Could not launch Terminal Client"));
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.14/kded/vfolder_menu.cpp.vfolder_spam kdelibs-4.14.14/kded/vfolder_menu.cpp
|
|
||||||
--- kdelibs-4.14.14/kded/vfolder_menu.cpp.vfolder_spam 2015-11-04 16:29:10.000000000 -0600
|
|
||||||
+++ kdelibs-4.14.14/kded/vfolder_menu.cpp 2015-12-09 08:45:49.861988284 -0600
|
|
||||||
@@ -487,7 +487,7 @@ VFolderMenu::loadDoc()
|
|
||||||
int errorRow;
|
|
||||||
int errorCol;
|
|
||||||
if ( !doc.setContent( &file, &errorMsg, &errorRow, &errorCol ) ) {
|
|
||||||
- kWarning(7021) << "Parse error in " << m_docInfo.path << ", line " << errorRow << ", col " << errorCol << ": " << errorMsg;
|
|
||||||
+ kDebug(7021) << "Parse error in " << m_docInfo.path << ", line " << errorRow << ", col " << errorCol << ": " << errorMsg;
|
|
||||||
file.close();
|
|
||||||
return doc;
|
|
||||||
}
|
|
@ -1,100 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.16/CMakeLists.txt.webkit kdelibs-4.14.16/CMakeLists.txt
|
|
||||||
--- kdelibs-4.14.16/CMakeLists.txt.webkit 2016-01-07 00:02:22.000000000 +0100
|
|
||||||
+++ kdelibs-4.14.16/CMakeLists.txt 2016-01-28 13:03:53.556194927 +0100
|
|
||||||
@@ -363,7 +363,6 @@ if(NOT WINCE)
|
|
||||||
add_subdirectory( plasma )
|
|
||||||
endif(NOT WINCE)
|
|
||||||
add_subdirectory( kunitconversion )
|
|
||||||
-add_subdirectory( kdewebkit )
|
|
||||||
add_subdirectory( includes )
|
|
||||||
|
|
||||||
add_subdirectory( experimental )
|
|
||||||
diff -up kdelibs-4.14.16/kdewidgets/CMakeLists.txt.webkit kdelibs-4.14.16/kdewidgets/CMakeLists.txt
|
|
||||||
--- kdelibs-4.14.16/kdewidgets/CMakeLists.txt.webkit 2016-01-28 13:03:53.527196020 +0100
|
|
||||||
+++ kdelibs-4.14.16/kdewidgets/CMakeLists.txt 2016-01-28 13:03:53.556194927 +0100
|
|
||||||
@@ -88,41 +88,6 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
install(TARGETS kdedeprecated DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
|
|
||||||
endif(NOT KDE_NO_DEPRECATED)
|
|
||||||
|
|
||||||
-
|
|
||||||
- # kdewebkit widgets
|
|
||||||
- include_directories(
|
|
||||||
- ${CMAKE_SOURCE_DIR}/kdewebkit
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp
|
|
||||||
- COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kdewebkit.widgets
|
|
||||||
- MAIN_DEPENDENCY kdewebkit.widgets DEPENDS makekdewidgets4)
|
|
||||||
-
|
|
||||||
- set(kdewebkitwidgets_PART_SRCS
|
|
||||||
- classpreviews.cpp
|
|
||||||
- ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp
|
|
||||||
- )
|
|
||||||
-
|
|
||||||
- qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.moc)
|
|
||||||
-
|
|
||||||
-
|
|
||||||
- qt4_add_resources(kdewebkitwidgets_PART_SRCS kdewebkitwidgets.qrc)
|
|
||||||
-
|
|
||||||
- kde4_add_plugin(kdewebkitwidgets ${kdewebkitwidgets_PART_SRCS})
|
|
||||||
-
|
|
||||||
- target_link_libraries(kdewebkitwidgets ${KDE4_KDEUI_LIBS} ${KDE4_KDEWEBKIT_LIBS} ${QT_QTWEBKIT_LIBRARY})
|
|
||||||
-# if(NOT WIN32)
|
|
||||||
-# set_target_properties(kdewebkitwidgets PROPERTIES
|
|
||||||
-# INSTALL_RPATH_USE_LINK_PATH TRUE
|
|
||||||
-# SKIP_BUILD_RPATH TRUE
|
|
||||||
-# BUILD_WITH_INSTALL_RPATH TRUE
|
|
||||||
-# INSTALL_RPATH ${LIB_INSTALL_DIR}
|
|
||||||
-# )
|
|
||||||
-# endif(NOT WIN32)
|
|
||||||
-
|
|
||||||
- install(TARGETS kdewebkitwidgets DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer )
|
|
||||||
-
|
|
||||||
-
|
|
||||||
if (QT_QT3SUPPORT_FOUND)
|
|
||||||
|
|
||||||
include_directories(
|
|
||||||
diff -up kdelibs-4.14.16/plasma/CMakeLists.txt.webkit kdelibs-4.14.16/plasma/CMakeLists.txt
|
|
||||||
--- kdelibs-4.14.16/plasma/CMakeLists.txt.webkit 2016-01-07 00:02:22.000000000 +0100
|
|
||||||
+++ kdelibs-4.14.16/plasma/CMakeLists.txt 2016-01-28 13:26:55.730137496 +0100
|
|
||||||
@@ -11,6 +11,7 @@ if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBL
|
|
||||||
endif(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
|
||||||
|
|
||||||
set(PLASMA_NO_PACKAGEKIT TRUE)
|
|
||||||
+set(PLASMA_NO_KDEWEBKIT TRUE)
|
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
|
||||||
${KDE4_KDECORE_INCLUDES}
|
|
||||||
@@ -121,7 +122,6 @@ set(plasma_LIB_SRCS
|
|
||||||
framesvg.cpp
|
|
||||||
plasma.cpp
|
|
||||||
popupapplet.cpp
|
|
||||||
- private/animablegraphicswebview.cpp
|
|
||||||
private/applethandle.cpp
|
|
||||||
private/associatedapplicationmanager.cpp
|
|
||||||
private/componentinstaller.cpp
|
|
||||||
@@ -211,7 +211,6 @@ set(plasma_LIB_SRCS
|
|
||||||
widgets/textbrowser.cpp
|
|
||||||
widgets/treeview.cpp
|
|
||||||
widgets/textedit.cpp
|
|
||||||
- widgets/webview.cpp
|
|
||||||
|
|
||||||
#Temporary QtJolie branch
|
|
||||||
private/qtjolie-branch/qtjolie/abstractadaptor.cpp
|
|
||||||
@@ -275,7 +274,7 @@ endif(PHONON_FOUND)
|
|
||||||
|
|
||||||
kde4_add_library(plasma ${LIBRARY_TYPE} ${plasma_LIB_SRCS})
|
|
||||||
|
|
||||||
-target_link_libraries(plasma LINK_PRIVATE ${QT_QTUITOOLS_LIBRARY} ${QT_QTWEBKIT_LIBRARY}
|
|
||||||
+target_link_libraries(plasma LINK_PRIVATE ${QT_QTUITOOLS_LIBRARY}
|
|
||||||
${QT_QTSCRIPT_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTSQL_LIBRARY} ${QT_QTDECLARATIVE_LIBRARY}
|
|
||||||
${KDE4_KDEUI_LIBS} ${KDE4_KDNSSD_LIBS} ${KDE4_THREADWEAVER_LIBS} ${PLASMA_EXTRA_LIBS})
|
|
||||||
|
|
||||||
@@ -415,7 +414,6 @@ install(FILES
|
|
||||||
widgets/textbrowser.h
|
|
||||||
widgets/treeview.h
|
|
||||||
widgets/textedit.h
|
|
||||||
- widgets/webview.h
|
|
||||||
DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel)
|
|
||||||
|
|
||||||
install(FILES
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.17/khtml/dom/dom2_traversal.h.gcc6 kdelibs-4.14.17/khtml/dom/dom2_traversal.h
|
|
||||||
--- kdelibs-4.14.17/khtml/dom/dom2_traversal.h.gcc6 2016-02-12 19:27:45.874888043 -0600
|
|
||||||
+++ kdelibs-4.14.17/khtml/dom/dom2_traversal.h 2016-02-12 19:26:11.777418711 -0600
|
|
||||||
@@ -214,7 +214,7 @@ public:
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
enum ShowCode {
|
|
||||||
- SHOW_ALL = 0xFFFFFFFF,
|
|
||||||
+ SHOW_ALL = (int)0xFFFFFFFF,
|
|
||||||
SHOW_ELEMENT = 0x00000001,
|
|
||||||
SHOW_ATTRIBUTE = 0x00000002,
|
|
||||||
SHOW_TEXT = 0x00000004,
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.17/ConfigureChecks.cmake.gcc6 kdelibs-4.14.17/ConfigureChecks.cmake
|
|
||||||
--- kdelibs-4.14.17/ConfigureChecks.cmake.gcc6 2016-02-11 23:06:08.000000000 -0600
|
|
||||||
+++ kdelibs-4.14.17/ConfigureChecks.cmake 2016-02-12 19:14:07.707788177 -0600
|
|
||||||
@@ -244,7 +244,7 @@ check_prototype_exists(unsetenv stdlib.h
|
|
||||||
check_prototype_exists(usleep unistd.h HAVE_USLEEP_PROTO)
|
|
||||||
check_prototype_exists(initgroups "unistd.h;sys/types.h;unistd.h;grp.h" HAVE_INITGROUPS_PROTO)
|
|
||||||
check_prototype_exists(setreuid unistd.h HAVE_SETREUID_PROTO)
|
|
||||||
-check_prototype_exists(trunc math.h HAVE_TRUNC)
|
|
||||||
+check_prototype_exists(truncf math.h HAVE_TRUNC)
|
|
||||||
|
|
||||||
# check for existing datatypes
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.25/kdeui/util/kcrash.cpp.plasma_drkonqi kdelibs-4.14.25/kdeui/util/kcrash.cpp
|
|
||||||
--- kdelibs-4.14.25/kdeui/util/kcrash.cpp.plasma_drkonqi 2016-10-10 01:09:37.000000000 -0500
|
|
||||||
+++ kdelibs-4.14.25/kdeui/util/kcrash.cpp 2016-11-10 11:18:40.617754077 -0600
|
|
||||||
@@ -205,11 +205,18 @@ void KCrash::setDrKonqiEnabled(bool enab
|
|
||||||
{
|
|
||||||
s_launchDrKonqi = enabled;
|
|
||||||
if (s_launchDrKonqi && !s_drkonqiPath) {
|
|
||||||
+
|
|
||||||
+ s_drkonqiPath = qstrdup(QFile::encodeName(KStandardDirs::findExe("drkonqi", QFile::decodeName("/usr/libexec/drkonqi"))).constData());
|
|
||||||
+
|
|
||||||
+ if (!s_drkonqiPath) {
|
|
||||||
+
|
|
||||||
s_drkonqiPath = qstrdup(QFile::encodeName(KStandardDirs::findExe("drkonqi")).constData());
|
|
||||||
if (!s_drkonqiPath) {
|
|
||||||
kError() << "Could not find drkonqi";
|
|
||||||
s_launchDrKonqi = false;
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
//we need at least the default crash handler to launch drkonqi
|
|
@ -1,999 +0,0 @@
|
|||||||
From a015996bb55bbd63d94b227a2c82d0d97cd86ae8 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Wolfgang Bauer <wbauer@tmo.at>
|
|
||||||
Date: Wed, 25 Oct 2017 07:49:32 +0200
|
|
||||||
Subject: [PATCH] Make kssl compile against OpenSSL 1.1.0
|
|
||||||
|
|
||||||
OpenSSL 1.1.0 contains some source-incompatible changes, most notably
|
|
||||||
making most of the structures opaque and introducing new getter/setter
|
|
||||||
functions to modify the structures. This patch adds some of the newly
|
|
||||||
introduced functions to the KOpenSSL class and modifies the code to
|
|
||||||
call them. The implementation of those newly introduced methods
|
|
||||||
contains both OpenSSL < 1.1 compatible code (direct structure member
|
|
||||||
access) and calls to real functions resolved from OpenSSL>= 1.1
|
|
||||||
library. Which implementation is used is decided at compile time. Some
|
|
||||||
of the existing methods were renamed to match the OpenSSL 1.1 naming
|
|
||||||
and to avoid conflicts with backward-compatibility names provided by
|
|
||||||
OpenSSL 1.1.
|
|
||||||
|
|
||||||
KSSLCertificate::toNetscape() returns empty result when built against
|
|
||||||
OpenSSL 1.1 since I wasn't able to find a proper equivalent in OpenSSL
|
|
||||||
1.1 API (and there does not seem to be any).
|
|
||||||
|
|
||||||
(Backport of commit 9a990c69c606126bcd60cd7718462aec2a92460d from
|
|
||||||
kdelibs4support)
|
|
||||||
---
|
|
||||||
kio/kssl/kopenssl.cpp | 250 ++++++++++++++++++++++++++++++++++++++-----
|
|
||||||
kio/kssl/kopenssl.h | 80 ++++++++++++--
|
|
||||||
kio/kssl/kssl.cpp | 4 -
|
|
||||||
kio/kssl/ksslcallback.c | 6 +-
|
|
||||||
kio/kssl/ksslcertchain.cpp | 53 +++------
|
|
||||||
kio/kssl/ksslcertificate.cpp | 68 +++++++-----
|
|
||||||
6 files changed, 351 insertions(+), 110 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/kio/kssl/kopenssl.cpp b/kio/kssl/kopenssl.cpp
|
|
||||||
index e3ca535b25..8f8b921159 100644
|
|
||||||
--- a/kio/kssl/kopenssl.cpp
|
|
||||||
+++ b/kio/kssl/kopenssl.cpp
|
|
||||||
@@ -75,18 +75,26 @@ static void (*K_X509_STORE_CTX_free) (X509_STORE_CTX *) = 0L;
|
|
||||||
static int (*K_X509_verify_cert) (X509_STORE_CTX *) = 0L;
|
|
||||||
static X509_STORE_CTX *(*K_X509_STORE_CTX_new) (void) = 0L;
|
|
||||||
static void (*K_X509_STORE_free) (X509_STORE *) = 0L;
|
|
||||||
+static void (*K_X509_STORE_set_verify_cb)(X509_STORE *, int (*)(int, X509_STORE_CTX *)) = 0L;
|
|
||||||
static X509_STORE *(*K_X509_STORE_new) (void) = 0L;
|
|
||||||
static void (*K_X509_free) (X509 *) = 0L;
|
|
||||||
static char *(*K_X509_NAME_oneline) (X509_NAME *,char *,int) = 0L;
|
|
||||||
static X509_NAME *(*K_X509_get_subject_name) (X509 *) = 0L;
|
|
||||||
static X509_NAME *(*K_X509_get_issuer_name) (X509 *) = 0L;
|
|
||||||
+static void (*K_X509_get0_signature)(const ASN1_BIT_STRING **psig, const X509_ALGOR **palg, const X509 *x) = 0L;
|
|
||||||
static X509_LOOKUP *(*K_X509_STORE_add_lookup) (X509_STORE *, X509_LOOKUP_METHOD *) = 0L;
|
|
||||||
static X509_LOOKUP_METHOD *(*K_X509_LOOKUP_file)(void) = 0L;
|
|
||||||
static void (*K_X509_LOOKUP_free)(X509_LOOKUP *) = 0L;
|
|
||||||
static int (*K_X509_LOOKUP_ctrl)(X509_LOOKUP *, int, const char *, long, char **) = 0L;
|
|
||||||
static void (*K_X509_STORE_CTX_init)(X509_STORE_CTX *, X509_STORE *, X509 *, STACK_OF(X509) *) = 0L;
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
static void (*K_CRYPTO_free) (void *) = 0L;
|
|
||||||
+#else
|
|
||||||
+static void (*K_CRYPTO_free)(void *, const char *, int) = 0L;
|
|
||||||
+#endif
|
|
||||||
static X509* (*K_X509_dup) (X509 *) = 0L;
|
|
||||||
+static ASN1_TIME *(*K_X509_getm_notBefore)(const X509 *) = 0L;
|
|
||||||
+static ASN1_TIME *(*K_X509_getm_notAfter)(const X509 *) = 0L;
|
|
||||||
static BIO_METHOD *(*K_BIO_s_mem) (void) = 0L;
|
|
||||||
static BIO* (*K_BIO_new) (BIO_METHOD *) = 0L;
|
|
||||||
static BIO* (*K_BIO_new_fp) (FILE *, int) = 0L;
|
|
||||||
@@ -118,13 +126,16 @@ static int (*K_SSL_get_error) (SSL*, int) = 0L;
|
|
||||||
static STACK_OF(X509)* (*K_SSL_get_peer_cert_chain) (SSL*) = 0L;
|
|
||||||
static void (*K_X509_STORE_CTX_set_chain) (X509_STORE_CTX *, STACK_OF(X509)*) = 0L;
|
|
||||||
static void (*K_X509_STORE_CTX_set_purpose) (X509_STORE_CTX *, int) = 0L;
|
|
||||||
-static void (*K_sk_free) (STACK*) = 0L;
|
|
||||||
-static int (*K_sk_num) (STACK*) = 0L;
|
|
||||||
-static char* (*K_sk_pop) (STACK*) = 0L;
|
|
||||||
-static char* (*K_sk_value) (STACK*, int) = 0L;
|
|
||||||
-static STACK* (*K_sk_new) (int (*)()) = 0L;
|
|
||||||
-static int (*K_sk_push) (STACK*, char*) = 0L;
|
|
||||||
-static STACK* (*K_sk_dup) (STACK *) = 0L;
|
|
||||||
+static X509 *(*K_X509_STORE_CTX_get_current_cert)(X509_STORE_CTX *) = 0L;
|
|
||||||
+static void (*K_X509_STORE_CTX_set_error)(X509_STORE_CTX *, int) = 0L;
|
|
||||||
+static int (*K_X509_STORE_CTX_get_error)(X509_STORE_CTX *) = 0L;
|
|
||||||
+static void (*K_OPENSSL_sk_free)(STACK *) = 0L;
|
|
||||||
+static int (*K_OPENSSL_sk_num)(STACK *) = 0L;
|
|
||||||
+static char *(*K_OPENSSL_sk_pop)(STACK *) = 0L;
|
|
||||||
+static char *(*K_OPENSSL_sk_value)(STACK *, int) = 0L;
|
|
||||||
+static STACK *(*K_OPENSSL_sk_new)(int (*)()) = 0L;
|
|
||||||
+static int (*K_OPENSSL_sk_push)(STACK *, char *) = 0L;
|
|
||||||
+static STACK *(*K_OPENSSL_sk_dup)(STACK *) = 0L;
|
|
||||||
static char * (*K_i2s_ASN1_INTEGER) (X509V3_EXT_METHOD *, ASN1_INTEGER *) =0L;
|
|
||||||
static ASN1_INTEGER * (*K_X509_get_serialNumber) (X509 *) = 0L;
|
|
||||||
static EVP_PKEY *(*K_X509_get_pubkey)(X509 *) = 0L;
|
|
||||||
@@ -164,6 +175,12 @@ static int (*K_X509_PURPOSE_get_id)(X509_PURPOSE *) = 0L;
|
|
||||||
static int (*K_X509_check_purpose)(X509*,int,int) = 0L;
|
|
||||||
static X509_PURPOSE* (*K_X509_PURPOSE_get0)(int) = 0L;
|
|
||||||
static int (*K_EVP_PKEY_assign)(EVP_PKEY*, int, char*) = 0L;
|
|
||||||
+static int (*K_EVP_PKEY_base_id)(EVP_PKEY *) = 0L;
|
|
||||||
+static RSA *(*K_EVP_PKEY_get0_RSA)(EVP_PKEY *) = 0L;
|
|
||||||
+static void (*K_RSA_get0_key)(RSA *, const BIGNUM **, const BIGNUM **, const BIGNUM **) = 0L;
|
|
||||||
+static DSA *(*K_EVP_PKEY_get0_DSA)(EVP_PKEY *) = 0L;
|
|
||||||
+static void (*K_DSA_get0_pqg)(DSA *, const BIGNUM **, const BIGNUM **, const BIGNUM **) = 0L;
|
|
||||||
+static void (*K_DSA_get0_key)(DSA *, const BIGNUM **, const BIGNUM **) = 0L;
|
|
||||||
static int (*K_X509_REQ_set_pubkey)(X509_REQ*, EVP_PKEY*) = 0L;
|
|
||||||
static RSA *(*K_RSA_generate_key)(int, unsigned long, void (*)(int,int,void *), void *) = 0L;
|
|
||||||
static int (*K_i2d_X509_REQ_fp)(FILE*, X509_REQ*) = 0L;
|
|
||||||
@@ -410,7 +427,11 @@ KOpenSSLProxy::KOpenSSLProxy()
|
|
||||||
K_RAND_load_file = (int (*)(const char *, long)) d->cryptoLib->resolveFunction("RAND_load_file");
|
|
||||||
K_RAND_file_name = (const char* (*)(char *, size_t)) d->cryptoLib->resolveFunction("RAND_file_name");
|
|
||||||
K_RAND_write_file = (int (*)(const char *)) d->cryptoLib->resolveFunction("RAND_write_file");
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
K_CRYPTO_free = (void (*) (void *)) d->cryptoLib->resolveFunction("CRYPTO_free");
|
|
||||||
+#else
|
|
||||||
+ K_CRYPTO_free = (void (*)(void *, const char *, int)) d->cryptoLib->resolveFunction("CRYPTO_free");
|
|
||||||
+#endif
|
|
||||||
K_d2i_X509 = (X509 * (*)(X509 **,unsigned char **,long)) d->cryptoLib->resolveFunction("d2i_X509");
|
|
||||||
K_i2d_X509 = (int (*)(X509 *,unsigned char **)) d->cryptoLib->resolveFunction("i2d_X509");
|
|
||||||
K_X509_cmp = (int (*)(X509 *, X509 *)) d->cryptoLib->resolveFunction("X509_cmp");
|
|
||||||
@@ -419,15 +440,19 @@ KOpenSSLProxy::KOpenSSLProxy()
|
|
||||||
K_X509_verify_cert = (int (*) (X509_STORE_CTX *)) d->cryptoLib->resolveFunction("X509_verify_cert");
|
|
||||||
K_X509_STORE_new = (X509_STORE * (*) (void)) d->cryptoLib->resolveFunction("X509_STORE_new");
|
|
||||||
K_X509_STORE_free = (void (*) (X509_STORE *)) d->cryptoLib->resolveFunction("X509_STORE_free");
|
|
||||||
+ K_X509_STORE_set_verify_cb = (void (*)(X509_STORE *, int (*)(int, X509_STORE_CTX *))) d->cryptoLib->resolveFunction("X509_STORE_set_verify_cb");
|
|
||||||
K_X509_NAME_oneline = (char * (*) (X509_NAME *,char *,int)) d->cryptoLib->resolveFunction("X509_NAME_oneline");
|
|
||||||
K_X509_get_subject_name = (X509_NAME * (*) (X509 *)) d->cryptoLib->resolveFunction("X509_get_subject_name");
|
|
||||||
K_X509_get_issuer_name = (X509_NAME * (*) (X509 *)) d->cryptoLib->resolveFunction("X509_get_issuer_name");
|
|
||||||
+ K_X509_get0_signature = (void (*)(const ASN1_BIT_STRING **, const X509_ALGOR **, const X509 *)) d->cryptoLib->resolveFunction("X509_get0_signature");
|
|
||||||
K_X509_STORE_add_lookup = (X509_LOOKUP *(*) (X509_STORE *, X509_LOOKUP_METHOD *)) d->cryptoLib->resolveFunction("X509_STORE_add_lookup");
|
|
||||||
K_X509_LOOKUP_file = (X509_LOOKUP_METHOD *(*)(void)) d->cryptoLib->resolveFunction("X509_LOOKUP_file");
|
|
||||||
K_X509_LOOKUP_free = (void (*)(X509_LOOKUP *)) d->cryptoLib->resolveFunction("X509_LOOKUP_free");
|
|
||||||
K_X509_LOOKUP_ctrl = (int (*)(X509_LOOKUP *, int, const char *, long, char **)) d->cryptoLib->resolveFunction("X509_LOOKUP_ctrl");
|
|
||||||
K_X509_STORE_CTX_init = (void (*)(X509_STORE_CTX *, X509_STORE *, X509 *, STACK_OF(X509) *)) d->cryptoLib->resolveFunction("X509_STORE_CTX_init");
|
|
||||||
K_X509_dup = (X509* (*)(X509*)) d->cryptoLib->resolveFunction("X509_dup");
|
|
||||||
+ K_X509_getm_notBefore = (ASN1_TIME *(*)(const X509 *)) d->cryptoLib->resolveFunction("X509_getm_notBefore");
|
|
||||||
+ K_X509_getm_notAfter = (ASN1_TIME *(*)(const X509 *)) d->cryptoLib->resolveFunction("X509_getm_notAfter");
|
|
||||||
K_BIO_s_mem = (BIO_METHOD *(*) (void)) d->cryptoLib->resolveFunction("BIO_s_mem");
|
|
||||||
K_BIO_new = (BIO* (*)(BIO_METHOD *)) d->cryptoLib->resolveFunction("BIO_new");
|
|
||||||
K_BIO_new_fp = (BIO* (*)(FILE*, int)) d->cryptoLib->resolveFunction("BIO_new_fp");
|
|
||||||
@@ -454,13 +479,26 @@ KOpenSSLProxy::KOpenSSLProxy()
|
|
||||||
K_X509_REQ_new = (X509_REQ* (*)()) d->cryptoLib->resolveFunction("X509_REQ_new");
|
|
||||||
K_X509_STORE_CTX_set_chain = (void (*)(X509_STORE_CTX *, STACK_OF(X509)*)) d->cryptoLib->resolveFunction("X509_STORE_CTX_set_chain");
|
|
||||||
K_X509_STORE_CTX_set_purpose = (void (*)(X509_STORE_CTX *, int)) d->cryptoLib->resolveFunction("X509_STORE_CTX_set_purpose");
|
|
||||||
- K_sk_free = (void (*) (STACK *)) d->cryptoLib->resolveFunction("sk_free");
|
|
||||||
- K_sk_num = (int (*) (STACK *)) d->cryptoLib->resolveFunction("sk_num");
|
|
||||||
- K_sk_pop = (char* (*) (STACK *)) d->cryptoLib->resolveFunction("sk_pop");
|
|
||||||
- K_sk_value = (char* (*) (STACK *, int)) d->cryptoLib->resolveFunction("sk_value");
|
|
||||||
- K_sk_new = (STACK* (*) (int (*)())) d->cryptoLib->resolveFunction("sk_new");
|
|
||||||
- K_sk_push = (int (*) (STACK*, char*)) d->cryptoLib->resolveFunction("sk_push");
|
|
||||||
- K_sk_dup = (STACK* (*) (STACK *)) d->cryptoLib->resolveFunction("sk_dup");
|
|
||||||
+ K_X509_STORE_CTX_get_current_cert = (X509 * (*)(X509_STORE_CTX *)) d->cryptoLib->resolveFunction("X509_STORE_CTX_get_current_cert");
|
|
||||||
+ K_X509_STORE_CTX_set_error = (void (*)(X509_STORE_CTX *, int)) d->cryptoLib->resolveFunction("X509_STORE_CTX_set_error");
|
|
||||||
+ K_X509_STORE_CTX_get_error = (int (*)(X509_STORE_CTX *)) d->cryptoLib->resolveFunction("X509_STORE_CTX_get_error");
|
|
||||||
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
|
||||||
+ K_OPENSSL_sk_free = (void (*)(STACK *)) d->cryptoLib->resolveFunction("OPENSSL_sk_free");
|
|
||||||
+ K_OPENSSL_sk_num = (int (*)(STACK *)) d->cryptoLib->resolveFunction("OPENSSL_sk_num");
|
|
||||||
+ K_OPENSSL_sk_pop = (char *(*)(STACK *)) d->cryptoLib->resolveFunction("OPENSSL_sk_pop");
|
|
||||||
+ K_OPENSSL_sk_value = (char *(*)(STACK *, int)) d->cryptoLib->resolveFunction("OPENSSL_sk_value");
|
|
||||||
+ K_OPENSSL_sk_new = (STACK * (*)(int (*)())) d->cryptoLib->resolveFunction("OPENSSL_sk_new");
|
|
||||||
+ K_OPENSSL_sk_push = (int (*)(STACK *, char *)) d->cryptoLib->resolveFunction("OPENSSL_sk_push");
|
|
||||||
+ K_OPENSSL_sk_dup = (STACK * (*)(STACK *)) d->cryptoLib->resolveFunction("OPENSSL_sk_dup");
|
|
||||||
+#else
|
|
||||||
+ K_OPENSSL_sk_free = (void (*)(STACK *)) d->cryptoLib->resolveFunction("sk_free");
|
|
||||||
+ K_OPENSSL_sk_num = (int (*)(STACK *)) d->cryptoLib->resolveFunction("sk_num");
|
|
||||||
+ K_OPENSSL_sk_pop = (char *(*)(STACK *)) d->cryptoLib->resolveFunction("sk_pop");
|
|
||||||
+ K_OPENSSL_sk_value = (char *(*)(STACK *, int)) d->cryptoLib->resolveFunction("sk_value");
|
|
||||||
+ K_OPENSSL_sk_new = (STACK * (*)(int (*)())) d->cryptoLib->resolveFunction("sk_new");
|
|
||||||
+ K_OPENSSL_sk_push = (int (*)(STACK *, char *)) d->cryptoLib->resolveFunction("sk_push");
|
|
||||||
+ K_OPENSSL_sk_dup = (STACK * (*)(STACK *)) d->cryptoLib->resolveFunction("sk_dup");
|
|
||||||
+#endif
|
|
||||||
K_i2s_ASN1_INTEGER = (char *(*) (X509V3_EXT_METHOD *, ASN1_INTEGER *)) d->cryptoLib->resolveFunction("i2s_ASN1_INTEGER");
|
|
||||||
K_X509_get_serialNumber = (ASN1_INTEGER * (*) (X509 *)) d->cryptoLib->resolveFunction("X509_get_serialNumber");
|
|
||||||
K_X509_get_pubkey = (EVP_PKEY *(*)(X509 *)) d->cryptoLib->resolveFunction("X509_get_pubkey");
|
|
||||||
@@ -504,6 +542,12 @@ KOpenSSLProxy::KOpenSSLProxy()
|
|
||||||
K_X509_check_purpose = (int (*)(X509*,int,int)) d->cryptoLib->resolveFunction("X509_check_purpose");
|
|
||||||
K_X509_PURPOSE_get0 = (X509_PURPOSE *(*)(int)) d->cryptoLib->resolveFunction("X509_PURPOSE_get0");
|
|
||||||
K_EVP_PKEY_assign = (int (*)(EVP_PKEY*, int, char*)) d->cryptoLib->resolveFunction("EVP_PKEY_assign");
|
|
||||||
+ K_EVP_PKEY_base_id = (int (*)(EVP_PKEY *)) d->cryptoLib->resolveFunction("EVP_PKEY_base_id");
|
|
||||||
+ K_EVP_PKEY_get0_RSA = (RSA *(*)(EVP_PKEY *)) d->cryptoLib->resolveFunction("EVP_PKEY_get0_RSA");
|
|
||||||
+ K_RSA_get0_key = (void (*)(RSA *, const BIGNUM **, const BIGNUM **, const BIGNUM **)) d->cryptoLib->resolveFunction("ESA_get0_key");
|
|
||||||
+ K_EVP_PKEY_get0_DSA = (DSA *(*)(EVP_PKEY *)) d->cryptoLib->resolveFunction("EVP_PKEY_get0_DSA");
|
|
||||||
+ K_DSA_get0_pqg = (void (*)(DSA *, const BIGNUM **, const BIGNUM **, const BIGNUM **)) d->cryptoLib->resolveFunction("DSA_get0_pqg");
|
|
||||||
+ K_DSA_get0_key = (void (*)(DSA *, const BIGNUM **, const BIGNUM **)) d->cryptoLib->resolveFunction("DSA_get0_key");
|
|
||||||
K_X509_REQ_set_pubkey = (int (*)(X509_REQ*, EVP_PKEY*)) d->cryptoLib->resolveFunction("X509_REQ_set_pubkey");
|
|
||||||
K_RSA_generate_key = (RSA* (*)(int, unsigned long, void (*)(int,int,void *), void *)) d->cryptoLib->resolveFunction("RSA_generate_key");
|
|
||||||
K_i2d_X509_REQ_fp = (int (*)(FILE *, X509_REQ *)) d->cryptoLib->resolveFunction("i2d_X509_REQ_fp");
|
|
||||||
@@ -866,6 +910,16 @@ void KOpenSSLProxy::X509_STORE_free(X509_STORE *v) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
+void KOpenSSLProxy::X509_STORE_set_verify_cb(X509_STORE *store, int (*verify_cb)(int, X509_STORE_CTX *))
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ X509_STORE_set_verify_cb_func(store, verify_cb);
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_STORE_set_verify_cb) (K_X509_STORE_set_verify_cb)(store, verify_cb);
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
X509_STORE_CTX *KOpenSSLProxy::X509_STORE_CTX_new(void) {
|
|
||||||
if (K_X509_STORE_CTX_new) return (K_X509_STORE_CTX_new)();
|
|
||||||
return 0L;
|
|
||||||
@@ -906,6 +960,17 @@ X509_NAME *KOpenSSLProxy::X509_get_issuer_name(X509 *a) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
+void KOpenSSLProxy::X509_get0_signature(const ASN1_BIT_STRING **psig, const X509_ALGOR **algor, const X509 *x)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ if (psig) *psig = x->signature;
|
|
||||||
+ if (algor) *algor = x->sig_alg;
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_get0_signature) return (K_X509_get0_signature)(psig, algor, x);
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
X509_LOOKUP *KOpenSSLProxy::X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m) {
|
|
||||||
if (K_X509_STORE_add_lookup) return (K_X509_STORE_add_lookup)(v,m);
|
|
||||||
return 0L;
|
|
||||||
@@ -934,9 +999,16 @@ void KOpenSSLProxy::X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
void KOpenSSLProxy::CRYPTO_free(void *x) {
|
|
||||||
if (K_CRYPTO_free) (K_CRYPTO_free)(x);
|
|
||||||
}
|
|
||||||
+#else
|
|
||||||
+void KOpenSSLProxy::CRYPTO_free(void *x, const char *file, int line)
|
|
||||||
+{
|
|
||||||
+ if (K_CRYPTO_free) K_CRYPTO_free(x, file, line);
|
|
||||||
+}
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
|
|
||||||
X509 *KOpenSSLProxy::X509_dup(X509 *x509) {
|
|
||||||
@@ -945,6 +1017,28 @@ X509 *KOpenSSLProxy::X509_dup(X509 *x509) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
+ASN1_TIME *KOpenSSLProxy::X509_getm_notBefore(const X509 *x)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return X509_get_notBefore(x);
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_getm_notBefore) return (K_X509_getm_notBefore)(x);
|
|
||||||
+ else return 0L;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ASN1_TIME *KOpenSSLProxy::X509_getm_notAfter(const X509 *x)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return X509_get_notAfter(x);
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_getm_notAfter) return (K_X509_getm_notAfter)(x);
|
|
||||||
+ else return 0L;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
BIO *KOpenSSLProxy::BIO_new(BIO_METHOD *type) {
|
|
||||||
if (K_BIO_new) return (K_BIO_new)(type);
|
|
||||||
else return 0L;
|
|
||||||
@@ -1093,25 +1187,25 @@ STACK_OF(X509) *KOpenSSLProxy::SSL_get_peer_cert_chain(SSL *s) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-void KOpenSSLProxy::sk_free(STACK *s) {
|
|
||||||
- if (K_sk_free) (K_sk_free)(s);
|
|
||||||
+void KOpenSSLProxy::OPENSSL_sk_free(STACK *s) {
|
|
||||||
+ if (K_OPENSSL_sk_free) (K_OPENSSL_sk_free)(s);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-int KOpenSSLProxy::sk_num(STACK *s) {
|
|
||||||
- if (K_sk_num) return (K_sk_num)(s);
|
|
||||||
+int KOpenSSLProxy::OPENSSL_sk_num(STACK *s) {
|
|
||||||
+ if (K_OPENSSL_sk_num) return (K_OPENSSL_sk_num)(s);
|
|
||||||
else return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-char *KOpenSSLProxy::sk_pop(STACK *s) {
|
|
||||||
- if (K_sk_pop) return (K_sk_pop)(s);
|
|
||||||
+char *KOpenSSLProxy::OPENSSL_sk_pop(STACK *s) {
|
|
||||||
+ if (K_OPENSSL_sk_pop) return (K_OPENSSL_sk_pop)(s);
|
|
||||||
else return 0L;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-char *KOpenSSLProxy::sk_value(STACK *s, int n) {
|
|
||||||
- if (K_sk_value) return (K_sk_value)(s, n);
|
|
||||||
+char *KOpenSSLProxy::OPENSSL_sk_value(STACK *s, int n) {
|
|
||||||
+ if (K_OPENSSL_sk_value) return (K_OPENSSL_sk_value)(s, n);
|
|
||||||
else return 0L;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1125,20 +1219,52 @@ void KOpenSSLProxy::X509_STORE_CTX_set_purpose(X509_STORE_CTX *v, int purpose) {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-STACK* KOpenSSLProxy::sk_dup(STACK *s) {
|
|
||||||
- if (K_sk_dup) return (K_sk_dup)(s);
|
|
||||||
+X509 *KOpenSSLProxy::X509_STORE_CTX_get_current_cert(X509_STORE_CTX *v)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return v->current_cert;
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_STORE_CTX_get_current_cert) return (K_X509_STORE_CTX_get_current_cert)(v);
|
|
||||||
+ else return 0L;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+void KOpenSSLProxy::X509_STORE_CTX_set_error(X509_STORE_CTX *v, int error)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ v->error = error;
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_STORE_CTX_set_error) (K_X509_STORE_CTX_set_error)(v, error);
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+int KOpenSSLProxy::X509_STORE_CTX_get_error(X509_STORE_CTX *v)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return v->error;
|
|
||||||
+#else
|
|
||||||
+ if (K_X509_STORE_CTX_get_error) return (K_X509_STORE_CTX_get_error)(v);
|
|
||||||
+ else return 0;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+STACK* KOpenSSLProxy::OPENSSL_sk_dup(STACK *s) {
|
|
||||||
+ if (K_OPENSSL_sk_dup) return (K_OPENSSL_sk_dup)(s);
|
|
||||||
else return 0L;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-STACK* KOpenSSLProxy::sk_new(int (*cmp)()) {
|
|
||||||
- if (K_sk_new) return (K_sk_new)(cmp);
|
|
||||||
+STACK* KOpenSSLProxy::OPENSSL_sk_new(int (*cmp)()) {
|
|
||||||
+ if (K_OPENSSL_sk_new) return (K_OPENSSL_sk_new)(cmp);
|
|
||||||
else return 0L;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-int KOpenSSLProxy::sk_push(STACK* s, char* d) {
|
|
||||||
- if (K_sk_push) return (K_sk_push)(s,d);
|
|
||||||
+int KOpenSSLProxy::OPENSSL_sk_push(STACK* s, char* d) {
|
|
||||||
+ if (K_OPENSSL_sk_push) return (K_OPENSSL_sk_push)(s,d);
|
|
||||||
else return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1423,6 +1549,74 @@ int KOpenSSLProxy::EVP_PKEY_assign(EVP_PKEY *pkey, int type, char *key) {
|
|
||||||
else return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
+
|
|
||||||
+int KOpenSSLProxy::EVP_PKEY_base_id(EVP_PKEY *pkey)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return pkey->type;
|
|
||||||
+#else
|
|
||||||
+ if (K_EVP_PKEY_base_id) return (K_EVP_PKEY_base_id)(pkey);
|
|
||||||
+ else return 0;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+RSA *KOpenSSLProxy::EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return pkey->pkey.rsa;
|
|
||||||
+#else
|
|
||||||
+ if (K_EVP_PKEY_get0_RSA) return (K_EVP_PKEY_get0_RSA)(pkey);
|
|
||||||
+ else return 0L;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+void KOpenSSLProxy::RSA_get0_key(RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ if (n) *n = rsa->n;
|
|
||||||
+ if (e) *e = rsa->e;
|
|
||||||
+ if (d) *d = rsa->d;
|
|
||||||
+#else
|
|
||||||
+ if (K_RSA_get0_key) (K_RSA_get0_key)(rsa, n, e, d);
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+DSA *KOpenSSLProxy::EVP_PKEY_get0_DSA(EVP_PKEY *pkey)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ return pkey->pkey.dsa;
|
|
||||||
+#else
|
|
||||||
+ if (K_EVP_PKEY_get0_DSA) return (K_EVP_PKEY_get0_DSA)(pkey);
|
|
||||||
+ else return 0L;
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+void KOpenSSLProxy::DSA_get0_pqg(DSA *dsa, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ if (p) *p = dsa->p;
|
|
||||||
+ if (q) *q = dsa->q;
|
|
||||||
+ if (g) *g = dsa->g;
|
|
||||||
+#else
|
|
||||||
+ if (K_DSA_get0_pqg) (K_DSA_get0_pqg)(dsa, p, q, g);
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+void KOpenSSLProxy::DSA_get0_key(DSA *dsa, const BIGNUM **pub_key, const BIGNUM **priv_key)
|
|
||||||
+{
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
+ if (pub_key) *pub_key = dsa->pub_key;
|
|
||||||
+ if (priv_key) *priv_key = dsa->priv_key;
|
|
||||||
+#else
|
|
||||||
+ if (K_DSA_get0_key) (K_DSA_get0_key)(dsa, pub_key, priv_key);
|
|
||||||
+#endif
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
|
|
||||||
int KOpenSSLProxy::X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey) {
|
|
||||||
if (K_X509_REQ_set_pubkey) return (K_X509_REQ_set_pubkey)(x, pkey);
|
|
||||||
diff --git a/kio/kssl/kopenssl.h b/kio/kssl/kopenssl.h
|
|
||||||
index ab05486336..ae3398fbef 100644
|
|
||||||
--- a/kio/kssl/kopenssl.h
|
|
||||||
+++ b/kio/kssl/kopenssl.h
|
|
||||||
@@ -297,6 +297,18 @@ public:
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
+ * X509_getm_notBefore - get validity start
|
|
||||||
+ */
|
|
||||||
+ ASN1_TIME *X509_getm_notBefore(const X509 *x);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
+ * X509_getm_notAfter - get validity end
|
|
||||||
+ */
|
|
||||||
+ ASN1_TIME *X509_getm_notAfter(const X509 *x);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
* X509_STORE_CTX_new - create an X509 store context
|
|
||||||
*/
|
|
||||||
X509_STORE_CTX *X509_STORE_CTX_new(void);
|
|
||||||
@@ -313,11 +325,31 @@ public:
|
|
||||||
*/
|
|
||||||
void X509_STORE_CTX_set_chain(X509_STORE_CTX *v, STACK_OF(X509)* x);
|
|
||||||
|
|
||||||
+
|
|
||||||
/*
|
|
||||||
* X509_STORE_CTX_set_purpose - set the purpose of the certificate
|
|
||||||
*/
|
|
||||||
void X509_STORE_CTX_set_purpose(X509_STORE_CTX *v, int purpose);
|
|
||||||
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
+ * X509_STORE_CTX_get_current_cert - get the current certificate
|
|
||||||
+ */
|
|
||||||
+ X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *v);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
+ * X509_STORE_CTX_set_error - set certificate error
|
|
||||||
+ */
|
|
||||||
+ void X509_STORE_CTX_set_error(X509_STORE_CTX *v, int error);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
+ * X509_STORE_CTX_get_error - get certificate error
|
|
||||||
+ */
|
|
||||||
+ int X509_STORE_CTX_get_error(X509_STORE_CTX *v);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
/*
|
|
||||||
* X509_verify_cert - verify the certificate
|
|
||||||
*/
|
|
||||||
@@ -337,6 +369,12 @@ public:
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
+ * X509_STORE_set_verify_cb - set verify callback
|
|
||||||
+ */
|
|
||||||
+ void X509_STORE_set_verify_cb(X509_STORE *v, int (*verify_cb)(int, X509_STORE_CTX *));
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
* X509_free - free up an X509
|
|
||||||
*/
|
|
||||||
void X509_free(X509 *v);
|
|
||||||
@@ -361,6 +399,12 @@ public:
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
+ * X509_get0_signature - return X509 signature and signature algorithm
|
|
||||||
+ */
|
|
||||||
+ void X509_get0_signature(const ASN1_BIT_STRING **psig, const X509_ALGOR **palg, const X509 *x);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
* X509_STORE_add_lookup - add a lookup file/method to an X509 store
|
|
||||||
*/
|
|
||||||
X509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m);
|
|
||||||
@@ -393,7 +437,11 @@ public:
|
|
||||||
/*
|
|
||||||
* CRYPTO_free - free up an internally allocated object
|
|
||||||
*/
|
|
||||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
void CRYPTO_free(void *x);
|
|
||||||
+#else
|
|
||||||
+ void CRYPTO_free(void *x, const char *file, int line);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* BIO_new - create new BIO
|
|
||||||
@@ -505,53 +553,53 @@ public:
|
|
||||||
/*
|
|
||||||
* Pop off the stack
|
|
||||||
*/
|
|
||||||
- char *sk_pop(STACK *s);
|
|
||||||
+ char *OPENSSL_sk_pop(STACK *s);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Free the stack
|
|
||||||
*/
|
|
||||||
- void sk_free(STACK *s);
|
|
||||||
+ void OPENSSL_sk_free(STACK *s);
|
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
|
||||||
- void sk_free(void *s) { return sk_free(reinterpret_cast<STACK*>(s)); }
|
|
||||||
+ void OPENSSL_sk_free(void *s) { return OPENSSL_sk_free(reinterpret_cast<STACK*>(s)); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Number of elements in the stack
|
|
||||||
*/
|
|
||||||
- int sk_num(STACK *s);
|
|
||||||
+ int OPENSSL_sk_num(STACK *s);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Value of element n in the stack
|
|
||||||
*/
|
|
||||||
- char *sk_value(STACK *s, int n);
|
|
||||||
+ char *OPENSSL_sk_value(STACK *s, int n);
|
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
|
||||||
- char *sk_value(void *s, int n) { return sk_value(reinterpret_cast<STACK*>(s), n); }
|
|
||||||
+ char *OPENSSL_sk_value(void *s, int n) { return OPENSSL_sk_value(reinterpret_cast<STACK*>(s), n); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Create a new stack
|
|
||||||
*/
|
|
||||||
- STACK *sk_new(int (*cmp)());
|
|
||||||
+ STACK *OPENSSL_sk_new(int (*cmp)());
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Add an element to the stack
|
|
||||||
*/
|
|
||||||
- int sk_push(STACK *s, char *d);
|
|
||||||
+ int OPENSSL_sk_push(STACK *s, char *d);
|
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
|
|
||||||
- int sk_push(void *s, void *d) { return sk_push(reinterpret_cast<STACK*>(s), reinterpret_cast<char*>(d)); }
|
|
||||||
+ int OPENSSL_sk_push(void *s, void *d) { return OPENSSL_sk_push(reinterpret_cast<STACK*>(s), reinterpret_cast<char*>(d)); }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Duplicate the stack
|
|
||||||
*/
|
|
||||||
- STACK *sk_dup(STACK *s);
|
|
||||||
+ STACK *OPENSSL_sk_dup(STACK *s);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
@@ -800,6 +848,18 @@ public:
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
+ * Get key type
|
|
||||||
+ */
|
|
||||||
+ int EVP_PKEY_base_id(EVP_PKEY *pkey);
|
|
||||||
+
|
|
||||||
+ RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey);
|
|
||||||
+ void RSA_get0_key(RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);
|
|
||||||
+ DSA *EVP_PKEY_get0_DSA(EVP_PKEY *pkey);
|
|
||||||
+ void DSA_get0_pqg(DSA *dsa, const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);
|
|
||||||
+ void DSA_get0_key(DSA *dsa, const BIGNUM **pub_key, const BIGNUM **priv_key);
|
|
||||||
+
|
|
||||||
+
|
|
||||||
+ /*
|
|
||||||
* Generate a RSA key
|
|
||||||
*/
|
|
||||||
RSA *RSA_generate_key(int bits, unsigned long e, void
|
|
||||||
diff --git a/kio/kssl/kssl.cpp b/kio/kssl/kssl.cpp
|
|
||||||
index c36db55a42..faba1bb5ab 100644
|
|
||||||
--- a/kio/kssl/kssl.cpp
|
|
||||||
+++ b/kio/kssl/kssl.cpp
|
|
||||||
@@ -55,8 +55,6 @@
|
|
||||||
#warning "kssl.cc needs to be ported to QSslSocket"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#define sk_dup d->kossl->sk_dup
|
|
||||||
-
|
|
||||||
class KSSLPrivate {
|
|
||||||
public:
|
|
||||||
KSSLPrivate() {
|
|
||||||
@@ -212,5 +210,3 @@ bool KSSL::doesSSLWork() {
|
|
||||||
return m_bSSLWorks;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#undef sk_dup
|
|
||||||
-
|
|
||||||
diff --git a/kio/kssl/ksslcallback.c b/kio/kssl/ksslcallback.c
|
|
||||||
index 516b916337..38e94356e8 100644
|
|
||||||
--- a/kio/kssl/ksslcallback.c
|
|
||||||
+++ b/kio/kssl/ksslcallback.c
|
|
||||||
@@ -28,7 +28,7 @@ bool KSSL_X509CallBack_ca_found;
|
|
||||||
extern "C" {
|
|
||||||
static int X509Callback(int ok, X509_STORE_CTX *ctx) {
|
|
||||||
|
|
||||||
- kDebug(7029) << "X509Callback: ok = " << ok << " error = " << ctx->error << " depth = " << ctx->error_depth;
|
|
||||||
+ //kDebug(7029) << "X509Callback: ok = " << ok << " error = " << ctx->error << " depth = " << ctx->error_depth;
|
|
||||||
// Here is how this works. We put "ok = 1;" in any case that we
|
|
||||||
// don't consider to be an error. In that case, it will return OK
|
|
||||||
// for the certificate check as long as there are no other critical
|
|
||||||
@@ -39,14 +39,14 @@ static int X509Callback(int ok, X509_STORE_CTX *ctx) {
|
|
||||||
|
|
||||||
if (KSSL_X509CallBack_ca)
|
|
||||||
{
|
|
||||||
- if (KOSSL::self()->X509_cmp(ctx->current_cert, KSSL_X509CallBack_ca) != 0)
|
|
||||||
+ if (KOSSL::self()->X509_cmp(KOSSL::self()->X509_STORE_CTX_get_current_cert(ctx), KSSL_X509CallBack_ca) != 0)
|
|
||||||
return 1; // Ignore errors for this certificate
|
|
||||||
|
|
||||||
KSSL_X509CallBack_ca_found = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!ok) {
|
|
||||||
- switch (ctx->error) {
|
|
||||||
+ switch (KOSSL::self()->X509_STORE_CTX_get_error(ctx)) {
|
|
||||||
case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
|
|
||||||
case X509_V_ERR_UNABLE_TO_GET_CRL:
|
|
||||||
case X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE:
|
|
||||||
diff --git a/kio/kssl/ksslcertchain.cpp b/kio/kssl/ksslcertchain.cpp
|
|
||||||
index 2be7995bf8..cdfab2b5ae 100644
|
|
||||||
--- a/kio/kssl/ksslcertchain.cpp
|
|
||||||
+++ b/kio/kssl/ksslcertchain.cpp
|
|
||||||
@@ -44,16 +44,6 @@
|
|
||||||
#include <kdebug.h>
|
|
||||||
#include <QtCore/QStringList>
|
|
||||||
|
|
||||||
-#ifdef KSSL_HAVE_SSL
|
|
||||||
-#define sk_new d->kossl->sk_new
|
|
||||||
-#define sk_push d->kossl->sk_push
|
|
||||||
-#define sk_free d->kossl->sk_free
|
|
||||||
-#define sk_value d->kossl->sk_value
|
|
||||||
-#define sk_num d->kossl->sk_num
|
|
||||||
-#define sk_dup d->kossl->sk_dup
|
|
||||||
-#define sk_pop d->kossl->sk_pop
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
class KSSLCertChainPrivate {
|
|
||||||
public:
|
|
||||||
KSSLCertChainPrivate() {
|
|
||||||
@@ -79,11 +69,11 @@ KSSLCertChain::~KSSLCertChain() {
|
|
||||||
STACK_OF(X509) *x = (STACK_OF(X509) *)_chain;
|
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
- X509* x5 = sk_X509_pop(x);
|
|
||||||
+ X509 *x5 = reinterpret_cast<X509*>(d->kossl->OPENSSL_sk_pop(reinterpret_cast<STACK *>(x)));
|
|
||||||
if (!x5) break;
|
|
||||||
d->kossl->X509_free(x5);
|
|
||||||
}
|
|
||||||
- sk_X509_free(x);
|
|
||||||
+ d->kossl->OPENSSL_sk_free(reinterpret_cast<STACK *>(x));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
delete d;
|
|
||||||
@@ -106,7 +96,7 @@ KSSLCertChain *KSSLCertChain::replicate() {
|
|
||||||
|
|
||||||
int KSSLCertChain::depth() {
|
|
||||||
#ifdef KSSL_HAVE_SSL
|
|
||||||
- return sk_X509_num((STACK_OF(X509)*)_chain);
|
|
||||||
+ return d->kossl->OPENSSL_sk_num(static_cast<STACK *>(_chain));
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
@@ -123,8 +113,8 @@ QList<KSSLCertificate *> KSSLCertChain::getChain() const {
|
|
||||||
#ifdef KSSL_HAVE_SSL
|
|
||||||
STACK_OF(X509) *x = (STACK_OF(X509) *)_chain;
|
|
||||||
|
|
||||||
- for (int i = 0; i < sk_X509_num(x); i++) {
|
|
||||||
- X509* x5 = sk_X509_value(x, i);
|
|
||||||
+ for (int i = 0; i < d->kossl->OPENSSL_sk_num(reinterpret_cast<STACK *>(x)); i++) {
|
|
||||||
+ X509 *x5 = reinterpret_cast<X509*>(d->kossl->OPENSSL_sk_value(reinterpret_cast<STACK *>(x), i));
|
|
||||||
if (!x5) continue;
|
|
||||||
KSSLCertificate *nc = new KSSLCertificate;
|
|
||||||
nc->setCert(d->kossl->X509_dup(x5));
|
|
||||||
@@ -142,18 +132,18 @@ void KSSLCertChain::setChain(const QList<KSSLCertificate *>& chain) {
|
|
||||||
STACK_OF(X509) *x = (STACK_OF(X509) *)_chain;
|
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
- X509* x5 = sk_X509_pop(x);
|
|
||||||
+ X509 *x5 = reinterpret_cast<X509*>(d->kossl->OPENSSL_sk_pop(reinterpret_cast<STACK*>(x)));
|
|
||||||
if (!x5) break;
|
|
||||||
d->kossl->X509_free(x5);
|
|
||||||
}
|
|
||||||
- sk_X509_free(x);
|
|
||||||
- _chain = NULL;
|
|
||||||
+ d->kossl->OPENSSL_sk_free(reinterpret_cast<STACK*>(x));
|
|
||||||
+ _chain = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (chain.isEmpty()) return;
|
|
||||||
- _chain = (void *)sk_new(NULL);
|
|
||||||
+ _chain = (void *)d->kossl->OPENSSL_sk_new(NULL);
|
|
||||||
foreach (KSSLCertificate *x, chain) {
|
|
||||||
- sk_X509_push((STACK_OF(X509)*)_chain, d->kossl->X509_dup(x->getCert()));
|
|
||||||
+ d->kossl->OPENSSL_sk_push(static_cast<STACK*>(_chain), d->kossl->X509_dup(x->getCert()));
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
@@ -166,23 +156,23 @@ if (_chain) {
|
|
||||||
STACK_OF(X509) *x = (STACK_OF(X509) *)_chain;
|
|
||||||
|
|
||||||
for (;;) {
|
|
||||||
- X509* x5 = sk_X509_pop(x);
|
|
||||||
+ X509 *x5 = reinterpret_cast<X509 *>(d->kossl->OPENSSL_sk_pop(reinterpret_cast<STACK *>(x)));
|
|
||||||
if (!x5) break;
|
|
||||||
d->kossl->X509_free(x5);
|
|
||||||
}
|
|
||||||
- sk_X509_free(x);
|
|
||||||
+ d->kossl->OPENSSL_sk_free(reinterpret_cast<STACK *>(x));
|
|
||||||
_chain = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!stack_of_x509) return;
|
|
||||||
|
|
||||||
-_chain = (void *)sk_new(NULL);
|
|
||||||
+_chain = (void *)d->kossl->OPENSSL_sk_new(NULL);
|
|
||||||
STACK_OF(X509) *x = (STACK_OF(X509) *)stack_of_x509;
|
|
||||||
|
|
||||||
- for (int i = 0; i < sk_X509_num(x); i++) {
|
|
||||||
- X509* x5 = sk_X509_value(x, i);
|
|
||||||
+ for (int i = 0; i < d->kossl->OPENSSL_sk_num(reinterpret_cast<STACK *>(x)); i++) {
|
|
||||||
+ X509 *x5 = reinterpret_cast<X509*>(d->kossl->OPENSSL_sk_value(reinterpret_cast<STACK *>(x), i));
|
|
||||||
if (!x5) continue;
|
|
||||||
- sk_X509_push((STACK_OF(X509)*)_chain,d->kossl->X509_dup(x5));
|
|
||||||
+ d->kossl->OPENSSL_sk_push(reinterpret_cast<STACK *>(_chain), d->kossl->X509_dup(x5));
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
@@ -202,14 +192,3 @@ void KSSLCertChain::setCertChain(const QStringList& chain) {
|
|
||||||
setChain(cl);
|
|
||||||
}
|
|
||||||
|
|
||||||
-
|
|
||||||
-#ifdef KSSL_HAVE_SSL
|
|
||||||
-#undef sk_new
|
|
||||||
-#undef sk_push
|
|
||||||
-#undef sk_free
|
|
||||||
-#undef sk_value
|
|
||||||
-#undef sk_num
|
|
||||||
-#undef sk_dup
|
|
||||||
-#undef sk_pop
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
diff --git a/kio/kssl/ksslcertificate.cpp b/kio/kssl/ksslcertificate.cpp
|
|
||||||
index 0d4fbd9cdc..c93d5c5b22 100644
|
|
||||||
--- a/kio/kssl/ksslcertificate.cpp
|
|
||||||
+++ b/kio/kssl/ksslcertificate.cpp
|
|
||||||
@@ -200,14 +200,17 @@ QString KSSLCertificate::getSignatureText() const {
|
|
||||||
char *s;
|
|
||||||
int n, i;
|
|
||||||
|
|
||||||
- i = d->kossl->OBJ_obj2nid(d->m_cert->sig_alg->algorithm);
|
|
||||||
+ const X509_ALGOR *algor;
|
|
||||||
+ const ASN1_BIT_STRING *sig;
|
|
||||||
+ d->kossl->X509_get0_signature(&sig, &algor, d->m_cert);
|
|
||||||
+ i = d->kossl->OBJ_obj2nid(algor->algorithm);
|
|
||||||
rc = i18n("Signature Algorithm: ");
|
|
||||||
rc += (i == NID_undef)?i18n("Unknown"):QString(d->kossl->OBJ_nid2ln(i));
|
|
||||||
|
|
||||||
rc += '\n';
|
|
||||||
rc += i18n("Signature Contents:");
|
|
||||||
- n = d->m_cert->signature->length;
|
|
||||||
- s = (char *)d->m_cert->signature->data;
|
|
||||||
+ n = sig->length;
|
|
||||||
+ s = (char *)sig->data;
|
|
||||||
for (i = 0; i < n; ++i) {
|
|
||||||
if (i%20 != 0) {
|
|
||||||
rc += ':';
|
|
||||||
@@ -233,9 +236,10 @@ void KSSLCertificate::getEmails(QStringList &to) const {
|
|
||||||
}
|
|
||||||
|
|
||||||
STACK *s = d->kossl->X509_get1_email(d->m_cert);
|
|
||||||
+ const int size = d->kossl->OPENSSL_sk_num(s);
|
|
||||||
if (s) {
|
|
||||||
- for(int n=0; n < s->num; n++) {
|
|
||||||
- to.append(d->kossl->sk_value(s,n));
|
|
||||||
+ for(int n=0; n < size; n++) {
|
|
||||||
+ to.append(d->kossl->OPENSSL_sk_value(s,n));
|
|
||||||
}
|
|
||||||
d->kossl->X509_email_free(s);
|
|
||||||
}
|
|
||||||
@@ -317,13 +321,13 @@ QString rc = "";
|
|
||||||
EVP_PKEY *pkey = d->kossl->X509_get_pubkey(d->m_cert);
|
|
||||||
if (pkey) {
|
|
||||||
#ifndef NO_RSA
|
|
||||||
- if (pkey->type == EVP_PKEY_RSA) {
|
|
||||||
+ if (d->kossl->EVP_PKEY_base_id(pkey) == EVP_PKEY_RSA) {
|
|
||||||
rc = "RSA";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
#endif
|
|
||||||
#ifndef NO_DSA
|
|
||||||
- if (pkey->type == EVP_PKEY_DSA) {
|
|
||||||
+ if (d->kossl->EVP_PKEY_base_id(pkey) == EVP_PKEY_DSA) {
|
|
||||||
rc = "DSA";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
@@ -347,8 +351,10 @@ char *x = NULL;
|
|
||||||
if (pkey) {
|
|
||||||
rc = i18nc("Unknown", "Unknown key algorithm");
|
|
||||||
#ifndef NO_RSA
|
|
||||||
- if (pkey->type == EVP_PKEY_RSA) {
|
|
||||||
- x = d->kossl->BN_bn2hex(pkey->pkey.rsa->n);
|
|
||||||
+ if (d->kossl->EVP_PKEY_base_id(pkey) == EVP_PKEY_RSA) {
|
|
||||||
+ const BIGNUM *n, *e;
|
|
||||||
+ d->kossl->RSA_get0_key(d->kossl->EVP_PKEY_get0_RSA(pkey), &n, &e, NULL);
|
|
||||||
+ x = d->kossl->BN_bn2hex(n);
|
|
||||||
rc = i18n("Key type: RSA (%1 bit)", strlen(x)*4) + '\n';
|
|
||||||
|
|
||||||
rc += i18n("Modulus: ");
|
|
||||||
@@ -364,15 +370,18 @@ char *x = NULL;
|
|
||||||
rc += '\n';
|
|
||||||
d->kossl->OPENSSL_free(x);
|
|
||||||
|
|
||||||
- x = d->kossl->BN_bn2hex(pkey->pkey.rsa->e);
|
|
||||||
+ x = d->kossl->BN_bn2hex(e);
|
|
||||||
rc += i18n("Exponent: 0x") + QLatin1String(x) +
|
|
||||||
QLatin1String("\n");
|
|
||||||
d->kossl->OPENSSL_free(x);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#ifndef NO_DSA
|
|
||||||
- if (pkey->type == EVP_PKEY_DSA) {
|
|
||||||
- x = d->kossl->BN_bn2hex(pkey->pkey.dsa->p);
|
|
||||||
+ if (d->kossl->EVP_PKEY_base_id(pkey) == EVP_PKEY_DSA) {
|
|
||||||
+ DSA *dsa = d->kossl->EVP_PKEY_get0_DSA(pkey);
|
|
||||||
+ const BIGNUM *p, *q, *g;
|
|
||||||
+ d->kossl->DSA_get0_pqg(dsa, &p, &q, &g);
|
|
||||||
+ x = d->kossl->BN_bn2hex(p);
|
|
||||||
// hack - this may not be always accurate
|
|
||||||
rc = i18n("Key type: DSA (%1 bit)", strlen(x)*4) + '\n';
|
|
||||||
|
|
||||||
@@ -389,7 +398,7 @@ char *x = NULL;
|
|
||||||
rc += '\n';
|
|
||||||
d->kossl->OPENSSL_free(x);
|
|
||||||
|
|
||||||
- x = d->kossl->BN_bn2hex(pkey->pkey.dsa->q);
|
|
||||||
+ x = d->kossl->BN_bn2hex(q);
|
|
||||||
rc += i18n("160 bit prime factor: ");
|
|
||||||
for (unsigned int i = 0; i < strlen(x); i++) {
|
|
||||||
if (i%40 != 0 && i%2 == 0) {
|
|
||||||
@@ -403,7 +412,7 @@ char *x = NULL;
|
|
||||||
rc += '\n';
|
|
||||||
d->kossl->OPENSSL_free(x);
|
|
||||||
|
|
||||||
- x = d->kossl->BN_bn2hex(pkey->pkey.dsa->g);
|
|
||||||
+ x = d->kossl->BN_bn2hex(g);
|
|
||||||
rc += QString("g: ");
|
|
||||||
for (unsigned int i = 0; i < strlen(x); i++) {
|
|
||||||
if (i%40 != 0 && i%2 == 0) {
|
|
||||||
@@ -417,7 +426,9 @@ char *x = NULL;
|
|
||||||
rc += '\n';
|
|
||||||
d->kossl->OPENSSL_free(x);
|
|
||||||
|
|
||||||
- x = d->kossl->BN_bn2hex(pkey->pkey.dsa->pub_key);
|
|
||||||
+ const BIGNUM *pub_key;
|
|
||||||
+ d->kossl->DSA_get0_key(dsa, &pub_key, NULL);
|
|
||||||
+ x = d->kossl->BN_bn2hex(pub_key);
|
|
||||||
rc += i18n("Public key: ");
|
|
||||||
for (unsigned int i = 0; i < strlen(x); i++) {
|
|
||||||
if (i%40 != 0 && i%2 == 0) {
|
|
||||||
@@ -682,7 +693,7 @@ KSSLCertificate::KSSLValidationList KSSLCertificate::validateVerbose(KSSLCertifi
|
|
||||||
return errors;
|
|
||||||
}
|
|
||||||
|
|
||||||
- X509_STORE_set_verify_cb_func(certStore, X509Callback);
|
|
||||||
+ d->kossl->X509_STORE_set_verify_cb(certStore, X509Callback);
|
|
||||||
|
|
||||||
certLookup = d->kossl->X509_STORE_add_lookup(certStore, d->kossl->X509_LOOKUP_file());
|
|
||||||
if (!certLookup) {
|
|
||||||
@@ -724,9 +735,9 @@ KSSLCertificate::KSSLValidationList KSSLCertificate::validateVerbose(KSSLCertifi
|
|
||||||
KSSL_X509CallBack_ca = ca ? ca->d->m_cert : 0;
|
|
||||||
KSSL_X509CallBack_ca_found = false;
|
|
||||||
|
|
||||||
- certStoreCTX->error = X509_V_OK;
|
|
||||||
+ d->kossl->X509_STORE_CTX_set_error(certStoreCTX, X509_V_OK);
|
|
||||||
rc = d->kossl->X509_verify_cert(certStoreCTX);
|
|
||||||
- int errcode = certStoreCTX->error;
|
|
||||||
+ int errcode = d->kossl->X509_STORE_CTX_get_error(certStoreCTX);
|
|
||||||
if (ca && !KSSL_X509CallBack_ca_found) {
|
|
||||||
ksslv = KSSLCertificate::Irrelevant;
|
|
||||||
} else {
|
|
||||||
@@ -739,9 +750,9 @@ KSSLCertificate::KSSLValidationList KSSLCertificate::validateVerbose(KSSLCertifi
|
|
||||||
d->kossl->X509_STORE_CTX_set_purpose(certStoreCTX,
|
|
||||||
X509_PURPOSE_NS_SSL_SERVER);
|
|
||||||
|
|
||||||
- certStoreCTX->error = X509_V_OK;
|
|
||||||
+ d->kossl->X509_STORE_CTX_set_error(certStoreCTX, X509_V_OK);
|
|
||||||
rc = d->kossl->X509_verify_cert(certStoreCTX);
|
|
||||||
- errcode = certStoreCTX->error;
|
|
||||||
+ errcode = d->kossl->X509_STORE_CTX_get_error(certStoreCTX);
|
|
||||||
ksslv = processError(errcode);
|
|
||||||
}
|
|
||||||
d->kossl->X509_STORE_CTX_free(certStoreCTX);
|
|
||||||
@@ -978,7 +989,7 @@ KSSLCertificate::KSSLValidation KSSLCertificate::processError(int ec) {
|
|
||||||
|
|
||||||
QString KSSLCertificate::getNotBefore() const {
|
|
||||||
#ifdef KSSL_HAVE_SSL
|
|
||||||
- return ASN1_UTCTIME_QString(X509_get_notBefore(d->m_cert));
|
|
||||||
+ return ASN1_UTCTIME_QString(d->kossl->X509_getm_notBefore(d->m_cert));
|
|
||||||
#else
|
|
||||||
return QString();
|
|
||||||
#endif
|
|
||||||
@@ -987,7 +998,7 @@ QString KSSLCertificate::getNotBefore() const {
|
|
||||||
|
|
||||||
QString KSSLCertificate::getNotAfter() const {
|
|
||||||
#ifdef KSSL_HAVE_SSL
|
|
||||||
- return ASN1_UTCTIME_QString(X509_get_notAfter(d->m_cert));
|
|
||||||
+ return ASN1_UTCTIME_QString(d->kossl->X509_getm_notAfter(d->m_cert));
|
|
||||||
#else
|
|
||||||
return QString();
|
|
||||||
#endif
|
|
||||||
@@ -996,7 +1007,7 @@ QString KSSLCertificate::getNotAfter() const {
|
|
||||||
|
|
||||||
QDateTime KSSLCertificate::getQDTNotBefore() const {
|
|
||||||
#ifdef KSSL_HAVE_SSL
|
|
||||||
- return ASN1_UTCTIME_QDateTime(X509_get_notBefore(d->m_cert), NULL);
|
|
||||||
+ return ASN1_UTCTIME_QDateTime(d->kossl->X509_getm_notBefore(d->m_cert), NULL);
|
|
||||||
#else
|
|
||||||
return QDateTime::currentDateTime();
|
|
||||||
#endif
|
|
||||||
@@ -1005,7 +1016,7 @@ QDateTime KSSLCertificate::getQDTNotBefore() const {
|
|
||||||
|
|
||||||
QDateTime KSSLCertificate::getQDTNotAfter() const {
|
|
||||||
#ifdef KSSL_HAVE_SSL
|
|
||||||
- return ASN1_UTCTIME_QDateTime(X509_get_notAfter(d->m_cert), NULL);
|
|
||||||
+ return ASN1_UTCTIME_QDateTime(d->kossl->X509_getm_notAfter(d->m_cert), NULL);
|
|
||||||
#else
|
|
||||||
return QDateTime::currentDateTime();
|
|
||||||
#endif
|
|
||||||
@@ -1210,7 +1221,8 @@ typedef struct NETSCAPE_X509_st
|
|
||||||
// what a piece of crap this is
|
|
||||||
QByteArray KSSLCertificate::toNetscape() {
|
|
||||||
QByteArray qba;
|
|
||||||
-#ifdef KSSL_HAVE_SSL
|
|
||||||
+ // no equivalent in OpenSSL 1.1.0 (?), so behave as if we had no OpenSSL at all
|
|
||||||
+#if KSSL_HAVE_SSL && OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
||||||
NETSCAPE_X509 nx;
|
|
||||||
ASN1_OCTET_STRING hdr;
|
|
||||||
KTemporaryFile ktf;
|
|
||||||
@@ -1293,10 +1305,10 @@ QStringList KSSLCertificate::subjAltNames() const {
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
|
|
||||||
- int cnt = d->kossl->sk_GENERAL_NAME_num(names);
|
|
||||||
+ int cnt = d->kossl->OPENSSL_sk_num((STACK *)names);
|
|
||||||
|
|
||||||
for (int i = 0; i < cnt; i++) {
|
|
||||||
- const GENERAL_NAME *val = (const GENERAL_NAME *)d->kossl->sk_value(names, i);
|
|
||||||
+ const GENERAL_NAME *val = (const GENERAL_NAME *)d->kossl->OPENSSL_sk_value(names, i);
|
|
||||||
if (val->type != GEN_DNS) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
@@ -1308,7 +1320,7 @@ QStringList KSSLCertificate::subjAltNames() const {
|
|
||||||
rc += s;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
- d->kossl->sk_free(names);
|
|
||||||
+ d->kossl->OPENSSL_sk_free(names);
|
|
||||||
#endif
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
--
|
|
||||||
2.13.6
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspellclient.cpp.myspell_paths kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspellclient.cpp
|
|
||||||
--- kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspellclient.cpp.myspell_paths 2015-05-28 20:27:39.000000000 -0500
|
|
||||||
+++ kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspellclient.cpp 2015-06-04 17:59:10.824869047 -0500
|
|
||||||
@@ -52,7 +52,7 @@ SpellerPlugin *HunspellClient::createSpe
|
|
||||||
QStringList HunspellClient::languages() const
|
|
||||||
{
|
|
||||||
QStringList lst;
|
|
||||||
- QDir dir("/usr/share/myspell/dicts/");
|
|
||||||
+ QDir dir("/usr/share/myspell/");
|
|
||||||
if(dir.exists())
|
|
||||||
{
|
|
||||||
QStringList lstDic = dir.entryList(QStringList("*.dic"), QDir::Files );
|
|
||||||
diff -up kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspelldict.cpp.myspell_paths kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspelldict.cpp
|
|
||||||
--- kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspelldict.cpp.myspell_paths 2015-05-28 20:27:39.000000000 -0500
|
|
||||||
+++ kdelibs-4.14.9/sonnet/plugins/hunspell/kspell_hunspelldict.cpp 2015-06-04 17:58:49.055774079 -0500
|
|
||||||
@@ -31,9 +31,9 @@ HunspellDict::HunspellDict( const QStrin
|
|
||||||
: SpellerPlugin(lang), m_speller(0)
|
|
||||||
{
|
|
||||||
kDebug()<<" HunspellDict::HunspellDict( const QString& lang ):"<<lang;
|
|
||||||
- QString dic=QString("/usr/share/myspell/dicts/%1.dic").arg(lang);
|
|
||||||
+ QString dic=QString("/usr/share/myspell/%1.dic").arg(lang);
|
|
||||||
if (QFileInfo(dic).exists())
|
|
||||||
- m_speller = new Hunspell(QString("/usr/share/myspell/dicts/%1.aff").arg(lang).toUtf8().constData(),dic.toUtf8().constData());
|
|
||||||
+ m_speller = new Hunspell(QString("/usr/share/myspell/%1.aff").arg(lang).toUtf8().constData(),dic.toUtf8().constData());
|
|
||||||
else
|
|
||||||
m_speller = 0;
|
|
||||||
kDebug()<<" dddddd "<<m_speller;
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.3.90/doc/common/CMakeLists.txt.all-css kdelibs-4.3.90/doc/common/CMakeLists.txt
|
|
||||||
--- kdelibs-4.3.90/doc/common/CMakeLists.txt.all-css 2010-01-06 10:58:53.000000000 -0600
|
|
||||||
+++ kdelibs-4.3.90/doc/common/CMakeLists.txt 2010-01-06 13:33:35.920884922 -0600
|
|
||||||
@@ -8,6 +8,8 @@ install(FILES
|
|
||||||
kde-docs.css
|
|
||||||
doxygen.css
|
|
||||||
tabs.css
|
|
||||||
+ kde.css flat.css print.css
|
|
||||||
+ Doxyfile.global
|
|
||||||
header.html
|
|
||||||
footer.html
|
|
||||||
mainheader.html
|
|
@ -1,60 +0,0 @@
|
|||||||
diff -up kdelibs-4.7.0/knewstuff/knewstuff2/core/security.cpp.knewstuff2_gpg2 kdelibs-4.7.0/knewstuff/knewstuff2/core/security.cpp
|
|
||||||
--- kdelibs-4.7.0/knewstuff/knewstuff2/core/security.cpp.knewstuff2_gpg2 2011-05-20 15:24:54.000000000 -0500
|
|
||||||
+++ kdelibs-4.7.0/knewstuff/knewstuff2/core/security.cpp 2011-09-06 11:29:18.939251150 -0500
|
|
||||||
@@ -36,9 +36,20 @@
|
|
||||||
#include <kmessagebox.h>
|
|
||||||
#include <kpassworddialog.h>
|
|
||||||
#include <kprocess.h>
|
|
||||||
+#include <kstandarddirs.h>
|
|
||||||
|
|
||||||
using namespace KNS;
|
|
||||||
|
|
||||||
+static QString gpgExecutable()
|
|
||||||
+{
|
|
||||||
+ QString gpgExe = KStandardDirs::findExe( "gpg" );
|
|
||||||
+ if ( gpgExe.isEmpty() )
|
|
||||||
+ gpgExe = KStandardDirs::findExe( "gpg2" );
|
|
||||||
+ if ( gpgExe.isEmpty() )
|
|
||||||
+ return QLatin1String( "gpg" );
|
|
||||||
+ return gpgExe;
|
|
||||||
+}
|
|
||||||
+
|
|
||||||
Security::Security()
|
|
||||||
{
|
|
||||||
m_keysRead = false;
|
|
||||||
@@ -61,7 +72,7 @@ void Security::readKeys()
|
|
||||||
m_runMode = List;
|
|
||||||
m_keys.clear();
|
|
||||||
m_process = new KProcess();
|
|
||||||
- *m_process << "gpg"
|
|
||||||
+ *m_process << gpgExecutable()
|
|
||||||
<< "--no-secmem-warning"
|
|
||||||
<< "--no-tty"
|
|
||||||
<< "--with-colon"
|
|
||||||
@@ -87,7 +98,7 @@ void Security::readSecretKeys()
|
|
||||||
}
|
|
||||||
m_runMode = ListSecret;
|
|
||||||
m_process = new KProcess();
|
|
||||||
- *m_process << "gpg"
|
|
||||||
+ *m_process << gpgExecutable()
|
|
||||||
<< "--no-secmem-warning"
|
|
||||||
<< "--no-tty"
|
|
||||||
<< "--with-colon"
|
|
||||||
@@ -260,7 +271,7 @@ void Security::slotCheckValidity()
|
|
||||||
|
|
||||||
//verify the signature
|
|
||||||
m_process = new KProcess();
|
|
||||||
- *m_process << "gpg"
|
|
||||||
+ *m_process << gpgExecutable()
|
|
||||||
<< "--no-secmem-warning"
|
|
||||||
<< "--status-fd=2"
|
|
||||||
<< "--command-fd=0"
|
|
||||||
@@ -342,7 +353,7 @@ void Security::slotSignFile()
|
|
||||||
|
|
||||||
//verify the signature
|
|
||||||
m_process = new KProcess();
|
|
||||||
- *m_process << "gpg"
|
|
||||||
+ *m_process << gpgExecutable()
|
|
||||||
<< "--no-secmem-warning"
|
|
||||||
<< "--status-fd=2"
|
|
||||||
<< "--command-fd=0"
|
|
@ -1,22 +0,0 @@
|
|||||||
diff -up kdelibs-4.7.2/kjs/wtf/Platform.h.me kdelibs-4.7.2/kjs/wtf/Platform.h
|
|
||||||
--- kdelibs-4.7.2/kjs/wtf/Platform.h.me 2011-12-06 10:10:08.372356038 -0500
|
|
||||||
+++ kdelibs-4.7.2/kjs/wtf/Platform.h 2011-12-06 10:48:51.962357831 -0500
|
|
||||||
@@ -97,6 +97,18 @@
|
|
||||||
|
|
||||||
/* CPU */
|
|
||||||
|
|
||||||
+/* PLATFORM(S390X) - S390X 64-bit */
|
|
||||||
+#if defined(__s390x__)
|
|
||||||
+#define WTF_PLATFORM_S390X 1
|
|
||||||
+#define WTF_PLATFORM_BIG_ENDIAN 1
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+/* PLATFORM(S390) - S390 32-bit */
|
|
||||||
+#if defined(__s390__)
|
|
||||||
+#define WTF_PLATFORM_S390 1
|
|
||||||
+#define WTF_PLATFORM_BIG_ENDIAN 1
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
/* PLATFORM(PPC) */
|
|
||||||
#if defined(__ppc__) \
|
|
||||||
|| defined(__PPC__) \
|
|
@ -1,18 +0,0 @@
|
|||||||
diff -up kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp.me kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp
|
|
||||||
--- kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp.me 2012-06-06 22:49:52.542044112 +0200
|
|
||||||
+++ kdelibs-4.8.4/khtml/ecma/kjs_navigator.cpp 2012-07-12 11:52:50.973049316 +0200
|
|
||||||
@@ -261,7 +261,13 @@ JSValue *Navigator::getValueProperty(Exe
|
|
||||||
case BrowserLanguage:
|
|
||||||
case Language:
|
|
||||||
case UserLanguage:
|
|
||||||
- return jsString(KGlobal::locale()->language());
|
|
||||||
+ {
|
|
||||||
+ QString l = KGlobal::locale()->language();
|
|
||||||
+ if ( l.contains(QLatin1Char('_')) )
|
|
||||||
+ return jsString(l.replace(QLatin1Char('_'), QLatin1Char('-')));
|
|
||||||
+ else
|
|
||||||
+ return jsString(l + QLatin1Char('-') + KGlobal::locale()->country().toUpper());
|
|
||||||
+ }
|
|
||||||
case UserAgent:
|
|
||||||
return jsString(userAgent);
|
|
||||||
case Platform:
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.9.3/kio/kssl/kcm/cacertificatespage.cpp.orig kdelibs-4.9.3/kio/kssl/kcm/cacertificatespage.cpp
|
|
||||||
--- kdelibs-4.9.3/kio/kssl/kcm/cacertificatespage.cpp.orig 2012-11-29 15:37:07.458858688 +0100
|
|
||||||
+++ kdelibs-4.9.3/kio/kssl/kcm/cacertificatespage.cpp 2012-11-29 13:52:05.243926802 +0100
|
|
||||||
@@ -291,7 +291,7 @@ void CaCertificatesPage::removeSelection
|
|
||||||
void CaCertificatesPage::addCertificateClicked()
|
|
||||||
{
|
|
||||||
QStringList certFiles
|
|
||||||
- = KFileDialog::getOpenFileNames(KUrl(), QLatin1String("application/x-x509-ca-cert"),
|
|
||||||
+ = KFileDialog::getOpenFileNames(KUrl(), QLatin1String("*.pem *.cert *.crt *.der"),
|
|
||||||
this, i18n("Pick Certificates"));
|
|
||||||
|
|
||||||
QList<QSslCertificate> certs;
|
|
@ -1,253 +0,0 @@
|
|||||||
diff -up kdelibs-4.9.95/cmake/modules/FindKDE4Internal.cmake.parallel_devel kdelibs-4.9.95/cmake/modules/FindKDE4Internal.cmake
|
|
||||||
--- kdelibs-4.9.95/cmake/modules/FindKDE4Internal.cmake.parallel_devel 2012-12-18 02:26:38.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.95/cmake/modules/FindKDE4Internal.cmake 2012-12-19 15:21:37.963466601 -0600
|
|
||||||
@@ -38,10 +38,10 @@
|
|
||||||
# The following variables are defined for the various tools required to
|
|
||||||
# compile KDE software:
|
|
||||||
#
|
|
||||||
-# KDE4_KCFGC_EXECUTABLE - the kconfig_compiler executable
|
|
||||||
+# KDE4_KCFGC_EXECUTABLE - the kconfig_compiler4 executable
|
|
||||||
# KDE4_AUTOMOC_EXECUTABLE - the kde4automoc executable, deprecated, use AUTOMOC4_EXECUTABLE instead
|
|
||||||
# KDE4_MEINPROC_EXECUTABLE - the meinproc4 executable
|
|
||||||
-# KDE4_MAKEKDEWIDGETS_EXECUTABLE - the makekdewidgets executable
|
|
||||||
+# KDE4_MAKEKDEWIDGETS_EXECUTABLE - the makekdewidgets4 executable
|
|
||||||
#
|
|
||||||
# The following variables point to the location of the KDE libraries,
|
|
||||||
# but shouldn't be used directly:
|
|
||||||
@@ -191,7 +191,7 @@
|
|
||||||
# relative path to the file.
|
|
||||||
#
|
|
||||||
# KDE4_ADD_WIDGET_FILES (SRCS_VAR file1.widgets ... fileN.widgets)
|
|
||||||
-# Use this to add widget description files for the makekdewidgets code generator
|
|
||||||
+# Use this to add widget description files for the makekdewidgets4 code generator
|
|
||||||
# for Qt Designer plugins.
|
|
||||||
#
|
|
||||||
# KDE4_CREATE_FINAL_FILES (filename_CXX filename_C file1 ... fileN)
|
|
||||||
@@ -509,31 +509,31 @@ if (_kdeBootStrapping)
|
|
||||||
set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH} )
|
|
||||||
# CMAKE_CFG_INTDIR is the output subdirectory created e.g. by XCode and MSVC
|
|
||||||
if (NOT WINCE)
|
|
||||||
- set(KDE4_KCFGC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kconfig_compiler )
|
|
||||||
+ set(KDE4_KCFGC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kconfig_compiler4 )
|
|
||||||
set(KDE4_MEINPROC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/meinproc4 )
|
|
||||||
else (NOT WINCE)
|
|
||||||
- set(KDE4_KCFGC_EXECUTABLE ${HOST_BINDIR}/${CMAKE_CFG_INTDIR}/kconfig_compiler )
|
|
||||||
+ set(KDE4_KCFGC_EXECUTABLE ${HOST_BINDIR}/${CMAKE_CFG_INTDIR}/kconfig_compiler4 )
|
|
||||||
set(KDE4_MEINPROC_EXECUTABLE ${HOST_BINDIR}/${CMAKE_CFG_INTDIR}/meinproc4 )
|
|
||||||
endif(NOT WINCE)
|
|
||||||
|
|
||||||
set(KDE4_MEINPROC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/meinproc4 )
|
|
||||||
set(KDE4_KAUTH_POLICY_GEN_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kauth-policy-gen )
|
|
||||||
- set(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/makekdewidgets )
|
|
||||||
+ set(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/makekdewidgets4 )
|
|
||||||
else (WIN32)
|
|
||||||
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib )
|
|
||||||
- set(KDE4_KCFGC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kconfig_compiler${CMAKE_EXECUTABLE_SUFFIX}.shell )
|
|
||||||
+ set(KDE4_KCFGC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kconfig_compiler4${CMAKE_EXECUTABLE_SUFFIX}.shell )
|
|
||||||
set(KDE4_KAUTH_POLICY_GEN_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/kauth-policy-gen${CMAKE_EXECUTABLE_SUFFIX}.shell )
|
|
||||||
set(KDE4_MEINPROC_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/meinproc4${CMAKE_EXECUTABLE_SUFFIX}.shell )
|
|
||||||
- set(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/makekdewidgets${CMAKE_EXECUTABLE_SUFFIX}.shell )
|
|
||||||
+ set(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/makekdewidgets4${CMAKE_EXECUTABLE_SUFFIX}.shell )
|
|
||||||
endif (WIN32)
|
|
||||||
|
|
||||||
set(KDE4_LIB_DIR ${LIBRARY_OUTPUT_PATH}/${CMAKE_CFG_INTDIR})
|
|
||||||
|
|
||||||
|
|
||||||
# when building kdelibs, make the kcfg rules depend on the binaries...
|
|
||||||
- set( _KDE4_KCONFIG_COMPILER_DEP kconfig_compiler)
|
|
||||||
+ set( _KDE4_KCONFIG_COMPILER_DEP kconfig_compiler4)
|
|
||||||
set( _KDE4_KAUTH_POLICY_GEN_EXECUTABLE_DEP kauth-policy-gen)
|
|
||||||
- set( _KDE4_MAKEKDEWIDGETS_DEP makekdewidgets)
|
|
||||||
+ set( _KDE4_MAKEKDEWIDGETS_DEP makekdewidgets4)
|
|
||||||
set( _KDE4_MEINPROC_EXECUTABLE_DEP meinproc4)
|
|
||||||
|
|
||||||
set(KDE4_INSTALLED_VERSION_OK TRUE)
|
|
||||||
@@ -582,7 +582,8 @@ else (_kdeBootStrapping)
|
|
||||||
|
|
||||||
# KDE4_LIB_INSTALL_DIR and KDE4_INCLUDE_INSTALL_DIR are set in KDELibsDependencies.cmake,
|
|
||||||
# use them to set the KDE4_LIB_DIR and KDE4_INCLUDE_DIR "public interface" variables
|
|
||||||
- set(KDE4_LIB_DIR ${KDE4_LIB_INSTALL_DIR} )
|
|
||||||
+ set(KDE4_LIB_DIR ${KDE4_LIB_INSTALL_DIR}/kde4/devel )
|
|
||||||
+ link_directories("${KDE4_LIB_DIR}")
|
|
||||||
set(KDE4_INCLUDE_DIR ${KDE4_INCLUDE_INSTALL_DIR} )
|
|
||||||
|
|
||||||
|
|
||||||
@@ -596,18 +597,18 @@ else (_kdeBootStrapping)
|
|
||||||
|
|
||||||
# get the build CONFIGURATIONS which were exported in this file, and use just the first
|
|
||||||
# of them to get the location of the installed executables
|
|
||||||
- get_target_property(_importedConfigurations ${KDE4_TARGET_PREFIX}kconfig_compiler IMPORTED_CONFIGURATIONS )
|
|
||||||
+ get_target_property(_importedConfigurations ${KDE4_TARGET_PREFIX}kconfig_compiler4 IMPORTED_CONFIGURATIONS )
|
|
||||||
list(GET _importedConfigurations 0 _firstConfig)
|
|
||||||
|
|
||||||
if(NOT WINCE)
|
|
||||||
- get_target_property(KDE4_KCFGC_EXECUTABLE ${KDE4_TARGET_PREFIX}kconfig_compiler LOCATION_${_firstConfig})
|
|
||||||
+ get_target_property(KDE4_KCFGC_EXECUTABLE ${KDE4_TARGET_PREFIX}kconfig_compiler4 LOCATION_${_firstConfig})
|
|
||||||
get_target_property(KDE4_MEINPROC_EXECUTABLE ${KDE4_TARGET_PREFIX}meinproc4 LOCATION_${_firstConfig})
|
|
||||||
else(NOT WINCE)
|
|
||||||
- set(KDE4_KCFGC_EXECUTABLE ${HOST_BINDIR}/${CMAKE_CFG_INTDIR}/kconfig_compiler )
|
|
||||||
+ set(KDE4_KCFGC_EXECUTABLE ${HOST_BINDIR}/${CMAKE_CFG_INTDIR}/kconfig_compiler4 )
|
|
||||||
set(KDE4_MEINPROC_EXECUTABLE ${HOST_BINDIR}/${CMAKE_CFG_INTDIR}/meinproc4 )
|
|
||||||
endif(NOT WINCE)
|
|
||||||
get_target_property(KDE4_KAUTH_POLICY_GEN_EXECUTABLE ${KDE4_TARGET_PREFIX}kauth-policy-gen LOCATION_${_firstConfig})
|
|
||||||
- get_target_property(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${KDE4_TARGET_PREFIX}makekdewidgets LOCATION_${_firstConfig})
|
|
||||||
+ get_target_property(KDE4_MAKEKDEWIDGETS_EXECUTABLE ${KDE4_TARGET_PREFIX}makekdewidgets4 LOCATION_${_firstConfig})
|
|
||||||
|
|
||||||
# allow searching cmake modules in all given kde install locations (KDEDIRS based)
|
|
||||||
execute_process(COMMAND "${KDE4_KDECONFIG_EXECUTABLE}" --path data OUTPUT_VARIABLE _data_DIR ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
||||||
@@ -934,7 +935,8 @@ set(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SY
|
|
||||||
set(CMAKE_SYSTEM_PROGRAM_PATH ${CMAKE_SYSTEM_PROGRAM_PATH}
|
|
||||||
"${KDE4_BIN_INSTALL_DIR}" )
|
|
||||||
|
|
||||||
-set(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH}
|
|
||||||
+set(CMAKE_SYSTEM_LIBRARY_PATH "${KDE4_LIB_INSTALL_DIR}/kde4/devel"
|
|
||||||
+ ${CMAKE_SYSTEM_LIBRARY_PATH}
|
|
||||||
"${KDE4_LIB_INSTALL_DIR}" )
|
|
||||||
|
|
||||||
# under Windows dlls may be also installed in bin/
|
|
||||||
@@ -1363,9 +1365,9 @@ macro (KDE4_PRINT_RESULTS)
|
|
||||||
endif (NOT _kdeBootStrapping)
|
|
||||||
|
|
||||||
if(KDE4_KCFGC_EXECUTABLE)
|
|
||||||
- message(STATUS "Found the KDE4 kconfig_compiler preprocessor: ${KDE4_KCFGC_EXECUTABLE}")
|
|
||||||
+ message(STATUS "Found the KDE4 kconfig_compiler4 preprocessor: ${KDE4_KCFGC_EXECUTABLE}")
|
|
||||||
else(KDE4_KCFGC_EXECUTABLE)
|
|
||||||
- message(STATUS "Didn't find the KDE4 kconfig_compiler preprocessor")
|
|
||||||
+ message(STATUS "Didn't find the KDE4 kconfig_compiler4 preprocessor")
|
|
||||||
endif(KDE4_KCFGC_EXECUTABLE)
|
|
||||||
|
|
||||||
if(AUTOMOC4_EXECUTABLE)
|
|
||||||
@@ -1384,7 +1386,7 @@ if (KDE4Internal_FIND_REQUIRED AND NOT K
|
|
||||||
endif (NOT KDE4_INSTALLED_VERSION_OK)
|
|
||||||
|
|
||||||
if (NOT KDE4_KCFGC_EXECUTABLE)
|
|
||||||
- message(FATAL_ERROR "ERROR: could not detect a usable kconfig_compiler")
|
|
||||||
+ message(FATAL_ERROR "ERROR: could not detect a usable kconfig_compiler4")
|
|
||||||
endif (NOT KDE4_KCFGC_EXECUTABLE)
|
|
||||||
|
|
||||||
message(FATAL_ERROR "ERROR: could NOT find everything required for compiling KDE 4 programs")
|
|
||||||
diff -up kdelibs-4.9.95/doc/api/doxygen-preprocess-kcfg.sh.parallel_devel kdelibs-4.9.95/doc/api/doxygen-preprocess-kcfg.sh
|
|
||||||
--- kdelibs-4.9.95/doc/api/doxygen-preprocess-kcfg.sh.parallel_devel 2012-12-17 08:14:16.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.95/doc/api/doxygen-preprocess-kcfg.sh 2012-12-19 15:21:37.963466601 -0600
|
|
||||||
@@ -2,9 +2,9 @@
|
|
||||||
# Generates and cleans KConfigXT source code during a API dox build
|
|
||||||
#
|
|
||||||
|
|
||||||
-kcfg_compiler="`kde4-config --prefix`/bin/kconfig_compiler"
|
|
||||||
+kcfg_compiler="`kde4-config --prefix`/bin/kconfig_compiler4"
|
|
||||||
if test -z "$kcfg_compiler"; then
|
|
||||||
- echo "kconfig_compiler not found!"
|
|
||||||
+ echo "kconfig_compiler4 not found!"
|
|
||||||
exit 1;
|
|
||||||
fi
|
|
||||||
|
|
||||||
diff -up kdelibs-4.9.95/kdecore/kconfig_compiler/checkkcfg.pl.parallel_devel kdelibs-4.9.95/kdecore/kconfig_compiler/checkkcfg.pl
|
|
||||||
--- kdelibs-4.9.95/kdecore/kconfig_compiler/checkkcfg.pl.parallel_devel 2012-12-17 08:14:16.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.95/kdecore/kconfig_compiler/checkkcfg.pl 2012-12-19 15:21:37.963466601 -0600
|
|
||||||
@@ -15,12 +15,12 @@ $file_cpp = "$filebase.cpp";
|
|
||||||
|
|
||||||
$kcfgc = $file . "c";
|
|
||||||
|
|
||||||
-$cmd = "./kconfig_compiler $file $kcfgc";
|
|
||||||
+$cmd = "./kconfig_compiler4 $file $kcfgc";
|
|
||||||
|
|
||||||
#print "CMD $cmd\n";
|
|
||||||
|
|
||||||
if ( system( $cmd ) != 0 ) {
|
|
||||||
- print STDERR "Unable to run kconfig_compiler\n";
|
|
||||||
+ print STDERR "Unable to run kconfig_compiler4\n";
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -up kdelibs-4.9.95/kdecore/kconfig_compiler/CMakeLists.txt.parallel_devel kdelibs-4.9.95/kdecore/kconfig_compiler/CMakeLists.txt
|
|
||||||
--- kdelibs-4.9.95/kdecore/kconfig_compiler/CMakeLists.txt.parallel_devel 2012-12-17 08:14:16.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.95/kdecore/kconfig_compiler/CMakeLists.txt 2012-12-19 15:21:37.964466589 -0600
|
|
||||||
@@ -11,13 +11,13 @@
|
|
||||||
set(kconfig_compiler_SRCS kconfig_compiler.cpp)
|
|
||||||
|
|
||||||
|
|
||||||
- kde4_add_executable(kconfig_compiler NOGUI ${kconfig_compiler_SRCS})
|
|
||||||
+ kde4_add_executable(kconfig_compiler4 NOGUI ${kconfig_compiler_SRCS})
|
|
||||||
|
|
||||||
- target_link_libraries(kconfig_compiler ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY} )
|
|
||||||
+ target_link_libraries(kconfig_compiler4 ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY} )
|
|
||||||
|
|
||||||
# "export" this target too so we can use the LOCATION property of the imported target in
|
|
||||||
# FindKDE4Internal.cmake to get the full path to the installed executable instead of using FIND_PROGRAM(), Alex
|
|
||||||
- install(TARGETS kconfig_compiler EXPORT kdelibsToolsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
||||||
+ install(TARGETS kconfig_compiler4 EXPORT kdelibsToolsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
||||||
|
|
||||||
|
|
||||||
# # export this binary for cross-compilation
|
|
||||||
diff -up kdelibs-4.9.95/kdeui/tests/kconfig_compiler/CMakeLists.txt.parallel_devel kdelibs-4.9.95/kdeui/tests/kconfig_compiler/CMakeLists.txt
|
|
||||||
--- kdelibs-4.9.95/kdeui/tests/kconfig_compiler/CMakeLists.txt.parallel_devel 2012-12-17 08:14:16.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.95/kdeui/tests/kconfig_compiler/CMakeLists.txt 2012-12-19 15:21:37.964466589 -0600
|
|
||||||
@@ -9,7 +9,7 @@ macro(GEN_KCFG_TEST_SOURCE _testName _sr
|
|
||||||
add_custom_command(
|
|
||||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_testName}.cpp ${CMAKE_CURRENT_BINARY_DIR}/${_testName}.h
|
|
||||||
COMMAND ${KDE4_KCFGC_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${_testName}.kcfg ${CMAKE_CURRENT_SOURCE_DIR}/${_testName}.kcfgc
|
|
||||||
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_testName}.kcfg ${CMAKE_CURRENT_SOURCE_DIR}/${_testName}.kcfgc kconfig_compiler)
|
|
||||||
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_testName}.kcfg ${CMAKE_CURRENT_SOURCE_DIR}/${_testName}.kcfgc kconfig_compiler4)
|
|
||||||
|
|
||||||
# set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${_testName}.h PROPERTIES GENERATED TRUE)
|
|
||||||
qt4_generate_moc(${CMAKE_CURRENT_BINARY_DIR}/${_testName}.h ${CMAKE_CURRENT_BINARY_DIR}/${_testName}.moc )
|
|
||||||
diff -up kdelibs-4.9.95/kdewidgets/CMakeLists.txt.parallel_devel kdelibs-4.9.95/kdewidgets/CMakeLists.txt
|
|
||||||
--- kdelibs-4.9.95/kdewidgets/CMakeLists.txt.parallel_devel 2012-12-17 08:14:16.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.95/kdewidgets/CMakeLists.txt 2012-12-19 15:21:37.964466589 -0600
|
|
||||||
@@ -14,24 +14,24 @@ include_directories(
|
|
||||||
set(makekdewidgets_SRCS makekdewidgets.cpp )
|
|
||||||
|
|
||||||
|
|
||||||
-kde4_add_executable(makekdewidgets NOGUI ${makekdewidgets_SRCS})
|
|
||||||
+kde4_add_executable(makekdewidgets4 NOGUI ${makekdewidgets_SRCS})
|
|
||||||
|
|
||||||
-target_link_libraries(makekdewidgets ${KDE4_KDECORE_LIBS} )
|
|
||||||
+target_link_libraries(makekdewidgets4 ${KDE4_KDECORE_LIBS} )
|
|
||||||
|
|
||||||
# "export" this target too so we can use the LOCATION property of the imported target in
|
|
||||||
# FindKDE4Internal.cmake to get the full path to the installed executable instead of using FIND_PROGRAM(), Alex
|
|
||||||
-install(TARGETS makekdewidgets EXPORT kdelibsToolsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
||||||
+install(TARGETS makekdewidgets4 EXPORT kdelibsToolsTargets ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
||||||
|
|
||||||
|
|
||||||
########### next target ###############
|
|
||||||
|
|
||||||
if(QT_QTDESIGNER_FOUND)
|
|
||||||
# get the name of the generated wrapper script (which sets up LD_LIBRARY_PATH)
|
|
||||||
- get_target_property(MAKEKDEWIDGETS_EXECUTABLE makekdewidgets WRAPPER_SCRIPT)
|
|
||||||
+ get_target_property(MAKEKDEWIDGETS_EXECUTABLE makekdewidgets4 WRAPPER_SCRIPT)
|
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp
|
|
||||||
COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets
|
|
||||||
- MAIN_DEPENDENCY kde.widgets DEPENDS makekdewidgets)
|
|
||||||
+ MAIN_DEPENDENCY kde.widgets DEPENDS makekdewidgets4)
|
|
||||||
|
|
||||||
set(kdewidgets_PART_SRCS
|
|
||||||
classpreviews.cpp
|
|
||||||
@@ -61,7 +61,7 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
if(NOT KDE_NO_DEPRECATED)
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp
|
|
||||||
COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdedeprecated.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kdedeprecated.widgets
|
|
||||||
- MAIN_DEPENDENCY kdedeprecated.widgets DEPENDS makekdewidgets)
|
|
||||||
+ MAIN_DEPENDENCY kdedeprecated.widgets DEPENDS makekdewidgets4)
|
|
||||||
|
|
||||||
set(kdedeprecated_PART_SRCS
|
|
||||||
classpreviews.cpp
|
|
||||||
@@ -96,7 +96,7 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp
|
|
||||||
COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kdewebkitwidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kdewebkit.widgets
|
|
||||||
- MAIN_DEPENDENCY kdewebkit.widgets DEPENDS makekdewidgets)
|
|
||||||
+ MAIN_DEPENDENCY kdewebkit.widgets DEPENDS makekdewidgets4)
|
|
||||||
|
|
||||||
set(kdewebkitwidgets_PART_SRCS
|
|
||||||
classpreviews.cpp
|
|
||||||
@@ -132,7 +132,7 @@ if(QT_QTDESIGNER_FOUND)
|
|
||||||
|
|
||||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp
|
|
||||||
COMMAND "${MAKEKDEWIDGETS_EXECUTABLE}" -o ${CMAKE_CURRENT_BINARY_DIR}/kde3supportwidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde3support.widgets
|
|
||||||
- MAIN_DEPENDENCY kde3support.widgets DEPENDS makekdewidgets)
|
|
||||||
+ MAIN_DEPENDENCY kde3support.widgets DEPENDS makekdewidgets4)
|
|
||||||
|
|
||||||
set(kde3supportwidgets_PART_SRCS
|
|
||||||
classpreviews.cpp
|
|
@ -1,12 +0,0 @@
|
|||||||
diff -up kdelibs-4.10.0/kdeui/kernel/kapplication.cpp.me kdelibs-4.10.0/kdeui/kernel/kapplication.cpp
|
|
||||||
--- kdelibs-4.10.0/kdeui/kernel/kapplication.cpp.me 2013-02-28 15:24:41.194954639 +0100
|
|
||||||
+++ kdelibs-4.10.0/kdeui/kernel/kapplication.cpp 2013-02-28 15:40:44.546470405 +0100
|
|
||||||
@@ -853,7 +853,7 @@ void KApplicationPrivate::parseCommandLi
|
|
||||||
if (!nocrashhandler && args->isSet("crashhandler"))
|
|
||||||
{
|
|
||||||
// enable drkonqi
|
|
||||||
- KCrash::setDrKonqiEnabled(true);
|
|
||||||
+ KCrash::setDrKonqiEnabled(false);
|
|
||||||
}
|
|
||||||
// Always set the app name, can be usefuls for apps that call setEmergencySaveFunction or enable AutoRestart
|
|
||||||
KCrash::setApplicationName(args->appName());
|
|
@ -1,44 +0,0 @@
|
|||||||
diff --git a/solid/solid/backends/upower/upowerbattery.cpp b/solid/solid/backends/upower/upowerbattery.cpp
|
|
||||||
index 7b5bdc4..8bd9343 100644
|
|
||||||
--- a/solid/solid/backends/upower/upowerbattery.cpp
|
|
||||||
+++ b/solid/solid/backends/upower/upowerbattery.cpp
|
|
||||||
@@ -123,6 +123,7 @@ Solid::Battery::ChargeState Battery::chargeState() const
|
|
||||||
void Battery::slotChanged()
|
|
||||||
{
|
|
||||||
if (m_device) {
|
|
||||||
+ const QString udi = m_device.data()->udi();
|
|
||||||
const int old_chargePercent = m_chargePercent;
|
|
||||||
const int old_capacity = m_capacity;
|
|
||||||
const Solid::Battery::ChargeState old_chargeState = m_chargeState;
|
|
||||||
@@ -132,26 +133,26 @@ void Battery::slotChanged()
|
|
||||||
|
|
||||||
if (old_chargePercent != m_chargePercent)
|
|
||||||
{
|
|
||||||
- emit chargePercentChanged(m_chargePercent, m_device.data()->udi());
|
|
||||||
+ emit chargePercentChanged(m_chargePercent, udi);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (old_capacity != m_capacity) {
|
|
||||||
- emit capacityChanged(m_capacity, m_device.data()->udi());
|
|
||||||
+ emit capacityChanged(m_capacity, udi);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (old_chargeState != m_chargeState)
|
|
||||||
{
|
|
||||||
- emit chargeStateChanged(m_chargeState, m_device.data()->udi());
|
|
||||||
+ emit chargeStateChanged(m_chargeState, udi);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (old_isPlugged != m_isPlugged)
|
|
||||||
{
|
|
||||||
- emit plugStateChanged(m_isPlugged, m_device.data()->udi());
|
|
||||||
+ emit plugStateChanged(m_isPlugged, udi);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (old_isPowerSupply != m_isPowerSupply)
|
|
||||||
{
|
|
||||||
- emit powerSupplyStateChanged(m_isPowerSupply, m_device.data()->udi());
|
|
||||||
+ emit powerSupplyStateChanged(m_isPowerSupply, udi);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,128 +0,0 @@
|
|||||||
diff -up kdelibs-4.14.23/mimetypes/kde.xml.no_fake_mimetypes kdelibs-4.14.23/mimetypes/kde.xml
|
|
||||||
--- kdelibs-4.14.23/mimetypes/kde.xml.no_fake_mimetypes 2016-08-16 09:04:01.000000000 -0500
|
|
||||||
+++ kdelibs-4.14.23/mimetypes/kde.xml 2016-08-28 08:39:55.307237091 -0500
|
|
||||||
@@ -1786,124 +1786,6 @@ Notes:
|
|
||||||
<glob pattern="*.abc"/>
|
|
||||||
</mime-type>
|
|
||||||
|
|
||||||
- <!-- all/ fake mime types -->
|
|
||||||
- <mime-type type="all/all">
|
|
||||||
- <comment>all files and folders</comment>
|
|
||||||
- <comment xml:lang="ar">كل الملفات و المجلدات</comment>
|
|
||||||
- <comment xml:lang="ast">tolos ficheros y carpetes</comment>
|
|
||||||
- <comment xml:lang="bg">всички файлове и папки</comment>
|
|
||||||
- <comment xml:lang="bs">sve datoteke i direktorije</comment>
|
|
||||||
- <comment xml:lang="ca">tots els fitxers i carpetes</comment>
|
|
||||||
- <comment xml:lang="ca@valencia">tots els fitxers i carpetes</comment>
|
|
||||||
- <comment xml:lang="cs">všechny soubory a složky</comment>
|
|
||||||
- <comment xml:lang="da">alle filer og mapper</comment>
|
|
||||||
- <comment xml:lang="de">Alle Dateien und Ordner</comment>
|
|
||||||
- <comment xml:lang="el">Όλα τα αρχεία και οι φάκελοι</comment>
|
|
||||||
- <comment xml:lang="en_GB">all files and folders</comment>
|
|
||||||
- <comment xml:lang="es">todos los archivos y carpetas</comment>
|
|
||||||
- <comment xml:lang="et">kõik failid ja kataloogid</comment>
|
|
||||||
- <comment xml:lang="eu">fitxategi eta karpeta denak</comment>
|
|
||||||
- <comment xml:lang="fi">kaikki tiedostot ja kansiot</comment>
|
|
||||||
- <comment xml:lang="fr">Tous les fichiers et les dossiers</comment>
|
|
||||||
- <comment xml:lang="ga">gach comhad agus fillteán</comment>
|
|
||||||
- <comment xml:lang="gl">todos os ficheiros e cartafoles</comment>
|
|
||||||
- <comment xml:lang="hr">sve datoteke i direktoriji</comment>
|
|
||||||
- <comment xml:lang="hu">minden fájl és mappa</comment>
|
|
||||||
- <comment xml:lang="ia">omne files e dossieres</comment>
|
|
||||||
- <comment xml:lang="is">allar skrár og möppur</comment>
|
|
||||||
- <comment xml:lang="it">tutti i file e le cartelle</comment>
|
|
||||||
- <comment xml:lang="ja">すべてのファイルとフォルダ</comment>
|
|
||||||
- <comment xml:lang="kk">бүкіл файлдар мен қапшықтар</comment>
|
|
||||||
- <comment xml:lang="km">ឯកសារ និងថតទាំងអស់</comment>
|
|
||||||
- <comment xml:lang="ko">모든 파일과 폴더</comment>
|
|
||||||
- <comment xml:lang="lt">visi failai ir aplankai</comment>
|
|
||||||
- <comment xml:lang="lv">visi faili un mapes</comment>
|
|
||||||
- <comment xml:lang="ml">എല്ലാ ഫയലും ഫോള്ഡറുകളും</comment>
|
|
||||||
- <comment xml:lang="mr">सर्व फाईल्स व संचयीका</comment>
|
|
||||||
- <comment xml:lang="nb">al.le filer og mapper</comment>
|
|
||||||
- <comment xml:lang="nds">All Dateien un Ornern</comment>
|
|
||||||
- <comment xml:lang="nl">alle bestanden en mappen</comment>
|
|
||||||
- <comment xml:lang="nn">alle filer og mapper</comment>
|
|
||||||
- <comment xml:lang="pa">ਸਭ ਫਾਇਲਾਂ ਅਤੇ ਫੋਲਡਰ</comment>
|
|
||||||
- <comment xml:lang="pl">wszystkie pliki i katalogi</comment>
|
|
||||||
- <comment xml:lang="pt">todos os ficheiros e pastas</comment>
|
|
||||||
- <comment xml:lang="pt_BR">todos os arquivos e pastas</comment>
|
|
||||||
- <comment xml:lang="ro">toate fișierele și dosarele</comment>
|
|
||||||
- <comment xml:lang="ru">все файлы и папки</comment>
|
|
||||||
- <comment xml:lang="se">buot fiillat ja máhpat</comment>
|
|
||||||
- <comment xml:lang="sk">všetky súbory a priečinky</comment>
|
|
||||||
- <comment xml:lang="sl">vse datoteke in mape</comment>
|
|
||||||
- <comment xml:lang="sr">сви фајлови и фасцикле</comment>
|
|
||||||
- <comment xml:lang="sr@ijekavian">сви фајлови и фасцикле</comment>
|
|
||||||
- <comment xml:lang="sr@ijekavianlatin">svi fajlovi i fascikle</comment>
|
|
||||||
- <comment xml:lang="sr@latin">svi fajlovi i fascikle</comment>
|
|
||||||
- <comment xml:lang="sv">alla filer och kataloger</comment>
|
|
||||||
- <comment xml:lang="th">แฟ้มและโฟลเดอร์ทั้งหมด</comment>
|
|
||||||
- <comment xml:lang="tr">tüm dosyalar ve dizinler</comment>
|
|
||||||
- <comment xml:lang="ug">ھەممە ھۆججەت ۋە قىسقۇچلار</comment>
|
|
||||||
- <comment xml:lang="uk">всі файли і теки</comment>
|
|
||||||
- <comment xml:lang="zh_CN">全部文件和文件夹</comment>
|
|
||||||
- <comment xml:lang="zh_TW">所有檔案與資料夾</comment>
|
|
||||||
- </mime-type>
|
|
||||||
- <mime-type type="all/allfiles">
|
|
||||||
- <comment>all files</comment>
|
|
||||||
- <comment xml:lang="ar">كل الملفات</comment>
|
|
||||||
- <comment xml:lang="ast">tolos ficheros</comment>
|
|
||||||
- <comment xml:lang="bg">всички файлове</comment>
|
|
||||||
- <comment xml:lang="bs">sve datoteke</comment>
|
|
||||||
- <comment xml:lang="ca">tots els fitxers</comment>
|
|
||||||
- <comment xml:lang="ca@valencia">tots els fitxers</comment>
|
|
||||||
- <comment xml:lang="cs">všechny soubory</comment>
|
|
||||||
- <comment xml:lang="da">alle filer</comment>
|
|
||||||
- <comment xml:lang="de">Alle Dateien</comment>
|
|
||||||
- <comment xml:lang="el">Όλα τα αρχεία</comment>
|
|
||||||
- <comment xml:lang="en_GB">all files</comment>
|
|
||||||
- <comment xml:lang="es">todos los archivos</comment>
|
|
||||||
- <comment xml:lang="et">kõik failid</comment>
|
|
||||||
- <comment xml:lang="eu">fitxategi denak</comment>
|
|
||||||
- <comment xml:lang="fi">kaikki tiedostot</comment>
|
|
||||||
- <comment xml:lang="fr">Tous les fichiers</comment>
|
|
||||||
- <comment xml:lang="ga">gach comhad</comment>
|
|
||||||
- <comment xml:lang="gl">todos os ficheiros</comment>
|
|
||||||
- <comment xml:lang="hr">sve datoteke</comment>
|
|
||||||
- <comment xml:lang="hu">minden fájl</comment>
|
|
||||||
- <comment xml:lang="ia">omne files</comment>
|
|
||||||
- <comment xml:lang="is">allar skrár</comment>
|
|
||||||
- <comment xml:lang="it">tutti i file</comment>
|
|
||||||
- <comment xml:lang="ja">すべてのファイル</comment>
|
|
||||||
- <comment xml:lang="kk">бүкіл файлдар</comment>
|
|
||||||
- <comment xml:lang="km">ឯកសារទាំងអស់</comment>
|
|
||||||
- <comment xml:lang="ko">모든 파일</comment>
|
|
||||||
- <comment xml:lang="lt">visi failai</comment>
|
|
||||||
- <comment xml:lang="lv">visi faili</comment>
|
|
||||||
- <comment xml:lang="ml">എല്ലാ ഫയലും</comment>
|
|
||||||
- <comment xml:lang="mr">सर्व फाईल्स</comment>
|
|
||||||
- <comment xml:lang="nb">alle filer</comment>
|
|
||||||
- <comment xml:lang="nds">All Dateien</comment>
|
|
||||||
- <comment xml:lang="nl">alle bestanden</comment>
|
|
||||||
- <comment xml:lang="nn">alle filer</comment>
|
|
||||||
- <comment xml:lang="pa">ਸਭ ਫਾਇਲਾਂ</comment>
|
|
||||||
- <comment xml:lang="pl">wszystkie pliki</comment>
|
|
||||||
- <comment xml:lang="pt">todos os ficheiros</comment>
|
|
||||||
- <comment xml:lang="pt_BR">todos os arquivos</comment>
|
|
||||||
- <comment xml:lang="ro">toate fișierele</comment>
|
|
||||||
- <comment xml:lang="ru">все файлы</comment>
|
|
||||||
- <comment xml:lang="se">buot fiillat</comment>
|
|
||||||
- <comment xml:lang="sk">všetky súbory</comment>
|
|
||||||
- <comment xml:lang="sl">vse datoteke</comment>
|
|
||||||
- <comment xml:lang="sr">сви фајлови</comment>
|
|
||||||
- <comment xml:lang="sr@ijekavian">сви фајлови</comment>
|
|
||||||
- <comment xml:lang="sr@ijekavianlatin">svi fajlovi</comment>
|
|
||||||
- <comment xml:lang="sr@latin">svi fajlovi</comment>
|
|
||||||
- <comment xml:lang="sv">alla filer</comment>
|
|
||||||
- <comment xml:lang="th">แฟ้มทั้งหมด</comment>
|
|
||||||
- <comment xml:lang="tr">tüm dosyalar</comment>
|
|
||||||
- <comment xml:lang="ug">ھەممە ھۆججەتلەر</comment>
|
|
||||||
- <comment xml:lang="uk">всі файли</comment>
|
|
||||||
- <comment xml:lang="zh_CN">全部文件</comment>
|
|
||||||
- <comment xml:lang="zh_TW">所有檔案</comment>
|
|
||||||
- </mime-type>
|
|
||||||
-
|
|
||||||
<mime-type type="application/vnd.kde.fontspackage">
|
|
||||||
<sub-class-of type="application/zip"/>
|
|
||||||
<comment>fonts package</comment>
|
|
@ -1,42 +0,0 @@
|
|||||||
diff -up kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp.solid_qt_no_debug_output kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp
|
|
||||||
--- kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp.solid_qt_no_debug_output 2012-11-14 09:58:29.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.90/solid/solid/backends/hal/halstorageaccess.cpp 2012-12-12 16:18:25.817495558 -0600
|
|
||||||
@@ -340,9 +340,11 @@ bool StorageAccess::requestPassphrase()
|
|
||||||
returnService, m_lastReturnObject,
|
|
||||||
wId, appId);
|
|
||||||
m_passphraseRequested = reply.isValid();
|
|
||||||
+#ifndef QT_NO_DEBUG_STREAM
|
|
||||||
if (!m_passphraseRequested) {
|
|
||||||
qWarning() << "Failed to call the SolidUiServer, D-Bus said:" << reply.error();
|
|
||||||
}
|
|
||||||
+#endif
|
|
||||||
return m_passphraseRequested;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -up kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp.solid_qt_no_debug_output kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp
|
|
||||||
--- kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp.solid_qt_no_debug_output 2012-11-14 09:58:29.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.90/solid/solid/backends/udisks2/udisksstorageaccess.cpp 2012-12-12 16:17:36.922022895 -0600
|
|
||||||
@@ -341,9 +341,10 @@ bool StorageAccess::requestPassphrase()
|
|
||||||
QDBusReply<void> reply = soliduiserver.call("showPassphraseDialog", udi, returnService,
|
|
||||||
m_lastReturnObject, wId, appId);
|
|
||||||
m_passphraseRequested = reply.isValid();
|
|
||||||
+#ifndef QT_NO_DEBUG_STREAM
|
|
||||||
if (!m_passphraseRequested)
|
|
||||||
qWarning() << "Failed to call the SolidUiServer, D-Bus said:" << reply.error();
|
|
||||||
-
|
|
||||||
+#endif
|
|
||||||
return m_passphraseRequested;
|
|
||||||
}
|
|
||||||
|
|
||||||
diff -up kdelibs-4.9.90/solid/solid/CMakeLists.txt.solid_qt_no_debug_output kdelibs-4.9.90/solid/solid/CMakeLists.txt
|
|
||||||
--- kdelibs-4.9.90/solid/solid/CMakeLists.txt.solid_qt_no_debug_output 2012-11-14 09:58:29.000000000 -0600
|
|
||||||
+++ kdelibs-4.9.90/solid/solid/CMakeLists.txt 2012-12-12 16:17:36.922022895 -0600
|
|
||||||
@@ -268,7 +268,7 @@ if(NOT WIN32 AND NOT APPLE)
|
|
||||||
|
|
||||||
if ( WITH_SOLID_UDISKS2 )
|
|
||||||
message(STATUS "Building Solid UDisks2 backend." )
|
|
||||||
- add_definitions(-DWITH_SOLID_UDISKS2)
|
|
||||||
+ add_definitions(-DWITH_SOLID_UDISKS2 -DQT_NO_DEBUG_OUTPUT)
|
|
||||||
set(solid_LIB_SRCS ${solid_LIB_SRCS}
|
|
||||||
backends/udisks2/udisksmanager.cpp
|
|
||||||
backends/udisks2/udisksdevice.cpp
|
|
3905
kdelibs.spec
3905
kdelibs.spec
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
|||||||
%kdelibs4 @@NAME@@
|
|
||||||
%kdelibs4_epoch @@EPOCH@@
|
|
||||||
%kdelibs4_version @@VERSION@@
|
|
||||||
%kdelibs4_evr @@EVR@@
|
|
||||||
|
|
||||||
%kdelibs4_requires \
|
|
||||||
Requires: kdelibs4%{?_isa} >= %{kdelibs4_version} \
|
|
||||||
%{nil}
|
|
||||||
|
|
||||||
%kde_applications_version @@KDE_APPLICATIONS_VERSION@@
|
|
||||||
|
|
||||||
%kde_runtime_requires \
|
|
||||||
Requires: kde-runtime >= %{kde_applications_version} \
|
|
||||||
%{nil}
|
|
Loading…
Reference in New Issue
Block a user