opentelemetry-collector-releases
opentelemetry-collector-releases copied to clipboard
RPM packages are missing a /bin/sh dependency
/bin/sh is required for the postinstall.sh and other scripts.
Adding a Requires:
for all dependencies needed during install is a common standard.
Can you give more details about it? Is this happening for specific versions of specific distributions? I believe I installed the RPM a few times, and I'm confident it worked on Fedora 36.
It most likely works in your testing because, the /bin/sh dependency is already in place. But, in an environment where it is not yet there (kickstart, etc) the install will fail in the PREIN step.
If there requirement is explicitly included, then RPM resolver can order the package installs correctly.
Makes total sense. Are you able to open a PR fixing it? It's very likely here:
https://github.com/open-telemetry/opentelemetry-collector-releases/blob/26c3f343e63513b7b34b2765eda5ab336d0146c9/cmd/goreleaser/internal/configure.go#L106-L139
Here's the relevant documentation from goreleaser: https://goreleaser.com/customization/nfpm/
Sorry, I'm not familiar enough with the project or GoReleaser to do a PR at the moment.