kdelibs4support: get rid of some patches
* 0003-Hack-away-SSL-configure-check.patch is no more required * 0001-make-broken-glib-a-configure-option-we-cannot-run-co.patch is replaced by configure option -DHAVE_GOOD_GETADDRINFO=ON Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
@@ -1,54 +0,0 @@
|
||||
From 9fcb39c7a5e60b8f07b38320fa32376547eb21bd Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
|
||||
Date: Mon, 8 Dec 2014 09:13:19 +0100
|
||||
Subject: [PATCH 1/3] make broken glib a configure option - we cannot run
|
||||
compiled code
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Inappropriate [cross]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
|
||||
|
||||
---
|
||||
src/ConfigureChecks.cmake | 23 ++---------------------
|
||||
1 file changed, 2 insertions(+), 21 deletions(-)
|
||||
|
||||
diff --git a/src/ConfigureChecks.cmake b/src/ConfigureChecks.cmake
|
||||
index 9edbff7..d44aca6 100644
|
||||
--- a/src/ConfigureChecks.cmake
|
||||
+++ b/src/ConfigureChecks.cmake
|
||||
@@ -85,27 +85,8 @@ check_struct_has_member("struct sockaddr" sa_len "sys/types.h;sys/socket.h" HAVE
|
||||
check_struct_has_member(dirent d_type dirent.h HAVE_DIRENT_D_TYPE LANGUAGE CXX)
|
||||
check_prototype_exists(res_init "sys/types.h;netinet/in.h;arpa/nameser.h;resolv.h" HAVE_RES_INIT_PROTO)
|
||||
|
||||
-check_cxx_source_runs("
|
||||
- #include <sys/types.h>
|
||||
- #include <sys/socket.h>
|
||||
- #include <netdb.h>
|
||||
- #include <string.h>
|
||||
- int main()
|
||||
- {
|
||||
- struct addrinfo hint, *res;
|
||||
- int err;
|
||||
- memset(&hint, 0, sizeof(hint));
|
||||
- hint.ai_family = AF_INET;
|
||||
- hint.ai_protocol = 0;
|
||||
- hint.ai_socktype = SOCK_STREAM;
|
||||
- hint.ai_flags = AI_PASSIVE;
|
||||
- err = getaddrinfo(0, \"18300\", &hint, &res);
|
||||
- if (err != 0 || res == 0 || res->ai_family != AF_INET)
|
||||
- return 1;
|
||||
- return 0;
|
||||
- }"
|
||||
- HAVE_GOOD_GETADDRINFO
|
||||
-)
|
||||
+# we cannot test if code is running so make it an option
|
||||
+option(HAVE_GOOD_GETADDRINFO "glib getaddr is working properly - set off for workaround" On)
|
||||
|
||||
if( NOT HAVE_GOOD_GETADDRINFO )
|
||||
set( HAVE_BROKEN_GETADDRINFO 1 )
|
||||
--
|
||||
1.8.3.1
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
From f70a18e936616d448a56015009b8a4f0004bd9b8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
||||
Date: Mon, 29 Oct 2018 15:12:25 +0100
|
||||
Subject: [PATCH] Hack away SSL configure check
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
it fails for -isystem <sysroot>/usr/include failure on gcc8
|
||||
|
||||
Upstream-Status: Inappropriate [cross-specific]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
---
|
||||
src/ConfigureChecks.cmake | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/ConfigureChecks.cmake b/src/ConfigureChecks.cmake
|
||||
index d44aca6..689ac0e 100644
|
||||
--- a/src/ConfigureChecks.cmake
|
||||
+++ b/src/ConfigureChecks.cmake
|
||||
@@ -13,7 +13,7 @@ set( KDELIBSUFF ${LIB_SUFFIX} )
|
||||
|
||||
set(CMAKE_REQUIRED_LIBRARIES Qt5::Network)
|
||||
check_cxx_source_compiles(
|
||||
-"#include <QtNetwork/QSslSocket>
|
||||
+"class QSslSocket;
|
||||
int main()
|
||||
{
|
||||
QSslSocket *socket;
|
||||
--
|
||||
2.14.5
|
||||
|
||||
@@ -12,6 +12,4 @@ DEPENDS += " \
|
||||
gettext-native \
|
||||
"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0002-only-build-kf5-config-for-native.patch \
|
||||
"
|
||||
SRC_URI += "file://0001-only-build-kf5-config-for-native.patch"
|
||||
|
||||
@@ -36,12 +36,6 @@ DEPENDS += " \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "x11", "virtual/libx11 qtx11extras", "", d)} \
|
||||
"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0003-Hack-away-SSL-configure-check.patch \
|
||||
"
|
||||
# uncomment for broken gelib getaddr / AI_PASSIVE
|
||||
#EXTRA_OECMAKE += "-DHAVE_GOOD_GETADDRINFO=OFF"
|
||||
|
||||
do_compile_prepend() {
|
||||
# Error: Could not locate service type file kservicetypes5/ "kdedmodule.desktop" , tried ...
|
||||
export XDG_DATA_HOME=${STAGING_DATADIR}
|
||||
|
||||
@@ -10,8 +10,7 @@ inherit kde-kf5-porting-aids perlnative
|
||||
PV = "${KF5_VERSION}"
|
||||
SRC_URI[sha256sum] = "a542e75e0b20325e5a88d33229441416da4c8d467742a229b2aa87e368053411"
|
||||
|
||||
EXTRA_OECMAKE += "-DBUILD_TESTING=OFF"
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-make-broken-glib-a-configure-option-we-cannot-run-co.patch \
|
||||
EXTRA_OECMAKE += " \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DHAVE_GOOD_GETADDRINFO=ON \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user