make sure the LP64 patch sticks

Joshua Root jmr at macports.org
Tue Jan 13 04:35:29 PST 2009


Ryan Schmidt wrote:
> 
> On Jan 13, 2009, at 04:17, jmr at macports.org wrote:
> 
>> Revision: 45300
>>           http://trac.macports.org/changeset/45300
>> Author:   jmr at macports.org
>> Date:     2009-01-13 02:17:46 -0800 (Tue, 13 Jan 2009)
>> Log Message:
>> -----------
>> dbus: make sure the LP64 patch sticks
>>
>> Modified Paths:
>> --------------
>>     trunk/dports/devel/dbus/Portfile
>>
>> Modified: trunk/dports/devel/dbus/Portfile
>> ===================================================================
>> --- trunk/dports/devel/dbus/Portfile    2009-01-13 08:51:58 UTC (rev
>> 45299)
>> +++ trunk/dports/devel/dbus/Portfile    2009-01-13 10:17:46 UTC (rev
>> 45300)
>> @@ -41,7 +41,7 @@
>>
>>  post-configure {
>>      if {[variant_isset universal] && [lsearch -glob
>> ${universal_archs} *64] != -1} {
>> -        system "cd ${worksrcpath} && patch -p0 <
>> ${filespath}/patch-config.h.diff"
>> +        system "cd ${worksrcpath} && patch -p0 <
>> ${filespath}/patch-config.h.diff && touch stamp-h1"
>>      }
>>  }
> 
> Could you elaborate on what this is doing? I'm curious. :)

The file 'stamp-h1' is a timestamp. If config.h is more recent than it,
the Makefile re-runs config.status, thus clobbering the patched config.h.

- Josh


More information about the macports-dev mailing list