Bug 2367936 - Update of apcupsd conflicts with opensmtpd: /usr/bin/smtp
Summary: Update of apcupsd conflicts with opensmtpd: /usr/bin/smtp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: apcupsd
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-22 04:32 UTC by Raman Gupta
Modified: 2025-05-24 01:16 UTC (History)
4 users (show)

Fixed In Version: apcupsd-3.14.14-38.fc42
Clone Of:
Environment:
Last Closed: 2025-05-24 01:16:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Raman Gupta 2025-05-22 04:32:29 UTC
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.

Comment 1 Germano Massullo (Thetra) 2025-05-22 04:45:04 UTC
Gwyn, should we unbundle smtp from apcupsd and add opensmtpd as dependency?

Comment 2 Raman Gupta 2025-05-22 12:35:10 UTC
(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?

Comment 3 Gwyn Ciesla 2025-05-22 19:17:51 UTC
I agree. I'll update that.

Comment 4 Fedora Update System 2025-05-22 19:46:00 UTC
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

Comment 5 Fedora Update System 2025-05-23 04:48:42 UTC
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.

Comment 6 Fedora Update System 2025-05-24 01:16:26 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.