[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-mac
Subject:    Re: [KDE/Mac] packaging monkey reporting in - 4.2 beta2 is go!
From:       Jonas_Bähr <jonas.baehr () web ! de>
Date:       2008-12-26 11:57:56
Message-ID: ED56AC3E-7AE3-4940-B93E-F5E521A5D90B () web ! de
[Download RAW message or body]

Am 25.12.2008 um 12:16 schrieb Jonas Bähr:
> Am 24.12.2008 um 02:03 schrieb O:
>> On Tue, Dec 23, 2008 at 7:45 PM, Leo Franchi <lfranchi@kde.org>  
>> wrote:
>>> On 23 Dec 2008, at 18:24, Jonas Bähr wrote:
>>>
>>>> Hi,
>>>>
>>>> Am 22.12.2008 um 02:55 schrieb Orville Bennett:
>>>>
>>>>> Well, sorta. Some beta2 port files added to macports today.
>>>>> kdelibs4-devel
>>>>
>>>> After upgrading automoc kdelibs4-devel compiles but kdeui refuses  
>>>> to
>>>> link because of the undefined symbols "mac_initialize_dbus()" and
>>>> "mac_fork_and_reexec_self()".
>>>> These symbols are in kdecore.5.2.0.dynlib (I checked with nm and  
>>>> got
>>>> the names C++ mangled) and the link-command below should also  
>>>> search
>>>> in "../lib/libkdecore.5.2.0.dylib".
>>>>
>>>> At a first glance it *should* work, but it doesn't...
>>>> How did you manage to compile this? My system is Mac OS X 10.5.6 on
>>>> intel, gcc-4.2, cmake-2.6.2
>>>
>>>
>>> You'll need to patch two CMakeLists. Patch is at the end of this  
>>> blog
>>> post:
>>>
>>> http://illogic-al.org/blog/apple-gcc-and-you
>>>
>>> leo
>>>
>>> ---
>>> Leo Franchi                             (650) 704 3680
>>> Tufts University 2010
>>>
>>> lfranchi@kde.org
>>> leonardo.franchi@tufts.edu
>>>
>>> _______________________________________________
>>> kde-mac@kde.org
>>> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
>>> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
>>>
>>
>> I should have these patches uploaded by the end of the night, but no
>> promises.
>
> I first had some trouble patching files from the Portfile. The problem
> was that port tries to patch the files out of the build directory,
> which does not exists at this phase. The solution was to create the
> build-dir in the post-extraction hook instead of pre-configure.

Thanks to Thiago on the kde-buildsystem ML I was able to find and fix  
the real source of the problem.
Please test the following patch for the Portfile. The attached patch*  
files have to go into the files-dir, you may have to create it.

-----------8<-----------8<----------
--- Portfile.orig	2008-12-26 12:05:39.000000000 +0100
+++ Portfile	2008-12-26 12:08:52.000000000 +0100
@@ -32,7 +32,10 @@

  use_parallel_build  yes
  worksrcdir          build
-pre-configure       { file mkdir ${worksrcpath} }
+post-extract       { file mkdir ${worksrcpath} }
+
+patchfiles          patch-kdecore-kernel-kkernel_mac.h \
+                    patch-kdecore-kernel-kkernel_mac.cpp

  configure.cmd       cmake
  configure.ccache    no
-----------8<-----------8<----------

["patch-kdecore-kernel-kkernel_mac.cpp" (patch-kdecore-kernel-kkernel_mac.cpp)]

--- ../kdelibs-4.1.85/kdecore/kernel/kkernel_mac.cpp.orig	2008-12-26 11:48:20.000000000 +0100
+++ ../kdelibs-4.1.85/kdecore/kernel/kkernel_mac.cpp	2008-12-26 11:49:55.000000000 +0100
@@ -20,7 +20,6 @@
 #include "kkernel_mac.h"
 
 #include <config.h>
-#include <QtCore/qglobal.h>
 
 #ifdef Q_OS_MACX
 

["patch-kdecore-kernel-kkernel_mac.h" (patch-kdecore-kernel-kkernel_mac.h)]

--- ../kdelibs-4.1.85/kdecore/kernel/kkernel_mac.h.orig	2008-12-26 11:46:44.000000000 +0100
+++ ../kdelibs-4.1.85/kdecore/kernel/kkernel_mac.h	2008-12-26 11:46:49.000000000 +0100
@@ -19,11 +19,12 @@
 #ifndef KKERNEL_MAC_H
 #define KKERNEL_MAC_H
 
+#include <QtCore/qglobal.h> // defines Q_OS_MACX
+
 #ifdef Q_OS_MACX
 
 #include <kdecore_export.h>
 #include <QtCore/QString>
-#include <CoreFoundation/CFString.h>
 
 /**
  * @short Mac-specific functions needed in kdecore


bye,
Jonas


>
>
>>
>>
>> -- 
>>
>> P. J. O'Rourke  - "Cleanliness becomes more important when godliness
>> is unlikely."
>> _______________________________________________
>> kde-mac@kde.org
>> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
>> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
>
> _______________________________________________
> kde-mac@kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X



_______________________________________________
kde-mac@kde.org
List Information: https://mail.kde.org/mailman/listinfo/kde-mac
KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic