-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.3.0
-
iptables-1.8.10-2.el9
-
None
-
Low
-
rhel-sst-networking-core
-
ssg_networking
-
None
-
Dev ack
-
False
-
-
No
-
None
-
Release Note Not Required
-
-
Unspecified
-
None
Description of problem:
When /etc/rpm/macros contains "%_excludedocs 1", iptables-nft installation
leaves dangling symbolic links in /etc/alternatives and in /usr/share/man/man8
Version-Release number of selected component (if applicable):
iptables-nft-1.8.8-6.el9.x86_64
How reproducible:
Always
Steps to Reproduce:
1. echo "%_excludedocs 1" >> /etc/rpm/macros
2. dnf install iptables-nft
3.
Actual results:
sh-5.1# ls -l /usr/share/man/man8
total 0
lrwxrwxrwx 1 root root 39 Apr 9 21:02 arptables-restore.8.gz -> /etc/alternatives/arptables-restore-man
lrwxrwxrwx 1 root root 36 Apr 9 21:02 arptables-save.8.gz -> /etc/alternatives/arptables-save-man
lrwxrwxrwx 1 root root 31 Apr 9 21:02 arptables.8.gz -> /etc/alternatives/arptables-man
lrwxrwxrwx 1 root root 30 Apr 9 21:02 ebtables.8.gz -> /etc/alternatives/ebtables-man
sh-5.1# ls -l /etc/alternatives | grep man8
lrwxrwxrwx 1 root root 38 Apr 9 21:02 arptables-man -> /usr/share/man/man8/arptables-nft.8.gz
lrwxrwxrwx 1 root root 46 Apr 9 21:02 arptables-restore-man -> /usr/share/man/man8/arptables-nft-restore.8.gz
lrwxrwxrwx 1 root root 43 Apr 9 21:02 arptables-save-man -> /usr/share/man/man8/arptables-nft-save.8.gz
lrwxrwxrwx 1 root root 37 Apr 9 21:02 ebtables-man -> /usr/share/man/man8/ebtables-nft.8.gz
Expected results:
No dangling symbolic links.
Additional info:
The postinstall scriptlet should test the %%{_excludedocs} value to decide whether to install the alternatives. See the postfix rpm spec file for an example.