[113829] trunk/dports/kde/kmix
Nicolas Pavillon
nicos at macports.org
Mon Nov 25 04:17:25 PST 2013
On Nov 25, 2013, at 11:28, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Nov 24, 2013, at 09:37, nicos at macports.org wrote:
>
>> Revision
>> 113829
>> Author
>> nicos at macports.org
>> Date
>> 2013-11-24 07:37:01 -0800 (Sun, 24 Nov 2013)
>> Log Message
>>
>> kmix: fix build on Mavericks
>> Modified Paths
>>
>> • trunk/dports/kde/kmix/Portfile
>> Added Paths
>>
>> • trunk/dports/kde/kmix/files/patch-C11-headers.diff
>> Diff
>>
>> Modified: trunk/dports/kde/kmix/Portfile (113828 => 113829)
>>
>> --- trunk/dports/kde/kmix/Portfile 2013-11-24 15:35:17 UTC (rev 113828)
>> +++ trunk/dports/kde/kmix/Portfile 2013-11-24 15:37:01 UTC (rev 113829)
>>
>> @@ -23,6 +23,11 @@
>>
>> depends_lib-append port:kdelibs4 \
>>
>> port:libcanberra
>>
>>
>>
>> +if { ${os.major} >= 13 } {
>> + #Ensure that proper headers are used
>> + patchfiles-append patch-C11-headers.diff
>> +}
>
> The user might (very hypothetically) not be using Darwin. If you’re checking Darwin version numbers, you should first verify that ${os.platform} eq “darwin”.
True, I corrected that in r113900. Thanks for the comment.
> However, is checking for Darwin >= 13 really the correct test? Would this patch also be needed if the user has changed their macports.conf to use libc++ on Mountain Lion, for example?
Good question, and I don’t have a definitive answer. The fact is the code has a correctly made preprocessor switch to include the right header (DHAVE_STD_SHARED_PTR, for reference). It just appears that it is not set correctly at configure during my tests on Mavericks (so the patch just forces this variable), while it worked on all other platforms, hence the version test.
Cheers,
Nicolas
More information about the macports-dev
mailing list