<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Ok so I finally get he understanding when it is wrote /bildir it
      refer to the chroot path wichi is
      /var/lib/mock/fedora-30-scl-x86_64/root</p>
    <p>So now I have to found why the %prep exit with sucess without to
      unpack the source using mock while that works with rpmbuild
      directly</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 02/01/2020 à 15:31, Jonathan MERCIER
      a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:1133cca9-8b52-38e8-2f7e-160b46d52402@cng.fr">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Dear,</p>
      <p>I try to use mock wiyth SCL but I have some complication:</p>
      <p>I have:</p>
      <p>1/ a source rpm file from rpmbuild -bs ...<br>
      </p>
      <p>2/ a mock config file<br>
      </p>
      <p>$ cat fedora-30-scl-x86_64.cfg<br>
        include('/etc/mock/templates/fedora-30.tpl')<br>
        config_opts['chroot_setup_cmd'] = 'install @buildsys-build
        scl-utils-build scl-utils'<br>
        config_opts['target_arch'] = 'x86_64'<br>
        config_opts['legal_host_arches'] = ('x86_64',)<br>
        config_opts['root'] = 'fedora-30-scl-x86_64' </p>
      <p>---------------------------------------------------------------</p>
      <p>3/ add current user to mock group and check it with th id
        command<br>
      </p>
      <p>4/ init the mock environnment</p>
      <p>$ sudo mock -r fedora-30-scl-x86_64.cfg --init </p>
      <p>---------------------------------------------------------------</p>
      <p>5/ rebuild</p>
      <p>$ sudo mock -r fedora-scl-30-x86_64.cfg --define "scl
        jonathan-llvm-ldc900"  --rebuild
        SRPMS/jonathan-llvm-ldc900-llvm-ldc-9.0.0-1.fc30.src.rpm</p>
      <p>$ cat /var/lib/mock/fedora-30-scl-x86_64/result/build.log<br>
      </p>
      <p>follow the link to see its content ----> <a
          href="https://paste.centos.org/view/dda8bba1"
          moz-do-not-send="true">https://paste.centos.org/view/dda8bba1</a></p>
      <p>---------------------------------------------------------------<br>
      </p>
      <p>And that fail at this step!</p>
      <p>The buildscript from the spec file is launched and fail as
        cmake do not found the source. <br>
      </p>
      <p>from the log I see the build directory it is:
        /builddir/build/BUILD/</p>
      <p>but this directory do not exists.</p>
      <p>So how to configure mock to create the expected buildir to be
        used for SCLs ?</p>
      <p><br>
      </p>
      <p>thanks</p>
      <p><br>
      </p>
      <p>Have a nice day<br>
      </p>
      <div class="moz-signature">-- <br>
        <style type="text/css">
/* ==========================================================================
Signature style
========================================================================== */
#main a, span{
    height: auto;
    width: auto;
}
#main p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size:  100%;
    line-height: 0.3 rem;
    width: 100%;
    height: auto;
}
#main{
    width: 480px;
    height: 240px;
    border: solid 1px #000;
    border-radius: 15px;
    box-shadow: 4px 2px black;
    position:relative;
}

#selfie{
    float: left;
    width: 100px;
    height:auto;
    margin-right: 23px;
    margin-left: 16px;
}
#selfie img{
    transform: translateY(+10%);
    position: relative;
    width: 80px;
    height: 104px;
}
#logo{
    width:  100%;
    height: auto;
}
#description{
    float: left;
    padding-top: 16px;
    width: 100%;
    height: auto;
}
#position{
    color: rgb(200,41,52);
}
#job{
    color: rgb(126,170,54);
    font-size: 1.2em;
    width: 100%;
    height: auto;
}
#identity{
    font-size: 1em;
    width: 100%;
    height: auto;
}
#firstname{
    font-weight: bold;
    width: 100%;
    height: auto;
}
#lastname{
    font-weight: bold;
    width: 100%;
    height: auto;
}
#laboratory{
    color: rgb(200,41,52);
}
#contact{
    height: 100%;
    width: 100%;
}
.label{
    font-weight: bold;
    width: 100%;
    height: auto;
}
#address{
    float: left;
    height: auto;
    width: 100%;
    line-height: 0.3;
    margin-right: 1em;
    margin-left: 1em;
}
#contact{
    position: relative;
    float: right;
    height: 100%;
    width: 100%;
    line-height: 0.3;
    margin-right: 0em;
    margin-left: 0em;
}
.container1{
    position:relative;
    float: left;
    height: 100%;
    width: 40%;
}
.container2{
    position:relative;
    float: left;
    height: 100%;
    width: 50%;
    margin: auto;
}
    </style>
        <header>
          <meta http-equiv="Content-Type" content="text/html;
            charset=UTF-8">
          <meta name="format-detection" content="telephone=yes">
        </header>
        <div id="main">
          <div class="container1">
            <div id="selfie"> <img
                src="cid:part2.AD9C704F.73EE44CF@cng.fr" alt="Jonathan
                MERCIER" class=""> </div>
            <div id="description">
              <p id="job">Researcher computational biology</p>
              <p id="identity"><span id="position">PhD,</span> <span
                  id="firstname">Jonathan</span> <span id="lastname">MERCIER</span></p>
            </div>
          </div>
          <div class="container2">
            <div id="address"> <img id="logo"
                src="cid:part3.7D7964E0.3C8AA8BD@cng.fr" alt="Centre
                National de Recherche en Génomique Humaine (CNRGH)"
                class="">
              <p id="laboratory">Bioinformatics (LBI)</p>
              <p id="address_street" class="address">2, rue Gaston
                Crémieux</p>
              <p id="address_city" class="address">91057 Evry Cedex</p>
            </div>
            <div id="contact">
              <p id="phone"><span class="label">Tel :</span>(33) 1 60 87
                83 44</p>
              <p id="email"><span class="label">Email :</span><a
                  href="mailto:jonathan.mercier@cnrgh.fr"
                  moz-do-not-send="true">jonathan.mercier@cnrgh.fr</a> </p>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
SCLorg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SCLorg@redhat.com">SCLorg@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/sclorg">https://www.redhat.com/mailman/listinfo/sclorg</a>
</pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <style type="text/css">
/* ==========================================================================
Signature style
========================================================================== */
#main a, span{
    height: auto;
    width: auto;
}
#main p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size:  100%;
    line-height: 0.3 rem;
    width: 100%;
    height: auto;
}
#main{
    width: 480px;
    height: 240px;
    border: solid 1px #000;
    border-radius: 15px;
    box-shadow: 4px 2px black;
    position:relative;
}

#selfie{
    float: left;
    width: 100px;
    height:auto;
    margin-right: 23px;
    margin-left: 16px;
}
#selfie img{
    transform: translateY(+10%);
    position: relative;
    width: 80px;
    height: 104px;
}
#logo{
    width:  100%;
    height: auto;
}
#description{
    float: left;
    padding-top: 16px;
    width: 100%;
    height: auto;
}
#position{
    color: rgb(200,41,52);
}
#job{
    color: rgb(126,170,54);
    font-size: 1.2em;
    width: 100%;
    height: auto;
}
#identity{
    font-size: 1em;
    width: 100%;
    height: auto;
}
#firstname{
    font-weight: bold;
    width: 100%;
    height: auto;
}
#lastname{
    font-weight: bold;
    width: 100%;
    height: auto;
}
#laboratory{
    color: rgb(200,41,52);
}
#contact{
    height: 100%;
    width: 100%;
}
.label{
    font-weight: bold;
    width: 100%;
    height: auto;
}
#address{
    float: left;
    height: auto;
    width: 100%;
    line-height: 0.3;
    margin-right: 1em;
    margin-left: 1em;
}
#contact{
    position: relative;
    float: right;
    height: 100%;
    width: 100%;
    line-height: 0.3;
    margin-right: 0em;
    margin-left: 0em;
}
.container1{
    position:relative;
    float: left;
    height: 100%;
    width: 40%;
}
.container2{
    position:relative;
    float: left;
    height: 100%;
    width: 50%;
    margin: auto;
}
    </style>
      <header>
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <meta name="format-detection" content="telephone=yes">
      </header>
      <div id="main">
        <div class="container1">
          <div id="selfie"> <img
              src="cid:part5.C7EA433A.75A21447@cng.fr" alt="Jonathan
              MERCIER"> </div>
          <div id="description">
            <p id="job">Researcher computational biology</p>
            <p id="identity"><span id="position">PhD,</span> <span
                id="firstname">Jonathan</span> <span id="lastname">MERCIER</span></p>
          </div>
        </div>
        <div class="container2">
          <div id="address"> <img id="logo"
              src="cid:part6.AF17662D.BDF8DDEA@cng.fr" alt="Centre
              National de Recherche en Génomique Humaine (CNRGH)">
            <p id="laboratory">Bioinformatics (LBI)</p>
            <p id="address_street" class="address">2, rue Gaston
              Crémieux</p>
            <p id="address_city" class="address">91057 Evry Cedex</p>
          </div>
          <div id="contact">
            <p id="phone"><span class="label">Tel :</span>(33) 1 60 87
              83 44</p>
            <p id="email"><span class="label">Email :</span><a
                href="mailto:jonathan.mercier@cnrgh.fr">jonathan.mercier@cnrgh.fr</a>
            </p>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>