Bug 2296986 - RPM scriptlet error upgrading to perl-Mail-SPF-3.20240617-1.fc40.noarch (alternatives) [NEEDINFO]
Summary: RPM scriptlet error upgrading to perl-Mail-SPF-3.20240617-1.fc40.noarch (alte...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyspf
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-10 01:28 UTC by Anthony Messina
Modified: 2025-04-30 18:17 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
jpazdziora: needinfo? (paul.wouters)


Attachments (Terms of Use)

Description Anthony Messina 2024-07-10 01:28:40 UTC
Running scriptlet: perl-Mail-SPF-3.20240617-1.fc40.noarch
failed to link /usr/bin/spfquery -> /etc/alternatives/spf: /usr/bin/spfquery exists and it is not a symlink

Reproducible: Always

Comment 1 Jan Pazdziora (Red Hat) 2024-07-10 05:29:06 UTC
What was the version you were upgrading from? We implemented spfquery as alternatives in bug 1399246, back in 2017, so if anything I would have expected that issue back in Fedora 26, not now.

And what does rpm -qf /usr/bin/spfquery say? Is it possible you have some other package installed which doesn't ship it as alternatives? Or even some script not managed by rpm?

Comment 2 Anthony Messina 2024-07-10 10:49:58 UTC
I keep an updated F40 system.  This one has been upgraded over several releases as well 38 -> 39 ->40...

The previous version appears to be 3.20240206-1.fc40.

~]# rpm -qf /usr/bin/spfquery
python3-pyspf-2.0.14-18.fc40.noarch
perl-Mail-SPF-3.20240617-1.fc40.noarch

Comment 3 Jan Pazdziora (Red Hat) 2024-07-10 11:00:28 UTC
So

[root@d8203ece046f /]# rpm -qf /usr/bin/spfquery
python3-pyspf-2.0.14-18.fc40.noarch
[root@d8203ece046f /]# ls -la /usr/bin/spfquery
-rwxr-xr-x. 1 root root 4602 Jan 26 00:00 /usr/bin/spfquery
[root@d8203ece046f /]# rpm -Vf /usr/bin/spfquery
[root@d8203ece046f /]#

shows that file comes from the python3-pyspf package. I think the best course of action would be to move this bugzilla to python3-pyspf and ask if it could use alternatives for /usr/bin/spfquery as well.

Comment 4 Jan Pazdziora (Red Hat) 2024-07-10 11:02:01 UTC
Hello python3-pyspf maintainer(s),

would it be possible for python3-pyspf to use alternatives for /usr/bin/spfquery?

Comment 5 Aoife Moloney 2025-04-28 13:29:19 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Anthony Messina 2025-04-30 18:17:28 UTC
This continues to be an issue in Fedora 42:

~]# rpm -q --file /usr/bin/spfquery
perl-Mail-SPF-3.20240923-2.fc42.noarch
python3-pyspf-2.0.14-22.fc42.noarch


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