New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #11868 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

depends_lib-delete short-circuits dependency list

Reported by: jmpp@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.4
Component: base Version: 1.4.3
Keywords: depends_lib-delete depends_lib-append Cc:
Port:

Description

A Portfile dependency rework like the following:

depends_lib-delete <port1>
depends_lib-append <port2>

Will cause MacPorts 1.4.x to error out with the following report:

Error: Error executing devel: can't set "depends_lib": invalid depspec: 
Error: Status 1 encountered during processing.

That example is taken from the autex devel variant, reported in #11796. Other ports are also affected by the same error, #11819 as an example. A known workaround is to invert the dependency rework:

depends_lib-append <port2>
depends_lib-delete <port1>

Which hints toward a limitation in our base sources: we can't write to the dependency list once we "clamp" it at the end. Any takers?

-jmpp

Change History

Changed 5 years ago by eridius@…

  • status changed from new to closed
  • resolution set to fixed

Fixed in r24678

Changed 5 years ago by jmpp@…

  • milestone changed from Needs developer review to MacPorts 1.4

Changed 5 years ago by nox@…

  • priority changed from Important to Normal

Changed 4 years ago by jmpp@…

Merged into the release_1_4 branch in r24908.

-jmpp

Note: See TracTickets for help on using tickets.