different versions of port for different versions of OS X
Joshua Root
jmr at macports.org
Tue Apr 22 07:14:52 PDT 2014
On 2014-4-22 23:50 , Joshua Root wrote:
> On 2014-4-22 23:42 , Mark Moll wrote:
>> I maintain a port, py-graph-tool, for which the latest versions only work on 10.9. I want to specify that older versions of OS X should use an older version of this port. This is what I have:
>>
>> version 2.2.31
>> epoch 20140421
>> distname ${realname}-${version}
>> checksums md5 5c2f66d90f77824b924b2b81f5043822 \
>> sha1 5e0b1c215ecd76191a82c745df0fac17e33bfb09 \
>> rmd160 23f52640ab4dfaea1d5b6432a1b5c8293deedbc5
>>
>> if {${os.major} <= 12 && ${os.platform} eq "darwin"} {
>> version 2.2.26
>> distname ${realname}-${version}
>> checksums md5 317b29de0d3ef715fdc9281e078cfb17 \
>> sha1 108be4cf6212eb6886f172ea03813187f73e4c3c \
>> rmd160 cd2e8506522821750d70a97b951254f0a133d218
>> }
>>
>> The build bot, however, is still picking up the wrong distname, as the following snippet shows:
>>
>> ---> Attempting to fetch py27-graph-tool-2.2.26_0.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/py27-graph-tool
>> ---> Fetching distfiles for py27-graph-tool
>> ---> graph-tool-2.2.31.tar.bz2 doesn't seem to exist in /opt/local/var/macports/distfiles/py-graph-tool
>> ---> Attempting to fetch graph-tool-2.2.31.tar.bz2 from http://distfiles.macports.org/py-graph-tool
>>
>> (Full log at https://build.macports.org/builders/buildports-lion-x86_64/builds/19772/steps/compile/logs/stdio)
>>
>> Any ideas what’s going on?
>
> Try moving your python.versions to before you change anything.
That actually doesn't make any difference locally...
And I notice that the linked build is from r119271, which is before you
added the distname inside the if block. AFAICT it works fine after r119280.
- Josh
More information about the macports-dev
mailing list