Local portfile masks portfile in main repository
Ryan Schmidt
ryandesign at macports.org
Fri Apr 15 04:00:23 PDT 2011
On Apr 15, 2011, at 05:50, Anders F Björklund wrote:
> Ryan Schmidt wrote:
>
>> By design, if you have a local portfile for a port, then that will be used, instead of any identically-named port in the main port repository. Some users may have forgotten that they have a local portfile, which can result in a problem, as in this situation where the user's local port was older than the official version:
>>
>> https://trac.macports.org/ticket/29132#comment:2
>
> It already compares versions ? If the user had done a "port sync", he would have seen the newer version. Since that wasn't done, it was happy running with the archived ports which is reasonable I think.
>
> I think it's annoying enough that it defaults to upgrading all the dependencies. If it also defaults to synching sources "just in case" every time you try to build something, it would be unbearable...
If you look at the output in the above ticket, it shows that MacPorts was aware of php5 @5.3.6 (presumably from the rsync port repository), but still chose php5 @5.3.5 (presumably from the local directory which came from an old ports tarball). I think that's the scenario that might merit some kind of message to the user.
More information about the macports-dev
mailing list