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

/usr/share/pcp/lib/pmdaproc.sh uses diff without a dependency on diffutils

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • rhel-8.10.z
    • CentOS Stream 8
    • pcp
    • None
    • pcp-5.3.7-21.el8_10
    • None
    • None
    • 2
    • sst_pt_pcp
    • ssg_platform_tools
    • 1
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • PCP Sprint 1, PCP Sprint 8
    • Unspecified Release Note Type - Unknown
    • None

      What were you trying to do that didn't work?

      Enabling a PMDA and restarting pmcd yields an error in the logs (but PCP starts fine), as pmdaproc.sh tries to use `diff` even if it might not be installed as the package has no dependency on `diffutils`.

      Please provide the package NVR for which bug is seen: pcp-5.3.7-18.el8.x86_64

      How reproducible:

      Steps to reproduce

      1.  touch /var/lib/pcp/pmdas/redis/.NeedInstall
      2.  systemctl restart pmcd
      3.  

      Expected results

      no errors in logs

      Actual results

      Nov 21 08:56:49 centos8 pmcd[5275]: Installing redis PMDA ...
      Nov 21 08:56:49 centos8 pmcd[5309]: /usr/share/pcp/lib/pmdaproc.sh: line 1142: diff: command not found
      Nov 21 08:56:49 centos8 pmcd[5312]: /usr/share/pcp/lib/pmdaproc.sh: line 1142: diff: command not found

            nathans@redhat.com Nathan Scott
            egolov@redhat.com Evgeni Golov
            pcp-maint pcp-maint
            Jan Kurik Jan Kurik
            Jacob Valdez Jacob Valdez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: