<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi guys,</p>
    <p>the build now contains a fully working McCode distribution.  I
      added a patch to properly add remaining libraries from
      common/lib/share..<br>
    </p>
    <p>I could launch a McXtrace simulation, plot results and get a
      beam-line view (via PyQTgraph).</p>
    The only remaining and minor annoyance is that the matlab/octave
    optional tools are not installed (the path
    /usr/share/mcxtrace/tools/matlab is not created). <br>
    <p>Some other bugs, which are related to the current upstream git
      also exist... (for instance both webgl and webgl-classic 3D
      rendering seem to be broken).<br>
    </p>
    <p>But clearly we now have a "working" set for McStas and McXtrace.<br>
    </p>
    <p>Emmanuel.<br>
    </p>
    <p><br>
    </p>
    <p></p>
    <div class="moz-cite-prefix">Le 17/07/2024 à 13:52, Emmanuel FARHI a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:9c0d96bf-df3c-4954-9dcb-061f4abe128b@synchrotron-soleil.fr">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hi guys,</p>
      <p>The McCode packaging is now nearly finalized for Debian.
        However there are still a few missing files, and I think I have
        understood the reason for this behaviour. I have the feeling
        that the build directory in the Debian chroot (sbuild) can cause
        some confusion in this macro.</p>
      <p>The <i>cmake/Modules/MCUtil.cmake</i> file defines the <i>file_globsrc</i>
        macro (line 308) which purpose is to scan a list of files and
        return it into a variable. But, the temporary chroot built for
        the preparation of the packages has the form:</p>
      <blockquote>
        <p>/<<PKGBUILDDIR>>/debian/package/...</p>
      </blockquote>
      <p>and perhaps the MATCHES regexp are confused with the <<
        and >> symbols therein (via the "${f}").</p>
      <p>The only place where <i>file_globsrc </i>remains are in the <i>mcxtrace/CMakeLists.txt</i>
        and <i>mcstas/CMakeLists.txt</i>. This may be the reason for
        some missing libraries which indeed are shipped via the '<i>mcxtrace</i>'
        and '<i>mcstas</i>' packages, namely read_table-lib and other
        libs in e.g. <i>mcxtrace/lib/share</i> (which is as well a link
        to <i>common/lib/share/</i>).</p>
      <p>Some of the <i>file_globsrc</i> calls have already been
        replaced by simpler:</p>
      <ul>
        <li>file(GLOB VAR DIR/*)</li>
      </ul>
      <p>statements. I'd like to replace these last occurrences in file
        "<i>cmake/Modules/InstallMCCODE.cmake</i>", namely:</p>
      <ul>
        <li>file_globsrc( general_codefiles "${WORK}/lib/share/*.h" 
          "${WORK}/lib/share/*.c" )</li>
        <li>file_globsrc( flavor_codefiles "${FLAVOR_LIB}/share/*.h"
          "${FLAVOR_LIB}/share/*.c" "${FLAVOR_LIB}/share/*.cl" )</li>
      </ul>
      <p>by simpler series of:</p>
      <ul>
        <li>file(GLOB VAR DIR/*)</li>
      </ul>
      <p>The lib/share directory only contains .h, .c and .cl files. So
        the inclusion via a file(GLOB VAR DIR/*) should work straight
        away.</p>
      <p>What do you think ?</p>
      <p>Emmanuel.<br>
      </p>
      <div class="moz-signature">-- <br>
        <meta http-equiv="content-type"
          content="text/html; charset=UTF-8">
        <title>signature</title>
        <div
style="font-family: arial, helvetica, sans-serif; font-size:
      12pt; color: rgb(0, 0, 0);">
          <meta http-equiv="content-type"
            content="text/html; charset=UTF-8">
          <div>
            <div><span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">/
                  ___|<span style="color: rgb(255, 153, 0);">__/\_</span>|
                  |   | ____|_ _| |</span>      FARHI Emmanuel</span><br>
              <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">\___
                  \<span style="color: rgb(255, 153, 0);">\    </span>|
                  |   |  _|  | || |</span>      Div Exp/Data Reduction
                and Analysis Team</span><br>
              <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);"> ___)
                  <span style="color: rgb(255, 153, 0);">/_  _</span>|
                  |___| |___ | || |___</span>   Tel : <span
                  class="Object" role="link"
                  id="OBJ_PREFIX_DWT373_com_zimbra_phone"><a
                    href="callto:+33%20%281%29%2069%2035%2096%2004"
onclick="window.top.Com_Zimbra_Phone.unsetOnbeforeunload()"
                    moz-do-not-send="true">+33 (1) 69 35 96 04</a></span></span><br>
              <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">|____/
                  <span style="color: rgb(255, 153, 0);"> \/</span>
                  |_____|_____|___|_____|</span>  Saint-Aubin BP 48 -
                91192 GIF/YVETTE CEDEX</span><br>
              <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;">                       <span
                  style="color: rgb(0, 0, 255);">SYNCHROTRON</span>  <span
                  class="Object" role="link"
                  id="OBJ_PREFIX_DWT374_com_zimbra_url"><a
                    target="_blank"
                    href="http://www.synchrotron-soleil.fr"
                    class="moz-txt-link-freetext" moz-do-not-send="true">http://www.synchrotron-soleil.fr</a></span></span></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <title>signature</title>
      <div
style="font-family: arial, helvetica, sans-serif; font-size:
      12pt; color: rgb(0, 0, 0);">
        <meta http-equiv="content-type"
          content="text/html; charset=UTF-8">
        <div>
          <div><span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">/
                ___|<span style="color: rgb(255, 153, 0);">__/\_</span>|
                |   | ____|_ _| |</span>      FARHI Emmanuel</span><br>
            <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">\___
                \<span style="color: rgb(255, 153, 0);">\    </span>| |
                  |  _|  | || |</span>      Div Exp/Data Reduction and
              Analysis Team</span><br>
            <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);"> ___)
                <span style="color: rgb(255, 153, 0);">/_  _</span>|
                |___| |___ | || |___</span>   Tel : <span
                class="Object" role="link"
                id="OBJ_PREFIX_DWT373_com_zimbra_phone"><a
                  href="callto:+33%20%281%29%2069%2035%2096%2004"
onclick="window.top.Com_Zimbra_Phone.unsetOnbeforeunload()">+33 (1) 69
                  35 96 04</a></span></span><br>
            <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;"><span style="color: rgb(0, 0, 255);">|____/
                <span style="color: rgb(255, 153, 0);"> \/</span>
                |_____|_____|___|_____|</span>  Saint-Aubin BP 48 -
              91192 GIF/YVETTE CEDEX</span><br>
            <span
style="font-family: courier new, courier, monaco,
            monospace, sans-serif;">                       <span
                style="color: rgb(0, 0, 255);">SYNCHROTRON</span>  <span
                class="Object" role="link"
                id="OBJ_PREFIX_DWT374_com_zimbra_url"><a target="_blank"
                  href="http://www.synchrotron-soleil.fr"
                  class="moz-txt-link-freetext">http://www.synchrotron-soleil.fr</a></span></span></div>
        </div>
      </div>
    </div>
  </body>
</html>