[59297] trunk/dports/audio/liblastfm

sharky at macports.org sharky at macports.org
Tue Oct 13 01:15:10 PDT 2009


Revision: 59297
          http://trac.macports.org/changeset/59297
Author:   sharky at macports.org
Date:     2009-10-13 01:15:07 -0700 (Tue, 13 Oct 2009)
Log Message:
-----------
liblastfm : fix build failure on Snow Leopard (#21936)

Modified Paths:
--------------
    trunk/dports/audio/liblastfm/Portfile

Added Paths:
-----------
    trunk/dports/audio/liblastfm/files/
    trunk/dports/audio/liblastfm/files/patch-src-core-misc-cpp.patch

Modified: trunk/dports/audio/liblastfm/Portfile
===================================================================
--- trunk/dports/audio/liblastfm/Portfile	2009-10-13 07:54:02 UTC (rev 59296)
+++ trunk/dports/audio/liblastfm/Portfile	2009-10-13 08:15:07 UTC (rev 59297)
@@ -4,7 +4,7 @@
 
 name                liblastfm
 version             0.3.0
-revision            1
+revision            2
 categories          audio
 maintainers         nomaintainer
 description         A set of libraries allowing use of the Last.fm site services.
@@ -33,6 +33,9 @@
 
 build.env           PATH=${qtdir}/bin:$env(PATH)
 
+# fix build failure on Snow Leopard
+patchfiles          patch-src-core-misc-cpp.patch
+
 # liblastfm libraries are not referencing their proper location.
 # Until we learn how to fix this properly, we fix it manually.
 post-destroot {

Added: trunk/dports/audio/liblastfm/files/patch-src-core-misc-cpp.patch
===================================================================
--- trunk/dports/audio/liblastfm/files/patch-src-core-misc-cpp.patch	                        (rev 0)
+++ trunk/dports/audio/liblastfm/files/patch-src-core-misc-cpp.patch	2009-10-13 08:15:07 UTC (rev 59297)
@@ -0,0 +1,28 @@
+--- src/core/misc.cpp.orig	2009-10-12 10:37:32.000000000 +0200
++++ src/core/misc.cpp	2009-10-12 10:51:35.000000000 +0200
+@@ -64,22 +64,11 @@
+     #define EIT( x ) { OSErr err = x; if (err != noErr) throw 1; }
+     try
+     {
+-        short vRefNum = 0;
+-        long dirId;
+-        EIT( ::FindFolder( kOnAppropriateDisk, 
++        FSRef fsref;
++        EIT( ::FSFindFolder( kOnAppropriateDisk, 
+                            kApplicationSupportFolderType,
+                            kDontCreateFolder, 
+-                           &vRefNum, 
+-                           &dirId ) );
+-
+-        // Now we have a vRefNum and a dirID - but *not* an Unix-Path as string.
+-        // Lets make one based from this:
+-        FSSpec fsspec;
+-        EIT( ::FSMakeFSSpec( vRefNum, dirId, NULL, &fsspec ) );
+-
+-        // ...and build an FSRef based on thes FSSpec.
+-        FSRef fsref;
+-        EIT( ::FSpMakeFSRef( &fsspec, &fsref ) );
++                           &fsref ) );
+ 
+         // ...then extract the Unix Path as a C-String from the FSRef
+         unsigned char path[512];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091013/17fee73b/attachment.html>


More information about the macports-changes mailing list