• Pre-Depends for PuppetDB

    From =?UTF-8?B?SsOpcsO0bWUgQ2hhcmFvdWk=?@21:1/5 to All on Fri Jul 15 21:00:01 2022
    Hello,

    I would like to consult my esteemed colleagues as to whether
    "Pre-Depends: default-jre-headless" is appropriate for a package which
    ships a systemd service unit that auto-starts after installation, via "ExecStart=/usr/bin/java".

    The package being worked on is PuppetDB: https://salsa.debian.org/puppet-team/puppetdb

    The problem is that currently, during installation on a system that
    doesn't yet carry "/usr/bin/java", the "puppetdb" package is configured *before* "openjdk-11-jre-headless" which itself is a dependency for "default-jre-headless"

    This leads the service unit to enter the failed state as the update-alternatives postinst bits from "openjdk-11-jre-headless" have
    not yet run: so at the moment the puppetdb postinst attempts to start
    the systemd unit, the "/usr/bin/java" symlink is non-existent.

    If the puppetdb package is somehow to blame for this behavior, and this
    can be fixed without a Pre-Depends, I'll be happy to impement the
    required changes.


    Thank you,

    -- Jerome

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?SsOpcsO0bWUgQ2hhcmFvdWk=?@21:1/5 to All on Sat Jul 16 04:40:01 2022
    Hello,

    Le 2022-07-15 à 14 h 52, Jérôme Charaoui a écrit :
    The problem is that currently, during installation on a system that
    doesn't yet carry "/usr/bin/java", the "puppetdb" package is configured *before* "openjdk-11-jre-headless" which itself is a dependency for "default-jre-headless"

    It was pointed out to me by elbrus on #debian-devel that this particular problem is likely caused by #929685 and indeed, changing "Depends: default-jre-headless" in puppetdb by "Depends: openjdk-11-jre-headless"
    fixes the problem.

    Thanks.

    -- Jerome

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)