<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/14/15 15:34, Jonathan Billings
      wrote:<br>
    </div>
    <blockquote
cite="mid:CACxoJuWwZue0hqKwPmye50vCrPwHODWy5uwc_E7vLO=xq=j-Pg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Wed, Jan 14, 2015 at 9:24 AM, Bart
            Van Assche <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:bvanassche@acm.org" target="_blank">bvanassche@acm.org</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div id=":41o" class="" style="overflow:hidden">However,
                this caused the<br>
                build server to install the kernel-debug-devel RPM
                instead of the<br>
                kernel-devel RPM (see also<br>
                <a moz-do-not-send="true"
                  href="https://cbs.centos.org/koji/taskinfo?taskID=6041"
                  target="_blank">https://cbs.centos.org/koji/taskinfo?taskID=6041</a>
                for the logs).</div>
            </blockquote>
          </div>
          <br>
          I've encountered the same problem with the openafs-kmod
          package.  The only solution I've found was to have a </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">BuildRequires: kernel-devel = %{kver}</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">... because the kernel-debug-devel
          provides "kernel-devel = 3.10.0-123.13.2.el7.debug"</div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">This is why it finds it when you don't
          specify the kversion.  Red Hat, in their infinite wisdom, made
          the kernel-debug-devel provide kernel-devel, and the RPM
          sorting algorithm finds that "3.10.0-123.13.2.el7.debug" is a
          later version-release than "3.10.0-123.13.2.el7".<br>
        </div>
      </div>
    </blockquote>
    <br>
    Thanks for the help. As you can see your advice had the following
    very positive effect:<br>
    <br>
    $ koji build --scratch bananas7-el7
    scst-3.18.1+-3.1.0.19a02ce-1.src.rpm<br>
    [ ... ]<br>
    6123 build (bananas7-el7, scst-3.18.1+-3.1.0.19a02ce-1.src.rpm)
    completed successfully<br>
    <br>
    The next step is to test the generated RPM.<br>
    <br>
    Bart.<br>
  </body>
</html>