Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#11868 closed defect (fixed)

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 (4)

comment:1 Changed 17 years ago by kballard (Lily Ballard)

Resolution: fixed
Status: newclosed

Fixed in r24678

comment:2 Changed 17 years ago by jmpp@…

Milestone: Needs developer reviewMacPorts 1.4

comment:3 Changed 17 years ago by nox@…

Priority: ImportantNormal

comment:4 Changed 17 years ago by jmpp@…

Merged into the release_1_4 branch in r24908.

-jmpp

Note: See TracTickets for help on using tickets.