[MacPorts] #69765: Base again mistakes test deps for build/lib deps and creates a bogus dependency cycle

MacPorts noreply at macports.org
Fri Apr 19 15:36:42 UTC 2024


#69765: Base again mistakes test deps for build/lib deps and creates a bogus
dependency cycle
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  base          |    Version:  2.9.3
Resolution:  worksforme    |   Keywords:
      Port:  R             |
---------------------------+--------------------

Comment (by barracuda156):

 Replying to [comment:3 jmroot]:
 > I take it you were seeing this in the PR that just got committed, which
 is rather critical information that you omitted from the ticket. But
 there's still nothing wrong with the dependency calculation. For example
 R-tibble's test dependency R-bench has R-tibble in depends_lib, so the
 circular dep is real.

 How is this a circular dependency? Test dependencies should not be
 considered here. Macports is just wrong.
 I real dependency cycle makes installation impossible. Here it is not at
 all the case. In a given example, assuming neither is installed, and I
 invoke `sudo port test R-tibble`, the following should happen:

 1. R-tibble gets installed.
 2. R-bench is installed.
 3. R-tibble tests are run.

 There is no problem at all in this process with dependencies. It was
 broken at some point, then fixed, and then recently broken again by some
 change in the base.

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


More information about the macports-tickets mailing list