New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34818 (closed defect: invalid)

Opened 11 months ago

Last modified 11 months ago

How to specify library version in depends_lib

Reported by: david@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: Cc:
Port: kdenlive

Description

Moving from kdenlive-0.8 to kdenlive-0.9 requires upgrading mlt to at least 0.7.8 so best to have this as a library dependency.

Require a Portfile guru to suggest best way to do this.

Following fails...

depends_lib-append port:mlt-0.7.8

depends_lib-append port:mlt@0.7.8

depends_lib-append port:mlt+0.7.8

Maybe this has to be accomplished so other way.

I've tried multiple greps through Portfiles looking for an example. No joy.

Suggestions welcome.

Thanks.

Change History

comment:1 Changed 11 months ago by cal@…

  • Status changed from new to closed
  • Resolution set to invalid

MacPorts doesn't support this at the moment.

comment:2 Changed 11 months ago by david@…

  • Status changed from closed to reopened
  • Resolution invalid deleted

If possible, add a note to this ticket about a good Portfile example of how to do this.

Close ticket after update, whether you know of an example Portfile or not.

Thanks.

comment:3 Changed 11 months ago by ryandesign@…

  • Status changed from reopened to closed
  • Resolution set to invalid

MacPorts does not have a way to do this.

MacPorts does however upgrade dependencies first. So, commit the update to the mlt port to update it to version 0.7.8 first, then commit the update to update the port that depends on mlt.

For further questions about how to write portfiles, please write to the macports-dev mailing list.

comment:4 Changed 11 months ago by ryandesign@…

The pango port's pre-configure block gives some examples of how a port could check its dependencies manually. Usually this is not necessary because MacPorts upgrades dependencies first. Pango does it because there are also development version ports (glib2-devel, cairo-devel, pango-devel) and from time to time the development versions and stable versions have not been compatible with one another.

Note: See TracTickets for help on using tickets.