[MacPorts] #67823: R-commonmark Macports page duplicates test deps as lib deps

MacPorts noreply at macports.org
Tue Jul 25 03:25:45 UTC 2023


#67823: R-commonmark Macports page duplicates test deps as lib deps
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  website       |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  R-commonmark  |
---------------------------+--------------------

Comment (by ryandesign):

 The web app maintains a database with information about ports and their
 dependencies and other metadata. Periodically a script runs that updates
 that database with whatever has changed since the last time it ran.
 Imagine if the script runs pseudocode like this:

 {{{
 for each port that was changed
     for each type of dependency (lib, test, build, etc.)
         if the port has that type of dependency
             add or update that dependency data for that port
 }}}

 In other words, prior to the commit I mentioned, information about
 R-commonmark 1.8.0 was in the database, including that it had three lib
 dependencies. After that commit, the script noticed that R-commonmark was
 updated to 1.9.0. The script noticed that it has test dependencies so it
 added the test dependency information to the database. The script noticed
 that the port did not have lib dependencies, so it didn't do anything,
 erroneously leaving the previous lib dependencies in the database.

 I don't know if that's how the web app's code works, but it's a guess
 about what could have happened, based on the apparent state of the
 database today from what we can see on the web site.

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


More information about the macports-tickets mailing list