From kde-mac Fri Dec 26 11:57:56 2008 From: =?ISO-8859-1?Q?Jonas_B=E4hr?= Date: Fri, 26 Dec 2008 11:57:56 +0000 To: kde-mac Subject: Re: [KDE/Mac] packaging monkey reporting in - 4.2 beta2 is go! Message-Id: X-MARC-Message: https://marc.info/?l=kde-mac&m=123029273610196 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Apple-Mail-14-729890014" --Apple-Mail-14-729890014 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Am 25.12.2008 um 12:16 schrieb Jonas B=E4hr: > Am 24.12.2008 um 02:03 schrieb O: >> On Tue, Dec 23, 2008 at 7:45 PM, Leo Franchi =20 >> wrote: >>> On 23 Dec 2008, at 18:24, Jonas B=E4hr 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 =20= >>>> 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 =20= >>>> got >>>> the names C++ mangled) and the link-command below should also =20 >>>> 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 =20 >>> 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=3DProjects/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 =20= the real source of the problem. Please test the following patch for the Portfile. The attached patch* =20= 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<---------- --Apple-Mail-14-729890014 Content-Disposition: attachment; filename=patch-kdecore-kernel-kkernel_mac.cpp Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-kdecore-kernel-kkernel_mac.cpp" Content-Transfer-Encoding: 7bit --- ../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 -#include #ifdef Q_OS_MACX --Apple-Mail-14-729890014 Content-Disposition: attachment; filename=patch-kdecore-kernel-kkernel_mac.h Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-kdecore-kernel-kkernel_mac.h" Content-Transfer-Encoding: 7bit --- ../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 // defines Q_OS_MACX + #ifdef Q_OS_MACX #include #include -#include /** * @short Mac-specific functions needed in kdecore --Apple-Mail-14-729890014 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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 --Apple-Mail-14-729890014 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Apple-Mail-14-729890014--