stefanberger / swtpm

Libtpms-based TPM emulator with socket, character device, and Linux CUSE interface.
Other
564 stars 136 forks source link

swtpm-selinux scriptlet uses /usr/sbin/rm, which does not exist #854

Closed VGerris closed 3 months ago

VGerris commented 3 months ago

Describe the bug

swtpm-selinux-0.8.1-11.fc40.noarch scriplet uses /usr/sbin/rm which does not exist : /var/tmp/rpm-tmp.Ry1Vom: line 13: /usr/sbin/rm: No such file or directory

Required: To Reproduce (without these steps your issue may be deleted)

Steps to reproduce the behavior/issue showing all commands on command line, needed XML or JSON (if necessary), etc.:

  1. sudo dnf update where new version is :
  2. Upgrading : swtpm-selinux-0.8.1-11.fc40.noarch 12/132 Running scriptlet: swtpm-selinux-0.8.1-11.fc40.noarch 12/132 /var/tmp/rpm-tmp.Ry1Vom: line 13: /usr/sbin/rm: No such file or directory /var/tmp/rpm-tmp.Ry1Vom: line 13: /usr/sbin/rm: No such file or directory /var/tmp/rpm-tmp.Ry1Vom: line 13: /usr/sbin/rm: No such file or directory

Expected behavior No errors in scriptlet output A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Versions of relevant components

Additional context

Happened today on Fedora 40 where package was installed and upgraded. Suggestion is to change it : $ which rm /usr/bin/rm

to /usr/bin/rm

stefanberger commented 3 months ago

Problem discussed here: https://bugzilla.redhat.com/show_bug.cgi?id=2283639

I pushed a new version of the package to stable. It should be available soon/tomorrow.

VGerris commented 3 months ago

great, thank you. I couldn't find it in the source code, nor the packaging scripts, was trying to make a PR. I am glad it is resolved, I will close this then. Thank you!