[MacPorts] #62590: port lint: warn if missing 'revision' field (was: port lint: fail if missing 'revision' field)

MacPorts noreply at macports.org
Wed Mar 31 16:35:07 UTC 2021


#62590: port lint: warn if missing 'revision' field
--------------------------+--------------------
  Reporter:  gpanders     |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by ryandesign):

 The revision field is recommended. It would be nice if port lint would
 warn if it is missing. However the way that port lint analyzes a portfile
 may not be smart enough to be able to implement this completely. It's easy
 enough to do in a portfile containing a single port, but many portfiles
 contain many ports, implemented as subports. When the subports are closely
 related, like many python versions of a module (py37-setuptools,
 py38-setuptools, etc.) where each module has the same version, one
 revision line for all subports is appropriate. But if some of the modules
 are at a different version, or if the subports are less closely related
 (like graphviz, graphviz-gui, and gvedit) separate revision lines in each
 subport are appropriate. port lint does not know where in each portfile
 each subport is defined. port lint just reads the portfile line by line.

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


More information about the macports-tickets mailing list