Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-5810

iptables-nft leaves dangling man page symbolic links when installed with %_excludedocs set to 1

    • iptables-1.8.10-2.el9
    • None
    • Low
    • rhel-sst-networking-core
    • ssg_networking
    • None
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • Release Note Not Required
    • 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.

              psutter@redhat.com Phil Sutter
              jira-bugzilla-migration RH Bugzilla Integration
              qe-baseos-daemons qe-baseos-daemons
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: