import kdelibs3
This commit is contained in:
parent
ce2e1b4bd2
commit
05f68626ba
@ -0,0 +1 @@
|
|||||||
|
kdelibs-3.5.7.tar.bz2
|
18
devices.protocol
Normal file
18
devices.protocol
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Protocol]
|
||||||
|
exec=kio_media
|
||||||
|
protocol=devices
|
||||||
|
input=none
|
||||||
|
output=filesystem
|
||||||
|
listing=Name,Type,Size,Date,AccessDate,Access,Owner,Group,Link
|
||||||
|
reading=true
|
||||||
|
writing=true
|
||||||
|
makedir=true
|
||||||
|
deleting=true
|
||||||
|
linking=true
|
||||||
|
moving=true
|
||||||
|
Icon=system
|
||||||
|
maxInstances=4
|
||||||
|
#TODO DocPath=kioslave/file.html
|
||||||
|
Class=:local
|
||||||
|
deleteRecursive=true
|
||||||
|
fileNameUsedForCopying=Name
|
72
kde-3.5-libtool-shlibext.patch
Normal file
72
kde-3.5-libtool-shlibext.patch
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
Index: arts-1.5.4/acinclude.m4
|
||||||
|
===================================================================
|
||||||
|
--- arts-1.5.4.orig/acinclude.m4
|
||||||
|
+++ arts-1.5.4/acinclude.m4
|
||||||
|
@@ -12040,28 +12040,12 @@ fi
|
||||||
|
])# AC_LTDL_SYS_DLOPEN_DEPLIBS
|
||||||
|
|
||||||
|
AC_DEFUN([AC_LTDL_SHLIBEXT],
|
||||||
|
-[AC_REQUIRE([AC_LTDL_SNARF_CONFIG])dnl
|
||||||
|
+[AC_REQUIRE([AC_LIBTOOL_SYS_DYNAMIC_LINKER])dnl
|
||||||
|
AC_CACHE_CHECK([which extension is used for shared libraries],
|
||||||
|
libltdl_cv_shlibext, [dnl
|
||||||
|
-(
|
||||||
|
- last=
|
||||||
|
- case "$host_os" in
|
||||||
|
- cygwin* | mingw*)
|
||||||
|
- last=".dll"
|
||||||
|
- ;;
|
||||||
|
- *)
|
||||||
|
- for spec in $library_names_spec; do
|
||||||
|
- last="$spec"
|
||||||
|
- done
|
||||||
|
- ;;
|
||||||
|
- esac
|
||||||
|
-changequote(, )
|
||||||
|
- echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
|
||||||
|
-changequote([, ])
|
||||||
|
-)
|
||||||
|
-libltdl_cv_shlibext=`cat conftest`
|
||||||
|
-rm -f conftest
|
||||||
|
-])
|
||||||
|
+module=yes
|
||||||
|
+eval libltdl_cv_shlibext=$shrext
|
||||||
|
+ ])
|
||||||
|
if test -n "$libltdl_cv_shlibext"; then
|
||||||
|
AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",
|
||||||
|
[Define to the extension used for shared libraries, say, ".so". ])
|
||||||
|
Index: arts-1.5.4/libltdl/ltdl.m4
|
||||||
|
===================================================================
|
||||||
|
--- arts-1.5.4.orig/libltdl/ltdl.m4
|
||||||
|
+++ arts-1.5.4/libltdl/ltdl.m4
|
||||||
|
@@ -118,27 +118,11 @@ fi
|
||||||
|
])# AC_LTDL_SYS_DLOPEN_DEPLIBS
|
||||||
|
|
||||||
|
AC_DEFUN([AC_LTDL_SHLIBEXT],
|
||||||
|
-[AC_REQUIRE([AC_LTDL_SNARF_CONFIG])dnl
|
||||||
|
+[AC_REQUIRE([AC_LIBTOOL_SYS_DYNAMIC_LINKER])dnl
|
||||||
|
AC_CACHE_CHECK([which extension is used for shared libraries],
|
||||||
|
libltdl_cv_shlibext, [dnl
|
||||||
|
-(
|
||||||
|
- last=
|
||||||
|
- case "$host_os" in
|
||||||
|
- cygwin* | mingw*)
|
||||||
|
- last=".dll"
|
||||||
|
- ;;
|
||||||
|
- *)
|
||||||
|
- for spec in $library_names_spec; do
|
||||||
|
- last="$spec"
|
||||||
|
- done
|
||||||
|
- ;;
|
||||||
|
- esac
|
||||||
|
-changequote(, )
|
||||||
|
- echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
|
||||||
|
-changequote([, ])
|
||||||
|
-)
|
||||||
|
-libltdl_cv_shlibext=`cat conftest`
|
||||||
|
-rm -f conftest
|
||||||
|
+module=yes
|
||||||
|
+eval libltdl_cv_shlibext=$shrext
|
||||||
|
])
|
||||||
|
if test -n "$libltdl_cv_shlibext"; then
|
||||||
|
AC_DEFINE_UNQUOTED(LTDL_SHLIB_EXT, "$libltdl_cv_shlibext",
|
17
kde.csh
Executable file
17
kde.csh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
## http://kde.ground.cz/tiki-index.php?page=Environment+Variables
|
||||||
|
## for possible entries here
|
||||||
|
|
||||||
|
# When/if using prelinking, avoids (some) use of kdeinit
|
||||||
|
if ( -f /etc/sysconfig/prelink ) then
|
||||||
|
set PRELINKING = `grep "^PRELINKING=" /etc/sysconfig/prelink | cut -d"=" -f2`
|
||||||
|
if ( "$PRELINKING" == "yes" ) then
|
||||||
|
if ( ! $?KDE_IS_PRELINKED ) setenv KDE_IS_PRELINKED 1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
# if not using IP6, speeds DNS operations
|
||||||
|
# if ( ! $?KDE_NO_IPV6 ) setenv KDE_NO_IPV6 1
|
||||||
|
|
||||||
|
# Make sure KDEDIRS is set
|
||||||
|
if ( ! $?KDEDIRS ) setenv KDEDIRS /usr
|
||||||
|
|
15
kde.sh
Executable file
15
kde.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
## http://kde.ground.cz/tiki-index.php?page=Environment+Variables
|
||||||
|
## for possible entries here
|
||||||
|
|
||||||
|
## When/if using prelinking, avoids (some) use of kdeinit
|
||||||
|
if [ -f /etc/sysconfig/prelink ]; then
|
||||||
|
if [ `grep '^PRELINKING=yes' /etc/sysconfig/prelink` ] ; then
|
||||||
|
[ -z "$KDE_IS_PRELINKED" ] && KDE_IS_PRELINKED=1 && export KDE_IS_PRELINKED
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
## IPV6 support
|
||||||
|
#[ -z "$KDE_NO_IPV6" ] && KDE_NO_IPV6=1 && export KDE_NO_IPV6
|
||||||
|
|
||||||
|
## Make sure KDEDIRS is set
|
||||||
|
[ -z "$KDEDIRS" ] && KDEDIRS="/usr" && export KDEDIRS
|
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();
|
||||||
|
|
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.4.0-qtdoc.patch
Normal file
11
kdelibs-3.4.0-qtdoc.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs-3.4.0/admin/acinclude.m4.in.orig 2005-04-01 19:01:33.000000000 +0200
|
||||||
|
+++ kdelibs-3.4.0/admin/acinclude.m4.in 2005-04-01 19:03:15.000000000 +0200
|
||||||
|
@@ -5317,7 +5317,7 @@
|
||||||
|
kde_qtdir="$with_qt_dir"
|
||||||
|
fi
|
||||||
|
|
||||||
|
-AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
|
||||||
|
+AC_FIND_FILE(qsql.html, [ $kde_qtdir/doc/html $QTDOC/html $QTDIR/doc/html /usr/share/doc/packages/qt3/html /usr/lib/qt/doc /usr/lib/qt3/doc /usr/lib/qt3/doc/html /usr/doc/qt3/html /usr/doc/qt3 /usr/share/doc/qt3-doc /usr/share/qt3/doc/html /usr/X11R6/share/doc/qt/html ], QTDOCDIR)
|
||||||
|
AC_MSG_RESULT($QTDOCDIR)
|
||||||
|
|
||||||
|
AC_SUBST(QTDOCDIR)
|
26
kdelibs-3.4.91-buildroot.patch
Normal file
26
kdelibs-3.4.91-buildroot.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
--- kdelibs-3.4.91/kdecore/Makefile.am.orig 2005-09-27 17:15:22.000000000 +0200
|
||||||
|
+++ kdelibs-3.4.91/kdecore/Makefile.am 2005-09-27 17:14:37.000000000 +0200
|
||||||
|
@@ -172,14 +172,6 @@
|
||||||
|
kgrantpty_LDFLAGS = $(KDE_USE_PIE) $(KDE_RPATH) $(all_libraries)
|
||||||
|
kgrantpty_LDADD = ./libkdefakes.la
|
||||||
|
|
||||||
|
-# kgrantpty needs to be installed setuid root
|
||||||
|
-install-exec-hook:
|
||||||
|
- @(chown 0 $(DESTDIR)$(bindir)/kgrantpty && chmod 4755 $(DESTDIR)$(bindir)/kgrantpty) || echo "Please make kgrantpty setuid root" >&2
|
||||||
|
- @echo ""
|
||||||
|
- @echo "kgrantpty is by default installed with a set SETUID root bit!"
|
||||||
|
- @echo "This is needed for konsole, etc. to ensure that they can't be eavesdropped."
|
||||||
|
- @echo ""
|
||||||
|
-
|
||||||
|
DISTCLEANFILES = kde-config.cpp
|
||||||
|
|
||||||
|
DOXYGEN_REFERENCES = dcop kdeui kparts kio
|
||||||
|
--- kdelibs-3.4.91/kio/misc/kpac/Makefile.am.orig 2005-09-27 17:15:39.000000000 +0200
|
||||||
|
+++ kdelibs-3.4.91/kio/misc/kpac/Makefile.am 2005-09-27 17:15:58.000000000 +0200
|
||||||
|
@@ -24,6 +24,3 @@
|
||||||
|
|
||||||
|
proxyscoutdatadir = $(kde_datadir)/proxyscout
|
||||||
|
proxyscoutdata_DATA = eventsrc
|
||||||
|
-
|
||||||
|
-install-exec-local:
|
||||||
|
- @(chown root $(DESTDIR)$(bindir)/kpac_dhcp_helper && chmod 4755 $(DESTDIR)$(bindir)/kpac_dhcp_helper) || echo "Please make kpac_dhcp_helper setuid root"
|
11
kdelibs-3.4.92-inttype.patch
Normal file
11
kdelibs-3.4.92-inttype.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs-3.4.92/kwallet/backend/sha1.cc.orig 2005-10-24 08:01:18.000000000 -0400
|
||||||
|
+++ kdelibs-3.4.92/kwallet/backend/sha1.cc 2005-10-24 08:11:28.000000000 -0400
|
||||||
|
@@ -27,6 +27,8 @@
|
||||||
|
#include <sys/bitypes.h> /* For uintXX_t on Tru64 */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include <inttypes.h>
|
||||||
|
+
|
||||||
|
#include "sha1.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
32
kdelibs-3.5.0-101956.patch
Normal file
32
kdelibs-3.5.0-101956.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
--- kdelibs-3.5.0/kioslave/http/http.cc.101956 2005-11-08 16:39:17.000000000 -0600
|
||||||
|
+++ kdelibs-3.5.0/kioslave/http/http.cc 2005-12-01 13:23:39.000000000 -0600
|
||||||
|
@@ -2103,6 +2103,8 @@
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ bool bCacheOnly = (m_request.cache == KIO::CC_CacheOnly);
|
||||||
|
+
|
||||||
|
m_request.fcache = 0;
|
||||||
|
m_request.bCachedRead = false;
|
||||||
|
m_request.bCachedWrite = false;
|
||||||
|
@@ -2114,7 +2116,6 @@
|
||||||
|
{
|
||||||
|
m_request.fcache = checkCacheEntry( );
|
||||||
|
|
||||||
|
- bool bCacheOnly = (m_request.cache == KIO::CC_CacheOnly);
|
||||||
|
bool bOffline = isOffline(m_request.doProxy ? m_proxyURL : m_request.url);
|
||||||
|
if (bOffline && (m_request.cache != KIO::CC_Reload))
|
||||||
|
m_request.cache = KIO::CC_CacheOnly;
|
||||||
|
@@ -2156,6 +2157,12 @@
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+ else if (bCacheOnly)
|
||||||
|
+ {
|
||||||
|
+ // Instructed to only check cache, but _not_ to use cache. Oops.
|
||||||
|
+ error( ERR_DOES_NOT_EXIST, m_request.url.url() );
|
||||||
|
+ return false;
|
||||||
|
+ }
|
||||||
|
|
||||||
|
QString header;
|
||||||
|
QString davHeader;
|
21
kdelibs-3.5.1-xdg-menu.patch
Normal file
21
kdelibs-3.5.1-xdg-menu.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
--- kdelibs-3.5.1/kded/applications.menu.orig 2006-02-21 14:30:11.000000000 +0100
|
||||||
|
+++ kdelibs-3.5.1/kded/applications.menu 2006-02-21 14:30:16.000000000 +0100
|
||||||
|
@@ -31,12 +31,16 @@
|
||||||
|
<Category>Core</Category>
|
||||||
|
<Not><Category>KDE</Category></Not>
|
||||||
|
</And>
|
||||||
|
- <!-- Don't list SUSE's YaST in here -->
|
||||||
|
- <Category>X-SuSE-YaST</Category>
|
||||||
|
+ <Category>X-Red-Hat-Base</Category>
|
||||||
|
</Not>
|
||||||
|
</Include>
|
||||||
|
</Menu>
|
||||||
|
<Menu>
|
||||||
|
+ <Name>System Settings</Name>
|
||||||
|
+ <MergeFile>system-settings.menu</MergeFile>
|
||||||
|
+ </Menu>
|
||||||
|
+
|
||||||
|
+ <Menu>
|
||||||
|
<Name>Development</Name>
|
||||||
|
<Directory>kde-development.directory</Directory>
|
||||||
|
<Menu>
|
25
kdelibs-3.5.2-cupsdconf2-group.patch
Normal file
25
kdelibs-3.5.2-cupsdconf2-group.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
--- kdelibs-3.5.2/kdeprint/cups/cupsdconf2/cupsd.conf.template.tn 2006-05-22 14:51:46.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.2/kdeprint/cups/cupsdconf2/cupsd.conf.template 2006-05-22 15:27:27.000000000 +0200
|
||||||
|
@@ -275,9 +275,9 @@
|
||||||
|
# must be <b>sys</b>, however you can configure things for another
|
||||||
|
# group as needed.</p>
|
||||||
|
# <p>
|
||||||
|
-# <i>ex</i>: sys</p>
|
||||||
|
+# <i>ex</i>: lp</p>
|
||||||
|
$$
|
||||||
|
-#Group sys
|
||||||
|
+#Group lp
|
||||||
|
@@
|
||||||
|
|
||||||
|
%%ripcache
|
||||||
|
--- kdelibs-3.5.2/kdeprint/cups/cupsdconf2/cupsdconf.cpp.tn 2006-05-22 15:26:15.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.2/kdeprint/cups/cupsdconf2/cupsdconf.cpp 2006-05-22 15:26:32.000000000 +0200
|
||||||
|
@@ -115,7 +115,7 @@
|
||||||
|
maxjobsperprinter_ = 0;
|
||||||
|
maxjobsperuser_ = 0;
|
||||||
|
user_ = "lp";
|
||||||
|
- group_ = "sys";
|
||||||
|
+ group_ = "lp";
|
||||||
|
ripcache_ = "8m";
|
||||||
|
filterlimit_ = 0;
|
||||||
|
browsing_ = true;
|
11
kdelibs-3.5.2-kdebug-kmail-quiet.patch
Normal file
11
kdelibs-3.5.2-kdebug-kmail-quiet.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs-3.5.2/kdecore/kdebugrc.orig 2006-05-03 16:12:27.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.2/kdecore/kdebugrc 2006-05-03 16:12:35.000000000 +0200
|
||||||
|
@@ -82,7 +82,7 @@
|
||||||
|
|
||||||
|
# KMail
|
||||||
|
[5006]
|
||||||
|
-InfoOutput=2
|
||||||
|
+InfoOutput=4
|
||||||
|
|
||||||
|
# KitchenSync (Syncing Algorithm)
|
||||||
|
[5250]
|
10
kdelibs-3.5.4-kabc-make.patch
Normal file
10
kdelibs-3.5.4-kabc-make.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- kdelibs-3.5.4/kabc/Makefile.am.orig 2006-09-29 12:07:44.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.4/kabc/Makefile.am 2006-09-29 12:06:01.000000000 +0200
|
||||||
|
@@ -55,6 +55,7 @@
|
||||||
|
kab2kabc_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||||
|
kab2kabc_LDADD = libkabc.la ../kab/libkab.la
|
||||||
|
kab2kabc_SOURCES = kab2kabc.cpp
|
||||||
|
+kab2kabc_COMPILE_FIRST = addressee.h
|
||||||
|
|
||||||
|
autostart_DATA = kab2kabc.desktop
|
||||||
|
autostartdir = $(datadir)/autostart
|
11
kdelibs-3.5.4-kdeprint-utf8.patch
Normal file
11
kdelibs-3.5.4-kdeprint-utf8.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- kdelibs-3.5.4/kdeprint/cups/kmcupsmanager.cpp.orig 2006-10-01 21:55:49.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.4/kdeprint/cups/kmcupsmanager.cpp 2006-10-01 21:56:08.000000000 +0200
|
||||||
|
@@ -85,7 +85,7 @@
|
||||||
|
// change LANG variable so that CUPS is always using
|
||||||
|
// english language: translation may only come from the PPD
|
||||||
|
// itself, or from KDE.
|
||||||
|
- setenv("LANG", "en", 1);
|
||||||
|
+ setenv("LANG", "en_US.UTF-8", 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
KMCupsManager::~KMCupsManager()
|
14
kdelibs-3.5.5-kstandarddirs.patch
Normal file
14
kdelibs-3.5.5-kstandarddirs.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
diff -urN kdelibs-3.3.91.orig/kdecore/kstandarddirs.cpp kdelibs-3.3.91/kdecore/kstandarddirs.cpp
|
||||||
|
--- kdelibs-3.3.91.orig/kdecore/kstandarddirs.cpp 2005-01-14 21:46:57.964666000 -0800
|
||||||
|
+++ kdelibs-3.3.91/kdecore/kstandarddirs.cpp 2005-01-14 21:49:53.043136983 -0800
|
||||||
|
@@ -833,6 +833,10 @@
|
||||||
|
if ((local || testdir.exists()) && !candidates->contains(path))
|
||||||
|
candidates->append(path);
|
||||||
|
}
|
||||||
|
+ // UGLY HACK - Chris CHeney
|
||||||
|
+ if (local && (!strcmp("config", type)))
|
||||||
|
+ candidates->append("/etc/kde/");
|
||||||
|
+ //
|
||||||
|
local = false;
|
||||||
|
}
|
||||||
|
}
|
169
kdelibs-3.5.5-lib_loader-1.2.patch
Normal file
169
kdelibs-3.5.5-lib_loader-1.2.patch
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
|
||||||
|
kdecore/Makefile.am | 2 +
|
||||||
|
kdecore/klibloader.cpp | 86 +++++++++++++++++++++++++++----------------------
|
||||||
|
kdecore/klibloader.h | 2 -
|
||||||
|
kinit/kinit.cpp | 8 +---
|
||||||
|
4 files changed, 55 insertions(+), 43 deletions(-)
|
||||||
|
|
||||||
|
--- kdelibs-3.5.5/kdecore/Makefile.am.orig 2006-10-01 19:33:38.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.5/kdecore/Makefile.am 2007-01-05 00:17:27.235678750 +0100
|
||||||
|
@@ -115,8 +115,10 @@
|
||||||
|
kuser.cpp kconfigskeleton.cpp kconfigdialogmanager.cpp klockfile.cpp \
|
||||||
|
kqiodevicegzip_p.cpp ktimezones.cpp
|
||||||
|
|
||||||
|
+CXXFLAGS += -fexceptions
|
||||||
|
libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined
|
||||||
|
libkdecore_la_LIBADD = malloc/libklmalloc.la network/libkdecorenetwork.la $(SVGICON_LIB) ../dcop/libDCOP.la ../libltdl/libltdlc.la $(LIB_XEXT) $(LIBRESOLV) $(LIBUTIL) $(LIBART_LIBS) $(LIB_IDN) ../kdefx/libkdefx.la
|
||||||
|
+libkdecore_la_LIBADD += -lboost_filesystem -lboost_regex
|
||||||
|
libkdecore_la_NMCHECK = $(srcdir)/libkdecore.nmcheck
|
||||||
|
libkdecore_la_NMCHECKWEAK = $(srcdir)/libkdecore_weak.nmcheck $(srcdir)/libqt-mt_weak.nmcheck \
|
||||||
|
$(top_srcdir)/dcop/libDCOP_weak.nmcheck $(top_srcdir)/kdecore/standard_weak.nmcheck
|
||||||
|
--- kdelibs-3.5.5/kdecore/klibloader.h.orig 2005-10-10 17:06:03.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.5/kdecore/klibloader.h 2007-01-04 23:19:39.868039250 +0100
|
||||||
|
@@ -270,7 +270,7 @@
|
||||||
|
* wants to open modules.
|
||||||
|
* @param name of the library. If it is not a path, the function searches in
|
||||||
|
* the "module" and "lib" resources. If there is no extension,
|
||||||
|
- * ".la" will be appended.
|
||||||
|
+ * ".so*" will be appended.
|
||||||
|
* @param instance a KInstance used to get the standard paths
|
||||||
|
*/
|
||||||
|
static QString findLibrary( const char * name, const KInstance * instance = KGlobal::instance() );
|
||||||
|
--- kdelibs-3.5.5/kdecore/klibloader.cpp.orig 2006-01-19 17:06:18.000000000 +0000
|
||||||
|
+++ kdelibs-3.5.5/kdecore/klibloader.cpp 2007-01-05 00:08:39.215039750 +0000
|
||||||
|
@@ -331,43 +331,59 @@
|
||||||
|
d = 0L;
|
||||||
|
}
|
||||||
|
|
||||||
|
-static inline QCString makeLibName( const char* name )
|
||||||
|
+#include <boost/filesystem/exception.hpp>
|
||||||
|
+#include <boost/filesystem/operations.hpp>
|
||||||
|
+#include <boost/filesystem/path.hpp>
|
||||||
|
+#include <boost/regex.hpp>
|
||||||
|
+
|
||||||
|
+QCString makeSharedLibraryName( char const* name, QString const& dir )
|
||||||
|
{
|
||||||
|
- QCString libname(name);
|
||||||
|
- // only append ".la" if there is no extension
|
||||||
|
- // this allows to load non-libtool libraries as well
|
||||||
|
- // (mhk, 20000228)
|
||||||
|
- int pos = libname.findRev('/');
|
||||||
|
- if (pos < 0)
|
||||||
|
- pos = 0;
|
||||||
|
- if (libname.find('.', pos) < 0)
|
||||||
|
- libname += ".la";
|
||||||
|
- return libname;
|
||||||
|
+ try
|
||||||
|
+ {
|
||||||
|
+ boost::filesystem::path d( dir.ascii() );
|
||||||
|
+ std::string p = d.string() + "/" + name + ".so";
|
||||||
|
+ if ( boost::filesystem::exists( p ) )
|
||||||
|
+ return p.c_str();
|
||||||
|
+ boost::regex re( p + "\\..+", boost::regex::extended );
|
||||||
|
+ for ( boost::filesystem::directory_iterator i( d );
|
||||||
|
+ i != boost::filesystem::directory_iterator(); ++i )
|
||||||
|
+ {
|
||||||
|
+ boost::smatch m;
|
||||||
|
+ if ( boost::regex_match( i->string(), m, re ) )
|
||||||
|
+ return m.str().c_str();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ catch ( boost::filesystem::filesystem_error const& )
|
||||||
|
+ {
|
||||||
|
+ }
|
||||||
|
+ return QCString();
|
||||||
|
}
|
||||||
|
|
||||||
|
-//static
|
||||||
|
QString KLibLoader::findLibrary( const char * name, const KInstance * instance )
|
||||||
|
{
|
||||||
|
- QCString libname = makeLibName( name );
|
||||||
|
-
|
||||||
|
- // only look up the file if it is not an absolute filename
|
||||||
|
- // (mhk, 20000228)
|
||||||
|
- QString libfile;
|
||||||
|
- if (!QDir::isRelativePath(libname))
|
||||||
|
- libfile = QFile::decodeName( libname );
|
||||||
|
- else
|
||||||
|
- {
|
||||||
|
- libfile = instance->dirs()->findResource( "module", libname );
|
||||||
|
- if ( libfile.isEmpty() )
|
||||||
|
- {
|
||||||
|
- libfile = instance->dirs()->findResource( "lib", libname );
|
||||||
|
-#ifndef NDEBUG
|
||||||
|
- if ( !libfile.isEmpty() && libname.left(3) == "lib" ) // don't warn for kdeinit modules
|
||||||
|
- kdDebug(150) << "library " << libname << " not found under 'module' but under 'lib'" << endl;
|
||||||
|
-#endif
|
||||||
|
- }
|
||||||
|
- }
|
||||||
|
- return libfile;
|
||||||
|
+ try
|
||||||
|
+ {
|
||||||
|
+ if ( boost::filesystem::exists( name ) )
|
||||||
|
+ return name;
|
||||||
|
+ }
|
||||||
|
+ catch ( boost::filesystem::filesystem_error const& )
|
||||||
|
+ {
|
||||||
|
+ }
|
||||||
|
+ QStringList dirs = instance->dirs()->resourceDirs( "module" );
|
||||||
|
+ for ( QStringList::ConstIterator i = dirs.begin(); i != dirs.end(); ++i )
|
||||||
|
+ {
|
||||||
|
+ QCString p = makeSharedLibraryName( name, *i );
|
||||||
|
+ if ( !p.isNull() )
|
||||||
|
+ return p;
|
||||||
|
+ }
|
||||||
|
+ dirs = instance->dirs()->resourceDirs( "lib" );
|
||||||
|
+ for ( QStringList::ConstIterator i = dirs.begin(); i != dirs.end(); ++i )
|
||||||
|
+ {
|
||||||
|
+ QCString p = makeSharedLibraryName( name, *i );
|
||||||
|
+ if ( !p.isNull() )
|
||||||
|
+ return p;
|
||||||
|
+ }
|
||||||
|
+ return QString::null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -418,11 +434,7 @@
|
||||||
|
QString libfile = findLibrary( name );
|
||||||
|
if ( libfile.isEmpty() )
|
||||||
|
{
|
||||||
|
- const QCString libname = makeLibName( name );
|
||||||
|
-#ifndef NDEBUG
|
||||||
|
- kdDebug(150) << "library=" << name << ": No file named " << libname << " found in paths." << endl;
|
||||||
|
-#endif
|
||||||
|
- d->errorMessage = i18n("Library files for \"%1\" not found in paths.").arg(libname);
|
||||||
|
+ d->errorMessage = i18n("Library files for \"%1\" not found in paths.").arg(name);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
--- kdelibs-3.5.5/kinit/kinit.cpp.orig 2006-10-01 19:33:32.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.5/kinit/kinit.cpp 2007-01-04 23:39:00.780591750 +0100
|
||||||
|
@@ -447,7 +447,7 @@
|
||||||
|
{
|
||||||
|
/* Relative name without '.la' */
|
||||||
|
name = _name;
|
||||||
|
- lib = name + ".la";
|
||||||
|
+ lib = name;
|
||||||
|
exec = name;
|
||||||
|
libpath = QFile::encodeName(KLibLoader::findLibrary( lib, s_instance ));
|
||||||
|
execpath = execpath_avoid_loops( exec, envc, envs, avoid_loops );
|
||||||
|
@@ -458,9 +458,7 @@
|
||||||
|
name = _name;
|
||||||
|
name = name.mid( name.findRev('/') + 1);
|
||||||
|
exec = _name;
|
||||||
|
- if (lib.right(3) == ".la")
|
||||||
|
- libpath = lib;
|
||||||
|
- else
|
||||||
|
+ if ( libpath.findRev( ".so" ) == -1 )
|
||||||
|
execpath = exec;
|
||||||
|
}
|
||||||
|
if (!args)
|
||||||
|
@@ -1807,7 +1805,7 @@
|
||||||
|
#ifndef __CYGWIN__
|
||||||
|
if (!d.suicide && !getenv("KDE_IS_PRELINKED"))
|
||||||
|
{
|
||||||
|
- QString konq = locate("lib", "libkonq.la", s_instance);
|
||||||
|
+ QString konq = KLibLoader::findLibrary( "libkonq", s_instance );
|
||||||
|
if (!konq.isEmpty())
|
||||||
|
(void) lt_dlopen(QFile::encodeName(konq).data());
|
||||||
|
}
|
133
kdelibs-3.5.6-137675.patch
Normal file
133
kdelibs-3.5.6-137675.patch
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
Index: kioslave/metainfo/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- kioslave/metainfo/Makefile.am (Revision 606834)
|
||||||
|
+++ kioslave/metainfo/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
## Makefile.am of kdebase/kioslave/metainfo
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
-AM_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||||
|
+AM_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
METASOURCES = AUTO
|
||||||
|
|
||||||
|
kde_module_LTLIBRARIES = kio_metainfo.la
|
||||||
|
Index: kioslave/gzip/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- kioslave/gzip/Makefile.am (Revision 606834)
|
||||||
|
+++ kioslave/gzip/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
INCLUDES = -I$(top_srcdir)/kio $(all_includes)
|
||||||
|
-AM_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||||
|
+AM_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
METASOURCES = AUTO
|
||||||
|
|
||||||
|
kde_module_LTLIBRARIES = kgzipfilter.la
|
||||||
|
Index: kio/tests/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- kio/tests/Makefile.am (Revision 606834)
|
||||||
|
+++ kio/tests/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -18,7 +18,7 @@
|
||||||
|
|
||||||
|
INCLUDES= -I$(top_srcdir) -I$(top_srcdir)/kio $(all_includes)
|
||||||
|
LDADD = $(LIB_KIO)
|
||||||
|
-AM_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||||
|
+AM_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
check_PROGRAMS = ksycocatest getalltest kruntest ktartest kziptest\
|
||||||
|
kioslavetest kdirwatchtest kshredtest speed kurifiltertest \
|
||||||
|
Index: dcop/tests/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- dcop/tests/Makefile.am (Revision 606834)
|
||||||
|
+++ dcop/tests/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -3,7 +3,6 @@
|
||||||
|
@echo -e "dcop tests not run.\nRun make tests in the tests directory to make them"
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
-AM_LDFLAGS = $(all_libraries)
|
||||||
|
|
||||||
|
METASOURCES = AUTO
|
||||||
|
|
||||||
|
@@ -17,7 +16,7 @@
|
||||||
|
|
||||||
|
driver_SOURCES = driver.cpp test.stub
|
||||||
|
driver_LDADD = $(LIB_KDECORE)
|
||||||
|
-driver_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+driver_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
CLEANFILES = batch.generated definitions.generated driver.generated shell.generated
|
||||||
|
|
||||||
|
Index: dcop/dcopidl2cpp/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- dcop/dcopidl2cpp/Makefile.am (Revision 606834)
|
||||||
|
+++ dcop/dcopidl2cpp/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -1,6 +1,5 @@
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
-AM_LDFLAGS = $(all_libraries)
|
||||||
|
|
||||||
|
####### Files
|
||||||
|
|
||||||
|
@@ -10,7 +9,7 @@
|
||||||
|
noinst_HEADERS = main.h
|
||||||
|
|
||||||
|
dcopidl2cpp_LDADD = $(LIB_QT)
|
||||||
|
-dcopidl2cpp_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+dcopidl2cpp_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||||
|
|
||||||
|
dcopidl_output.kidl: ../dcopidl/dcopidl $(srcdir)/dcopidl_test.h
|
||||||
|
../dcopidl/dcopidl $(srcdir)/dcopidl_test.h > dcopidl_output.kidl
|
||||||
|
Index: dcop/client/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- dcop/client/Makefile.am (Revision 606834)
|
||||||
|
+++ dcop/client/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -1,6 +1,5 @@
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
-AM_LDFLAGS = $(all_libraries)
|
||||||
|
DCOP_LIB = ../libDCOP.la
|
||||||
|
|
||||||
|
####### Files
|
||||||
|
@@ -9,19 +8,19 @@
|
||||||
|
|
||||||
|
dcop_SOURCES = dcop.cpp
|
||||||
|
dcop_LDADD = $(LIB_QT) $(DCOP_LIB)
|
||||||
|
-dcop_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+dcop_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
dcopstart_SOURCES = dcopstart.cpp
|
||||||
|
dcopstart_LDADD = $(LIB_QT) $(DCOP_LIB)
|
||||||
|
-dcopstart_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+dcopstart_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
dcopquit_SOURCES = dcopquit.cpp
|
||||||
|
dcopquit_LDADD = $(LIB_QT) $(DCOP_LIB)
|
||||||
|
-dcopquit_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+dcopquit_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
dcopfind_SOURCES = dcopfind.cpp
|
||||||
|
dcopfind_LDADD = $(LIB_QT) $(DCOP_LIB)
|
||||||
|
-dcopfind_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+dcopfind_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
dcopclient_SOURCES = dcopclient.c
|
||||||
|
dcopobject_SOURCES = dcopobject.c
|
||||||
|
Index: dcop/dcopidl/Makefile.am
|
||||||
|
===================================================================
|
||||||
|
--- dcop/dcopidl/Makefile.am (Revision 606834)
|
||||||
|
+++ dcop/dcopidl/Makefile.am (Arbeitskopie)
|
||||||
|
@@ -1,6 +1,5 @@
|
||||||
|
|
||||||
|
INCLUDES = $(all_includes)
|
||||||
|
-AM_LDFLAGS = $(all_libraries)
|
||||||
|
AM_CPPFLAGS = -DYYDEBUG
|
||||||
|
|
||||||
|
####### Files
|
||||||
|
@@ -11,7 +10,7 @@
|
||||||
|
noinst_HEADERS = yacc.cc.h
|
||||||
|
|
||||||
|
dcopidl_LDADD = $(LIB_QT)
|
||||||
|
-dcopidl_LDFLAGS = $(KDE_RPATH)
|
||||||
|
+dcopidl_LDFLAGS = $(KDE_RPATH) $(all_libraries)
|
||||||
|
|
||||||
|
####### Build rules
|
||||||
|
|
17
kdelibs-3.5.6-lang.patch
Normal file
17
kdelibs-3.5.6-lang.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
--- kdelibs-3.5.6/kdecore/klocale.cpp.orig 2007-05-22 17:49:31.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.6/kdecore/klocale.cpp 2007-05-23 20:37:54.000000000 +0200
|
||||||
|
@@ -140,9 +140,11 @@ void KLocale::initLanguageList(KConfig *
|
||||||
|
KConfigGroupSaver saver(config, "Locale");
|
||||||
|
|
||||||
|
m_country = config->readEntry( "Country" );
|
||||||
|
- if ( m_country.isEmpty() )
|
||||||
|
- m_country = defaultCountry();
|
||||||
|
-
|
||||||
|
+ if ( m_country.isEmpty() ) {
|
||||||
|
+ QString ln, ct, chrset;
|
||||||
|
+ splitLocale(QString(::getenv("LANG")), ln, ct, chrset);
|
||||||
|
+ m_country = (ct.isEmpty()) ? defaultCountry() : ct.lower();
|
||||||
|
+ }
|
||||||
|
// Reset the list and add the new languages
|
||||||
|
QStringList languageList;
|
||||||
|
if ( useEnv )
|
113
kdelibs-3.5.6-utempter.patch
Normal file
113
kdelibs-3.5.6-utempter.patch
Normal file
@ -0,0 +1,113 @@
|
|||||||
|
diff -Nur kdelibs-3.5.6.orig/configure.in kdelibs-3.5.6/configure.in
|
||||||
|
--- kdelibs-3.5.6.orig/configure.in 2007-01-24 09:52:48.000000000 +0100
|
||||||
|
+++ kdelibs-3.5.6/configure.in 2007-02-05 23:01:44.000000000 +0100
|
||||||
|
@@ -399,7 +399,7 @@
|
||||||
|
[], with_utempter=check)
|
||||||
|
if test "x$with_utempter" != xno; then
|
||||||
|
kde_have_utempter=yes
|
||||||
|
- AC_CHECK_LIB(utempter, addToUtmp, [LIBUTEMPTER=-lutempter], kde_have_utempter=no)
|
||||||
|
+ AC_CHECK_LIB(utempter, utempter_add_record, [LIBUTEMPTER=-lutempter], kde_have_utempter=no)
|
||||||
|
AC_SUBST(LIBUTEMPTER)
|
||||||
|
if test "$kde_have_utempter" = "yes"; then
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_UTEMPTER, 1, [Define if you have the utempter helper for utmp managment])
|
||||||
|
diff -Nur kdelibs-3.5.6.orig/configure.in.in kdelibs-3.5.6/configure.in.in
|
||||||
|
--- kdelibs-3.5.6.orig/configure.in.in 2006-05-22 20:14:23.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.6/configure.in.in 2007-02-05 23:01:44.000000000 +0100
|
||||||
|
@@ -395,7 +395,7 @@
|
||||||
|
[], with_utempter=check)
|
||||||
|
if test "x$with_utempter" != xno; then
|
||||||
|
kde_have_utempter=yes
|
||||||
|
- AC_CHECK_LIB(utempter, addToUtmp, [LIBUTEMPTER=-lutempter], kde_have_utempter=no)
|
||||||
|
+ AC_CHECK_LIB(utempter, utempter_add_record, [LIBUTEMPTER=-lutempter], kde_have_utempter=no)
|
||||||
|
AC_SUBST(LIBUTEMPTER)
|
||||||
|
if test "$kde_have_utempter" = "yes"; then
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_UTEMPTER, 1, [Define if you have the utempter helper for utmp managment])
|
||||||
|
diff -Nur kdelibs-3.5.6.orig/kdecore/kpty.cpp kdelibs-3.5.6/kdecore/kpty.cpp
|
||||||
|
--- kdelibs-3.5.6.orig/kdecore/kpty.cpp 2006-05-22 20:14:21.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.6/kdecore/kpty.cpp 2007-02-05 23:01:44.000000000 +0100
|
||||||
|
@@ -80,6 +80,10 @@
|
||||||
|
# include <utmp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef HAVE_UTEMPTER
|
||||||
|
+# include <utempter.h>
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#ifdef HAVE_TERMIOS_H
|
||||||
|
/* for HP-UX (some versions) the extern C is needed, and for other
|
||||||
|
platforms it doesn't hurt */
|
||||||
|
@@ -138,21 +142,6 @@
|
||||||
|
// private functions //
|
||||||
|
///////////////////////
|
||||||
|
|
||||||
|
-#ifdef HAVE_UTEMPTER
|
||||||
|
-class KProcess_Utmp : public KProcess
|
||||||
|
-{
|
||||||
|
-public:
|
||||||
|
- int commSetupDoneC()
|
||||||
|
- {
|
||||||
|
- dup2(cmdFd, 0);
|
||||||
|
- dup2(cmdFd, 1);
|
||||||
|
- dup2(cmdFd, 3);
|
||||||
|
- return 1;
|
||||||
|
- }
|
||||||
|
- int cmdFd;
|
||||||
|
-};
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
#define BASE_CHOWN "kgrantpty"
|
||||||
|
|
||||||
|
|
||||||
|
@@ -399,12 +388,8 @@
|
||||||
|
void KPty::login(const char *user, const char *remotehost)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_UTEMPTER
|
||||||
|
- KProcess_Utmp utmp;
|
||||||
|
- utmp.cmdFd = d->masterFd;
|
||||||
|
- utmp << "/usr/sbin/utempter" << "-a" << d->ttyName << "";
|
||||||
|
- utmp.start(KProcess::Block);
|
||||||
|
+ utempter_add_record (d->masterFd, remotehost);
|
||||||
|
Q_UNUSED(user);
|
||||||
|
- Q_UNUSED(remotehost);
|
||||||
|
#elif defined(USE_LOGIN)
|
||||||
|
const char *str_ptr;
|
||||||
|
struct utmp l_struct;
|
||||||
|
@@ -442,10 +427,7 @@
|
||||||
|
void KPty::logout()
|
||||||
|
{
|
||||||
|
#ifdef HAVE_UTEMPTER
|
||||||
|
- KProcess_Utmp utmp;
|
||||||
|
- utmp.cmdFd = d->masterFd;
|
||||||
|
- utmp << "/usr/sbin/utempter" << "-d" << d->ttyName;
|
||||||
|
- utmp.start(KProcess::Block);
|
||||||
|
+ utempter_remove_record (d->masterFd);
|
||||||
|
#elif defined(USE_LOGIN)
|
||||||
|
const char *str_ptr = d->ttyName.data();
|
||||||
|
if (!memcmp(str_ptr, "/dev/", 5))
|
||||||
|
diff -Nur kdelibs-3.5.6.orig/kdecore/Makefile.am kdelibs-3.5.6/kdecore/Makefile.am
|
||||||
|
--- kdelibs-3.5.6.orig/kdecore/Makefile.am 2006-10-01 19:33:38.000000000 +0200
|
||||||
|
+++ kdelibs-3.5.6/kdecore/Makefile.am 2007-02-05 23:01:44.000000000 +0100
|
||||||
|
@@ -115,7 +115,7 @@
|
||||||
|
kuser.cpp kconfigskeleton.cpp kconfigdialogmanager.cpp klockfile.cpp \
|
||||||
|
kqiodevicegzip_p.cpp ktimezones.cpp
|
||||||
|
|
||||||
|
-libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined
|
||||||
|
+libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(LIBUTEMPTER) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined
|
||||||
|
libkdecore_la_LIBADD = malloc/libklmalloc.la network/libkdecorenetwork.la $(SVGICON_LIB) ../dcop/libDCOP.la ../libltdl/libltdlc.la $(LIB_XEXT) $(LIBRESOLV) $(LIBUTIL) $(LIBART_LIBS) $(LIB_IDN) ../kdefx/libkdefx.la
|
||||||
|
libkdecore_la_NMCHECK = $(srcdir)/libkdecore.nmcheck
|
||||||
|
libkdecore_la_NMCHECKWEAK = $(srcdir)/libkdecore_weak.nmcheck $(srcdir)/libqt-mt_weak.nmcheck \
|
||||||
|
diff -Nur kdelibs-3.5.6.orig/kdecore/Makefile.in kdelibs-3.5.6/kdecore/Makefile.in
|
||||||
|
--- kdelibs-3.5.6.orig/kdecore/Makefile.in 2007-01-24 09:54:07.000000000 +0100
|
||||||
|
+++ kdelibs-3.5.6/kdecore/Makefile.in 2007-02-05 23:04:12.000000000 +0100
|
||||||
|
@@ -787,9 +787,9 @@
|
||||||
|
kuser.cpp kconfigskeleton.cpp kconfigdialogmanager.cpp klockfile.cpp \
|
||||||
|
kqiodevicegzip_p.cpp ktimezones.cpp ksycoca_skel.cpp kappdcopiface_skel.cpp kdebugdcopiface_skel.cpp
|
||||||
|
|
||||||
|
-#>- libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined
|
||||||
|
+#>- libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(LIBUTEMPTER) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined
|
||||||
|
#>+ 1
|
||||||
|
-libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined $(KDE_NO_UNDEFINED)
|
||||||
|
+libkdecore_la_LDFLAGS = $(QT_LDFLAGS) $(KDE_RPATH) $(KDE_MT_LDFLAGS) $(LIBUTEMPTER) $(X_LDFLAGS) $(USER_LDFLAGS) -version-info 6:0:2 -no-undefined $(KDE_NO_UNDEFINED)
|
||||||
|
libkdecore_la_LIBADD = malloc/libklmalloc.la network/libkdecorenetwork.la $(SVGICON_LIB) ../dcop/libDCOP.la ../libltdl/libltdlc.la $(LIB_XEXT) $(LIBRESOLV) $(LIBUTIL) $(LIBART_LIBS) $(LIB_IDN) ../kdefx/libkdefx.la
|
||||||
|
libkdecore_la_NMCHECK = $(srcdir)/libkdecore.nmcheck
|
||||||
|
libkdecore_la_NMCHECKWEAK = $(srcdir)/libkdecore_weak.nmcheck $(srcdir)/libqt-mt_weak.nmcheck \
|
82
kdelibs-3.5.7-cups13.patch
Normal file
82
kdelibs-3.5.7-cups13.patch
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
--- kdelibs-3.5.7/kdeprint/cups/cupsdconf2/cups-util.c.cups13 2006-10-01 12:33:43.000000000 -0500
|
||||||
|
+++ kdelibs-3.5.7/kdeprint/cups/cupsdconf2/cups-util.c 2007-07-19 15:12:48.000000000 -0500
|
||||||
|
@@ -108,7 +108,8 @@ cupsGetConf(void)
|
||||||
|
* See if we should retry the current digest password...
|
||||||
|
*/
|
||||||
|
|
||||||
|
- if (strncmp(cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE], "Basic", 5) == 0 ||
|
||||||
|
+ if (strncmp(httpGetField (cups_server, HTTP_FIELD_WWW_AUTHENTICATE),
|
||||||
|
+ "Basic", 5) == 0 ||
|
||||||
|
digest_tries > 1 || !pwdstring[0])
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
@@ -116,7 +117,7 @@ cupsGetConf(void)
|
||||||
|
*/
|
||||||
|
|
||||||
|
snprintf(prompt, sizeof(prompt), "Password for %s on %s? ", cupsUser(),
|
||||||
|
- cups_server->hostname);
|
||||||
|
+ cupsServer());
|
||||||
|
|
||||||
|
if ((password = cupsGetPassword(prompt)) == NULL)
|
||||||
|
break;
|
||||||
|
@@ -135,7 +136,8 @@ cupsGetConf(void)
|
||||||
|
* Got a password; encode it for the server...
|
||||||
|
*/
|
||||||
|
|
||||||
|
- if (strncmp(cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE], "Basic", 5) == 0)
|
||||||
|
+ if (strncmp(httpGetField (cups_server, HTTP_FIELD_WWW_AUTHENTICATE),
|
||||||
|
+ "Basic", 5) == 0)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Basic authentication...
|
||||||
|
@@ -334,7 +336,8 @@ cupsPutConf(const char *name) /* I - Na
|
||||||
|
* See if we should retry the current digest password...
|
||||||
|
*/
|
||||||
|
|
||||||
|
- if (strncmp(cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE], "Basic", 5) == 0 ||
|
||||||
|
+ if (strncmp(httpGetField (cups_server, HTTP_FIELD_WWW_AUTHENTICATE),
|
||||||
|
+ "Basic", 5) == 0 ||
|
||||||
|
digest_tries > 1 || !pwdstring[0])
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
@@ -342,7 +345,7 @@ cupsPutConf(const char *name) /* I - Na
|
||||||
|
*/
|
||||||
|
|
||||||
|
snprintf(prompt, sizeof(prompt), "Password for %s on %s? ", cupsUser(),
|
||||||
|
- cups_server->hostname);
|
||||||
|
+ cupsServer());
|
||||||
|
|
||||||
|
if ((password = cupsGetPassword(prompt)) == NULL)
|
||||||
|
break;
|
||||||
|
@@ -361,7 +364,8 @@ cupsPutConf(const char *name) /* I - Na
|
||||||
|
* Got a password; encode it for the server...
|
||||||
|
*/
|
||||||
|
|
||||||
|
- if (strncmp(cups_server->fields[HTTP_FIELD_WWW_AUTHENTICATE], "Basic", 5) == 0)
|
||||||
|
+ if (strncmp(httpGetField (cups_server, HTTP_FIELD_WWW_AUTHENTICATE),
|
||||||
|
+ "Basic", 5) == 0)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Basic authentication...
|
||||||
|
--- kdelibs-3.5.7/kdeprint/cups/ipprequest.cpp.cups13 2007-01-15 05:34:19.000000000 -0600
|
||||||
|
+++ kdelibs-3.5.7/kdeprint/cups/ipprequest.cpp 2007-07-19 15:15:09.000000000 -0500
|
||||||
|
@@ -309,7 +309,8 @@ bool IppRequest::doFileRequest(const QSt
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#ifdef HAVE_CUPS_NO_PWD_CACHE
|
||||||
|
+#if defined(HAVE_CUPS_NO_PWD_CACHE) && \
|
||||||
|
+ CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 3
|
||||||
|
strncpy( HTTP->authstring, cups_authstring.data(), HTTP_MAX_VALUE );
|
||||||
|
#endif
|
||||||
|
|
||||||
|
@@ -319,7 +320,8 @@ bool IppRequest::doFileRequest(const QSt
|
||||||
|
}
|
||||||
|
|
||||||
|
request_ = cupsDoFileRequest(HTTP, request_, (res.isEmpty() ? "/" : res.latin1()), (filename.isEmpty() ? NULL : filename.latin1()));
|
||||||
|
-#ifdef HAVE_CUPS_NO_PWD_CACHE
|
||||||
|
+#if defined(HAVE_CUPS_NO_PWD_CACHE) && \
|
||||||
|
+ CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR < 3
|
||||||
|
cups_authstring = HTTP->authstring;
|
||||||
|
#endif
|
||||||
|
httpClose(HTTP);
|
36
kdelibs-3.5.7-kde#146105.patch
Normal file
36
kdelibs-3.5.7-kde#146105.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
Index: kdecore/kcmdlineargs.cpp
|
||||||
|
===================================================================
|
||||||
|
--- kdecore/kcmdlineargs.cpp (Revision 669593)
|
||||||
|
+++ kdecore/kcmdlineargs.cpp (Revision 669594)
|
||||||
|
@@ -1248,21 +1248,22 @@
|
||||||
|
|
||||||
|
KURL KCmdLineArgs::makeURL(const char *_urlArg)
|
||||||
|
{
|
||||||
|
- QString urlArg = QFile::decodeName(_urlArg);
|
||||||
|
- if (!QDir::isRelativePath(urlArg))
|
||||||
|
- {
|
||||||
|
+ const QString urlArg = QFile::decodeName(_urlArg);
|
||||||
|
+ QFileInfo fileInfo(urlArg);
|
||||||
|
+ if (!fileInfo.isRelative()) { // i.e. starts with '/', on unix
|
||||||
|
KURL result;
|
||||||
|
result.setPath(urlArg);
|
||||||
|
return result; // Absolute path.
|
||||||
|
}
|
||||||
|
|
||||||
|
- if ( !KURL::isRelativeURL(urlArg) )
|
||||||
|
- return KURL(urlArg); // Argument is a URL
|
||||||
|
+ if ( KURL::isRelativeURL(urlArg) || fileInfo.exists() ) {
|
||||||
|
+ KURL result;
|
||||||
|
+ result.setPath( cwd()+'/'+urlArg );
|
||||||
|
+ result.cleanPath();
|
||||||
|
+ return result; // Relative path
|
||||||
|
+ }
|
||||||
|
|
||||||
|
- KURL result;
|
||||||
|
- result.setPath( cwd()+"/"+urlArg );
|
||||||
|
- result.cleanPath();
|
||||||
|
- return result; // Relative path
|
||||||
|
+ return KURL(urlArg); // Argument is a URL
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
34
kdelibs-3.5.7-openssl.patch
Normal file
34
kdelibs-3.5.7-openssl.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
--- kdelibs-3.5.7/kio/kssl/kopenssl.cc.openssl 2006-07-22 03:16:39.000000000 -0500
|
||||||
|
+++ kdelibs-3.5.7/kio/kssl/kopenssl.cc 2007-06-20 08:58:25.000000000 -0500
|
||||||
|
@@ -329,6 +329,15 @@ KConfig *cfg;
|
||||||
|
#ifdef SHLIB_VERSION_NUMBER
|
||||||
|
<< "libssl.so." SHLIB_VERSION_NUMBER
|
||||||
|
#endif
|
||||||
|
+ << "libssl.so.0.9.8b"
|
||||||
|
+ << "libssl.so.0.9.8a"
|
||||||
|
+ << "libssl.so.6"
|
||||||
|
+ << "libssl.so.0.9.7e"
|
||||||
|
+ << "libssl.so.5"
|
||||||
|
+ << "libssl.so.0.9.7a"
|
||||||
|
+ << "libssl.so.4"
|
||||||
|
+ << "libssl.so.0.9.6b"
|
||||||
|
+ << "libssl.so.2"
|
||||||
|
<< "libssl.so"
|
||||||
|
<< "libssl.so.0"
|
||||||
|
#endif
|
||||||
|
@@ -346,6 +355,15 @@ KConfig *cfg;
|
||||||
|
#ifdef SHLIB_VERSION_NUMBER
|
||||||
|
<< "libcrypto.so." SHLIB_VERSION_NUMBER
|
||||||
|
#endif
|
||||||
|
+ << "libcrypto.so.0.9.8b"
|
||||||
|
+ << "libcrypto.so.0.9.8a"
|
||||||
|
+ << "libcrypto.so.6"
|
||||||
|
+ << "libcrypto.so.0.9.7e"
|
||||||
|
+ << "libcrypto.so.5"
|
||||||
|
+ << "libcrypto.so.0.9.7a"
|
||||||
|
+ << "libcrypto.so.4"
|
||||||
|
+ << "libcrypto.so.0.9.6b"
|
||||||
|
+ << "libcrypto.so.2"
|
||||||
|
<< "libcrypto.so"
|
||||||
|
<< "libcrypto.so.0"
|
||||||
|
#endif
|
1323
kdelibs3.spec
Normal file
1323
kdelibs3.spec
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user