[30656] trunk/dports/kde/kdelibs3
source_changes at macosforge.org
source_changes at macosforge.org
Fri Nov 2 01:37:28 PDT 2007
Revision: 30656
http://trac.macosforge.org/projects/macports/changeset/30656
Author: takanori at macports.org
Date: 2007-11-02 01:37:27 -0700 (Fri, 02 Nov 2007)
Log Message:
-----------
workaround for dcopserver startup problem on Leopard.
Modified Paths:
--------------
trunk/dports/kde/kdelibs3/Portfile
Added Paths:
-----------
trunk/dports/kde/kdelibs3/files/patch-dcop_dcopserver.cpp.diff
Modified: trunk/dports/kde/kdelibs3/Portfile
===================================================================
--- trunk/dports/kde/kdelibs3/Portfile 2007-11-02 07:31:18 UTC (rev 30655)
+++ trunk/dports/kde/kdelibs3/Portfile 2007-11-02 08:37:27 UTC (rev 30656)
@@ -5,6 +5,7 @@
PortSystem 1.0
name kdelibs3
version 3.5.8
+revision 1
set kdeadmin kde-admindir-1024
categories kde
maintainers nomaintainer
@@ -65,7 +66,7 @@
extract.only ${distname}.tar.bz2
post-extract { system "cd ${worksrcpath} && bzcat -dc ${distpath}/${kdeadmin}.tar.bz2 | tar xf -" }
-patchfiles kdelibs3-unified.patch
+patchfiles kdelibs3-unified.patch patch-dcop_dcopserver.cpp.diff
patch {
foreach file $patchfiles {
system "cd ${worksrcpath} && sed -e 's, at FINKPREFIX@,${prefix},g' ${filespath}/${file} | patch -p1"
Added: trunk/dports/kde/kdelibs3/files/patch-dcop_dcopserver.cpp.diff
===================================================================
--- trunk/dports/kde/kdelibs3/files/patch-dcop_dcopserver.cpp.diff (rev 0)
+++ trunk/dports/kde/kdelibs3/files/patch-dcop_dcopserver.cpp.diff 2007-11-02 08:37:27 UTC (rev 30656)
@@ -0,0 +1,16 @@
+diff -Naur kdelibs-3.5.8.orig/dcop/dcopserver.cpp kdelibs-3.5.8/dcop/dcopserver.cpp
+--- kdelibs-3.5.8.orig/dcop/dcopserver.cpp 2007-10-08 18:52:08.000000000 +0900
++++ kdelibs-3.5.8/dcop/dcopserver.cpp 2007-11-02 03:55:32.000000000 +0900
+@@ -1017,6 +1017,12 @@
+ (void) umask(orig_umask);
+ // publish available transports.
+ QCString fName = DCOPClient::dcopServerFile();
++ {
++ int i = 0;
++ while ((i = fName.find('/', i)) != -1) {
++ ::mkdir(fName.left(++i).data(), 0777 /*umask will be applied*/ );
++ }
++ }
+ FILE *f;
+ if(!(f = ::fopen(fName.data(), "w+"))) {
+ fprintf (stderr, "Can not create file %s: %s\n",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071102/d608924d/attachment-0001.html
More information about the macports-changes
mailing list