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

"dnf builddep" fails to detect the architecture in use

    • Minor
    • sst_cs_software_management
    • ssg_core_services
    • None
    • False
    • Hide

      None

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

      Description of problem:

      Trying to use `dnf builddep` on the kernel package on a x86_64 system, the tool complains about a missing package:
      -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

      1. dnf builddep kernel-4.18.0-425.10.1.el8_7.src.rpm
        [...]
        No matching package to install: 'opencsd-devel >= 1.0.0-2'
        [...]
                    • 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

      This package is used on aarch64 only, from the spec file:
      -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
      %ifarch aarch64
      BuildRequires: opencsd-devel >= 1.0.0-2
      %endif
      -------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

      I then tried using global option `--forcearch=x86_64` but this doesn't help either.

      Would it be possible to force using a specific arch and/or default to system's arch?

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

      dnf-4.7.0-11.el8.noarch

      How reproducible:

      Always, see above.

            mblaha@redhat.com Marek Blaha
            rhn-support-rmetrich Renaud Métrich
            Software Management QE Software Management QE
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: