[MacPorts] #52898: revision convenience

MacPorts noreply at macports.org
Wed Nov 16 23:44:35 CET 2016


#52898: revision convenience
--------------------------+--------------------------------
  Reporter:  RJVB         |      Owner:  macports-tickets@…
      Type:  enhancement  |     Status:  new
  Priority:  Low          |  Milestone:
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------------------

Comment (by raimue):

 Specifying the version number twice in the same file is not convenient at
 all. You should even see a `port lint` warning for this.

 If we really need to do something about this, I could think of extending
 the version option syntax to `version <version> [<revision>]`. However,
 this would make the Portfile syntax
 [https://en.wikipedia.org/wiki/Orthogonality_(programming) non-
 orthogonal], as there would be multiple ways to specify the revision.

 For these kinds of mistakes it would actually be better to have a checker
 for patches against Portfiles detecting such problems (see checkpatch.pl
 for [https://github.com/torvalds/linux/blob/master/scripts/checkpatch.pl
 Linux] or
 [http://git.qemu.org/?p=qemu.git;a=blob;f=scripts/checkpatch.pl;hb=HEAD
 QEMU]). If the patch increases the version, but the revision was not reset
 to 0, throw an error.

--
Ticket URL: <https://trac.macports.org/ticket/52898#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS



More information about the macports-tickets mailing list