ROCm / rocm_smi_lib

ROCm SMI LIB
https://rocm.docs.amd.com/projects/rocm_smi_lib/en/latest/
MIT License
112 stars 48 forks source link

[Issue]: dpkg configuration error on Debian due to Systemd #184

Open nairboon opened 6 days ago

nairboon commented 6 days ago

rocm-smi-lib can't be installed on Debian testing, because dpkg-configure fails for rocm-smi-lib (7.2.0.60102-119~22.04):

Removed '/etc/systemd/system/timers.target.wants/logrotate.timer'.
Created symlink '/etc/systemd/system/timers.target.wants/logrotate.timer' → '/usr/lib/systemd/system/logrotate.timer'.
--now can only be used with verb enable, disable, or mask

which then fails in https://github.com/ROCm/rocm_smi_lib/blob/323ab1105dcee578454e1feff0b01bb3a98fa01f/DEBIAN/postinst.in#L110

this line might need to be exit 0 because it fails for me with return: can only 'return' from a function or sourced script

The actual problem is a change of behaviour in systemd, the above code should have worked from systemd v252+ but in v256 the option --now fails for the reenable command in https://github.com/ROCm/rocm_smi_lib/blob/323ab1105dcee578454e1feff0b01bb3a98fa01f/DEBIAN/postinst.in#L83

see https://github.com/systemd/systemd/issues/31541

Version: rocm 6.1.2