<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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()">+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>