[Debian-pan-maintainers] McCode / Debian

Emmanuel FARHI emmanuel.farhi at synchrotron-soleil.fr
Wed Jul 17 16:53:53 BST 2024


Hi guys,

the build now contains a fully working McCode distribution.  I added a 
patch to properly add remaining libraries from common/lib/share..

I could launch a McXtrace simulation, plot results and get a beam-line 
view (via PyQTgraph).

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).

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).

But clearly we now have a "working" set for McStas and McXtrace.

Emmanuel.


Le 17/07/2024 à 13:52, Emmanuel FARHI a écrit :
>
> Hi guys,
>
> 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.
>
> The /cmake/Modules/MCUtil.cmake/ file defines the /file_globsrc/ 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:
>
>     /<<PKGBUILDDIR>>/debian/package/...
>
> and perhaps the MATCHES regexp are confused with the << and >> symbols 
> therein (via the "${f}").
>
> The only place where /file_globsrc /remains are in the 
> /mcxtrace/CMakeLists.txt/ and /mcstas/CMakeLists.txt/. This may be the 
> reason for some missing libraries which indeed are shipped via the 
> '/mcxtrace/' and '/mcstas/' packages, namely read_table-lib and other 
> libs in e.g. /mcxtrace/lib/share/ (which is as well a link to 
> /common/lib/share//).
>
> Some of the /file_globsrc/ calls have already been replaced by simpler:
>
>   * file(GLOB VAR DIR/*)
>
> statements. I'd like to replace these last occurrences in file 
> "/cmake/Modules/InstallMCCODE.cmake/", namely:
>
>   * file_globsrc( general_codefiles "${WORK}/lib/share/*.h"
>     "${WORK}/lib/share/*.c" )
>   * file_globsrc( flavor_codefiles "${FLAVOR_LIB}/share/*.h"
>     "${FLAVOR_LIB}/share/*.c" "${FLAVOR_LIB}/share/*.cl" )
>
> by simpler series of:
>
>   * file(GLOB VAR DIR/*)
>
> The lib/share directory only contains .h, .c and .cl files. So the 
> inclusion via a file(GLOB VAR DIR/*) should work straight away.
>
> What do you think ?
>
> Emmanuel.
>
> -- 
> signature
> / ___|__/\_| |   | ____|_ _| |      FARHI Emmanuel
> \___ \\ | |   |  _|  | || |      Div Exp/Data Reduction and Analysis Team
>  ___) /_  _| |___| |___ | || |___   Tel : +33 (1) 69 35 96 04 
> <callto:+33%20%281%29%2069%2035%2096%2004>
> |____/  \/ |_____|_____|___|_____|  Saint-Aubin BP 48 - 91192 
> GIF/YVETTE CEDEX
> SYNCHROTRON http://www.synchrotron-soleil.fr
>
-- 
signature
/ ___|__/\_| |   | ____|_ _| |      FARHI Emmanuel
\___ \\ | |   |  _|  | || |      Div Exp/Data Reduction and Analysis Team
  ___) /_  _| |___| |___ | || |___   Tel : +33 (1) 69 35 96 04 
<callto:+33%20%281%29%2069%2035%2096%2004>
|____/  \/ |_____|_____|___|_____|  Saint-Aubin BP 48 - 91192 GIF/YVETTE 
CEDEX
SYNCHROTRON http://www.synchrotron-soleil.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-pan-maintainers/attachments/20240717/f7e273ba/attachment-0001.htm>


More information about the Debian-pan-maintainers mailing list