I was able to build kdelibs-4.2.71 on osol b111.
before I commit it, here's short summary
10 patches were necessary, most of them I recycled from the -42 branch. All of
the patches were reported and submitted upstream, some of them are already
commited by upstream. The exception is patch25 which could be license
incompatible (?). I've seen a gpl version of it in kde-solaris ML, I'll try it
sometime.
Another exception is the below patch I did for file_unix.cpp. I have only
slight idea of what the original file does, I have only slight idea of what the
patch might be doing, I have only superficial c++ skills (I can distinguish
between c++ file and bash script), so it's probably baaaad. So I haven't put it
to the bug report.
Yet it compiles :-)
As goes the saying 'If it compiles it's good, if it runs it's perfect.' :
--- kioslave/file/file_unix.cpp.orig 2009-03-10 13:26:04.000000000 +0100
+++ kioslave/file/file_unix.cpp 2009-05-04 03:27:15.231305077 +0200
@@ -42,7 +42,7 @@
#include <grp.h>
#include <utime.h>
#include <pwd.h>
-
+#include <sys/stat.h>
#if defined(HAVE_LIMITS_H)
#include <limits.h> // PATH_MAX
#endif
@@ -338,15 +338,20 @@
// files where QFile::encodeName(QFile::decodeName(a)) != a.
QList<QByteArray> entryNames;
KDE_struct_dirent *ep;
+ KDE_struct_stat hajmaep;
if (details == 0) {
// Fast path (for recursive deletion, mostly)
// Simply emit the name and file type, nothing else.
while ( ( ep = KDE_readdir( dp ) ) != 0 ) {
entry.clear();
entry.insert(KIO::UDSEntry::UDS_NAME,
QFile::decodeName(ep->d_name));
- entry.insert(KIO::UDSEntry::UDS_FILE_TYPE,
- (ep->d_type & DT_DIR) ? S_IFDIR : S_IFREG );
- if (ep->d_type & DT_LNK) {
+// entry.insert(KIO::UDSEntry::UDS_FILE_TYPE,
+// (ep->d_type & DT_DIR) ? S_IFDIR : S_IFREG );
+KDE_lstat( ep->d_name, &hajmaep );
+entry.insert(KIO::UDSEntry::UDS_FILE_TYPE,
+(S_ISDIR(hajmaep.st_mode)) ? S_IFDIR : S_IFREG );
+// if (ep->d_type & DT_LNK) {
+if (S_ISLNK(hajmaep.st_mode)) {
// for symlinks obey the UDSEntry contract and provide
UDS_LINK_DEST
// even if we don't know the link dest (and DeleteJob doesn't
care...)
entry.insert(KIO::UDSEntry::UDS_LINK_DEST,
QLatin1String("Dummy Link Target"));
List of patches:
#patch23 reported as https://bugs.kde.org/show_bug.cgi?id=191525
Patch23: kdelibs-guess_ja_p.diff
#patch24 reported as https://bugs.kde.org/show_bug.cgi?id=191538
Patch24: kdelibs-ksendbugmail.diff
#license incompatible patch:
Patch25: kdelibs-getgrouplist.diff
#Patch29 reported as https://bugs.kde.org/show_bug.cgi?id=191543
Patch29: kdelibs-qstring.diff
#reported as https://bugs.kde.org/show_bug.cgi?id=191544 without patch
Patch30: kdelibs-file_unix-dtdir.diff
#patch31 reported as https://bugs.kde.org/show_bug.cgi?id=191750
#btw it is a subset of patch 27
Patch31: kdelibs-khtml-dom_elementimpl.diff
#patch32 reported as https://bugs.kde.org/show_bug.cgi?id=191754
Patch32: kdelibs-khtml-loader.diff
#patch33 reported as https://bugs.kde.org/show_bug.cgi?id=191763
#again subset of p27
Patch33: kdelibs-khtml-SVGSVGElement.diff
#patch34 reported as https://bugs.kde.org/show_bug.cgi?id=191764
#again subset of p27
Patch34: kdelibs-khtml-vector.diff
#patch35 reportewd as https://bugs.kde.org/show_bug.cgi?id=191789
#again subset of p27
Patch35: kdelibs-khtml-SVGLangSpace.diff
#p36 reported as https://bugs.kde.org/show_bug.cgi?id=191799
#again subset of p27
Patch36: kdelibs-khtml-SVGStyleElement.diff
#patch37 reported as https://bugs.kde.org/show_bug.cgi?id=191810
#subset of p27
Patch37: kdelibs-khtml-SVGAltGlyphElement.diff
these patches were not necessary for building, I'll go through them to see if
they are still needed for something:
Patch1: kdelibs-kpluginfactory.diff
Patch3: kdelibs-kcookieserver.diff
Patch21: kdelibs-nepomuk-qhash.diff
Patch22: kdelibs-finddnssd.cmake.diff
Patch26: kdelibs-kate.diff
--
This message posted from opensolaris.org