diff options
author | markd <markd@pkgsrc.org> | 2005-01-05 10:27:43 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2005-01-05 10:27:43 +0000 |
commit | 5f755404858a799d93d11479a2badc8e62c74c16 (patch) | |
tree | 4e208d41f3755827bc6a2cf0743c865efef73895 /x11 | |
parent | 2cb9f7ba273d5aa24889accabfb6e8eff0baeadc (diff) | |
download | pkgsrc-5f755404858a799d93d11479a2badc8e62c74c16.tar.gz |
patch from KDE_3_3_BRANCH to stop SIGBUS on Solaris during URL
completion. Bump PKGREVISION.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/kdelibs3/Makefile | 4 | ||||
-rw-r--r-- | x11/kdelibs3/distinfo | 4 | ||||
-rw-r--r-- | x11/kdelibs3/patches/patch-cg | 30 |
3 files changed, 27 insertions, 11 deletions
diff --git a/x11/kdelibs3/Makefile b/x11/kdelibs3/Makefile index 3408361470e..a1f55b262e9 100644 --- a/x11/kdelibs3/Makefile +++ b/x11/kdelibs3/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.73 2004/12/28 23:18:22 reed Exp $ +# $NetBSD: Makefile,v 1.74 2005/01/05 10:27:43 markd Exp $ DISTNAME= kdelibs-${_KDE_VERSION} -PKGREVISION= 4 +PKGREVISION= 5 CATEGORIES= x11 COMMENT= Support libraries for the KDE integrated X11 desktop diff --git a/x11/kdelibs3/distinfo b/x11/kdelibs3/distinfo index 8d09db2be2f..41d251cfbfa 100644 --- a/x11/kdelibs3/distinfo +++ b/x11/kdelibs3/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.46 2004/12/14 11:02:18 markd Exp $ +$NetBSD: distinfo,v 1.47 2005/01/05 10:27:43 markd Exp $ SHA1 (kdelibs-3.3.2.tar.bz2) = 69325b603375d31d4d537955383f4893e4a7945f Size (kdelibs-3.3.2.tar.bz2) = 15623180 bytes @@ -17,4 +17,4 @@ SHA1 (patch-bv) = 882355f9dd9cdbbbe14d54e5c59b630ef0347e1c SHA1 (patch-cc) = d52e3beff19ed287a4635c8da5ab7a69a8e3c0f3 SHA1 (patch-ce) = e9f7a348b0e4be1475ba8f56a8b474f139eb7781 SHA1 (patch-cf) = 0409b64ee00f355bfc2056e596b519a241fcf522 -SHA1 (patch-cg) = 40f7dc34c6c87e05c53b3d94d12d2b9e7b34c97a +SHA1 (patch-cg) = 7954707b14994d6ed78d36bb4f6aa0b249fa6772 diff --git a/x11/kdelibs3/patches/patch-cg b/x11/kdelibs3/patches/patch-cg index 910eeffa03b..b097859c157 100644 --- a/x11/kdelibs3/patches/patch-cg +++ b/x11/kdelibs3/patches/patch-cg @@ -1,26 +1,42 @@ -$NetBSD: patch-cg,v 1.1 2004/08/26 04:04:11 markd Exp $ +$NetBSD: patch-cg,v 1.2 2005/01/05 10:27:43 markd Exp $ --- kio/kio/kurlcompletion.cpp.orig 2004-06-23 05:36:41.000000000 +1200 +++ kio/kio/kurlcompletion.cpp -@@ -54,6 +54,9 @@ +@@ -54,6 +54,7 @@ #include <sys/stat.h> #include <pwd.h> #include <time.h> -+#ifdef __NetBSD__ +#include <sys/param.h> -+#endif #include "kurlcompletion.h" -@@ -222,7 +225,11 @@ void DirectoryListThread::run() - struct dirent dirPosition; +@@ -218,11 +219,18 @@ void DirectoryListThread::run() + QDir::setCurrent( *it ); + + // Loop through all directory entries ++ // Solaris and IRIX dirent structures do not allocate space for d_name. On ++ // systems that do (HP-UX, Linux, Tru64 UNIX), we overallocate space but ++ // that's ok. + +- struct dirent dirPosition; ++ struct dirent *dirPosition = (struct dirent *) malloc( sizeof( struct dirent ) + MAXPATHLEN + 1 ); struct dirent *dirEntry = 0; while ( !terminationRequested() && +- ::readdir_r( dir, &dirPosition, &dirEntry ) == 0 && dirEntry ) +#if defined(__NetBSD__) && __NetBSD_Version__ < 106210000 /* NetBSD 1.6U */ + (dirEntry = ::readdir( dir ))) +#else - ::readdir_r( dir, &dirPosition, &dirEntry ) == 0 && dirEntry ) ++ ::readdir_r( dir, dirPosition, &dirEntry ) == 0 && dirEntry ) +#endif { // Skip hidden files if m_noHidden is true +@@ -280,6 +288,8 @@ void DirectoryListThread::run() + + ::closedir( dir ); + dir = 0; ++ ++ free( dirPosition ); + } + + done(); |