Skip to content

SBT RPM postinstall script fails when coreutils isn't installed #5266

@ngonewd

Description

@ngonewd

steps

sbt version: 1.3.4

problem

In some situations, SBT can be installed on a system which does not have the coreutils installed yet. The biggest example of this is when building relocatable RPM's and building an OS image in a chroot. When this occurs, the post install scripts attempts to use the rm command, which does not exist, and the script fails.

expectation

The SBT RPM should have coreutils as a dependency, even though on most systems it will already be installed.

notes

There is no Redhat-blessed way to force an ordering of non-dependent RPM's, so the only way that one can force coreutils to be installed before SBT is by changing SBT's dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugarea/linuxLinux distro related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions