Package: kde4libs / 4:4.14.2-5+deb8u2

hurd_support.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Author: Pino Toscano <pino@debian.org>
Description: preliminary GNU/Hurd support
 Adds "support" for GNU/Hurd by defining MAXPATHLEN and PATH_MAX where needed.
 Not forwarded, better fixes should be done upstream.
 Also disable the fatal warnings for the linker, as we might hit symbols
 which are not implemented and will always fail.
Forwarded: no
Last-Update: 2012-10-01
Index: kde4libs/kdecore/kernel/kstandarddirs.cpp
===================================================================
--- kde4libs.orig/kdecore/kernel/kstandarddirs.cpp	2014-08-19 22:35:04.472532370 +0200
+++ kde4libs/kdecore/kernel/kstandarddirs.cpp	2014-08-19 22:35:04.448533368 +0200
@@ -79,6 +79,10 @@
 static Qt::CaseSensitivity cs = Qt::CaseSensitive;
 #endif
 
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 1024
+#endif
+
 class KStandardDirs::KStandardDirsPrivate
 {
 public:
Index: kde4libs/kinit/lnusertemp.c
===================================================================
--- kde4libs.orig/kinit/lnusertemp.c	2014-08-19 22:35:04.472532370 +0200
+++ kde4libs/kinit/lnusertemp.c	2014-08-19 22:35:04.468532537 +0200
@@ -36,6 +36,10 @@
 #include <limits.h>
 #endif
 
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
+
 int check_tmp_dir(const char *tmp_dir, int check_ownership);
 int create_link(const char *file, const char *tmp_dir);
 int build_link(const char* tmp, const char *tmp_prefix, const char *kde_prefix);
Index: kde4libs/cmake/modules/FindKDE4Internal.cmake
===================================================================
--- kde4libs.orig/cmake/modules/FindKDE4Internal.cmake	2014-08-19 22:35:04.472532370 +0200
+++ kde4libs/cmake/modules/FindKDE4Internal.cmake	2014-08-19 22:35:04.468532537 +0200
@@ -1225,8 +1225,8 @@
    endif (CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU OR CMAKE_SYSTEM_NAME MATCHES kFreeBSD)
 
    if (CMAKE_SYSTEM_NAME STREQUAL GNU)
-      set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pthread")
-      set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -pthread")
+      set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -pthread -Wl,--no-fatal-warnings")
+      set (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -pthread -Wl,--no-fatal-warnings")
    endif (CMAKE_SYSTEM_NAME STREQUAL GNU)
 
    # gcc under Windows