Bug 2274402 - Add man8/smtp.8 to mta alternatives
Summary: Add man8/smtp.8 to mta alternatives
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: postfix
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-10 20:38 UTC by Denis Fateyev
Modified: 2024-08-13 12:30 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-08-13 12:30:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Denis Fateyev 2024-04-10 20:38:32 UTC
The package "opensmtpd" provides the man-file `man8/smtp.8`, as the "postfix" package, as well.

For "opensmtpd", I added it to the "mta-smtpman" alternatives a long time ago:
https://src.fedoraproject.org/rpms/opensmtpd/blob/rawhide/f/opensmtpd.spec#_170

Could you do the same for "postfix", to prevent warnings during install/remove package(s), when both MTAs are installed in the system?
----
Updating / installing...
   1:opensmtpd-6.8.0p2-10.fc39        ################################# [ 50%]
failed to link /usr/share/man/man8/smtp.8.gz -> /etc/alternatives/mta-smtpman: /usr/share/man/man8/smtp.8.gz exists and it is either not a symlink or --keep-foreign was set and link points outside /etc/alternatives
----

You can potentially add a hack as we did for "man8/smtpd.8" before:
https://src.fedoraproject.org/rpms/postfix/blob/rawhide/f/postfix.spec#_578
Also, I think the hack for "man8/smtpd.8" marked for F23 is no longer needed, and can be dropped.

Reproducible: Always

Steps to Reproduce:
1.Install "opensmtpd" and "postfix" packages
2.Switch between MTAs, setting a current one, using alternatives mechanism

Comment 1 Fedora Update System 2024-04-11 14:16:30 UTC
FEDORA-2024-23813f9e49 (postfix-3.9.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-23813f9e49

Comment 2 Denis Fateyev 2024-04-11 16:12:06 UTC
Please remove the ending quote here: https://src.fedoraproject.org/rpms/postfix/blob/rawhide/f/postfix.spec#_532
apparently, a copy-paste.

Comment 3 Jaroslav Škarvada 2024-04-11 16:16:47 UTC
Thanks, it should be fixed now, no idea how I could overlook it :)

Comment 4 Fedora Update System 2024-04-11 16:24:48 UTC
FEDORA-2024-80078bcbf1 (postfix-3.9.0-3.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-80078bcbf1

Comment 5 Denis Fateyev 2024-04-11 18:29:17 UTC
You have removed both quotes in lines 532 and 533: https://src.fedoraproject.org/rpms/postfix/c/bf9c337d2b636872cba876effa340a7f124cf411
But only that one in 532 was redundant: the ending quote in 533 is needed to close the leading quote in line 528.
See https://src.fedoraproject.org/rpms/postfix/blob/rawhide/f/postfix.spec#_528 .

Comment 6 Jaroslav Škarvada 2024-04-12 13:18:29 UTC
Hopefully on the 3rd try :)

Comment 7 Fedora Update System 2024-04-12 14:03:16 UTC
FEDORA-2024-173ecf132d (postfix-3.9.0-4.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-173ecf132d

Comment 8 Denis Fateyev 2024-05-25 22:26:59 UTC
Customers reported new issues in https://bodhi.fedoraproject.org/updates/FEDORA-2024-173ecf132d

Comment 9 Jaroslav Škarvada 2024-08-13 12:30:37 UTC
There is new version upstream that passed gating and all the sanity tests. The mentioned problematic test:
> the error :: [ 14:11:06 ] :: [ ERROR ] :: rlFileBackup: File /etc/postfix/vmailbox does not exist.
has been already fixed.

I think, it should be OK, dropping needinfo.


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