Fedora Account System
Red Hat Associate
Red Hat Customer
Update of apcupsd fails due to conflict in /usr/bin/smtp. ``` # dnf update Updating and loading repositories: Repositories loaded. Package Arch Version Repository Size Upgrading: apcupsd x86_64 3.14.14-37.fc42 updates 1.1 MiB replacing apcupsd x86_64 3.14.14-35.fc42 updates 1.1 MiB ... Running transaction Transaction failed: Rpm transaction failed. - file /usr/bin/smtp from install of apcupsd-3.14.14-37.fc42.x86_64 conflicts with file from package opensmtpd-7.6.0p1-3.fc42.x86_64 # rpm -q --whatprovides /usr/bin/smtp opensmtpd-7.6.0p1-3.fc42.x86_64 # ls -l /usr/bin/smtp -rwxr-xr-x. 1 root root 98800 Jan 16 19:00 /usr/bin/smtp ``` The current apcupsd installs /sbin/smtp: ``` # rpm -q --list apcupsd | grep smtp /sbin/smtp ``` Why does apcupsd need `smtp` anyway? Reproducible: Always Steps to Reproduce: 1. dnf install opensmtpd 2. dnf install apcupsd 3. Actual Results: Conflicting due to /usr/bin/smtp Expected Results: No conflicts.
Gwyn, should we unbundle smtp from apcupsd and add opensmtpd as dependency?
(In reply to Germano Massullo from comment #1) > Gwyn, should we unbundle smtp from apcupsd and add opensmtpd as dependency? I don't think I would add opensmtpd as a dependency as primarily it is an smtp server, though it provides client tools. It seems that /etc/apcupsd/apccontrol already references a completely different binary to send email which is provided by `s-nail` on Fedora: # grep -i mail /etc/apcupsd/apccontrol export APCUPSD_MAIL="/bin/mail" So I guess there is no need to distribute /usr/bin/smtp at all?
I agree. I'll update that.
FEDORA-2025-1342a6f89c (apcupsd-3.14.14-38.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2025-1342a6f89c
FEDORA-2025-1342a6f89c has been pushed to the Fedora 42 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-1342a6f89c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1342a6f89c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2025-1342a6f89c (apcupsd-3.14.14-38.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.