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

[spec] Add %{_bindir}/jfr to ghost files [rhel-9, openjdk-11]

    • None
    • None
    • ZStream
    • rhel-sst-java
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Approved Blocker
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      Followup from sos investigation in https://bugzilla.redhat.com/show_bug.cgi?id=2169684#c1 : installing java-11-openjdk-devel package deploys also symlink

      /usr/bin/jfr -> /etc/alternatives/jfr

      but the /usr/bin/jfr is not owned by the package.

      It should be put to ghost files likewise e.g.

      %ghost %{_bindir}/javac
      %ghost %{_bindir}/jdb

      in spec file.

      Version-Release number of selected component (if applicable):
      java-11-openjdk-11.0.18.0.10-2.el9_1.x86_64 (but multiple versions apply)

      How reproducible:
      100%

      Steps to Reproduce:
      1. install java-11-openjdk-devel
      2. rpm -qf /usr/bin/jfr /usr/bin/jdb

      Actual results:
      file /usr/bin/jfr is not owned by any package
      java-11-openjdk-devel-11.0.17.0.8-2.el9_0.x86_64

      Expected results:
      Both files reported as owned by the java-11-openjdk-devel

      Additional info:

              rhn-engineering-ahughes Andrew Hughes
              rhn-support-pmoravec Pavel Moravec
              Andrew Hughes Andrew Hughes
              David Kutalek David Kutalek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: