[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Defer postinst after a given package



If B runs a postinst script which requires Java, then I'd think it needs a dependency on Java in d/control.

That also solves the problem with ensuring that B is setup after Java.

Fab Stz wrote on 2022-09-09 10:32:
Hi,

I have a package B that depends on gradle, which depends on Java.
B doesn't have a dependency to Java set in d/control.

B runs a postinst script which requires Java.

At times, during installation Java is set up before B, at times after.

How can I be sure that B is always setup after Java?

By Java I mean: openjdk-11-jre-headless:amd64 which is the one that creates the alternatives to have/usr/bin/java.

Thanks

Attachment: OpenPGP_0xE9140597606020D3.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: