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

rpm --eval '%{getncpus proc}' is able to be 0 on i686

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • CentOS Stream 10, rhel-10.0.beta
    • rpm
    • None
    • None
    • None
    • sst_cs_software_management
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • i686
    • None

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

      We are trying to build packages that use `make` but on certain machines we are getting 'make -j0' which causes the builds to fail

      Please provide the package NVR for which bug is seen:

      rpm-4.18.99-1.el10+1

      rpm-4.19.0-1.el10+1
      rpm-4.19.0-2.el10+1

      How reproducible:

      On specific machines, 100%

      On all the others, the value for j isn't what is expected.

      Steps to reproduce

      1. mock -r fedora-eln-i386 --shell
      2. rpm --eval '%{getncpus}'
      3. rpm --eval '%{getncpus proc}'

      Expected results

      Both outputs should be the same, such as 20 / 20

      Actual results

      Both outputs are different.  And depending on the results, it is sometimes 0.

      Such as 20/5 or 64/0

              packaging-team-maint packaging-team-maint
              tdawson@redhat.com Troy Dawson
              packaging-team-maint packaging-team-maint
              Software Management QE Software Management QE
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: