summaryrefslogtreecommitdiffstats
path: root/dilos/tdelibs/debian/patches
diff options
context:
space:
mode:
authorDenis Kozadaev <[email protected]>2020-01-30 22:13:12 +0300
committerSlávek Banko <[email protected]>2020-02-27 16:50:10 +0100
commit712f27962ce98fe6500217a52a0ab81230436ec0 (patch)
tree830d88c2cb8413f5fae0d0a4798fa4ce590d7b66 /dilos/tdelibs/debian/patches
parent94d173946594dc70145f855204f412314d5c02f2 (diff)
downloadtde-packaging-712f27962ce98fe6500217a52a0ab81230436ec0.tar.gz
tde-packaging-712f27962ce98fe6500217a52a0ab81230436ec0.zip
DilOS: build pack for tdelibs
Signed-off-by: Denis Kozadaev <[email protected]>
Diffstat (limited to 'dilos/tdelibs/debian/patches')
-rw-r--r--dilos/tdelibs/debian/patches/dilos.patch374
-rw-r--r--dilos/tdelibs/debian/patches/series1
2 files changed, 375 insertions, 0 deletions
diff --git a/dilos/tdelibs/debian/patches/dilos.patch b/dilos/tdelibs/debian/patches/dilos.patch
new file mode 100644
index 000000000..ac5eac39a
--- /dev/null
+++ b/dilos/tdelibs/debian/patches/dilos.patch
@@ -0,0 +1,374 @@
+Index: tdelibs/CMakeLists.txt
+===================================================================
+--- tdelibs.orig/CMakeLists.txt
++++ tdelibs/CMakeLists.txt
+@@ -188,7 +188,7 @@ check_include_file( "ctype.h" HAVE_CTYPE
+ check_include_file( "dirent.h" HAVE_DIRENT_H )
+ check_include_file( "dld.h" HAVE_DLD_H )
+ check_include_file( "dlfcn.h" HAVE_DLFCN_H )
+-check_include_file( "dl.h" HAVE_DL_H )
++check_include_file( "sys/dl.h" HAVE_DL_H )
+ check_include_file( "float.h" HAVE_FLOAT_H )
+ check_include_file( "fstab.h" HAVE_FSTAB_H )
+ check_include_file( "ieeefp.h" HAVE_IEEEFP_H )
+@@ -224,7 +224,9 @@ check_include_file( "sys/dir.h" HAVE_SYS
+ check_include_file( "sys/filio.h" HAVE_SYS_FILIO_H )
+ check_include_file( "sys/mman.h" HAVE_SYS_MMAN_H )
+ check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H )
++tde_save_and_set( CMAKE_REQUIRED_FLAGS "-include stdio.h" )
+ check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H )
++tde_restore( CMAKE_REQUIRED_FLAGS )
+ check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H )
+ if( NOT HAVE_SYS_MOUNT_H )
+ find_path( SYS_MOUNT_PATH "sys/mount.h" )
+@@ -247,6 +249,13 @@ if( NOT HAVE_SYS_UCRED_H )
+ set( HAVE_SYS_UCRED_H "1" )
+ endif( )
+ endif( )
++check_include_file( "ucred.h" HAVE_UCRED_H )
++if( NOT HAVE_UCRED_H )
++ find_path( UCRED_PATH "ucred.h" )
++ if( UCRED_PATH )
++ set( HAVE_UCRED_H "1" )
++ endif( )
++endif( )
+ check_include_file( "sys/xattr.h" HAVE_SYS_XATTR_H )
+ check_include_file( "termios.h" HAVE_TERMIOS_H )
+ check_include_file( "termio.h" HAVE_TERMIO_H )
+@@ -328,9 +337,11 @@ check_symbol_exists( S_ISSOCK "sys/stat.
+
+ check_symbol_exists( gethostbyname2 "netdb.h" HAVE_GETHOSTBYNAME2 )
+ check_symbol_exists( gethostbyname2_r "netdb.h" HAVE_GETHOSTBYNAME2_R )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_symbol_exists( gethostbyname_r "netdb.h" HAVE_GETHOSTBYNAME_R )
+ check_symbol_exists( gai_strerror "sys/types.h;sys/socket.h;netdb.h" HAVE_GAI_STRERROR )
+ check_symbol_exists( getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRINFO )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_symbol_exists( backtrace "execinfo.h" HAVE_BACKTRACE )
+ check_cxx_source_compiles( "#include <cxxabi.h>
+ int main() { abi::__cxa_demangle(0, 0, 0, 0); return 0; }"
+@@ -346,7 +357,7 @@ check_symbol_exists( ffs "string.h
+ check_symbol_exists( asprintf "stdio.h" HAVE_ASPRINTF_PROTO )
+ check_symbol_exists( vasprintf "stdio.h" HAVE_VASPRINTF_PROTO )
+ check_symbol_exists( snprintf "stdio.h" HAVE_SNPRINTF_PROTO )
+-check_symbol_exists( vsnprintf "stdarg.h" HAVE_VSNPRINTF_PROTO )
++check_symbol_exists( vsnprintf "stdio.h;stdarg.h" HAVE_VSNPRINTF_PROTO )
+ check_symbol_exists( strvercmp "string.h" HAVE_STRVERCMP_PROTO )
+
+
+@@ -374,22 +385,32 @@ if( HAVE_GETMNTINFO )
+ }"
+ GETMNTINFO_USES_STATVFS )
+ endif( HAVE_GETMNTINFO )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( getnameinfo HAVE_GETNAMEINFO )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( getpagesize HAVE_GETPAGESIZE )
+ check_function_exists( getpeereid HAVE_GETPEEREID )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( getpeername HAVE_GETPEERNAME )
+ check_function_exists( getprotobyname_r HAVE_GETPROTOBYNAME_R )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( getpt HAVE_GETPT )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( getservbyname_r HAVE_GETSERVBYNAME_R )
+ check_function_exists( getservbyport_r HAVE_GETSERVBYPORT_R )
+ check_function_exists( getsockname HAVE_GETSOCKNAME )
+ check_function_exists( getsockopt HAVE_GETSOCKOPT )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( gettimeofday HAVE_GETTIMEOFDAY )
+ check_function_exists( grantpt HAVE_GRANTPT )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( if_nametoindex HAVE_IF_NAMETOINDEX )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( index HAVE_INDEX)
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( inet_ntop HAVE_INET_NTOP )
+ check_function_exists( inet_pton HAVE_INET_PTON )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( setfsent HAVE_SETFSENT )
+ check_function_exists( setgroups HAVE_SETGROUPS )
+ check_function_exists( setlocale HAVE_SETLOCALE )
+@@ -398,10 +419,16 @@ check_function_exists( setpriority HAVE_
+ check_function_exists( isnan HAVE_FUNC_ISNAN )
+ check_function_exists( _finite HAVE_FUNC__FINITE )
+ check_function_exists( finite HAVE_FUNC_FINITE )
+-check_function_exists( isinf HAVE_FUNC_ISINF )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES m )
++check_symbol_exists( isinf "math.h" HAVE_FUNC_ISINF )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( freeaddrinfo HAVE_FREEADDRINFO )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( strtoll HAVE_STRTOLL )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES socket nsl )
+ check_function_exists( socket HAVE_SOCKET )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( strfmon HAVE_STRFMON )
+ check_function_exists( stpcpy HAVE_STPCPY )
+ check_function_exists( readdir_r HAVE_READDIR_R )
+@@ -417,7 +444,9 @@ check_function_exists( _getpty HAVE__GET
+ check_function_exists( __argz_count HAVE___ARGZ_COUNT )
+ check_function_exists( __argz_next HAVE___ARGZ_NEXT )
+ check_function_exists( __argz_stringify HAVE___ARGZ_STRINGIFY )
++tde_save_and_set( CMAKE_REQUIRED_LIBRARIES sendfile socket nsl)
+ check_function_exists( sendfile HAVE_SENDFILE )
++tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ check_function_exists( rindex HAVE_RINDEX )
+ check_function_exists( putenv HAVE_PUTENV )
+ check_function_exists( poll HAVE_POLL )
+Index: tdelibs/dcop/CMakeLists.txt
+===================================================================
+--- tdelibs.orig/dcop/CMakeLists.txt
++++ tdelibs/dcop/CMakeLists.txt
+@@ -49,7 +49,7 @@ set( ${target}_SRCS
+ tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 14.0.0
+- LINK kICE-static ${TQT_LIBRARIES}
++ LINK kICE-static ${TQT_LIBRARIES} socket nsl
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
+
+Index: tdelibs/tdecore/network/kresolver_p.h
+===================================================================
+--- tdelibs.orig/tdecore/network/kresolver_p.h
++++ tdelibs/tdecore/network/kresolver_p.h
+@@ -48,7 +48,7 @@ extern TQMutex getXXbyYYmutex;
+ #endif
+
+ /* some systems have the functions, but don't declare them */
+-#ifndef __OpenBSD__
++#if !defined(__OpenBSD__) && !defined(__dilos__)
+ #if defined(HAVE_GETSERVBYNAME_R) && !HAVE_DECL_GETSERVBYNAME_R
+ extern "C" {
+ struct servent;
+Index: tdelibs/tdecore/kdebug.cpp
+===================================================================
+--- tdelibs.orig/tdecore/kdebug.cpp
++++ tdelibs/tdecore/kdebug.cpp
+@@ -753,7 +753,7 @@ TQString formatBacktrace(void *addr) {
+ // NOTE: if somebody would compile for some non-linux-glibc platform
+ // check if dladdr function is avalible there
+ Dl_info info;
+- dladdr(func.addr, &info); // obtain information about the function.
++ dladdr((void *)func.addr, &info); // obtain information about the function.
+
+ func.fileName = info.dli_fname;
+ func.base = info.dli_fbase;
+Index: tdelibs/tdecore/netsupp.cpp
+===================================================================
+--- tdelibs.orig/tdecore/netsupp.cpp
++++ tdelibs/tdecore/netsupp.cpp
+@@ -44,6 +44,7 @@
+ #endif
+ #undef CLOBBER_IN6
+ #include "netsupp.h"
++#include "ksockaddr.h"
+
+ #if defined(__hpux) || defined(_HPUX_SOURCE)
+ extern int h_errno;
+Index: tdelibs/tdecore/ksimpledirwatch.cpp
+===================================================================
+--- tdelibs.orig/tdecore/ksimpledirwatch.cpp
++++ tdelibs/tdecore/ksimpledirwatch.cpp
+@@ -57,7 +57,11 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/syscall.h>
++#if defined(__dilos__)
++#include <sys/filio.h>
++#else /* !__dilos__ */
+ #include <linux/types.h>
++#endif /* __dilos__ */
+ // Linux kernel headers are documented to not compile
+ #define _S390_BITOPS_H
+ #include <sys/inotify.h>
+Index: tdelibs/cmake/modules/TDEMacros.cmake
+===================================================================
+--- tdelibs.orig/cmake/modules/TDEMacros.cmake
++++ tdelibs/cmake/modules/TDEMacros.cmake
+@@ -833,7 +833,7 @@ macro( tde_add_library _arg_target )
+
+ # set embedded archives
+ if( _embed )
+- list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
++ list( INSERT _link 0 -Wl,-zallextract ${_embed} -Wl,-zdefaultextract )
+ endif( _embed )
+
+ # set link libraries
+@@ -1875,11 +1875,11 @@ macro( tde_setup_architecture_flags )
+ set( LINKER_IMMEDIATE_BINDING_FLAGS "" CACHE INTERNAL "" FORCE )
+ endif( )
+
+- check_cxx_compiler_flag( -fPIE HAVE_PIE_SUPPORT )
+- if( HAVE_PIE_SUPPORT )
+- set( TDE_PIE_CFLAGS -fPIE )
+- set( TDE_PIE_LDFLAGS -pie )
+- endif( HAVE_PIE_SUPPORT )
++# check_cxx_compiler_flag( -fPIE HAVE_PIE_SUPPORT )
++# if( HAVE_PIE_SUPPORT )
++# set( TDE_PIE_CFLAGS -fPIE )
++# set( TDE_PIE_LDFLAGS -pie )
++# endif( HAVE_PIE_SUPPORT )
+ endmacro( )
+
+
+Index: tdelibs/tdecore/CMakeLists.txt
+===================================================================
+--- tdelibs.orig/tdecore/CMakeLists.txt
++++ tdelibs/tdecore/CMakeLists.txt
+@@ -138,7 +138,7 @@ tde_add_library( ${target} SHARED AUTOMO
+ EMBED tdecorenetwork-static ${TDEHW_LIB}
+ LINK ltdlc-static ${KDESVGICONS} DCOP-shared tdefx-shared ${ZLIB_LIBRARIES}
+ ${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM ${GAMIN_LIBRARIES}
+- ${LIBBFD_LIBRARIES} ${LIB_UTIL}
++ ${LIBBFD_LIBRARIES} ${LIB_UTIL} -lresolv
+ DEPENDENCIES dcopidl dcopidl2cpp
+ DESTINATION ${LIB_INSTALL_DIR}
+ )
+Index: tdelibs/tdeio/tdeio/kdirwatch.cpp
+===================================================================
+--- tdelibs.orig/tdeio/tdeio/kdirwatch.cpp
++++ tdelibs/tdeio/tdeio/kdirwatch.cpp
+@@ -69,7 +69,11 @@
+ #include <unistd.h>
+ #include <fcntl.h>
+ #include <sys/syscall.h>
++#if defined(__dilos__)
++#include <sys/filio.h>
++#else /* !__dilos__ */
+ #include <linux/types.h>
++#endif /* __dilos__ */
+ // Linux kernel headers are documented to not compile
+ #define _S390_BITOPS_H
+ #include <sys/inotify.h>
+Index: tdelibs/tdeio/misc/kpac/CMakeLists.txt
+===================================================================
+--- tdelibs.orig/tdeio/misc/kpac/CMakeLists.txt
++++ tdelibs/tdeio/misc/kpac/CMakeLists.txt
+@@ -62,5 +62,6 @@ set( target kpac_dhcp_helper )
+ # FIXME on Gentoo this binary is not suided
+ tde_add_executable( ${target} SETUID
+ SOURCES kpac_dhcp_helper.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+Index: tdelibs/tdeinit/CMakeLists.txt
+===================================================================
+--- tdelibs.orig/tdeinit/CMakeLists.txt
++++ tdelibs/tdeinit/CMakeLists.txt
+@@ -51,6 +51,7 @@ set( target tdeinit_wrapper )
+
+ tde_add_executable( ${target}
+ SOURCES wrapper.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+
+@@ -61,6 +62,7 @@ set( target kshell )
+
+ tde_add_executable( ${target}
+ SOURCES shell.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+
+@@ -71,6 +73,7 @@ set( target tdeinit_shutdown )
+
+ tde_add_executable( ${target}
+ SOURCES wrapper.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+
+@@ -81,6 +84,7 @@ set( target lnusertemp )
+
+ tde_add_executable( ${target}
+ SOURCES lnusertemp.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+
+@@ -91,6 +95,7 @@ set( target kwrapper )
+
+ tde_add_executable( ${target}
+ SOURCES kwrapper.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+
+@@ -138,6 +143,7 @@ endif( TDEINIT_SETUID )
+
+ tde_add_executable( ${target} ${_setuid}
+ SOURCES start_tdeinit.c
++ LINK socket nsl
+ DESTINATION ${BIN_INSTALL_DIR}
+ )
+
+Index: tdelibs/tdehtml/misc/knsplugininstaller.cpp
+===================================================================
+--- tdelibs.orig/tdehtml/misc/knsplugininstaller.cpp
++++ tdelibs/tdehtml/misc/knsplugininstaller.cpp
+@@ -42,6 +42,9 @@
+ #include <tqtextstream.h>
+
+ #include <sys/utsname.h>
++#ifdef USE_SOLARIS
++#include <sys/systeminfo.h>
++#endif /* USE_SOLARIS */
+
+ // Use 6031 for debugging (render_frame)
+ #define DEBUG_NUMBER 6031
+@@ -154,10 +157,14 @@ bool KNSPluginInstallEngine::loadXmlConf
+
+ bool KNSPluginInstallEngine::findPlugin()
+ {
+-
++#ifdef USE_SOLARIS
++ struct utsname sysinfo;
++#else /* !USE_SOLARIS */
+ // get system infos
+ // TODO/FIX : correct this to work with x86-64 machines
+ utsname sysinfo;
++#endif /* USE_SOLARIS */
++
+ if(uname(&sysinfo))
+ return false;
+ TQString sysname(sysinfo.sysname);
+Index: tdelibs/tdeioslave/file/file.cc
+===================================================================
+--- tdelibs.orig/tdeioslave/file/file.cc
++++ tdelibs/tdeioslave/file/file.cc
+@@ -1448,13 +1448,10 @@ void FileProtocol::mount( bool _ro, cons
+ // mount giving device + mountpoint + fstype
+ #if defined(__svr4__) && defined(__sun__) // MARCO for Solaris 8 and I
+ // believe this is true for SVR4 in general
+- buffer.sprintf( "%s -F %s %s %s %s 2>%s"
+- mountProg.latin1()
+- fstype.data()
+- _ro ? "-oro" : ""
+- dev.data()
+- point.data()
+- tmp );
++ buffer.sprintf( "%s -F %s %s %s %s 2>%s",
++ mountProg.latin1(), fstype.data(),
++ _ro ? "-oro" : "", dev.data(),
++ point.data(), tmp);
+ #elif defined(__OpenBSD__)
+ buffer.sprintf( "%s %s %s -t %s %s %s 2>%s", "tdesu", mountProg.latin1(), readonly.data(),
+ fstype.data(), dev.data(), point.data(), tmp );
+Index: tdelibs/tdeio/kssl/kopenssl.cc
+===================================================================
+--- tdelibs.orig/tdeio/kssl/kopenssl.cc
++++ tdelibs/tdeio/kssl/kopenssl.cc
+@@ -348,6 +348,9 @@ TDEConfig *cfg;
+ #ifdef _AIX
+ << "/opt/freeware/lib/"
+ #endif
++ #ifdef __dilos__
++ << "/" SYSTEM_LIBDIR KDELIBSUFF
++ #endif /* __dilos__ */
+ << "/usr/" SYSTEM_LIBDIR "/"
+ << "/usr/ssl/" SYSTEM_LIBDIR "/"
+ << "/usr/local/" SYSTEM_LIBDIR "/"
diff --git a/dilos/tdelibs/debian/patches/series b/dilos/tdelibs/debian/patches/series
new file mode 100644
index 000000000..c77ae3ebe
--- /dev/null
+++ b/dilos/tdelibs/debian/patches/series
@@ -0,0 +1 @@
+dilos.patch