How to depend on a variant (or do I want subports)?

Joshua Root jmr at macports.org
Wed Oct 31 13:14:26 PDT 2012


On 2012-11-1 07:00 , Ryan Schmidt wrote:
> 
> On Oct 31, 2012, at 14:30, Gregor Jasny <gjasny at googlemail.com> wrote:
> 
>> PS: How to specify beta version numbers? I assume 1.2.0-beta1 is newer
>> that 1.2.0. In Debian I'd use 1.2.0~beta1.
> 
> MacPorts doesn't have a rule about that. We generally just use the version number as published by the upstream project. "~" seems like a strange character to see in a version number so if upstream has not specified how the version number is to be written, then I would suggest a dash (1.2.0-beta1) or no separator (1.2.0beta1 or 1.2.0b1).

AIUI, the tilde affects version comparison in the dpkg world so that
1.2.0~beta1 is considered older than 1.2.0. Our vercmp proc doesn't
support anything like that.

- Josh


More information about the macports-dev mailing list