Friday, August 30, 2024

Re: Should implicit {RUN,BUILD,LIB}_DEPENDS be listed?

Le Fri, Aug 30, 2024 at 01:29:53PM +0200, Johannes Thyssen Tishman a écrit :
> Given the following scenario:
>
> Port A dependencies: X, Y, Z
> Port B dependencies: A, X, Y, Z
>
> Should port B explicitly list the X, Y and Z dependencies in
> {RUN,BUILD,LIB}_DEPENDS, even if they are pulled by port A already?

probably not the reply you want, but 'it depends'.

if that's 'classic' dependencies that port A is unlikely to lose, then
its no need to list them. But say it's a python port where dependencies
come and go, it might be a good idea to list them in B, in case A loses
the dep on something B uses..

for things that are for @tag (gtk4,-guic, desktop-file-utils)
annotations its expected to list them, because the port installation
*uses* them.

for LIB_DEPENDS, keep it to the bare minimum until
port-lib-depends-check stops complaining, you don't see devel/glib2
in all gtkX ports.

for BUILD/RUN depends; generally you list the ones upstream specifies.
"Implicit" ones from dependencies .. that depends.

it would have helped a lot if you said which port/language you were
referring to :p

No comments:

Post a Comment