pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/kdelibs3 patch from KDE_3_3_BRANCH to stop SIGBUS ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd33f1e4888a
branches:  trunk
changeset: 486913:dd33f1e4888a
user:      markd <markd%pkgsrc.org@localhost>
date:      Wed Jan 05 10:27:43 2005 +0000

description:
patch from KDE_3_3_BRANCH to stop SIGBUS on Solaris during URL
completion.  Bump PKGREVISION.

diffstat:

 x11/kdelibs3/Makefile         |   4 ++--
 x11/kdelibs3/distinfo         |   4 ++--
 x11/kdelibs3/patches/patch-cg |  30 +++++++++++++++++++++++-------
 3 files changed, 27 insertions(+), 11 deletions(-)

diffs (81 lines):

diff -r 7519211d826c -r dd33f1e4888a x11/kdelibs3/Makefile
--- a/x11/kdelibs3/Makefile     Wed Jan 05 10:05:19 2005 +0000
+++ b/x11/kdelibs3/Makefile     Wed Jan 05 10:27:43 2005 +0000
@@ -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 -r 7519211d826c -r dd33f1e4888a x11/kdelibs3/distinfo
--- a/x11/kdelibs3/distinfo     Wed Jan 05 10:05:19 2005 +0000
+++ b/x11/kdelibs3/distinfo     Wed Jan 05 10:27:43 2005 +0000
@@ -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-cc) = d52e3beff19ed287a4635c8da5ab7a69a8e3c0f3
 SHA1 (patch-ce) = e9f7a348b0e4be1475ba8f56a8b474f139eb7781
 SHA1 (patch-cf) = 0409b64ee00f355bfc2056e596b519a241fcf522
-SHA1 (patch-cg) = 40f7dc34c6c87e05c53b3d94d12d2b9e7b34c97a
+SHA1 (patch-cg) = 7954707b14994d6ed78d36bb4f6aa0b249fa6772
diff -r 7519211d826c -r dd33f1e4888a x11/kdelibs3/patches/patch-cg
--- a/x11/kdelibs3/patches/patch-cg     Wed Jan 05 10:05:19 2005 +0000
+++ b/x11/kdelibs3/patches/patch-cg     Wed Jan 05 10:27:43 2005 +0000
@@ -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();



Home | Main Index | Thread Index | Old Index