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

rpmbuild fails to automatically detect provides or requires from perl module

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.1.0
    • perl
    • None
    • Important
    • rhel-sst-cs-stacks
    • ssg_core_services
    • None
    • False
    • Hide

      None

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

      Description of problem:

      rpmbuild fails to detect requires or provides from perl module.

      The root cause seems to be the /usr/lib/rpm/rpmdeps
      On RHEL8 this tool shows

      $ /usr/lib/rpm/rpmdeps --define="_use_internal_dependency_generator 1" --requires Logger.pm
      perl(Sys::Syslog)
      perl(strict)
      perl(warnings)
      $ /usr/lib/rpm/rpmdeps --define="_use_internal_dependency_generator 1" --provides Logger.pm
      perl(UVic::Logger)

      While on RHEL9

      $ /usr/lib/rpm/rpmdeps --define="_use_internal_dependency_generator 1" --requires Logger.pm
      $ /usr/lib/rpm/rpmdeps --define="_use_internal_dependency_generator 1" --provides Logger.pm

      Version-Release number of selected component (if applicable):

      $ rpm -qf /usr/lib/rpm/rpmdeps
      rpm-build-4.16.1.3-19.el9_1.x86_64

      How reproducible:

      Take any perl module and run the rpmdeps commands on it.
      I have attached the Logger.pm module I used in the description of my problem.

      Steps to Reproduce:
      1. Save he Logger.pm
      2. Run the rpmdeps commands
      /usr/lib/rpm/rpmdeps --define="_use_internal_dependency_generator 1" --requires Logger.pm
      /usr/lib/rpm/rpmdeps --define="_use_internal_dependency_generator 1" --provides Logger.pm

      Actual results:

      null list

      Expected results:

      the requires list of:

      perl(Sys::Syslog)
      perl(strict)
      perl(warnings)

      and the provides list of:

      perl(UVic::Logger)

      Additional info:

              jplesnik@redhat.com Jitka Plesnikova
              jira-bugzilla-migration RH Bugzilla Integration
              perl-maint-list perl-maint-list
              Martin Kyral Martin Kyral
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: